Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Dec 2007 21:35:01 +1300
From:      Jonathan Chen <jonc@chen.org.nz>
To:        pav@freebsd.org, multimedia@freebsd.org
Cc:        freebsd-ports@freebsd.org
Subject:   Building multimedia/vlc on amd64
Message-ID:  <20071228083501.GA10098@osiris.chen.org.nz>

next in thread | raw e-mail | index | archive | help
Hi,

When I try to build vlc on 7-STABLE/amd64, the build fails with the
following error:

    [...]
    c++ -Wsign-compare -Wall -O2 -fno-strict-aliasing -pipe -pipe -pthread =
-pthread -o libvlcplugin.so libnpvlc_a-vlcshell.o libnpvlc_a-vlcplugin.o li=
bnpvlc_a-npolibvlc.o libnpvlc_a-npovlc.o libnpvlc_a-nporuntime.o libnpvlc_a=
-npunix.o -shared -pthread -shared -fpic -fPIC -pthread /usr/local/lib/libi=
ntl.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 ../src=
/libvlc.a ../modules/demux/liblive555.a ../modules/audio_filter/converter/l=
ibdtstofloat32.a -lplds4 -lplc4 -lnspr4 /usr/local/lib/libXt.so /usr/local/=
lib/libSM.so /usr/local/lib/libICE.so /usr/local/lib/libX11.so /usr/local/l=
ib/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/li=
biconv.so -L/usr/local/live/UsageEnvironment -lUsageEnvironment -L/usr/loca=
l/live/groupsock -lgroupsock -L/usr/local/live/BasicUsageEnvironment -lBasi=
cUsageEnvironment -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

    Stop in /usr/ports/multimedia/vlc.
    *** Error code 1

    Stop in /usr/ports/multimedia/vlc.

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?

Cheers.
--=20
Jonathan Chen <jonc@chen.org.nz>
----------------------------------------------------------------------
                                                          Jesus saves.
                                                       Allah forgives.
                             Cthulu thinks you'd make a nice sandwich.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20071228083501.GA10098>