Jim Michmerhuizen wrote:
> On 12/12/2012 10:05 AM, Thomas de Roo wrote:
>> On 12/12/12 15:49, Jim Michmerhuizen wrote:
>>> Has anybody experimented with building this?  I'd like to compare notes
>>> -- or rather, learn whatever I can before starting.
>>>
>
>> I compiled in this order:
>>
>> d-bus
>> d-bus-bindings
>> openbox
>> lxappearance
>> lxdecommon
> ...snip
> So building 'lxappearance' (the first three are already present in my
> system) collected me this error:
>
> gcc  -g -O2   -o lxappearance main.o glade-support.o main-dlg-ui.o
> main-dlg.o demo-ui.o demo.o -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0
> -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo
> -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0

> /usr/bin/ld: main.o: undefined reference to symbol 'XUngrabServer'
> /usr/bin/ld: note: 'XUngrabServer' 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
> collect2: error: ld returned 1 exit status
> make: *** [lxappearance] Error 1
>
> BUT:
> nm tells me there is such a symbol in /usr/lib/libX11.so.6
>
> What does it mean "could not read symbols"?

Try going to the directory where that is running at do:

gcc  -g -O2   -o lxappearance main.o glade-support.o main-dlg-ui.o \
  main-dlg.o demo-ui.o demo.o -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 \
  -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo \
  -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 \
  -lX11

Note the last line.

You could also go into the Makefile and add -lX11 to the place where 
things like -lfreetype -lfontconfig are specified.

   -- Bruce

-- 
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