Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 409047 - media-video/ffmpeg-0.10.2 - libavfilter/libavfilter.so: undefined reference to `dlopen'
Summary: media-video/ffmpeg-0.10.2 - libavfilter/libavfilter.so: undefined reference t...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Media-video project
URL: http://www.gentoo.org/doc/en/gcc-upgr...
Whiteboard:
Keywords:
Depends on:
Blocks: glibc-2.15
  Show dependency tree
 
Reported: 2012-03-20 18:55 UTC by Dmitry Derevyanko
Modified: 2012-04-08 16:04 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge_info,17.85 KB, text/plain)
2012-03-20 18:56 UTC, Dmitry Derevyanko
Details
ffmpeg's build.log (build.log.gz,35.69 KB, text/plain)
2012-03-20 18:57 UTC, Dmitry Derevyanko
Details
ffmpeg's build.log (now gunziped) (build.log,132.49 KB, text/plain)
2012-03-20 19:09 UTC, Dmitry Derevyanko
Details
config.log (config.log,263.38 KB, text/plain)
2012-04-04 10:14 UTC, Alex
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitry Derevyanko 2012-03-20 18:55:21 UTC
Ffmpeg-0.10.2 doesn't compile with glibc-2.15 and sys-devel/gcc-4.6.2:
libavfilter/libavfilter.so: undefined reference to `dlopen'
libavfilter/libavfilter.so: undefined reference to `dlclose'
libavfilter/libavfilter.so: undefined reference to `dlsym'
collect2: ld returned 1 exit status

ffpmeg-0.10 compiles successful.
Revdep-rebuild and emerge -1 sys-devel/gcc glibc doesn't helped.

Reproducible: Always

Steps to Reproduce:
1.Emerge =glibc-2.15 =sys-devel/gcc-4.6.2
2.Emerge =ffmpeg-0.10.2
3.ld error
Actual Results:  
collect2: ld returned 1 exit status

Expected Results:  
Compiles successfully.
Comment 1 Dmitry Derevyanko 2012-03-20 18:56:03 UTC
Created attachment 306039 [details]
emerge --info
Comment 2 Dmitry Derevyanko 2012-03-20 18:57:02 UTC
Created attachment 306041 [details]
ffmpeg's build.log
Comment 3 Dmitry Derevyanko 2012-03-20 19:09:39 UTC
Created attachment 306043 [details]
ffmpeg's build.log (now gunziped)
Comment 4 Dmitry Derevyanko 2012-03-20 19:18:23 UTC
ffmpeg-9999 doesn't compile too.
Comment 5 Jeroen Roovers (RETIRED) gentoo-dev 2012-03-20 21:13:48 UTC
Please re-emerge sys-devel/libtool and try again.
Comment 6 Dmitry Derevyanko 2012-03-21 00:36:13 UTC
Already tried also it hasn't helped.
Comment 7 Dmitry Derevyanko 2012-03-21 13:54:36 UTC
Compiles fine with:
USE="-frei0r" emerge -1 ffmpeg
Comment 8 Justus Ranvier 2012-03-24 19:07:32 UTC
I experienced the same problem on 2 our of 3 machines, including a successful compilation with USE="-frei0r".

In case it is relevent all three machines have nearly-identical configurations but the one that successfully compiled with USE="frei0r" is an opteron machine and the two machines which experienced failure were a core 2 quad and a core i7. All have -march=native in CFLAGS.
Comment 9 Alex 2012-03-30 13:10:19 UTC
I can confirm this: core i7, building failure with same error, and fix by disabling frei0r use-flag.
Comment 10 Alexis Ballier gentoo-dev 2012-03-30 20:01:01 UTC
please attach config.log ; frei0r depends on dlopen so this should just get added automatically, unless something has failed in the detection.

please reopen with that info
Comment 11 Alex 2012-04-04 10:14:21 UTC
Created attachment 307733 [details]
config.log

Attached congig.log

also, I noticed that it compiles fine with USE="frei0r -fftools_graph2dot"
Comment 12 Alexis Ballier gentoo-dev 2012-04-08 14:36:15 UTC
(In reply to comment #11)
> Created attachment 307733 [details]
> config.log
> 
> Attached congig.log
> 
> also, I noticed that it compiles fine with USE="frei0r -fftools_graph2dot"

well, yes, but libavfilter remain underlinked, disabling graph2dot just hides the problem :)
Comment 13 Alexis Ballier gentoo-dev 2012-04-08 14:37:11 UTC
backported a fix to link libavfilter with libdl in 0.10.2 when using frei0r