[paranoia] Can't compile cdparanoia III 9.8

Douglas Gilbert dgilbert at interlog.com
Wed Mar 28 08:00:36 PST 2001



"G.F. Duivesteijn" wrote:
> 
> Hello Monty,
> 
> I get errors when I try to compile cdparanoia 9.8. I have Slackware 7.0
> (glibc 2.1) with kernel 2.2.18 installed. Below is given the output of the
> compilation attempt. What do I wrong?
> 
> Greetings,
> Gilbert
> 
> [snip]
> dexter:/usr/src/cdparanoia-III-alpha9.8# make
> cd interface && make all
> make[1]: Entering directory `/usr/src/cdparanoia-III-alpha9.8/interface'
> make libcdda_interface.a CFLAGS="-O20 -ffast-math -fsigned-char
> -finline-functions "
> make[2]: Entering directory `/usr/src/cdparanoia-III-alpha9.8/interface'
> gcc -O20 -ffast-math -fsigned-char -finline-functions  -c scan_devices.c
> scan_devices.c: In function `verify_SG_version':
> scan_devices.c:415: `SG_GET_VERSION_NUM' undeclared (first use in this
> function)

This seems to indicate you have a very old copy
of sg.h sitting around (probably pre lk 2.2.6).
My guess is that the old sg.h is associated with
the glibc library and is found at:
 /usr/include/scsi/sg.h

If you are using lk 2.2.18 then a much more recent
version of that header should be at:
  /usr/src/linux/include/scsi/sg.h

GNU/Linux policy is that apps should never include raw
kernel headers (like the latter sg.h). Further, GNU
people try and duplicate the important parts of the
kernel headers and put them in the "/usr/include"
tree. You may ask which mechanism keeps your kernel
and glibc version in sync. This is a mess and it's 
getting worse.

Side note to Monty: the "include <linux/../scsi/sg.h>"
trick doesn't work with recent glibcs because
/usr/include/linux is no longer a symlink. The GNU
people have gone and duplicated that directory as
well ....

Doug Gilbert

--- >8 ----
List archives:  http://www.xiph.org/archives/
Paranoia homepage: http://www.xiph.org/paranoia/
To unsubscribe from this list, send a message to 'paranoia-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the Paranoia mailing list