(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? Mike On Tuesday 09 September 2008 00:11:25 Dirk Mueller wrote: > On Friday 05 September 2008, Michael Jansen wrote: > > Since some time i have a link failure when compiling koffice. > > which koffice is that? I've been building it just fine on 64bit opensuse > 11.0 (from svn trunk) > > > The problem is that cmake correctly find the opengl lib under > > /usr/lib64/libGL.so. The message from cmake and CMakeCache.txt both show > > this path. All Makefiles are correct too. For some unknown reason the > > link.txt and relink.txt files contain -lGL instead. That fails because > > /usr/lib64 is not added with - L . > > Do you have Mesa-devel installed from x86_64? it looks like you're either > missing Mesa-devel or you have the Mesa-devel-32bit installed. can you > paste rpm -qa Mesa\* please? > > Thanks, > Dirk > > _______________________________________________ > Kde-buildsystem mailing list > [email protected] > https://mail.kde.org/mailman/listinfo/kde-buildsystem -- Michael Jansen http://www.michael-jansen.biz _______________________________________________ Kde-buildsystem mailing list [email protected] https://mail.kde.org/mailman/listinfo/kde-buildsystem
