From owner-freebsd-multimedia@FreeBSD.ORG Sat Jan 26 16:40:03 2008 Return-Path: Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 331CA16A47B for ; Sat, 26 Jan 2008 16:40:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id E4DF313C47E for ; Sat, 26 Jan 2008 16:40:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m0QGe29r097970 for ; Sat, 26 Jan 2008 16:40:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m0QGe258097969; Sat, 26 Jan 2008 16:40:02 GMT (envelope-from gnats) Date: Sat, 26 Jan 2008 16:40:02 GMT Message-Id: <200801261640.m0QGe258097969@freefall.freebsd.org> To: freebsd-multimedia@FreeBSD.org From: "Jeremy Messenger" Cc: Subject: Re: ports/119983: multimedia/x264 not linked with libpthread X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Jeremy Messenger List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Jan 2008 16:40:03 -0000 The following reply was made to PR ports/119983; it has been noted by GNATS. From: "Jeremy Messenger" To: =?utf-8?Q?Sebastian_Dr=C3=B6ge?= Cc: bug-followup@freebsd.org Subject: Re: ports/119983: multimedia/x264 not linked with libpthread Date: Sat, 26 Jan 2008 10:37:13 -0600 On Sat, 26 Jan 2008 07:15:35 -0600, Sebastian Dröge wrote: > > Am Freitag, den 25.01.2008, 18:25 -0600 schrieb Jeremy Messenger: >> What's version of x264 do you have it installed? What options did you >> selected when you installed it? I personal can't reproduce, so I will >> need >> to know more details (you can even send me a build log). >> >> # ldd /usr/local/lib/libx264.so >> /usr/local/lib/libx264.so: >> libm.so.5 => /lib/libm.so.5 (0x28185000) >> libgpac.so.1 => /usr/local/lib/libgpac.so.1 (0x28387000) >> libthr.so.3 => /lib/libthr.so.3 (0x2819a000) >> libc.so.7 => /lib/libc.so.7 (0x28089000) >> libz.so.4 => /lib/libz.so.4 (0x281ad000) >> libssl.so.5 => /usr/lib/libssl.so.5 (0x281bf000) >> libcrypto.so.5 => /lib/libcrypto.so.5 (0x285e9000) >> >> It links with libthr (pthread) in here. > > ldd /usr/local/lib/libx264.so > /usr/local/lib/libx264.so: > libm.so.4 => /lib/libm.so.4 (0x281ec000) > libgpac.so.1 => /usr/local/lib/libgpac.so.1 (0x28203000) > libz.so.3 => /lib/libz.so.3 (0x28457000) > libssl.so.4 => /usr/lib/libssl.so.4 (0x28469000) > libcrypto.so.4 => /lib/libcrypto.so.4 (0x28498000) > > The x264 version is x264-0.0.20070913 and was build with default > settings, i.e. without extra optimizations and debugging. > > When linking something to it, ld also complains about pthread_* symbols > in libgpac.so.1 that can't be resolved so maybe your libgpac is linked > with it while mine isn't? Yes, my libgpac.so.1 links with libthr here. In the gpac-libgpac port, it links with pthread by default. In the gpac-libgpac/Makefile shows: ----------------------------------- CONFIGURE_ARGS= --cc="${CC}" \ --extra-cflags="${CFLAGS} ${PTHREAD_CFLAGS} -fPIC" \ --extra-ldflags="${LDFLAGS} ${PTHREAD_LIBS}" ----------------------------------- In the pointyhat (our ports cluster) shows that gpac-libgpac and x264 build with -pthread. http://pointyhat.freebsd.org/errorlogs/i386-6-latest-logs/gpac-libgpac-0.4.4,1.log http://pointyhat.freebsd.org/errorlogs/i386-6-latest-logs/x264-0.0.20070913.log Did you tweak PTHREAD_LIBS or anything else in make.conf or other configuration file(s)? Cheers, Mezz > I have gpac-libgpac-0.4.4,1 > > Bye -- mezz7@cox.net - mezz@FreeBSD.org FreeBSD GNOME Team - FreeBSD Multimedia Hat (ports, not src) http://www.FreeBSD.org/gnome/ - gnome@FreeBSD.org http://wiki.freebsd.org/multimedia - multimedia@FreeBSD.org