cdrtools-2.00.3-SOLVED

Sebastiano Cavicchio sebastiano.cavicchio at tin.it
Sun Apr 11 07:26:53 PDT 2004


On Wed, 2004-01-21 at 22:46, Serge Delorme wrote:
> Le mardi 20 jan. 2004 à 09:48:26 -0600, Chris Macksey a écrit:
> > The problem is in libscg/scsi-linux-sg.c where it includes <scsi/scsi.h>.
> > For some reason, this ended up being resolved on my system as
> > /usr/include/linux/scsi/scsi.h, *NOT* /usr/include/scsi/scsi.h.  Never did
> > figure out why, but when I changed the code to force the path, it worked.
> > This lets libscg compile correctly, which then lets everything else compile.
> > I've burned CDs with it afterwards, as well, so I know it's working.
> 
> Well, your batting average is 100%; same problem here...and it
> compiled ok with the corrected code. Burned my first rescue-cd
> yesterday and it's good.

Hi there. I'm having the same problem (also with cdrdao et all) but the
patch does not work for me. I'm getting this:

patching file libscg/scsi-linux-sg.c
patch unexpectedly ends in middle of line
patch unexpectedly ends in middle of line


before configuring....
However I tried to make the changes to the file manually, but it won't
compile. Neither it will compile the alpha versions of cdrtools (2.01a27
etc...)

For the ones who do not have the email which I'm replying to (it is
dated January 2004), I get a lot of errors of this type (with cdrecord
2.00.3, but also the alpha versions do these errors):

/usr/bin/ld: cannot find -lscg
collect2: ld returned 1 exit status
make[1]: *** [OBJ/authenticamd-linux-cc/scgcheck] Error 1
make[1]: Leaving directory `/usr/src/cdrtools-2.00.3/scgcheck'
make: *** [all] Error 2



And the very first error I get is:




make[2]: Entering directory `/usr/src/cdrtools-2.00.3/libscg'
        ==> COMPILING "OBJ/authenticamd-linux-cc/scsitransp.o"
        ==> COMPILING "OBJ/authenticamd-linux-cc/scsihack.o"
In file included from /usr/src/linux/include/linux/cdrom.h:14,
                 from scsi-linux-sg.c:84,
                 from scsihack.c:127:
/usr/src/linux/include/asm/byteorder.h:14: error: syntax error before
"__u32"
/usr/src/linux/include/asm/byteorder.h:28: error: syntax error before
"__u64"
In file included from
/usr/src/linux/include/linux/byteorder/little_endian.h:11,
                 from /usr/src/linux/include/asm/byteorder.h:57,
                 from /usr/src/linux/include/linux/cdrom.h:14,
                 from scsi-linux-sg.c:84,
                 from scsihack.c:127:
/usr/src/linux/include/linux/byteorder/swab.h:133: error: syntax error
before "_
_u16"
/usr/src/linux/include/linux/byteorder/swab.h:146: error: syntax error
before "_
_u32"
/usr/src/linux/include/linux/byteorder/swab.h:160: error: syntax error
before "__u64"
make[2]: *** [OBJ/authenticamd-linux-cc/scsihack.o] Error 1
make[2]: Leaving directory `/usr/src/cdrtools-2.00.3/libscg'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/src/cdrtools-2.00.3/libscg'
        ==> MAKING "all" ON SUBDIRECTORY "SRCROOT/libschily"




Any idea? (lfs 5 kernel 2.6.4) Google did not help me this time :(
Thanks

Vicchius





More information about the blfs-support mailing list