Subject: pkg/34316: multimedia/mpeg4ip does not compile (-laudio link error)
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <chuck@ece.cmu.edu>
List: pkgsrc-bugs
Date: 08/28/2006 18:50:00
>Number:         34316
>Category:       pkg
>Synopsis:       multimedia/mpeg4ip does not compile (-laudio link error)
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Aug 28 18:50:00 +0000 2006
>Originator:     Chuck Cranor
>Release:        NetBSD 3.99.17 (~march 13, 2006)
>Organization:
CMU PDL
>Environment:
System: NetBSD xxxcdc.pdl.cmu.edu 3.99.17 NetBSD 3.99.17 (XXXCDC) #1: Tue Apr  4 00:43:29 EDT 2006  chuck@xxxcdc:/home/netbsd/cur/src/sys/arch/i386/compile/XXXCDC i386
Architecture: i386
Machine: i386
>Description:

	it cannot find "-laudio".   

	it does not need -laudio since it links with 
		../../lib/audio/.libs/libaudio.a anyway.

	the work/.buildlink/lib/libSDL.la file has a "-laudio" in it.
	if you get rid of it, then it compiles.

>How-To-Repeat:

	try and compile multimedia/mpeg4ip:

/bin/sh ../../libtool --tag=CXX --mode=link c++ -D_REENTRANT -DNOCONTROLS -fexceptions -Wall -Wmissing-prototypes -Wno-char-subscripts -Woverloaded-virtual -Wno-unknown-pragmas -Wno-deprecated -Wformat=2 -Wpointer-arith -Wsign-compare -DPLAYER_PLUGIN_DIR=\"/usr/pkg/lib/mp4player_plugin\"    -O2 -I/usr/pkg/include -DGLX_GLXEXT_LEGACY -I/usr/include -I/usr/pkg/include/freetype2 -DUSE_MMX -DMPEG4IP -I/usr/pkg/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -D_THREAD_SAFE  -L/usr/pkg/xorg/lib -Wl,-R/usr/pkg/xorg/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -o mp4player  main.o -lm ../../lib/SDLAudio/src/libmpeg4ipSDL.la  libmp4player.la  libmp4syncbase.la  libmp4syncsdl.la  libmp4sdlvideo.la  libmp4syncbase.la  libmp4playerutils.la  ../../lib/audio/libaudio.la  ../../lib/ismacryp/libismacryp.la  ../../lib/srtp/libsrtpif.la  -L/usr/pkg/lib -Wl,-rpath,/usr/pkg/lib -lSDL -lpthread 
c++ -D_REENTRANT -DNOCONTROLS -fexceptions -Wall -Wmissing-prototypes -Wno-char-subscripts -Woverloaded-virtual -Wno-unknown-pragmas -Wno-deprecated -Wformat=2 -Wpointer-arith -Wsign-compare -DPLAYER_PLUGIN_DIR=\"/usr/pkg/lib/mp4player_plugin\" -O2 -I/usr/home/netbsd/cur/pkgsrc/multimedia/mpeg4ip/work/.buildlink/include -DGLX_GLXEXT_LEGACY -I/usr/home/netbsd/cur/pkgsrc/multimedia/mpeg4ip/work/.buildlink/include/freetype2 -DUSE_MMX -DMPEG4IP -I/usr/home/netbsd/cur/pkgsrc/multimedia/mpeg4ip/work/.buildlink/include/SDL -D_GNU_SOURCE=1 -D_THREAD_SAFE -Wl,-R/usr/pkg/xorg/lib -Wl,-R/usr/pkg/lib -o .libs/mp4player main.o -Wl,-rpath -Wl,/usr/pkg/lib  -L/usr/home/netbsd/cur/pkgsrc/multimedia/mpeg4ip/work/mpeg4ip-1.5/lib/gnu/.libs -L/usr/home/netbsd/cur/pkgsrc/multimedia/mpeg4ip/work/mpeg4ip-1.5/lib/sdp/.libs -L/usr/home/netbsd/cur/pkgsrc/multimedia/mpeg4ip/work/mpeg4ip-1.5/player/lib/mp4util/.libs -L/usr/home/netbsd/cur/pkgsrc/multimedia/mpeg4ip/work/mpeg4ip-1.5/player/lib/libhttp/.l!
 ibs -L/usr/home/netbsd/cur/pkgsrc/multimedia/mpeg4ip/work/mpeg4ip-1.5/lib/msg_queue/.libs -L/usr/home/netbsd/cur/pkgsrc/multimedia/mpeg4ip/work/mpeg4ip-1.5/lib/mp4av/.libs -L/usr/home/netbsd/cur/pkgsrc/multimedia/mpeg4ip/work/mpeg4ip-1.5/lib/mp4/.libs -L/usr/home/netbsd/cur/pkgsrc/multimedia/mpeg4ip/work/mpeg4ip-1.5/lib/mp4v2/.libs -L/usr/home/netbsd/cur/pkgsrc/multimedia/mpeg4ip/work/mpeg4ip-1.5/lib/fposrec/.libs -L/usr/home/netbsd/cur/pkgsrc/multimedia/mpeg4ip/work/mpeg4ip-1.5/lib/ismacryp/.libs -L/usr/home/netbsd/cur/pkgsrc/multimedia/mpeg4ip/work/mpeg4ip-1.5/lib/srtp/.libs -L/usr/home/netbsd/cur/pkgsrc/multimedia/mpeg4ip/work/.x11-buildlink/lib -L/usr/home/netbsd/cur/pkgsrc/multimedia/mpeg4ip/work/.buildlink/lib ../../lib/SDLAudio/src/.libs/libmpeg4ipSDL.so ./.libs/libmp4player.a /usr/home/netbsd/cur/pkgsrc/multimedia/mpeg4ip/work/mpeg4ip-1.5/lib/gnu/.libs/libmpeg4ip_gnu.so /usr/home/netbsd/cur/pkgsrc/multimedia/mpeg4ip/work/mpeg4ip-1.5/lib/sdp/.libs/libsdp.so /usr/home!
 /netbsd/cur/pkgsrc/multimedia/mpeg4ip/work/mpeg4ip-1.5/player/!
 lib/mp4u
til/.libs/libmp4util.so /usr/home/netbsd/cur/pkgsrc/multimedia/mpeg4ip/work/mpeg4ip-1.5/player/lib/libhttp/.libs/libhttp.so /usr/home/netbsd/cur/pkgsrc/multimedia/mpeg4ip/work/mpeg4ip-1.5/lib/msg_queue/.libs/libmsg_queue.so /usr/home/netbsd/cur/pkgsrc/multimedia/mpeg4ip/work/mpeg4ip-1.5/lib/mp4av/.libs/libmp4av.so /usr/home/netbsd/cur/pkgsrc/multimedia/mpeg4ip/work/mpeg4ip-1.5/lib/mp4/.libs/libmp4.so /usr/home/netbsd/cur/pkgsrc/multimedia/mpeg4ip/work/mpeg4ip-1.5/lib/mp4v2/.libs/libmp4v2.so /usr/home/netbsd/cur/pkgsrc/multimedia/mpeg4ip/work/mpeg4ip-1.5/lib/fposrec/.libs/libmpeg4ip_fposrec.so /usr/home/netbsd/cur/pkgsrc/multimedia/mpeg4ip/work/mpeg4ip-1.5/lib/ismacryp/.libs/libismacryp.so /usr/home/netbsd/cur/pkgsrc/multimedia/mpeg4ip/work/mpeg4ip-1.5/lib/srtp/.libs/libsrtpif.so ./.libs/libmp4syncsdl.a ./.libs/libmp4sdlvideo.a ./.libs/libmp4syncbase.a ./.libs/libmp4playerutils.a ../../lib/audio/.libs/libaudio.a ../../lib/ismacryp/.libs/libismacryp.so ../../lib/srtp/.libs/lib!
 srtpif.so /usr/home/netbsd/cur/pkgsrc/multimedia/mpeg4ip/work/.buildlink/lib/libSDL.so -lossaudio -laudio -lXt -lXext /usr/home/netbsd/cur/pkgsrc/multimedia/mpeg4ip/work/.buildlink/lib/libaa.so -lm -lX11 -lusbhid -lpthread -Wl,--rpath -Wl,/usr/pkg/lib -Wl,--rpath -Wl,/usr/home/netbsd/cur/pkgsrc/multimedia/mpeg4ip/work/.buildlink/lib
ld: cannot find -laudio
*** Error code 1

Stop.


>Fix:

it _will_ compile if you get rid of "-laudio" from this file:

work/.buildlink/lib/libSDL.la:dependency_libs='-lossaudio -laudio -lXt -lXext -laa -lm -lX11 -lusbhid -lpthread'