trinity-devel@lists.pearsoncomputing.net

Message: previous - next
Month: March 2012

Re: [trinity-devel] tdegraphics: 'XShapeQueryExtension' is defined in DSO /usr/lib/libXext.so.6

From: "David C. Rankin" <drankinatty@...>
Date: Wed, 07 Mar 2012 11:03:35 -0600
On 03/07/2012 01:35 AM, David C. Rankin wrote:
> Tim, all,
> 
>   I've run into more link problems in tdegraphics. This time I am fairly certain
> it is a gcc >= 4.6.2 problem. The error is:
> 
> /usr/bin/ld: CMakeFiles/ksnapshot.dir/windowgrabber.cpp.o: undefined reference
> to symbol 'XShapeQueryExtension'
> /usr/bin/ld: note: 'XShapeQueryExtension' is defined in DSO
> /usr/lib/libXext.so.6 so try adding it to the linker command line
> 
<snip>

Anyone?  I have tried adding the library everywhere I can think of:

  sed -i '/^ksnapshot_LDFLAGS/s|$| -lXext|' tdegraphics/ksnapshot/Makefile.am
  sed -i '/^ksnapshot_LDADD/s|$| -lXext|' tdegraphics/ksnapshot/Makefile.am

 I've even tried adding an explicit include of the shape.h header that holds the
XShapeQueryExtension definition:

  sed -i "/#include <X11\/Xatom.h>/s|$|\n#include <X11\/extensions\/shape.h>|"
tdegraphics/ksnapshot/windowgrabber.h

  I've confirmed the substitutions in the src directory, but till no luck, the
error remain the same :(

  Any guesses on where/how to fix this issue?

  I've turned the scan related modules (kooka/libkscan) OFF until we can find
where the linker problem with '-lsane-Wl' run-together is occurring.

-- 
David C. Rankin, J.D.,P.E.