Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
libxcb-xlib.so.0: undef ref `_xcb_unlock_io' [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
_Za
n00b
n00b


Joined: 03 Sep 2007
Posts: 10

PostPosted: Thu Oct 15, 2009 2:50 am    Post subject: libxcb-xlib.so.0: undef ref `_xcb_unlock_io' [SOLVED] Reply with quote

Hi All,
I tried to follow the upgrade guide for libxcb.
I did
Code:

# emerge -1av x11-proto/xcb-proto x11-libs/libxcb
# emerge -1av x11-proto/xproto x11-proto/xextproto x11-libs/libX11 x11-libs/libXext


with no problems.
I also run:
Code:

 /usr/portage/x11-libs/libxcb/files/xcb-rebuilder.sh

which reports a list of packages affected.

I cannot run the following code
Code:
# emerge --oneshot \
$(for i in x11-proto/ x11-libs/libxcb x11-libs/libX11 x11-libs/libXext \
           x11-libs/libX x11-libs/xcb-util x11-libs/cairo \
           x11-libs/pango x11-libs/gtk\\+ \
           x11-libs/qt-gui; do \
    qlist -IC $i; \
done) -av

because a big list of blocks due to qt related packages (I'm using stable amd64 with kde4 enabled through package.keywords).

So, as decided to run revdep-rebuild to fix all the affected binaries.
Here is where it fails... anything that tries to link against libxcb-xlib.so.0, fails with undefined reference to `_xcb_unlock_io'
and undefined reference to `_xcb_lock_io'

I read many post, bugs reports, duplicated bugs, etc. with no luck.

I just don't know how to fix first libxcb-xlib.so.0 (in fact libxcb-xlib.so.0.0.0) so that all needed symbols are in place, in order to recompile the rest of my system.

Below is ldd output. Any help is appreciated.



Code:
 # ldd libxcb-xlib.so.0
        linux-vdso.so.1 =>  (0x00007fff713ff000)
        libxcb.so.1 => /usr/lib/libxcb.so.1 (0x00007fde68e3e000)
        libc.so.6 => /lib/libc.so.6 (0x00007fde68ae3000)
        libXau.so.6 => /usr/lib/libXau.so.6 (0x00007fde688de000)
        libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0x00007fde686d8000)
        /lib64/ld-linux-x86-64.so.2 (0x00007fde6928c000)


ldd -r libxcb-xlib.so.0
       undefined symbol: _xcb_lock_io  (./libxcb-xlib.so.0)
       undefined symbol: _xcb_unlock_io        (./libxcb-xlib.so.0)
       linux-vdso.so.1 =>  (0x00007fffffffe000)
       libxcb.so.1 => /usr/lib/libxcb.so.1 (0x00007f32f79f0000)
       libc.so.6 => /lib/libc.so.6 (0x00007f32f7695000)
        libXau.so.6 => /usr/lib/libXau.so.6 (0x00007f32f7490000)
        libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0x00007f32f728a000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f32f7e3e000)



ZA-


Last edited by _Za on Thu Oct 22, 2009 11:51 pm; edited 1 time in total
Back to top
View user's profile Send private message
Mike Hunt
Watchman
Watchman


Joined: 19 Jul 2009
Posts: 5287

PostPosted: Thu Oct 15, 2009 3:05 am    Post subject: Reply with quote

Did you remove all /usr/lib/libxcb-xlib.* before running xcb-rebuilder.sh ?

Did you keyword all the qt splits ?

Do you get any output from emerge --depclean -pv ?
Back to top
View user's profile Send private message
_Za
n00b
n00b


Joined: 03 Sep 2007
Posts: 10

PostPosted: Thu Oct 15, 2009 10:28 am    Post subject: Reply with quote

Quote:
Did you remove all /usr/lib/libxcb-xlib.* before running xcb-rebuilder.sh ?


I tried both, running xcb-rebuilder before and after removing lixcb-xlib.*

Quote:

Did you keyword all the qt splits ?


I just have keyworded packages I needed for the 4.3 slot of kde. Up to now, I did not need
qt keyword.... Should I?

Quote:
Do you get any output from emerge --depclean -pv ?


Yes, I get errors
Code:

Calculating dependencies... done!
 * Dependencies could not be completely resolved due to
 * the following required packages not being installed:
 *
 *   <x11-libs/libxklavier-4 pulled in by:
 *     xfce-extra/xfce4-xkb-plugin-0.5.3.3
 *
 *   <x11-libs/libxklavier-4 pulled in by:
 *     xfce-base/xfce4-settings-4.6.1
 *
 * Have you forgotten to run `emerge --update --newuse --deep world` prior
 * to depclean? It may be necessary to manually uninstall packages that no longer
 * exist in the portage tree since it may not be possible to satisfy their
 * dependencies.  Also, be aware of the --with-bdeps option that is documented
 * in `man emerge`.
 portage # eix libxklavier
[I] x11-libs/libxklavier
     Available versions:  3.3 3.6 ~3.8 ~3.9 4.0 {doc}
     Installed versions:  4.0(07:14:23 AM 10/15/2009)(-doc)
     Homepage:            http://www.freedesktop.org/Software/LibXklavier
     Description:         High level XKB library


I don't understand why emerge --depclean is complaining. As you can see the required package is installed (in fact I reinstalled it to be sure).


Going back to the original problem I noticed that when I try revdep-rebuild , it fails in the configure part of kde3.5, complaining about a missing qt-mt library. So, I tried to re emerge qt, and I get the previously mentioned error:
Code:
/usr/lib/libxcb-xlib.so.0: undefined reference to `_xcb_lock_io'
/usr/lib/libxcb-xlib.so.0: undefined reference to `_xcb_unlock_io'


So, I am in cycle of errors. Please help me escape from this....

Thanks.
Back to top
View user's profile Send private message
MaximeG
l33t
l33t


Joined: 15 Apr 2008
Posts: 722
Location: Belgium

PostPosted: Thu Oct 15, 2009 12:48 pm    Post subject: Reply with quote

Hi,

You should try d2_racing's sticky :

https://forums.gentoo.org/viewtopic-t-792662.html

It solved my libxcb problems.

Best Regards,
Maxime
_________________
Future is wide open.
Back to top
View user's profile Send private message
_Za
n00b
n00b


Joined: 03 Sep 2007
Posts: 10

PostPosted: Thu Oct 22, 2009 11:55 pm    Post subject: Reply with quote

The problem was solved by following the guide but avoiding the qt packages that were a problem for me (due to the blocks).
Rebuilding in the order suggested in the guided worked.

Just a piece of advice for newbies (like me) having problems during the following step :

Code:
# emerge --oneshot \
$(for i in x11-proto/ x11-libs/libxcb x11-libs/libX11 x11-libs/libXext \
           x11-libs/libX x11-libs/xcb-util x11-libs/cairo \
           x11-libs/pango x11-libs/gtk\\+ \
           x11-libs/qt-gui; do \
    qlist -IC $i; \
done) -av


If something fails, try emerging the base packages:

x11-proto/ x11-libs/libxcb x11-libs/libX11 x11-libs/libXext \
x11-libs/libX x11-libs/xcb-util x11-libs/cairo \

and then the rest.


thanks for all the replies.
Back to top
View user's profile Send private message
Mgiese
Veteran
Veteran


Joined: 23 Mar 2005
Posts: 1451
Location: indiana

PostPosted: Mon Oct 26, 2009 10:18 pm    Post subject: Reply with quote

thx for your thread, it helped me a lot. i was getting desperate because of that problem ....
_________________
I do not have a Superman complex, for I am God not Superman :D
Back to top
View user's profile Send private message
Tyndarus
n00b
n00b


Joined: 03 Apr 2013
Posts: 1

PostPosted: Wed Apr 03, 2013 11:50 am    Post subject: Solved similar problem Reply with quote

Hello, I've had a similar problem and I've been able to solve it as follows:

A)CONTEXT:
-Trying to create Unigraphics Open C api external application, compiling and linking using the ufcomp and uflink utility
-Running ubuntu64 12.04

B)PROBLEM (2):
1) When linking external applications (which you can run without UG NX running):
/usr/ugs085/ugii/libxcb-xlib.so.0: undefined reference to '_xcb_lock_io'
/usr/ugs085/ugii/libxcb-xlib.so.0: undefined reference to '_xcb_unlock_io'
2) the shared library libxcb-xlib.so is not available ubuntu anymore (libxcb1.so does still exist)

C)SOLUTION (2):
1) FAILED: Been trying pass the --as-needed flag to the GNU linker (ld) as mentioned on http://www.gentoo.org/proj/en/qa/asneeded.xml
This solution ran to dead end
2) WORKED: Backup and remove /usr/ugs085/ugii/libxcb-xlib.so.0. Now creating libxcb-xlib.so.0 as symlink to libxcb.so.1.1.0 seemed to do the trick!!
$ ln -s /usr/lib/x86_64-linux-gnu/libxcb.so.1.1.0 /usr/ugs085/ugii/libxcb-xlib.so.0

Took me a while to figure out this (rather simple) solution, hopefully it may help somebody

kind regards,
Dieter
Back to top
View user's profile Send private message
muel
n00b
n00b


Joined: 20 Mar 2014
Posts: 1
Location: cz

PostPosted: Thu Mar 20, 2014 5:45 am    Post subject: Re: Solved similar problem Reply with quote

Tyndarus wrote:

....
2) WORKED: Backup and remove /usr/ugs085/ugii/libxcb-xlib.so.0. Now creating libxcb-xlib.so.0 as symlink to libxcb.so.1.1.0 seemed to do the trick!!
.....

Great:-)
this guide helped me a lot when I compiled old but perfect twinkle (on puppylinux).
A great trick, thank you :-)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum