Bug 167516 - multimedia/ffmpeg WITH_RTMP breaks with openssl 1.0.1
Summary: multimedia/ffmpeg WITH_RTMP breaks with openssl 1.0.1
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: Martin Matuska
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-02 07:20 UTC by Shane
Modified: 2012-07-06 08:13 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 Shane 2012-05-02 07:20:10 UTC
If ffmpeg is compiled WITH_RTMP it links with multiple versions of openssl causing problems. I have only seen this issue since upgrading to openssl 1.0.1 recently.

When building multimedia/rtmpdump it warns about finding multiple openssl versions to link against.

From the rtmpdump build --
/usr/bin/ld: warning: libssl.so.6, needed by /usr/local/lib/librtmp.so, may conflict with libssl.so.8
/usr/bin/ld: warning: libcrypto.so.6, needed by /usr/local/lib/librtmp.so, may conflict with libcrypto.so.8

When ffmpeg is compiled it brings in both versions -- 
cd /usr/ports/multimedia/ffmpeg
make WITH_RTMP=yes
find work -name libavformat.so | xargs ldd | grep ssl
	libssl.so.8 => /usr/local/lib/libssl.so.8 (0x8025f4000)
	libssl.so.6 => /usr/lib/libssl.so.6 (0x805f8f000)
find work -name libavformat.so | xargs ldd | grep crypto
	libcrypto.so.6 => /lib/libcrypto.so.6 (0x8061e0000)
	libcrypto.so.8 => /usr/local/lib/libcrypto.so.8 (0x80657c000)

When this build of ffmpeg is then used to build graphics/blender it causes blender to crash when a python script tries to use ssl.

How-To-Repeat: cd /usr/ports/multimedia/ffmpeg
make WITH_RTMP=yes
find work/ -name libavformat.so | xargs ldd | grep ssl
find work/ -name libavformat.so | xargs ldd | grep crypto

The only way I know to prove it causes problems is build graphics/blender with ffmpeg enabled and when run enable an addon that uses ssl such as network render or renderfarm.fi
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2012-05-02 07:20:28 UTC
Responsible Changed
From-To: freebsd-ports-bugs->mm

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 dfilter service freebsd_committer freebsd_triage 2012-07-06 06:10:28 UTC
mm          2012-07-06 05:10:18 UTC

  FreeBSD ports repository

  Modified files:
    multimedia/ffmpeg    Makefile 
  Log:
  Fix build without /usr/bin/perl symlink [1]
  Fix build if rtmpdump is linked against OpenSSL from ports [2]
  Do not build documentation if NOPORTDOCS is set
  
  PR:     ports/163055 [1], ports/167516 [2]
  
  Revision  Changes    Path
  1.153     +26 -10    ports/multimedia/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 Martin Matuska freebsd_committer freebsd_triage 2012-07-06 08:13:45 UTC
State Changed
From-To: open->closed

Resolved. Thanks!