Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 287223

Summary: x11-libs/libXaw-1.0.6: Update from 1.0.5 to 1.0.6 failed
Product: Gentoo Linux Reporter: Vaclav Adamik <dawned>
Component: [OLD] LibraryAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED INVALID    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Vaclav Adamik 2009-10-01 11:27:33 UTC
libXaw fails to compile when updating from v1.0.5 to v1.0.6. The last messages are:

/bin/sh ../libtool --tag=CC   --mode=link x86_64-pc-linux-gnu-gcc -I../include -I../include/X11/Xaw -DPROJECT_ROOT=\"/usr\" -DOLDXAW -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement   -O2 -pipe -version-info 6:1:0 -no-undefined -Wl,-O1 -o libXaw6.la -rpath /usr/lib64 libXaw6_la-Actions.lo libXaw6_la-AllWidgets.lo libXaw6_la-AsciiSink.lo libXaw6_la-AsciiSrc.lo libXaw6_la-AsciiText.lo libXaw6_la-Box.lo libXaw6_la-Command.lo libXaw6_la-Converters.lo libXaw6_la-Dialog.lo libXaw6_la-DisplayList.lo libXaw6_la-Form.lo libXaw6_la-Grip.lo libXaw6_la-Label.lo libXaw6_la-List.lo libXaw6_la-MenuButton.lo libXaw6_la-MultiSrc.lo libXaw6_la-MultiSink.lo libXaw6_la-OS.lo libXaw6_la-Paned.lo libXaw6_la-Panner.lo libXaw6_la-Pixmap.lo libXaw6_la-Porthole.lo libXaw6_la-Repeater.lo libXaw6_la-Scrollbar.lo libXaw6_la-Simple.lo libXaw6_la-SimpleMenu.lo libXaw6_la-Sme.lo libXaw6_la-SmeBSB.lo libXaw6_la-SmeLine.lo libXaw6_la-StripChart.lo libXaw6_la-Text.lo libXaw6_la-TextSink.lo libXaw6_la-TextSrc.lo libXaw6_la-TextAction.lo libXaw6_la-TextPop.lo libXaw6_la-TextTr.lo libXaw6_la-Toggle.lo libXaw6_la-Tree.lo libXaw6_la-Vendor.lo libXaw6_la-Viewport.lo libXaw6_la-XawIm.lo libXaw6_la-XawInit.lo libXaw6_la-XawI18n.lo -lXext -lXmu -lXt -lX11 -lSM -lICE   
libtool: link: x86_64-pc-linux-gnu-gcc -shared  .libs/libXaw6_la-Actions.o .libs/libXaw6_la-AllWidgets.o .libs/libXaw6_la-AsciiSink.o .libs/libXaw6_la-AsciiSrc.o .libs/libXaw6_la-AsciiText.o .libs/libXaw6_la-Box.o .libs/libXaw6_la-Command.o .libs/libXaw6_la-Converters.o .libs/libXaw6_la-Dialog.o .libs/libXaw6_la-DisplayList.o .libs/libXaw6_la-Form.o .libs/libXaw6_la-Grip.o .libs/libXaw6_la-Label.o .libs/libXaw6_la-List.o .libs/libXaw6_la-MenuButton.o .libs/libXaw6_la-MultiSrc.o .libs/libXaw6_la-MultiSink.o .libs/libXaw6_la-OS.o .libs/libXaw6_la-Paned.o .libs/libXaw6_la-Panner.o .libs/libXaw6_la-Pixmap.o .libs/libXaw6_la-Porthole.o .libs/libXaw6_la-Repeater.o .libs/libXaw6_la-Scrollbar.o .libs/libXaw6_la-Simple.o .libs/libXaw6_la-SimpleMenu.o .libs/libXaw6_la-Sme.o .libs/libXaw6_la-SmeBSB.o .libs/libXaw6_la-SmeLine.o .libs/libXaw6_la-StripChart.o .libs/libXaw6_la-Text.o .libs/libXaw6_la-TextSink.o .libs/libXaw6_la-TextSrc.o .libs/libXaw6_la-TextAction.o .libs/libXaw6_la-TextPop.o .libs/libXaw6_la-TextTr.o .libs/libXaw6_la-Toggle.o .libs/libXaw6_la-Tree.o .libs/libXaw6_la-Vendor.o .libs/libXaw6_la-Viewport.o .libs/libXaw6_la-XawIm.o .libs/libXaw6_la-XawInit.o .libs/libXaw6_la-XawI18n.o   -L/usr/lib64 /usr/lib64/libXmu.so /usr/lib64/libXext.so -lxcb-xlib /usr/lib64/libXt.so /usr/lib64/libX11.so /usr/lib64/libxcb.so /usr/lib64/libXau.so /usr/lib64/libXdmcp.so -ldl /usr/lib64/libSM.so -luuid /usr/lib64/libICE.so  -Wl,-O1   -Wl,-soname -Wl,libXaw.so.6 -o .libs/libXaw6.so.6.0.1

/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lxcb-xlib
collect2: ld returned 1 exit status
make[2]: *** [libXaw6.la] Fehler 1
make[2]: Leaving directory `/var/tmp/portage/x11-libs/libXaw-1.0.6/work/libXaw-1.0.6/src'
make[1]: *** [all-recursive] Fehler 1
make[1]: Leaving directory `/var/tmp/portage/x11-libs/libXaw-1.0.6/work/libXaw-1.0.6'
make: *** [all] Fehler 2

Reproducible: Always

Steps to Reproduce:
Don't know if this is a general problem or only depends on my setup. I just tried to update libXaw after a portage sync to v1.0.6.
Actual Results:  
Didn't compile because of missing library.

Expected Results:  
Should have compiled. But didn't

I found a symlink for libxcb-xlib was missing.

# pwd
/usr/lib64
# ls -lah libxcb-xlib.*
lrwxrwxrwx 1 root root   20  1. Okt 12:21 libxcb-xlib.so.0 -> libxcb-xlib.so.0.0.0
-rwxr-xr-x 1 root root 5,9K  1. Okt 12:21 libxcb-xlib.so.0.0.0

Obviously the plain ".so" link was missing. I added this one (in /usr/lib64)

# ln -s libxcb-xlib.so.0.0.0 libxcb-xlib.so
# ls -lah libxcb-xlib.*
lrwxrwxrwx 1 root root   20  1. Okt 13:10 libxcb-xlib.so -> libxcb-xlib.so.0.0.0
lrwxrwxrwx 1 root root   20  1. Okt 12:21 libxcb-xlib.so.0 -> libxcb-xlib.so.0.0.0
-rwxr-xr-x 1 root root 5,9K  1. Okt 12:21 libxcb-xlib.so.0.0.0

After that the compile ran through like it should.
So i guess there has to be this link by default. Maybe someone can take care of this if other users confirm this bug.
Comment 1 Rafał Mużyło 2009-10-01 14:07:48 UTC
Resolution is obvious - you didn't read (or use) the libxcb upgrade guide.
Comment 2 Vaclav Adamik 2009-10-01 20:39:52 UTC
You're absolutely right. Thanks for the information. I somehow didn't know there was an upgrade guide for this lib.
For anyone stumbling on this, here's the link:
http://www.gentoo.org/proj/en/desktop/x/x11/libxcb-1.4-upgrade-guide.xml