Subject: SDL failes to compile
To: None <>
From: Mark Kirby <>
List: tech-pkg
Date: 08/03/2004 15:09:27

SDL failes to compile on NetBSD 2.0G (i386) with todays pkgsrc.

It stops with the following error:

*** Warning: Trying to link with static lib archive /usr/lib/libossaudio.a.
*** I have the capability to make that library automatically link in when
*** you link to this library.  But I can only do this if you have a
*** shared version of the library, which you do not appear to have
*** because the file extensions .a of this argument makes me believe
*** that it is just a static archive that I should not used here.
-shared  .libs/SDL.o .libs/SDL_error.o .libs/SDL_fatal.o .libs/SDL_getenv.o .libs/SDL_loadso.o 
-Wl,--whole-archive main/.libs/libarch.a audio/.libs/libaudio.a 
video/.libs/libvideo.a events/.libs/libevents.a joystick/.libs/libjoystick.a 
cdrom/.libs/libcdrom.a thread/.libs/libthread.a timer/.libs/libtimer.a 
endian/.libs/libendian.a file/.libs/libfile.a cpuinfo/.libs/libcpuinfo.a 
hermes/.libs/libhermes.a -Wl,--no-whole-archive  -Wl,--rpath 
-Wl,/usr/pkgsrc/devel/SDL/work/.buildlink/lib -Wl,--rpath 
-lXext /usr/pkgsrc/devel/SDL/work/.buildlink/lib/ -lm -lX11 
-lusbhid -lpthread  -Wl,-R/usr/pkg/lib -Wl,-R/usr/X11R6/lib -Wl,-soname 
-Wl, -o .libs/
main/.libs/libarch.a: member main/.libs/libarch.a(libossaudio.a) in archive is 
not an object
gmake[2]: *** [] Error 1
gmake[2]: Leaving directory `/usr/pkgsrc/devel/SDL/work/SDL-1.2.7/src'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/pkgsrc/devel/SDL/work/SDL-1.2.7/src'
gmake: *** [all-recursive] Error 1
*** Error code 2

make: stopped in /usr/pkgsrc/devel/SDL
*** Error code 1

make: stopped in /usr/pkgsrc/devel/SDL