cdrecord: compiling failure on RHEL3 due to MKLINKS
==== System data
OS: Linux 2.4.33 (RHEL3)
cdrecord: 2.01.01a55
==== Problem
compiling with
$ make
fails due to, I think, the way/order in which make (3.79.1) processes
missing files.
ie: compiling readcd dir fails with
make[1]: Entering directory `/build/cdrtools-2.01.01/readcd'
make[1]: *** No rule to make target `misc.c', needed by
`OBJ/i686-linux-cc/misc.d'. Stop.
because misc.c is not listed in the readcd/Makefile as a file that can be
created via readcd/MKLINKS (simuilar problem for cdda2wav, scgskeleton,
scgcheck, btcflash)
problem does not exist on RHEL5 (make 3.81).
==== Solution
I added the files causing the error in the Makefile "MKLINKS" section
(probably better solution would be to add every file for which a symlink has
to be created)
ie:
--- readcd/Makefile.orig 2008-12-26 21:11:15.000000000 +0100
+++ readcd/Makefile 2009-01-13 13:16:26.000000000 +0100
@@ -28,7 +28,7 @@
LIBS= -lscgcmd -lrscg -lscg $(LIB_VOLMGT) -ledc_ecc_dec -ledc_ecc
-lcdrdef
lt -ldeflt -lschily $(SCSILIB) $(LIB_SOCKET)
XMK_FILE= Mreadcd.man
-cd_misc.c scsi_scan.c scsi_cdr.c:
+misc.c cd_misc.c scsi_scan.c scsi_cdr.c:
@echo " ==> MAKING SYMLINKS in ." && sh ./MKLINKS
$(ALLTARGETS): cd_misc.c scsi_scan.c scsi_cdr.c
similar thing for the other binaries.
--
giulioo@pobox.com
Reply to: