Basic system info: amd64, new fresh install, only a few days. When trying to build kdegraphics with gphoto2 in the USE flag it fails. Here's the output: /bin/sh ../../libtool --silent --mode=link --tag=CXX x86_64-pc-linux-gnu-g++ -Wnon-virtual-dtor -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE-Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -DNDEBUG -DNO_DEBUG -O2 -O2 -march=k8 -ffast-math -funroll-all-loops -funit-at-a-time -fpeel-loops -ftracer -funswitch-loops -fstack-protector -fomit-frame-pointer -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -o kcm_kamera.la -rpath /usr/kde/3.3/lib/kde3 -L/usr/lib64 -L/usr/qt/3/lib -L/usr/kde/3.3/lib -module -avoid-version -module -no-undefined -Wl,--no-undefined -Wl,--allow-shlib-undefined -R /usr/kde/3.3/lib -R /usr/qt/3/lib -R /usr/lib64 kamera.lo kameradevice.lo kameraconfigdialog.lo -lkio-L/usr/lib/gphoto2 -lgphoto2 .libs/kamera.o(.text+0x254a): In function `KKameraConfig::load()': : undefined reference to `gp_port_info_list_new' .libs/kamera.o(.text+0x2554): In function `KKameraConfig::load()': : undefined reference to `gp_port_info_list_load' .libs/kamera.o(.text+0x2581): In function `KKameraConfig::load()': : undefined reference to `gp_port_info_list_free' .libs/kameradevice.o(.text+0x101c): In function `KCamera::initCamera()': : undefined reference to `gp_port_info_list_new' .libs/kameradevice.o(.text+0x1029): In function `KCamera::initCamera()': : undefined reference to `gp_port_info_list_load' .libs/kameradevice.o(.text+0x1055): In function `KCamera::initCamera()': : undefined reference to `gp_port_info_list_lookup_path' ... very the same output almost... !!! ERROR: kde-base/kdegraphics-3.3.2-r2 failed. !!! Function kde_src_compile, Line 166, Exitcode 2 !!! died running emake, kde_src_compile:make As you can se in the command that failed -lghoto2_port is missing (where the undefined references are) Reproducible: Always Steps to Reproduce: 1. USE="gphoto2" emerge kdegraphics 2. 3. Actual Results: Linking failure Expected Results: A built package I guess it's not a amd64 specific error, but I really don't know that much about it. As I mentioned before it's my third day with amd64.
The following line of the output: kameraconfigdialog.lo -lkio-L/usr/lib/gphoto2 -lgphoto2 is missing a space after -lkio. Is that a typo in what you pasted, or really so? (I'd expect it to say it can't find libkio-L...) Also: alpha kde # nm /usr/lib/libgphoto2.a | grep gp_port_info_list_new U gp_port_info_list_new (My libgphoto2.so is too stripped to check) Please check your libgphoto2.a and .so for this symbol and the others on your list.
There should be a space between -lkio -L/usr/lib/gphoto2, don't know where it went. zion lib # nm /usr/lib/libgphoto2.a | grep gp_port_info_list_new U gp_port_info_list_new zion lib # nm /usr/lib/libgphoto2_port.a | grep gp_port_info_list_new 0000000000000000 T gp_port_info_list_new zion lib # nm /usr/lib/libgphoto2.a | grep gp_port_info_list_lookup_path U gp_port_info_list_lookup_path zion lib # nm /usr/lib/libgphoto2_port.a | grep gp_port_info_list_lookup_path 0000000000000a40 T gp_port_info_list_lookup_path and so on.. The .so-files didn't contain any symbols (nm didn't find any, though strings find them). I tried to manually run the failing command, but adding -lgphoto2_port. This worked.
Created attachment 52795 [details, diff] kdegraphics-gphoto-libs.patch Is something like the patch above needed? It's really strange that no one is having the same problem...
It works now without adding -lgphoto_port. Very strange indeed, but I suspect that it was my glibc that was mad. After a recompilation of glibc (no upgrade or change in USE-flags) it worked.
Ok, closing.
*** Bug 85716 has been marked as a duplicate of this bug. ***
*** Bug 87423 has been marked as a duplicate of this bug. ***
Reopening
This bug is happening again, and for some strange reason seems to be amd64 specific... amd64 herd: please see if you can reproduce it (compile kdegraphics with USE="gphoto2").
I have no problem with split ebuilds. I can't test right now with merged ebuilds because they conflicts with the split ones... I should create a chroot for them sooner or later.
is this still an issue with the kamera-3.4.0 package?
Bug#87423 is definitely showing up with kde 3.4.0 on AMD64, I gather that would be the 3.4.0 release of Kamera as well. The bug actually seems to be a different bug than this one, as Bug#87423 looks like a failure to install libgphoto files into the correct library directories (i.e. lib64).
it works fine here, and the bugs mentioned in comment 12 are fixed... closing