ports/119983: multimedia/x264 not linked with libpthread
Jeremy Messenger
mezz7 at cox.net
Sat Jan 26 08:40:03 PST 2008
The following reply was made to PR ports/119983; it has been noted by GNATS.
From: "Jeremy Messenger" <mezz7 at cox.net>
To: =?utf-8?Q?Sebastian_Dr=C3=B6ge?= <slomo at circular-chaos.org>
Cc: bug-followup at 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
<slomo at circular-chaos.org> 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 at cox.net - mezz at FreeBSD.org
FreeBSD GNOME Team - FreeBSD Multimedia Hat (ports, not src)
http://www.FreeBSD.org/gnome/ - gnome at FreeBSD.org
http://wiki.freebsd.org/multimedia - multimedia at FreeBSD.org
More information about the freebsd-multimedia
mailing list