Subject: SDL failes to compile
To: None <tech-pkg@NetBSD.org>
From: Mark Kirby <mark@coris.org.uk>
List: tech-pkg
Date: 08/03/2004 15:09:27
Hi,
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.
gcc
-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
-Wl,/usr/pkgsrc/devel/SDL/work/.buildlink/lib
-L/usr/pkgsrc/devel/SDL/work/.buildlink/lib
-L/usr/pkgsrc/devel/SDL/work/.x11-buildlink/lib
-lXext /usr/pkgsrc/devel/SDL/work/.buildlink/lib/libaa-x11.so -lm -lX11
-lusbhid -lpthread -Wl,-R/usr/pkg/lib -Wl,-R/usr/X11R6/lib -Wl,-soname
-Wl,libSDL.so.0 -o .libs/libSDL.so.0.7
main/.libs/libarch.a: member main/.libs/libarch.a(libossaudio.a) in archive is
not an object
gmake[2]: *** [libSDL.la] 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
Stop.
make: stopped in /usr/pkgsrc/devel/SDL
*** Error code 1
Stop.
make: stopped in /usr/pkgsrc/devel/SDL
Mark