Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 10019 - cdrtools won't compile
Summary: cdrtools won't compile
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Arcady Genkin (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-10-31 12:12 UTC by Regin Larsen
Modified: 2003-03-04 21:55 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Regin Larsen 2002-10-31 12:12:03 UTC
I am getting these errors when emerging cdrtools-1.11.39:

../RULES/r-gmake.dep:76: OBJ/x86-linux-cc/getnum.d: No such file or directory
        ==> MAKING DIRECTORY "OBJ/x86-linux-cc"
        ==> MAKING DEPENDENCIES "OBJ/x86-linux-cc/getnum.d"
        ==> MAKING DEPENDENCIES "OBJ/x86-linux-cc/misc.d"
        ==> MAKING DEPENDENCIES "OBJ/x86-linux-cc/modes.d"
        ==> MAKING DEPENDENCIES "OBJ/x86-linux-cc/scsi_cdr.d"
        ==> MAKING DEPENDENCIES "OBJ/x86-linux-cc/defaults.d"
        ==> MAKING DEPENDENCIES "OBJ/x86-linux-cc/io.d"
        ==> MAKING DEPENDENCIES "OBJ/x86-linux-cc/cd_misc.d"
        ==> MAKING DEPENDENCIES "OBJ/x86-linux-cc/readcd.d"
make[1]: Leaving directory
`/var/tmp/portage/cdrtools-1.11.39/work/cdrtools-1.11/readcd'
make[1]: Entering directory
`/var/tmp/portage/cdrtools-1.11.39/work/cdrtools-1.11/readcd'
        ==> COMPILING "OBJ/x86-linux-cc/readcd.o"
        ==> COMPILING "OBJ/x86-linux-cc/cd_misc.o"
        ==> COMPILING "OBJ/x86-linux-cc/io.o"
        ==> COMPILING "OBJ/x86-linux-cc/defaults.o"
        ==> COMPILING "OBJ/x86-linux-cc/scsi_cdr.o"
        ==> COMPILING "OBJ/x86-linux-cc/modes.o"
        ==> COMPILING "OBJ/x86-linux-cc/misc.o"
        ==> COMPILING "OBJ/x86-linux-cc/getnum.o"
        ==> LINKING "OBJ/x86-linux-cc/readcd"
OBJ/x86-linux-cc/readcd.o: In function `main':
OBJ/x86-linux-cc/readcd.o(.text+0x548): undefined reference to `scg_help'
../libs/x86-linux-cc/librscg.a(scsi-remote.o): In function `scgo_rhelp':
scsi-remote.o(.text+0x149): undefined reference to `__scg_help'
collect2: ld returned 1 exit status
make[1]: *** [OBJ/x86-linux-cc/readcd] Error 1
make[1]: Leaving directory
`/var/tmp/portage/cdrtools-1.11.39/work/cdrtools-1.11/readcd'
        ==> MAKING "all" ON SUBDIRECTORY "SRCROOT/rscsi"
make[1]: Entering directory
`/var/tmp/portage/cdrtools-1.11.39/work/cdrtools-1.11/rscsi'
../RULES/r-gmake.dep:76: OBJ/x86-linux-cc/rscsi.d: No such file or directory
        ==> MAKING DIRECTORY "OBJ/x86-linux-cc"
        ==> MAKING DEPENDENCIES "OBJ/x86-linux-cc/rscsi.d"
make[1]: Leaving directory
`/var/tmp/portage/cdrtools-1.11.39/work/cdrtools-1.11/rscsi'
make[1]: Entering directory
`/var/tmp/portage/cdrtools-1.11.39/work/cdrtools-1.11/rscsi'
        ==> COMPILING "OBJ/x86-linux-cc/rscsi.o"
        ==> LINKING "OBJ/x86-linux-cc/rscsi"
make[1]: Leaving directory
`/var/tmp/portage/cdrtools-1.11.39/work/cdrtools-1.111/scgcheck'
../RULES/r-gmake.dep:76: OBJ/x86-linux-cc/scgcheck.d: No such file or directory
../RULES/r-gmake.dep:76: OBJ/x86-linux-cc/sense.d: No such file or directory
../RULES/r-gmake.dep:76: OBJ/x86-linux-cc/dmaresid.d: No such file or directory
../RULES/r-gmake.dep:76: OBJ/x86-linux-cc/scsi_scan.d: No such file or directory
../RULES/r-gmake.dep:76: OBJ/x86-linux-cc/scsi_cdr.d: No such file or directory
../RULES/r-gmake.dep:76: OBJ/x86-linux-cc/cd_misc.d: No such file or directory
../RULES/r-gmake.dep:76: OBJ/x86-linux-cc/modes.d: No such file or directory
        ==> MAKING DIRECTORY "OBJ/x86-linux-cc"
        ==> MAKING DEPENDENCIES "OBJ/x86-linux-cc/modes.d"
        ==> MAKING DEPENDENCIES "OBJ/x86-linux-cc/cd_misc.d"
        ==> MAKING DEPENDENCIES "OBJ/x86-linux-cc/scsi_cdr.d"
        ==> MAKING DEPENDENCIES "OBJ/x86-linux-cc/scsi_scan.d"
        ==> MAKING DEPENDENCIES "OBJ/x86-linux-cc/dmaresid.d"
        ==> MAKING DEPENDENCIES "OBJ/x86-linux-cc/sense.d"
        ==> MAKING DEPENDENCIES "OBJ/x86-linux-cc/scgcheck.d"
make[1]: Leaving directory
`/var/tmp/portage/cdrtools-1.11.39/work/cdrtools-1.11/scgcheck'
make[1]: Entering directory
`/var/tmp/portage/cdrtools-1.11.39/work/cdrtools-1.11/scgcheck'
        ==> COMPILING "OBJ/x86-linux-cc/scgcheck.o"
        ==> COMPILING "OBJ/x86-linux-cc/sense.o"
        ==> COMPILING "OBJ/x86-linux-cc/dmaresid.o"
        ==> COMPILING "OBJ/x86-linux-cc/scsi_scan.o"
        ==> COMPILING "OBJ/x86-linux-cc/scsi_cdr.o"
        ==> COMPILING "OBJ/x86-linux-cc/cd_misc.o"
        ==> COMPILING "OBJ/x86-linux-cc/modes.o"
        ==> LINKING "OBJ/x86-linux-cc/scgcheck"
../libs/x86-linux-cc/librscg.a(scsi-remote.o): In function `scgo_rhelp':
scsi-remote.o(.text+0x149): undefined reference to `__scg_help'
collect2: ld returned 1 exit status
make[1]: *** [OBJ/x86-linux-cc/scgcheck] Error 1
make[1]: Leaving directory
`/var/tmp/portage/cdrtools-1.11.39/work/cdrtools-1.11/scgcheck'
make: *** [all] Error 2

!!! ERROR: The ebuild did not complete successfully.
!!! Function src_compile, Line 1, Exitcode 2
!!! (no error message)
Comment 1 Nathan W. Labadie 2002-10-31 14:49:48 UTC
Exact same problem here.
Comment 2 SpanKY gentoo-dev 2002-10-31 17:14:14 UTC
what kernel versions are you guys running ? 
 
we saw similar problems before and it was kernel related ... 
Comment 3 Regin Larsen 2002-11-01 02:06:09 UTC
I'm using 2.4.19-gentoo-r9.
Comment 4 Nathan W. Labadie 2002-11-02 14:57:47 UTC
I'm using kernel 2.5.45. Any ideas?
Comment 5 pee 2002-11-18 18:27:42 UTC
What's happening is that it is failing on building libscg earlier and 
the make is not exiting like it should. the most likely cause of this error
for me is that linux/include/scsi/scsi.h defines scsi_lun[8] as u8 which
is an undefined data type.

Change the line

u8 scsi_lun[8];

to

unsigned char scsi_lun[8];

as a temporary workaround and it will build
Comment 6 Olav Kolbu 2002-11-19 07:54:46 UTC
This appears to be a kernel problem. Some time ago, the kernel config option
CONFIG_JIFFIES seem to have disappeared. However, it was/is still referred in
/usr/src/linux/include/asm-i386/param.h, and that is why this fails:

#ifndef HZ
#define HZ CONFIG_JIFFIES
#endif

With nowhere to resolve CONFIG_JIFFIES, it fails. Newer kernels (2.5.47) seem to
have fixed it by doing this instead:

#ifdef __KERNEL__
# define HZ             1000            /* Internal kernel timer frequency */
# define USER_HZ        100             /* .. some user interfaces are in "ticks" */
# define CLOCKS_PER_SEC (USER_HZ)       /* like times() */
#endif

#ifndef HZ
#define HZ 100
#endif

Absolutely no idea if backporting this to an older kernel will break anything,
but it did allow cdrtool to compile.
Comment 7 Arcady Genkin (RETIRED) gentoo-dev 2002-12-27 12:54:35 UTC
Is this still a problem with 2.0?
Comment 8 Arcady Genkin (RETIRED) gentoo-dev 2003-03-04 21:55:29 UTC
Closing for the lack of feedback.