Registered Member
|
Same type of problem as in previous post, but now I hope I'm in the correct church.
http://www.kdenlive.org/forum/svn-fails-testlensiface-has-undefined-reference-lkdecore Building today's svn: /usr/bin/ld: CMakeFiles/kdenlive.dir/blackmagic/include/DeckLinkAPIDispatch.o: undefined reference to symbol 'dlsym@@GLIBC_2.2.5' /usr/bin/ld: note: 'dlsym@@GLIBC_2.2.5' is defined in DSO /lib64/libdl.so.2 so try adding it to the linker command line /lib64/libdl.so.2: could not read symbols: Invalid operation sean |
Registered Member
|
Which system do you have? Are you compiling on a Mac?
|
Registered Member
|
No. Fedora 13. cmake-2.8.0-3.fc13.x86_64
This arises because Fedora no longer permits implicit linking. See: https://fedoraproject.org/wiki/UnderstandingDSOLinkChange Note that ld does know where to find the reference, it just won't do it because it's not explicitly linked. And I don't know enough cmake to specify the link libraries. |
Registered Member
|
In src/CMakeLists.txt , added -ldl to LINK_LIBRARIES and to target_link_libraries.
Then it built. |
Registered Member
|
Ok, thanks. I applied a patch to update target_link_libraries, since it looks like link_libraries is now deprecated. Can you please test with latest svn?
|
Registered Member
|
Yes. svn-4983 built. Thanks for the quick response.
And thanks for all the work you do on this great program. sean |
Registered users: Bing [Bot], blue_bullet, Google [Bot], Yahoo [Bot]