google-code-export / ffmpegthumbnailer

Automatically exported from code.google.com/p/ffmpegthumbnailer
GNU General Public License v2.0
1 stars 1 forks source link

ffmpegthumbnailer-2.0.6 fails to compile again with LDFLAGS="-Wl,--as-needed" #75

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The $(LD_LIBS) is misplaced in Makefile.am resulting in:

main.o: In function `tryUriConvert(std::basic_string<char, 
std::char_traits<char>, std::allocator<char> >&)':
main.cpp:(.text+0x86e): undefined reference to `dlopen'
main.cpp:(.text+0x881): undefined reference to `dlopen'
main.cpp:(.text+0x894): undefined reference to `dlopen'
main.cpp:(.text+0x8ca): undefined reference to `dlsym'
main.cpp:(.text+0x8df): undefined reference to `dlsym'
main.cpp:(.text+0x8f4): undefined reference to `dlsym'
main.cpp:(.text+0x909): undefined reference to `dlsym'
main.cpp:(.text+0x91e): undefined reference to `dlsym'
main.o:main.cpp:(.text+0x933): more undefined references to `dlsym' follow
main.o: In function `tryUriConvert(std::basic_string<char, 
std::char_traits<char>, std::allocator<char> >&)':
main.cpp:(.text+0xa02): undefined reference to `dlclose'
main.cpp:(.text+0xa15): undefined reference to `dlclose'
main.cpp:(.text+0xa28): undefined reference to `dlclose'
collect2: ld returned 1 exit status

The attached patch solves the issue, main.cpp where dlsym/dlclose/dlopen is 
called is part of ffmpegthumbnailer, not libffmpegthumbnailer

Original issue reported on code.google.com by ssuomi...@unk.fi on 9 Jan 2011 at 1:55

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks for the fix, submitted in svn

Original comment by dirk.vdb on 14 Jan 2011 at 10:00