Date: Sun, 12 Dec 2004 03:04:05 -0500 From: Parv <parv@pair.com> To: f-ports <freebsd-ports@freebsd.org> Subject: libSDL-1.1.so.7 - Undefined symbol "pthread_mutexattr_init" Message-ID: <20041212080405.GA30740@moo.holy.cow>
next in thread | raw e-mail | index | archive | help
I tried to build "a 3D Engine in Perl" ... http://www.perl.com/pub/a/2004/12/01/3d_engine.html ... which led to failure that, long story short, libSDL-1.1.so.7 was not somehow linked w/ pthread library; use of "SDL::App->new()" resulted in ... /usr/libexec/ld-elf.so.1: /misc/local/lib/libSDL-1.1.so.7: Undefined symbol "pthread_mutexattr_init" Running nm(1) on /misc/local/lib/libSDL-1.1.so.7 shows that all of pthread_* symbols are undefined; ldd(1) shows ... /misc/local/lib/libSDL-1.1.so.7: libm.so.2 => /usr/lib/libm.so.2 (0x2815e000) libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x2817a000) libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x28238000) libvga.so.1 => /usr/local/lib/libvga.so.1 (0x28246000) libaa.so.1 => /usr/local/lib/libaa.so.1 (0x2829f000) libusbhid.so.0 => /usr/lib/libusbhid.so.0 (0x282b6000) libXThrStub.so.6 => /misc/local/X11/lib/libXThrStub.so.6 (0x282ba000) libncurses.so.5 => /usr/lib/libncurses.so.5 (0x282bc000) In "devel/sdl12", "make -V CONFIGURE_ENV" shows ... NASM="/misc/local/bin/nasm" PTHREAD_CFLAGS="-D_THREAD_SAFE" PTHREAD_LIBS="-pthread" LDFLAGS=" -L/misc/local/lib" USB_LIBS=-lusbhid SHELL=/bin/sh CONFIG_SHELL=/bin/sh PORTOBJFORMAT=elf PATH=/misc/local/libexec/libtool13:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin:/misc/moo/bin:/usr/games:/root/bin LIBTOOL=/misc/local/bin/libtool13 LIBTOOLIZE=/misc/local/bin/libtoolize13 LIBTOOL_M4=/misc/local/share/aclocal/libtool13.m4 LTCONFIG=/misc/local/share/libtool13/ltconfig13 lt_cv_sys_max_cmd_len=65536 Any suggestions? - Parv --
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041212080405.GA30740>