From owner-freebsd-ports@FreeBSD.ORG Fri Dec 28 19:10:38 2007 Return-Path: Delivered-To: freebsd-ports@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5707E16A418 for ; Fri, 28 Dec 2007 19:10:38 +0000 (UTC) (envelope-from pav@FreeBSD.org) Received: from raven.customer.vol.cz (raven.customer.vol.cz [195.250.144.108]) by mx1.freebsd.org (Postfix) with ESMTP id B122013C4F5 for ; Fri, 28 Dec 2007 19:10:37 +0000 (UTC) (envelope-from pav@FreeBSD.org) Received: from [192.168.0.23] (rb5dg130.net.upc.cz [89.176.238.130]) (authenticated bits=0) by raven.customer.vol.cz (8.14.1/8.14.1) with ESMTP id lBSJANLc093164 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 28 Dec 2007 20:10:27 +0100 (CET) (envelope-from pav@FreeBSD.org) From: Pav Lucistnik To: Jonathan Chen In-Reply-To: <20071228083501.GA10098@osiris.chen.org.nz> References: <20071228083501.GA10098@osiris.chen.org.nz> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-oO7BpT3b9JHzbwZ6dIY+" Date: Fri, 28 Dec 2007 20:10:23 +0100 Message-Id: <1198869023.14647.17.camel@ikaros.oook.cz> Mime-Version: 1.0 X-Mailer: Evolution 2.12.2 FreeBSD GNOME Team Port X-Spam-Score: -3.266 () AWL,BAYES_00 X-Scanned-By: MIMEDefang 2.63 on 195.250.144.108 X-Milter: Spamilter (Reciever: raven.customer.vol.cz; Sender-ip: 89.176.238.130; Sender-helo: [192.168.0.23]; ) Cc: freebsd-ports@FreeBSD.org, multimedia@FreeBSD.org Subject: Re: Building multimedia/vlc on amd64 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pav@FreeBSD.org List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Dec 2007 19:10:38 -0000 --=-oO7BpT3b9JHzbwZ6dIY+ Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: quoted-printable Jonathan Chen p=ED=B9e v p=E1 28. 12. 2007 v 21:35 +1300: > 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 -pthrea= d -pthread -o libvlcplugin.so libnpvlc_a-vlcshell.o libnpvlc_a-vlcplugin.o = libnpvlc_a-npolibvlc.o libnpvlc_a-npovlc.o libnpvlc_a-nporuntime.o libnpvlc= _a-npunix.o -shared -pthread -shared -fpic -fPIC -pthread /usr/local/lib/li= bintl.so /usr/local/lib/libiconv.so -Wl,-rpath -Wl,/usr/local/lib -pthread = -L/usr/ports/multimedia/vlc/work/fake//usr/local/lib -L/usr/local/lib ../s= rc/libvlc.a ../modules/demux/liblive555.a ../modules/audio_filter/converter= /libdtstofloat32.a -lplds4 -lplc4 -lnspr4 /usr/local/lib/libXt.so /usr/loca= l/lib/libSM.so /usr/local/lib/libICE.so /usr/local/lib/libX11.so /usr/local= /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/lib/= libiconv.so -L/usr/local/live/UsageEnvironment -lUsageEnvironment -L/usr/lo= cal/live/groupsock -lgroupsock -L/usr/local/live/BasicUsageEnvironment -lBa= sicUsageEnvironment -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_32= S 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.6= d/mozilla' > gmake[1]: *** [all-recursive] Error 1 > gmake[1]: Leaving directory `/usr/ports/multimedia/vlc/work/vlc-0.8.6= d' > 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? 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. Funny thing is that the port patches for that. And it compiles nicely on my machine. How old is your portstree? --=20 Pav Lucistnik MIPS: Meaningless Information Provided by Salesmen --=-oO7BpT3b9JHzbwZ6dIY+ Content-Type: application/pgp-signature; name=signature.asc Content-Description: Toto je =?UTF-8?Q?digit=C3=A1ln=C4=9B?= =?ISO-8859-1?Q?_podepsan=E1?= =?UTF-8?Q?_=C4=8D=C3=A1st?= =?ISO-8859-1?Q?_zpr=E1vy?= -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQBHdUobntdYP8FOsoIRAoPeAKCxqw5qMJUzqSYegLS4oQujlTK1ewCgoX66 COOgqmbxq7gUtDokf3hBQe8= =C/A5 -----END PGP SIGNATURE----- --=-oO7BpT3b9JHzbwZ6dIY+--