Giulio Orsero <[email protected]> wrote:

> ==== 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).

Corect, the problem is a bug in gmake that causes gmake to ignore some
dependencies...



> ==== 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

To you like me to tell that adding other dependencies will work around the 
gmake problem?

Jörg

-- 
 EMail:[email protected] (home) Jörg Schilling D-13353 Berlin
       [email protected]                (uni)  
       [email protected] (work) Blog: 
http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to