From owner-freebsd-ports@FreeBSD.ORG Sun Dec 12 08:03:59 2004 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 610F816A4CE for ; Sun, 12 Dec 2004 08:03:59 +0000 (GMT) Received: from mta9.adelphia.net (mta9.adelphia.net [68.168.78.199]) by mx1.FreeBSD.org (Postfix) with ESMTP id C2D0743D48 for ; Sun, 12 Dec 2004 08:03:58 +0000 (GMT) (envelope-from parv@chvlva.adelphia.net) Received: from default.chvlva.adelphia.net ([69.160.65.78]) by mta9.adelphia.netESMTP <20041212080358.VALO14438.mta9.adelphia.net@default.chvlva.adelphia.net> for ; Sun, 12 Dec 2004 03:03:58 -0500 Received: by default.chvlva.adelphia.net (Postfix, from userid 1000) id 8F9D658E0; Sun, 12 Dec 2004 03:04:05 -0500 (EST) Date: Sun, 12 Dec 2004 03:04:05 -0500 From: Parv To: f-ports Message-ID: <20041212080405.GA30740@moo.holy.cow> Mail-Followup-To: f-ports Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: libSDL-1.1.so.7 - Undefined symbol "pthread_mutexattr_init" X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Dec 2004 08:03:59 -0000 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 --