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)
Exact same problem here.
what kernel versions are you guys running ? we saw similar problems before and it was kernel related ...
I'm using 2.4.19-gentoo-r9.
I'm using kernel 2.5.45. Any ideas?
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
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.
Is this still a problem with 2.0?
Closing for the lack of feedback.