Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 May 2012 06:14:39 GMT
From:      Shane Ambler <FreeBSD@Shaneware.biz>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/167516: multimedia/ffmpeg WITH_RTMP breaks with openssl 1.0.1
Message-ID:  <201205020614.q426Edut036711@red.freebsd.org>
Resent-Message-ID: <201205020620.q426KArG014991@freefall.freebsd.org>

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

>Number:         167516
>Category:       ports
>Synopsis:       multimedia/ffmpeg WITH_RTMP breaks with openssl 1.0.1
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed May 02 06:20:10 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Shane Ambler
>Release:        9.0-RELEASE
>Organization:
>Environment:
FreeBSD leader.local 9.0-RELEASE FreeBSD 9.0-RELEASE #1: Wed Feb 15 16:03:18 CST 2012     root@:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
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
>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:



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