port fails to build: gmake[5]: Entering directory `/opt/obj/opt/ports/multimedia/vlc-devel/work/vlc-0.9.6/modules/demux' /bin/sh ../../libtool --tag=CXX --mode=link c++ `top_builddir="../.." ../../vlc-config --cxxflags plugin liblive555_plugin.la` -O2 -pipe -march=nocona -fno-strict-aliasing -rpath '/usr/local/lib/vlc/demux' -avoid-version -module -no-undefined -export-symbol-regex ^vlc_entry -shrext .so `top_builddir="../.." ../../vlc-config --ldflags plugin liblive555_plugin.la` -L/usr/local/lib -o liblive555_plugin.la liblive555_plugin_la-live555.lo liblive555_plugin_la-asf.lo liblive555_plugin_la-buffer.lo `top_builddir="../.." ../../vlc-config -libs plugin liblive555_plugin.la` ../../src/libvlccore.la libtool: link: c++ -shared -nostdlib /usr/lib/crti.o /usr/lib/crtbeginS.o .libs/liblive555_plugin_la-live555.o .libs/liblive555_plugin_la-asf.o .libs/liblive555_plugin_la-buffer.o -Wl,-rpath -Wl,/opt/obj/opt/ports/multimedia/vlc-devel/work/vlc-0.9.6/src/.libs -Wl,-rpath -Wl,/usr/local/lib -Wl,-rpath -Wl,/usr/local/lib -L/usr/local/lib -L/usr/local/live/UsageEnvironment -lUsageEnvironment -L/usr/local/live/groupsock -lgroupsock -L/usr/local/live/BasicUsageEnvironment -lBasicUsageEnvironment -L/usr/local/live/liveMedia -lliveMedia ../../src/.libs/libvlccore.so /usr/local/lib/libhal.so /usr/local/lib/libdbus-1.so -lrt /usr/local/lib/libintl.so /usr/local/lib/libiconv.so -L/usr/lib -lstdc++ -lm -lpthread -lc -lgcc_s /usr/lib/crtendS.o /usr/lib/crtn.o -march=nocona -pthread -pthread -Wl,-soname -Wl,liblive555_plugin.so -o .libs/liblive555_plugin.so /usr/bin/ld: /usr/local/live/UsageEnvironment/libUsageEnvironment.a: relocation R_X86_64_32S can not be used when making a shared object; recompile with -fPIC /usr/local/live/UsageEnvironment/libUsageEnvironment.a: could not read symbols: Bad value Fix: in net/liveMedia add -fPIC to files/config.fixed-freebsd How-To-Repeat: build vlc under amd64
Maintainer of multimedia/vlc-devel, Please note that PR ports/129156 has just been submitted. If it contains a patch for an upgrade, an enhancement or a bug fix you agree on, reply to this email stating that you approve the patch and a committer will take care of it. The full text of the PR can be found at: http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/129156 -- Edwin Groothuis via the GNATS Auto Assign Tool edwin@FreeBSD.org
State Changed From-To: open->feedback Awaiting maintainers feedback (via the GNATS Auto Assign Tool)
Responsible Changed From-To: freebsd-ports-bugs->wxs I'll take it.
I'm unable to reproduce this using the default OPTIONS in a tinderbox environment. Are you able to provide any more details on your environment? -- WXS
Wesley Shields wrote: > I'm unable to reproduce this using the default OPTIONS in a tinderbox > environment. Are you able to provide any more details on your > environment? > Ofcourse: vany:~# uname -a FreeBSD vany.yandex.ru 8.0-CURRENT FreeBSD 8.0-CURRENT #0: Tue Nov 25 00:16:25 MSK 2008 root@vany.yandex.ru:/opt/obj/opt/src/sys/VWN amd64 vany:~# cat /etc/make.conf #compiler CPUTYPE=core2 CFLAGS=-O2 -pipe #base system KERNCONF=VWN DOC_LANG= en_US.ISO8859-1 #ports WRKDIRPREFIX=/opt/obj # added by use.perl 2008-11-22 18:56:43 PERL_VER=5.8.8 PERL_VERSION=5.8.8 # sometimes this info are important vany:/usr# ls -l src obj ports lrwxr-xr-x 1 root wheel 8 22 Ð½Ð¾Ñ 17:27 obj -> /opt/obj lrwxr-xr-x 1 root wheel 10 22 Ð½Ð¾Ñ 17:27 ports -> /opt/ports lrwxr-xr-x 1 root wheel 8 22 Ð½Ð¾Ñ 17:27 src -> /opt/src vany:~# gcc -v Using built-in specs. Target: amd64-undermydesk-freebsd Configured with: FreeBSD/amd64 system compiler Thread model: posix gcc version 4.2.1 20070719 [FreeBSD] vany:~# cat /var/db/ports/vlc/options # This file is auto-generated by 'make config'. # No user-servicable parts inside! # Options for vlc-devel-0.9.6,3 _OPTIONS_READ=vlc-devel-0.9.6,3 WITH_A52=true WITHOUT_AALIB=true WITH_AVAHI=true WITHOUT_CACA=true WITHOUT_ARTS=true WITHOUT_DEBUG=true WITH_DTS=true WITH_ESOUND=true WITH_FAAC=true WITH_FAAD=true WITH_FLAC=true WITH_HTTPD=true WITH_LIVEMEDIA=true WITH_LUA=true WITH_MAD=true WITH_MATROSKA=true WITH_MPEG2=true WITHOUT_NCURSES=true WITH_OGG=true WITH_QT4=true WITH_REALAUDIO=true WITH_SAMBA=true WITH_SDL=true WITH_SVG=true WITHOUT_SVGALIB=true WITH_SHOUT=true WITHOUT_SKINS=true WITH_SPEEX=true WITH_THEORA=true WITH_TWOLAME=true WITH_VORBIS=true WITHOUT_WIN32_CODECS=true WITH_X264=true -- Ivan B. Serezhkin Spamooborona, Yandex. http://so.yandex.ru/
Responsible Changed From-To: wxs->nork I'm unable to reproduce this and based upon the description it appears to be a problem in net/liveMedia. Over to maintainer (nork@).
State Changed From-To: feedback->closed this was long time ago fixed. Thanks for your report.
I just had this occur today (090125) with vlc (non-devel) on amd64. Adding -fPIC to net/liveMedia/files/config.fixed-freebsd (+ make clean all deinstall reinstall) resolved the issue as noted by the original PR submitter. e.g. COMPILE_OPTS = $(CFLAGS) $(INCLUDES) -I. -DBSD=1 -DSOCKLEN_T=socklen_t -DHAVE_SOCKADDR_LEN=1 -fPIC System ------ $ uname -a FreeBSD basel.coh.akua.com 7.1-STABLE FreeBSD 7.1-STABLE #0: Sun Jan 25 12:22:37 EST 2009 akua@basel.coh.akua.com:/qix/TMP/obj/ilk/SRC/ stable/src/sys/basel-70-b amd64 Snippet of make output ---------------------- 4013 /usr/local/include/libintl.h:113:24: warning: "__APPLE_CC__" is not defined 4014 mv -f .deps/liblive555_plugin_la-buffer.Tpo .deps/ liblive555_plugin_la-buffer.Plo 4015 /bin/sh ../../libtool --tag=CXX --mode=link c++ `top_builddir="../.." ../../vlc-config --cxxflags plugin liblive555_plugin.la` -O2 -fno-strict-aliasing -pipe -s -rpath '/usr/ local/lib/vlc/demu 4016 libtool: link: c++ -shared -nostdlib /usr/lib/crti.o /usr/ lib/crtbeginS.o .libs/liblive555_plugin_la-live555.o .libs/ liblive555_plugin_la-asf.o .libs/liblive555_plugin_la-buffer.o -Wl,- rpath 4017 /usr/bin/ld: /usr/local/live/UsageEnvironment/ libUsageEnvironment.a: relocation R_X86_64_32S can not be used when making a shared object; recompile with -fPIC 4018 /usr/local/live/UsageEnvironment/libUsageEnvironment.a: could not read symbols: Bad value 4019 gmake[5]: *** [liblive555_plugin.la] Error 1 4020 gmake[5]: Leaving directory `/qix/TMP/obj/ports/ilk/SRC/ current/ports/multimedia/vlc/work/vlc-0.9.8a/modules/demux' Thanks, Greg ___________ ___________ ___________ KERR Tel: +1 781 478 0382 | Cell: +1 781 588 4748 | MSN: GregKerrAtSonic@hotmail.com | AOL: SoniKerr | Skype: Greg_Kerr