Subject: pkg/36270: error compiling audio/cddb-bundle
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <joel@carnat.net>
List: pkgsrc-bugs
Date: 05/03/2007 20:20:00
>Number:         36270
>Category:       pkg
>Synopsis:       error compiling: ld: cannot find -lgnustep-gui
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Thu May 03 20:20:00 +0000 2007
>Originator:     ptiJo
>Release:        NetBSD 4.99.18
>Organization:
	
>Environment:
	
	
System: NetBSD atheria.tumfatig.net 4.99.18 NetBSD 4.99.18 (D620-$Revision: 1.824 $) #7: Wed May 2 01:26:19 CEST 2007 ptijo@atheria.tumfatig.net:/home/cvs/src-HEAD/sys/arch/i386/compile/D620 i386
Architecture: i386
Machine: i386
>Description:
	When trying to compile sysutils/burn, the process ended saying:

Cddb.m:662: warning: '_OBJC_INSTANCE_64' defined but not used
Cddb.m:681: warning: '_OBJC_INSTANCE_65' defined but not used
Cddb.m:689: warning: '_OBJC_INSTANCE_66' defined but not used
 Linking bundle Cddb ...
 ld: cannot find -lgnustep-gui

 [wrapper.sh] note: The real command line, after the pkgsrc wrapper, was:
 /home/tmp/pkgwork/audio/cddb-bundle/work.atheria/.gcc/bin/gcc -shared -rdynamic -Wl,-R/usr/pkg/lib -L/home/tmp/pkgwork/audio/cddb-bundle/work.atheria/.buildlink/lib -L/home/tmp/pkgwork/audio/cddb-bundle/work.atheria/.buildlink/share/GNUstep/Library/Libraries -L/home/tmp/pkgwork/audio/cddb-bundle/work.atheria/.buildlink/share/GNUstep/Local/Library/Libraries -L/home/tmp/pkgwork/audio/cddb-bundle/work.atheria/.buildlink/share/GNUstep/Network/Library/Libraries -L/home/tmp/pkgwork/audio/cddb-bundle/work.atheria/.buildlink/share/GNUstep/System/Library/Libraries -Wl,-R/usr/pkg/share/GNUstep/Local/Library/Libraries -Wl,-R/usr/pkg/share/GNUstep/System/Library/Libraries -o ./Cddb.bundle/./Cddb ./shared_obj/Cddb.o -I/home/tmp/pkgwork/audio/cddb-bundle/work.atheria/.buildlink/include -lgnustep-gui -lgnustep-base -lobjc -lm
 gmake[2]: *** [Cddb.bundle/./Cddb] Error 1
 gmake[1]: *** [Cddb.all.bundle.variables] Error 2
 gmake[1]: Leaving directory `/home/tmp/pkgwork/audio/cddb-bundle/work.atheria/cddb.bundle/Cddb'
 gmake: *** [internal-all] Error 2
 *** Error code 2

 Stop.
 make: stopped in /home/cvs/pkgsrc/audio/cddb-bundle

>How-To-Repeat:
	cd audio/cddb-bundle && make
	Note: I'm using modular Xorg and I don't have the release XFree86 installed at all.
>Fix:
--- Makefile.orig	2006-10-06 22:38:16.000000000 +0200
+++ Makefile	2007-05-03 22:12:25.000000000 +0200
@@ -19,3 +19,4 @@
 
  .include "../../devel/gnustep-base/buildlink3.mk"
  +.include "../../x11/gnustep-gui/buildlink3.mk"
   .include "../../mk/bsd.pkg.mk"