Bug 155686 - multimedia/gstreamer-ffmpeg fails to build on HEAD with latest binutils
Summary: multimedia/gstreamer-ffmpeg fails to build on HEAD with latest binutils
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-multimedia (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-19 03:50 UTC by Kris Moore
Modified: 2011-03-20 10:30 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kris Moore 2011-03-19 03:50:09 UTC
The recent binutils update in HEAD has broken compiling gstreamer-ffmpeg:

---------------------------------------------------

  CCLD   libgstffmpeg.la

*** Warning: Linking the shared library libgstffmpeg.la against the
*** static library ../../gst-libs/ext/ffmpeg/libavformat/libavformat.a is not portable!

*** Warning: Linking the shared library libgstffmpeg.la against the
*** static library ../../gst-libs/ext/ffmpeg/libavcodec/libavcodec.a is not portable!

*** Warning: Linking the shared library libgstffmpeg.la against the
*** static library ../../gst-libs/ext/ffmpeg/libavutil/libavutil.a is not portable!
/usr/bin/ld: ../../gst-libs/ext/ffmpeg/libavcodec/libavcodec.a(dsputil_mmx.o): relocation R_X86_64_PC32 against `ff_pw_20' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
gmake[3]: *** [libgstffmpeg.la] Error 1
gmake[3]: Leaving directory `/ramfs/build.29577/usr/ports/multimedia/gstreamer-ffmpeg/work/gst-ffmpeg-0.10.11/ext/ffmpeg'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/ramfs/build.29577/usr/ports/multimedia/gstreamer-ffmpeg/work/gst-ffmpeg-0.10.11/ext'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/ramfs/build.29577/usr/ports/multimedia/gstreamer-ffmpeg/work/gst-ffmpeg-0.10.11'
gmake: *** [all] Error 2
*** Error code 1

Stop in /usr/ports/multimedia/gstreamer-ffmpeg.

Fix: 

Adding "-Wl,-Bsymbolic" to the ports LDFLAGS seems to correct the issue, although there may be other ways to solve as well.
How-To-Repeat: Just build multimedia/gstreamer-ffmpeg on a recent version of HEAD with the newer binutils
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2011-03-19 03:50:23 UTC
Responsible Changed
From-To: freebsd-ports-bugs->freebsd-multimedia

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 dfilter service freebsd_committer freebsd_triage 2011-03-20 10:25:13 UTC
kwm         2011-03-20 10:24:56 UTC

  FreeBSD ports repository

  Modified files:
    multimedia/gstreamer-ffmpeg Makefile 
  Log:
  Fix build on -current with updated binutils.
  
  This is quite the hammer approuch, but since I haven't found a nicer way
  this will have to do.
  
  PR:             ports/155686
  Submitted by:   Kris Moore <kris@pcbsd.org>
  
  Revision  Changes    Path
  1.39      +1 -1      ports/multimedia/gstreamer-ffmpeg/Makefile
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 3 Koop Mast freebsd_committer freebsd_triage 2011-03-20 10:25:21 UTC
State Changed
From-To: open->closed

Committed thanks!