Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Oct 2000 13:46:22 +0900 (JST)
From:      Yasuhito FUTATSUKI <futatuki@debug.gr.jp>
To:        conrad@th.physik.uni-bonn.de, mariloue@sympatico.ca
Cc:        freebsd-ports@freebsd.org
Subject:   Re: cdrdao-1.1.3 can't find it's own scglib
Message-ID:  <200010200446.NAA02029@galient.yf.bsdclub.org>
In-Reply-To: Your message of "Wed, 18 Oct 2000 14:15:03 %2B0200 (CEST)". <Pine.BSF.4.21.0010181414220.15081-100000@merlin.th.physik.uni-bonn.de>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi.

In article <000701c0366f$7eee7380$0a00a8c0@dominic.sympatico.ca>
mariloue@sympatico.ca writes:

> c++  -o cdrdao main.o -L. -ldao -L../paranoia -lcdda_paranoia 
> -L../trackdb -ltrackdb -L../edc_ecc -ledc_ecc -L../scsilib/export -lscg 
> -lschily -lcam  
> /usr/libexec/elf/ld: cannot find -lscg
> gmake[1]: *** [cdrdao] Error 1
> gmake[1]: Leaving directory =
> `/usr/ports/audio/cdrdao/work/cdrdao-1.1.3/dao'
> gmake: *** [all] Error 1
> *** Error code 2
> I have just found this error after a complete upgrade of my ports
> /usr/ports/audio/cdrdao

Struct named scsi_mode_page_header causes conflict with system header
file, so libscg failed to build.

Try the patch below. 

File: files/patch-ad
BEGIN --- cut here --- --- cut here --- --- cut here ---
--- scsilib/libscg/scg/scsireg.h.dist	Sun Mar 29 07:06:06 1998
+++ scsilib/libscg/scg/scsireg.h	Fri Oct 20 13:22:52 2000
@@ -244,7 +244,7 @@
 
 #if	defined(_BIT_FIELDS_LTOH)	/* Intel byteorder */
 
-struct scsi_mode_page_header {
+struct scg_scsi_mode_page_header {
 	Ucbit	p_code		: 6;
 	Ucbit	res		: 1;
 	Ucbit	parsave		: 1;
@@ -262,7 +262,7 @@
 
 #else					/* Motorola byteorder */
 
-struct scsi_mode_page_header {
+struct scg_scsi_mode_page_header {
 	Ucbit	parsave		: 1;
 	Ucbit	res		: 1;
 	Ucbit	p_code		: 6;
END   --- cut here --- --- cut here --- --- cut here ---

In article <Pine.BSF.4.21.0010181414220.15081-100000@merlin.th.physik.uni-bonn.de>
conrad@th.physik.uni-bonn.de writes:
> Hi again,
> 
> the problem even appears when I build with
> 
> 	make --without-scglib
> 
> regards
> 	Jan

If you don't wat to use scglib, set WITHOUT_SCG_LIB=yes, ie. do

    make WITHOUT_SCG_LIB=yes 

Regards,
Yasuhito


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200010200446.NAA02029>