Problem building koffice on an 64bit opensuse 11.0

Matthew Woehlke mw_triad at users.sourceforge.net
Wed Sep 10 18:03:23 CEST 2008


Michael Jansen wrote:
> (Sent that before but with my other non subscribed account. seems like it 
> didn't get through so here once again. sorry if double posting. )
> 
> I hate to say it but it is probably a good idea to ignore my ramblings in such 
> cases for some days. 
> 
> I think i completely understand the problem now.
> 
> We use --fatal-warnings which means that warning "skipping incompatible 
> /usr/lib/libGL.so when searching for -lGL" becomes an error and the linker 
> stops. If i remove that it links successfully.
> 
> So the questions is who triggers the warning? The problems is GraphicsMagicks 
> pkgconfig file. The package i have installed here has the following snippet on 
> the Libs line: "-l/usr/lib64 -l/usr/lib -l/usr/lib64 -l/usr/lib". This is 
> absolutely unnecessary because the linker would use the correct directory 
> anyway. So here is the first bug imho.
> 
> pkgconfig tries to help and removes the two "-l/usr/lib64" arguments because 
> this is the "system lib dir" and it is pointless to provide it. You can see 
> that with "pkg-config GraphicsMagick --debug --libs". It removes one of the "-
> l/usr/lib" too because it's provided two times. I think we could say this is 
> bug number 2. it should remove /usr/lib on 64 bit systems and /usr/lib64 on 32 
> bit systems when it find them. Is there any chance you link against libs from 
> /usr/lib on a 64 bit system or vice versa?
> 
> So the "-l/usr/lib" finds its way into the linker command and i get my error.
> 
> I just fixed the GraphicsMagick.pc file and everything compiles smoothly. 
> Anyone an idea where to file a bug? With opensuse or GraphicsMagick?

With GraphicsMagick, I think. IIRC I had this same issue on Fedora, 
which means it's upstream at fault. (You should probably try to check if 
I already reported it ;-).)

-- 
Matthew
Your eyes are weary from staring at the CRT. You feel sleepy. Notice how 
restful it is to watch the cursor blink. Close your eyes. The opinions 
stated above are yours. You cannot imagine why you ever felt otherwise.
   -- Unknown
(found at http://goldmark.org/jeff/stupid-disclaimers/fun.html)


More information about the Kde-buildsystem mailing list