From owner-freebsd-multimedia@FreeBSD.ORG Fri Dec 28 20:23:39 2007 Return-Path: Delivered-To: multimedia@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0F66C16A41B; Fri, 28 Dec 2007 20:23:39 +0000 (UTC) (envelope-from jonc@chen.org.nz) Received: from chen.org.nz (chen.org.nz [202.89.146.5]) by mx1.freebsd.org (Postfix) with ESMTP id 8083713C478; Fri, 28 Dec 2007 20:23:32 +0000 (UTC) (envelope-from jonc@chen.org.nz) Received: by chen.org.nz (Postfix, from userid 1000) id 800B12858E; Sat, 29 Dec 2007 09:23:29 +1300 (NZDT) Date: Sat, 29 Dec 2007 09:23:29 +1300 From: Jonathan Chen To: Pav Lucistnik Message-ID: <20071228202329.GA20227@osiris.chen.org.nz> References: <20071228083501.GA10098@osiris.chen.org.nz> <1198869023.14647.17.camel@ikaros.oook.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <1198869023.14647.17.camel@ikaros.oook.cz> User-Agent: Mutt/1.4.2.3i Cc: freebsd-ports@FreeBSD.org, multimedia@FreeBSD.org Subject: Re: Building multimedia/vlc on amd64 X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Dec 2007 20:23:39 -0000 On Fri, Dec 28, 2007 at 08:10:23PM +0100, Pav Lucistnik wrote: > Jonathan Chen p=ED?e v p=E1 28. 12. 2007 v 21:35 +1300: >=20 > > When I try to build vlc on 7-STABLE/amd64, the build fails with the > > following error: > >=20 > > [...] > > c++ -Wsign-compare -Wall -O2 -fno-strict-aliasing -pipe -pipe -pthr= ead -pthread -o libvlcplugin.so libnpvlc_a-vlcshell.o libnpvlc_a-vlcplugin.= o libnpvlc_a-npolibvlc.o libnpvlc_a-npovlc.o libnpvlc_a-nporuntime.o libnpv= lc_a-npunix.o -shared -pthread -shared -fpic -fPIC -pthread /usr/local/lib/= libintl.so /usr/local/lib/libiconv.so -Wl,-rpath -Wl,/usr/local/lib -pthrea= d -L/usr/ports/multimedia/vlc/work/fake//usr/local/lib -L/usr/local/lib ..= /src/libvlc.a ../modules/demux/liblive555.a ../modules/audio_filter/convert= er/libdtstofloat32.a -lplds4 -lplc4 -lnspr4 /usr/local/lib/libXt.so /usr/lo= cal/lib/libSM.so /usr/local/lib/libICE.so /usr/local/lib/libX11.so /usr/loc= al/lib/libXau.so /usr/local/lib/libXdmcp.so -lrpcsvc /usr/local/lib/libhal.= so /usr/local/lib/libintl.so /usr/local/lib/libdbus-1.so -lrt /usr/local/li= b/libiconv.so -L/usr/local/live/UsageEnvironment -lUsageEnvironment -L/usr/= local/live/groupsock -lgroupsock -L/usr/local/live/BasicUsageEnvironment -l= BasicUsageEnvironment -L/usr/local/live/liveMedia -lliveMedia -ldts -lm -= Wl,--rpath -Wl,/usr/local/lib -Wl,--rpath -Wl,/usr/local/lib > > /usr/bin/ld: /usr/local/lib/libdts.a(parse.o): relocation R_X86_64_= 32S can not be used when making a shared object; recompile with -fPIC > > /usr/local/lib/libdts.a: could not read symbols: Bad value > > gmake[2]: *** [libvlcplugin.so] Error 1 > > gmake[2]: Leaving directory `/usr/ports/multimedia/vlc/work/vlc-0.8= .6d/mozilla' > > gmake[1]: *** [all-recursive] Error 1 > > gmake[1]: Leaving directory `/usr/ports/multimedia/vlc/work/vlc-0.8= .6d' > > gmake: *** [all] Error 2 > > *** Error code 2 > >=20 > > Stop in /usr/ports/multimedia/vlc. > > *** Error code 1 > >=20 > > Stop in /usr/ports/multimedia/vlc. > >=20 > > This error doesn't happen on 7-STABLE/i386, and it looks like the > > obvious fix is to build libdts.a objects with -fPIC. Any chance of an > > update that makes it so? >=20 > You cannot build relocatable .a libraries. The correct fix here is to > link libdca (former name libdts) dynamically. All it should take is to > replace -ldts with -ldca in the compiler arguments. >=20 > Funny thing is that the port patches for that. And it compiles nicely on > my machine. How old is your portstree? It's about 3 days old. I got it to build by unchecking the "DTS" option in vlc, but I would like that option back. I'll try re-csup'ing and give that a go. Cheers. --=20 Jonathan Chen ---------------------------------------------------------------------- "If everything's under control, you're going too slow" - Mario Andretti