svn fails: undefined reference to

Same type of problem as in previous post, but now I hope I'm in the correct church.

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/ so try adding it to the linker command line
/lib64/ could not read symbols: Invalid operation


Which system do you have? Are you compiling on a Mac?

No. Fedora 13. cmake-2.8.0-3.fc13.x86_64

This arises because Fedora no longer permits implicit linking. See:

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.

In src/CMakeLists.txt , added -ldl to LINK_LIBRARIES and to target_link_libraries.

Then it built.

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?

Yes. svn-4983 built. Thanks for the quick response.

And thanks for all the work you do on this great program.