Re: [ANNOUNCE] sdparm 0.92

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Mogens Valentin wrote:
Douglas Gilbert wrote:

Mogens Valentin wrote:

Douglas Gilbert wrote:

Mogens Valentin wrote:

Douglas Gilbert wrote:

With sg_start (in the sg3_utils package) I have tried
to spin up and down an ATA disk inside a USB enclosure
without success. The same command on a USB connected
CD/DVD combo drive did work.

Could you try sg_start on your USB external enclosure
which I assume contains an ATA disk rather than a
SCSI (SPI) disk and report if it works?

Sure. Got it, compiled, but got the error: .../usr/include/scsi/sg.h /usr/include/scsi/scsi.h /usr/include/stdint.h sg_lib.h sg_cmds.h llseek.h gcc: cannot specify -o with -c or -S and multiple compilations make: *** [sgp_dd.o] Error 1

I could only find  -o  and  -c  in the makefiles around line 95.

Slack 9.1 / 2.6.10 from sources.

Could you try the sg3_utils-1.15.tgz beta at the top of http://www.torque.net/sg [in the news section]. Hopefully that cures the compile problem.

Nope, but it changes the error. You changed the makefile exactly as I tried it, removing '-c' in line 95.
This results in missing header files compiles:

...
creating sg_dd
gcc -g -O2 -Wall -W -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_REENTRANT -c sgp_dd.c ...
.../usr/include/stdint.h sg_lib.h sg_cmds.h llseek.h
gcc: compilation of header file requested
gcc: compilation of header file requested
...
make: *** [sgp_dd.o] Error 1



Forgot to mention I have gcc version 3.2.3, FWIW..
It's not exactly an uncommon problem; I googled a bit :p
I haven't pinpointed the problem as yet, but found comments (from compiling other apps) that it could be either a gcc versioning problem, a problem with -I or -D switches, or simply a Makefile problem.

Dear oh dear! Forgot to tell you I did: make clean; make dep; make

Doing just  make clean; make  did the job. Sorry about the problems.
Still,  make dep  ought to work :p

Doesn't change the fact that either my Prolific interface or the disk doesn't support the needed scsi modes..

--
Kind regards,
Mogens Valentin

-
: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux