This forum has been archived. All content is frozen. Please use KDE Discuss instead.

svn fails: undefined reference to libdl.so.2

Tags: None
(comma "," separated)
seandarcy
Registered Member
Posts
16
Karma
0
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
j-b-m
Registered Member
Posts
804
Karma
1
Which system do you have? Are you compiling on a Mac?
seandarcy
Registered Member
Posts
16
Karma
0
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.

seandarcy
Registered Member
Posts
16
Karma
0
In src/CMakeLists.txt , added -ldl to LINK_LIBRARIES and to target_link_libraries.

Then it built.

j-b-m
Registered Member
Posts
804
Karma
1
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?
seandarcy
Registered Member
Posts
16
Karma
0
Yes. svn-4983 built. Thanks for the quick response.

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

sean


Bookmarks



Who is online

Registered users: Bing [Bot], blue_bullet, Google [Bot], Yahoo [Bot]