On 03.10.2012 19:21, Robin wrote:
> /usr/bin/ld: 
> /usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.1/../../../../lib64/libgdk-x11-2.0.so:
> undefined reference to symbol 'XChangeWindowAttributes'
>
> /usr/bin/ld: note: 'XChangeWindowAttributes' is defined in DSO
> /usr/lib/../lib64/libX11.so.6 so try adding it to the linker command
> line
>
> /usr/lib/../lib64/libX11.so.6: could not read symbols: Invalid operation
>
>
> Not sure if this is on topic as this is about packages not in the book
> but is a general compiling question
>
> This is the second package to fail on make 'undefined ref.....defined
> in DSO error.'
> Goolged and result was to add the library to the gcc command but it
> didn't say where.
> Tried editing the Makefile but make would not run with my edit:
>
> Makefile:151: *** missing separator.  Stop.
>
> Tried compiling in a chroot and by booting into lfs proper.
>
> Any pointers welcome.
>
> Thanks
> --
> rob
>

These two packages have same problem, but with libgmodule-2.0.so

Look at their pages and for a possible fix

http://www.linuxfromscratch.org/blfs/view/svn/multimedia/audacious.html
http://www.linuxfromscratch.org/blfs/view/svn/xsoft/xchat.html

In this case we used LIBS+=...

In your case it can be either LIBS+=-lX11 for autoconf based packages or 
maybe LDFLAGS=-lX11 for Makefile-only setup.
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to