Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 510516 - media-video/ffmpeg-2.2.2 - libavfilter/libavfilter.so: undefined reference to `dlsym'
Summary: media-video/ffmpeg-2.2.2 - libavfilter/libavfilter.so: undefined reference to...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-16 23:46 UTC by Martin von Gagern
Modified: 2014-05-20 18:26 UTC (History)
2 users (show)

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


Attachments
emerge --info (media-video:ffmpeg-2.2.2.emerge--info,8.37 KB, text/plain)
2014-05-16 23:51 UTC, Martin von Gagern
Details
media-video:ffmpeg-2.2.2:20140516-195330.log.gz (media-video:ffmpeg-2.2.2:20140516-195330.log.gz,53.14 KB, application/gzip)
2014-05-17 05:40 UTC, Martin von Gagern
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin von Gagern 2014-05-16 23:46:13 UTC
x86_64-pc-linux-gnu-gcc -Llibavcodec -Llibavdevice -Llibavfilter -Llibavformat -
Llibavresample -Llibavutil -Llibpostproc -Llibswscale -Llibswresample -Wl,--as-n
eeded  -Wl,--as-needed -Wl,--warn-common -Wl,-rpath-link=libpostproc:libswresamp
le:libswscale:libavfilter:libavdevice:libavformat:libavcodec:libavutil:libavresample -o tools/graph2dot tools/graph2dot.o -lavfilter -lswresample -lavformat -lavcodec -lswresample -lavresample -lavcodec -lavcodec -lavcodec -lavcodec -lavcodec -lavformat -lavcodec -lavcodec -lswresample -lpostproc -lavformat -lavcodec -lswscale -lavresample -lswscale -lswscale -lavcodec -lswscale -lswresample -lavutil -lXv -lX11 -lXext -lXfixes -lXext -lX11 -ljack -lasound -lSDL -lpthread -lnettle -lhogweed -lgmp -lGL -lxvidcore -lx264 -lvpx -lvpx -lvpx -lvpx -lvorbisenc -lvorbis -logg -lvo-aacenc -ltheoraenc -ltheoradec -logg -lspeex -lopus -lopenjpeg -lmp3lame -lfreetype -lgnutls -lm -lbz2 -lz -pthread  
libavfilter/libavfilter.so: undefined reference to `dlsym'
libavfilter/libavfilter.so: undefined reference to `dlerror'
libavfilter/libavfilter.so: undefined reference to `dlopen'
libavfilter/libavfilter.so: undefined reference to `dlclose'
collect2: error: ld returned 1 exit status
/var/tmp/portage/media-video/ffmpeg-2.2.2/work/ffmpeg-2.2.2/library.mak:106: recipe for target 'tools/graph2dot' failed
make: *** [tools/graph2dot] Error 1

It seems that call is missing a -ldl. Or perhaps the linker invocation for libavfilter.so should have that library added. Not sure how to patch that into the build system, though.
Comment 1 Martin von Gagern 2014-05-16 23:51:07 UTC
Created attachment 377098 [details]
emerge --info
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2014-05-17 04:31:21 UTC
Please attach the entire build log to this bug report.
Comment 3 Martin von Gagern 2014-05-17 05:40:20 UTC
Created attachment 377112 [details]
media-video:ffmpeg-2.2.2:20140516-195330.log.gz

(In reply to Jeroen Roovers from comment #2)
> Please attach the entire build log to this bug report.

Sorry, I thought I had attached it in comment #0. But apparently the attachment was rejected due to being too big, while the bug report itself got accepted. So now I had to compress the file.
Comment 4 Saul Peebsen 2014-05-18 20:16:42 UTC
Exactly same errors here.
Comment 5 Ilya Ershov 2014-05-19 19:04:46 UTC
I get exactly the same error to. Building like this (found on gentoo forums) works, but, of course, is not an option to leave it like that:

FFTOOLS="aviocat cws2fws ffeval ismindex pktdumper qt-faststart trasher" emerge -1 ffmpeg
Comment 6 Alexis Ballier gentoo-dev 2014-05-20 17:38:44 UTC
you're building with USE="ladspa -frei0r", right ?
Comment 7 Ilya Ershov 2014-05-20 17:42:54 UTC
(In reply to Alexis Ballier from comment #6)
> you're building with USE="ladspa -frei0r", right ?

Yes (at least me).
Comment 8 Alexis Ballier gentoo-dev 2014-05-20 18:26:10 UTC
(In reply to Ilya Ershov from comment #7)
> (In reply to Alexis Ballier from comment #6)
> > you're building with USE="ladspa -frei0r", right ?
> 
> Yes (at least me).

fixed