Red Hat Bugzilla – Bug 445979
Compilation against libgphoto2 yields lt_dlforeachfile
Last modified: 2013-07-02 19:29:27 EDT
Description of problem:
When trying to install the latest hplip library I encountered an error due to
libgphoto2. Further investigation showed that I get a linkage error when trying
to use this library. Note that this is a system that has been upgraded from a F8
system, so there might be some remaining libraries that cause the problem,
though I was unable to find one.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Create the following program. Never mind it won't do anything. Its the
compilation we are after.
int main(int argc, char *argv)
2. Compile it as follows:
cc `pkg-config --cflags --libs libgphoto2` -o gp gp.c
where pkg-config --cflags --libs yields:
-I/usr/include/gphoto2 -lgphoto2 -lgphoto2_port -lexif -lm -lusb
/usr/lib/gcc/i386-redhat-linux/4.3.0/../../../libgphoto2.so: undefined reference
Nothing - i.e. succesful linkage.
Oops. Found the problem, I had an old libltdl in /usr/local .