Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 83257 - kdegraphics fails to compile kamera
Summary: kdegraphics fails to compile kamera
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: AMD64 Project
URL:
Whiteboard:
Keywords:
: 85716 87423 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-02-24 20:56 UTC by Jonas Ådahl
Modified: 2005-06-21 11:40 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
kdegraphics-gphoto-libs.patch (kdegraphics-gphoto-libs.patch,762 bytes, patch)
2005-03-06 09:31 UTC, Gregorio Guidi (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jonas Ådahl 2005-02-24 20:56:50 UTC
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.
Comment 1 Dan Armak (RETIRED) gentoo-dev 2005-02-25 05:58:58 UTC
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.
Comment 2 Jonas Ådahl 2005-02-25 06:23:34 UTC
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.
Comment 3 Gregorio Guidi (RETIRED) gentoo-dev 2005-03-06 09:31:18 UTC
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...
Comment 4 Jonas Ådahl 2005-03-06 12:28:08 UTC
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.

Comment 5 Gregorio Guidi (RETIRED) gentoo-dev 2005-03-06 14:04:47 UTC
Ok, closing.
Comment 6 Gregorio Guidi (RETIRED) gentoo-dev 2005-03-18 05:24:41 UTC
*** Bug 85716 has been marked as a duplicate of this bug. ***
Comment 7 Gregorio Guidi (RETIRED) gentoo-dev 2005-04-04 02:24:36 UTC
*** Bug 87423 has been marked as a duplicate of this bug. ***
Comment 8 Gregorio Guidi (RETIRED) gentoo-dev 2005-04-04 02:25:37 UTC
Reopening
Comment 9 Gregorio Guidi (RETIRED) gentoo-dev 2005-04-04 02:28:47 UTC
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").
Comment 10 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-04-04 03:02:28 UTC
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.
Comment 11 Simon Stelling (RETIRED) gentoo-dev 2005-04-09 09:02:28 UTC
is this still an issue with the kamera-3.4.0 package?
Comment 12 Mike C. Fletcher 2005-04-09 16:58:34 UTC
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).
Comment 13 Simon Stelling (RETIRED) gentoo-dev 2005-06-21 11:40:14 UTC
it works fine here, and the bugs mentioned in comment 12 are fixed... closing