pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

SDL fails to build on Debian 3.1 GNU/Linux - 20050811



Hi,

I'm trying to compile "mplayer" on Debian but "pkgsrc" gives me this
error when starts compiling SDL:

/bin/sh ../libtool --mode=link cc  -O -I/usr/pkg/include -I/usr/include
-DGLX_GLXEXT_LEGACY -Wall -DENABLE_DUMMYVIDEO -DDISKAUD_SUPPORT
-DUSE_DLOPEN -DUSE_ASMBLIT -I./hermes -I../src/hermes -DOSS_SUPPORT
-I/usr/X11R6/include -DENABLE_X11 -DXTHREADS -I./include -I./src/video
-DXFREE86_VM -DXFREE86_VMGAMMA -DXFREE86_DGAMOUSE -DDEFAULT_DGAMOUSE
-DXFREE86_XV -DHAVE_XINERAMA -Isrc/video -DENABLE_DGA -DENABLE_FBCON
-DENABLE_AALIB -DHAVE_OPENGL -DUSE_INPUT_EVENTS -D_REENTRANT
-DSDL_USE_PTHREADS -DHAVE_SIGACTION -I../include -I../include/SDL
-I../src -I../src/main/linux -I../src/audio -I../src/video
-I../src/video/XFree86/extensions -I../src/events -I../src/joystick
-I../src/cdrom -I../src/thread -I../src/timer -I../src/endian
-I../src/file -I../src/thread  -L/usr/pkg/lib -L/usr/lib
-Wl,-R/usr/pkg/lib -Wl,-R/usr/lib -L/usr/X11R6/lib -Wl,-R/usr/X11R6/lib
-o libSDL.la -rpath /usr/pkg/lib -no-undefined -version-info 1:8:0
SDL.lo SDL_error.lo SDL_fatal.lo SDL_getenv.lo SDL_loadso.lo
main/libarch.la audio/libaudio.la video/libvideo.la events/libevents.la
joystick/libjoystick.la cdrom/libcdrom.la thread/libthread.la
timer/libtimer.la endian/libendian.la file/libfile.la
cpuinfo/libcpuinfo.la hermes/libhermes.la -L/usr/pkg/lib -L/usr/lib
-Wl,-R/usr/pkg/lib -Wl,-R/usr/lib -L/usr/X11R6/lib -Wl,-R/usr/X11R6/lib
-lm -ldl  -L/usr/X11R6/lib -lX11 -lXext -L/usr/pkg/lib
-Wl,-rpath,/usr/pkg/lib -laa-x11 -lm -L/usr/X11R6/lib -lX11 -lpthread
cc
-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 -ldl -lXext 
/usr/pkgsrc/devel/SDL/work/.buildlink/lib/libaa-x11.so -lm -lX11 -lpthread  
-Wl,-R/usr/pkg/lib -Wl,-R/usr/X11R6/lib -Wl,-rpath -Wl,/usr/pkg/lib -Wl,-soname 
-Wl,libSDL.so.1 -o .libs/libSDL.so.1.0.8
hermes/.libs/libhermes.a: member hermes/.libs/libhermes.a(mmx_main.o) in
archive is not an object
collect2: ld returned 1 exit status
make[2]: *** [libSDL.la] Error 1
make[2]: Leaving directory `/usr/pkgsrc/devel/SDL/work/SDL-1.2.8/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/pkgsrc/devel/SDL/work/SDL-1.2.8/src'
make: *** [all-recursive] Error 1
*** Error code 2

Stop.
pmake: stopped in /usr/pkgsrc/devel/SDL
===> 
===> There was an error during the ``build'' phase.
===> Please investigate the following for more information:
===>      * log of the build
===>      * /usr/pkgsrc/devel/SDL/work/.work.log
===> 
*** Error code 1

Stop.
pmake: stopped in /usr/pkgsrc/devel/SDL
# 

Looking closer, I opened "libhermes.a" and saw that all the object files
are NetBSD/i386 objects, but my OS is Linux. :-!?

# file work/SDL-1.2.8/src/hermes/mmx_main.o 
work/SDL-1.2.8/src/hermes/mmx_main.o: a.out NetBSD/i386 object file not
stripped

Any ideas on how to solve this?

Thanks in advance.

-- 
Fernando Silveira <fsilveira%gmail.com@localhost>

Attachment: signature.asc
Description: This is a digitally signed message part



Home | Main Index | Thread Index | Old Index