Subject: SDL fails to build on Debian 3.1 GNU/Linux - 20050811
To: None <pkgsrc-bugs@netbsd.org>
From: Fernando Silveira <fsilveira@gmail.com>
List: pkgsrc-bugs
Date: 08/11/2005 23:10:19
--=-tVlVcaOWTi4h0EL48Xz3
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable
Hi,
I'm trying to compile "mplayer" on Debian but "pkgsrc" gives me this
error when starts compiling SDL:
/bin/sh ../libtool --mode=3Dlink 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/li=
baudio.a video/.libs/libvideo.a events/.libs/libevents.a joystick/.libs/lib=
joystick.a cdrom/.libs/libcdrom.a thread/.libs/libthread.a timer/.libs/libt=
imer.a endian/.libs/libendian.a file/.libs/libfile.a cpuinfo/.libs/libcpuin=
fo.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/pkgs=
rc/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
=3D=3D=3D>=20
=3D=3D=3D> There was an error during the ``build'' phase.
=3D=3D=3D> Please investigate the following for more information:
=3D=3D=3D> * log of the build
=3D=3D=3D> * /usr/pkgsrc/devel/SDL/work/.work.log
=3D=3D=3D>=20
*** Error code 1
Stop.
pmake: stopped in /usr/pkgsrc/devel/SDL
#=20
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=20
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.
--=20
Fernando Silveira <fsilveira@gmail.com>
--=-tVlVcaOWTi4h0EL48Xz3
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
iD8DBQBC/AUL4wTdb2XcM8wRAqVkAJ9IhMALN4UBlRiH9DUC5B4eDQGKugCfbgr5
GLeMpOUU9DcWaGY064BE3tY=
=yX2P
-----END PGP SIGNATURE-----
--=-tVlVcaOWTi4h0EL48Xz3--