Subject: Error configuring kdemultimedia3 on DFly - cdparanoia problem?
To: None <tech-pkg@netbsd.org>
From: Jonathan Fosburgh <jonathan@fosburgh.org>
List: tech-pkg
Date: 12/15/2005 09:05:58
I am trying to upgrade kdemultimedia3 to 3.5.0 and I am running into a problem 
during configure.  While trying to configure for cdparanoia I receive the 
following:

checking for cdparanoia... /usr/pkg/bin/cdparanoia
checking cdda_interface.h usability... yes
checking cdda_interface.h presence... yes
checking for cdda_interface.h... yes
checking for paranoia_init in -lcdda_paranoia... no
configure: error: --with-cdparanoia was given, but test for cdparanoia failed
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/multimedia/kdemultimedia3
configure:35243: checking for paranoia_init in -lcdda_paranoia
configure:35273: cc -o conftest -DNDEBUG -O2  -O2 -I/usr/pkg/include 
-DLDAP_DEPRECATED -I/usr
/include -I/usr/pkg/qt3/include -DGLX_GLXEXT_LEGACY -I/usr/pkg/xorg/include 
-I/usr/pkg/includ
e/krb5 -I/usr/pkg/include/freetype2  -DQT_THREAD_SUPPORT -I/usr/pkg/include 
-DLDAP_DEPRECATED
 -I/usr/include -I/usr/pkg/qt3/include -DGLX_GLXEXT_LEGACY 
-I/usr/pkg/xorg/include -I/usr/pkg
/include/krb5 -I/usr/pkg/include/freetype2 -Wl,-E -L/usr/pkg/qt3/lib 
-L/usr/pkg/lib -Wl,-R/us
r/pkg/lib -L/usr/lib -Wl,-R/usr/lib -Wl,-R/usr/pkg/qt3/lib -L/usr/pkg/xorg/lib 
-Wl,-R/usr/pkg
/xorg/lib -L/usr/pkg/lib -L/usr/pkg/qt3/lib -L/usr/pkg/xorg/lib   -Wl,-E 
-L/usr/pkg/qt3/lib -
L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib 
-Wl,-R/usr/pkg/qt3/lib -L/usr/pkg/
xorg/lib -Wl,-R/usr/pkg/xorg/lib conftest.c -lcdda_paranoia -lcdda_interface 
-lm -lintl >&5
/usr/pkgsrc/multimedia/kdemultimedia3/work/.buildlink/lib/libcdda_interface.so: 
undefined reference to `cam_open_device'
/usr/pkgsrc/multimedia/kdemultimedia3/work/.buildlink/lib/libcdda_interface.so: 
undefined reference to `cam_send_ccb'
/usr/pkgsrc/multimedia/kdemultimedia3/work/.buildlink/lib/libcdda_interface.so: 
undefined reference to `cam_freeccb'
/usr/pkgsrc/multimedia/kdemultimedia3/work/.buildlink/lib/libcdda_interface.so: 
undefined reference to `cam_getccb'
/usr/pkgsrc/multimedia/kdemultimedia3/work/.buildlink/lib/libcdda_interface.so: 
undefined reference to `cam_errbuf'
/usr/pkgsrc/multimedia/kdemultimedia3/work/.buildlink/lib/libcdda_interface.so: 
undefined reference to `cam_close_device'

So I tried running gcc -L/usr/pkg/lib -lcdda_paranoia -lcdda_interface -lm and 
got back:
/usr/lib/crt1.o(.text+0x90): In function `_start':
: undefined reference to `main'
/usr/pkg/lib/libcdda_interface.so: undefined reference to `cam_open_device'
/usr/pkg/lib/libcdda_interface.so: undefined reference to `cam_send_ccb'
/usr/pkg/lib/libcdda_interface.so: undefined reference to `cam_freeccb'
/usr/pkg/lib/libcdda_interface.so: undefined reference to `cam_getccb'
/usr/pkg/lib/libcdda_interface.so: undefined reference to `cam_errbuf'
/usr/pkg/lib/libcdda_interface.so: undefined reference to `cam_close_device'

So on a lark I added -lcam and got:

/usr/lib/crt1.o(.text+0x90): In function `_start':
: undefined reference to `main'

So apparently cdparanoia is requiring me to link against /usr/lib/libcam.so.3.  
I tried editing the configure script for kdemultimedia3 to add -lcam to the 
CDPARANOIA_LIBS, but it doesn't come through.  It appears that pkgsrc is 
doing something I don't understand during configure and I am losing my edits, 
but that is only a guess.  Does anyone know how to fix this? I am running 
DragonFly jef-nt.mdacc.tmc.edu 1.3.7-DEVELOPMENT DragonFly 1.3.7-DEVELOPMENT 
#4: Tue Dec 13 07:28:15 CST 2005     
root@jef-nt.mdacc.tmc.edu:/usr/obj/usr/src/sys/vmbsd  i386