Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 371829 - libtool: link: cannot find the library `/usr/lib/libxcb.la'
Summary: libtool: link: cannot find the library `/usr/lib/libxcb.la'
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-15 19:23 UTC by tpereira
Modified: 2011-06-16 16:15 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tpereira 2011-06-15 19:23:54 UTC
When I try to emerge app-text/xdvik, it fails giving the result:
libtool: link: cannot find the library `/usr/lib/libxcb.la'
make: *** [xdvi-xaw] Error 1
emake failed

I already tried lafilefixer --justfixit and revdep-rebuild and the result is exactly the same.

Reproducible: Always

Steps to Reproduce:
1. emerge app-text/xdvik

Actual Results:  
libtool: link: cannot find the library `/usr/lib/libxcb.la'
make: *** [xdvi-xaw] Error 1
emake failed
 * ERROR: app-text/xdvik-22.84.16 failed (compile phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line  56:  Called src_compile
 *   environment, line 2651:  Called die
 * The specific snippet of code:
 *       emake kpathsea_dir="${EPREFIX}/usr/include/kpathsea" texmf="${EPREFIX}${TEXMF_PATH}" || die;
 * 
 * If you need support, post the output of 'emerge --info =app-text/xdvik-22.84.16',
 * the complete build log and the output of 'emerge -pqv =app-text/xdvik-22.84.16'.
 * The complete build log is located at '/var/tmp/portage/app-text/xdvik-22.84.16/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-text/xdvik-22.84.16/temp/environment'.
 * S: '/var/tmp/portage/app-text/xdvik-22.84.16/work/xdvik-22.84.16/texk/xdvik'

Expected Results:  
installation of app-text/xdvik

orionte tpereira # emerge --info app-text/xdvik

Portage 2.1.9.42 (default/linux/x86/10.0, gcc-4.4.5, libc-0-r0, 2.6.37-gentoo-r4 i686)
=================================================================
                         System Settings
=================================================================
System uname: Linux-2.6.37-gentoo-r4-i686-Intel-R-_Pentium-R-_4_CPU_3.00GHz-with-gentoo-2.0.2
Timestamp of tree: Tue, 14 Jun 2011 23:45:01 +0000
app-shells/bash:     4.1_p9
dev-java/java-config: 2.1.11-r3
dev-lang/python:     2.7.1-r1, 3.1.3-r1
dev-util/cmake:      2.8.4-r1
sys-apps/baselayout: 2.0.2
sys-apps/openrc:     0.8.2-r1
sys-apps/sandbox:    2.4
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.5
sys-devel/gcc-config: 1.4.1-r1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.82
sys-kernel/linux-headers: 2.6.36.1
sys-libs/glibc:      2.12.2
virtual/os-headers:  0
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/bind /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=pentium4 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://ftp.rnl.ist.utl.pt/pub/gentoo/gentoo-distfiles/ ftp://darkstar.ist.utl.pt/pub/gentoo/ rsync://ftp.rnl.ist.utl.pt/pub/gentoo/gentoo-distfiles/ http://darkstar.ist.utl.pt/gentoo/ ftp://ftp.rnl.ist.utl.pt/pub/gentoo/gentoo-distfiles/"
LANG="pt_PT.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="pt en"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync2.pt.gentoo.org/gentoo-portage"
USE="X acl apache2 bash-completion berkdb blas bzip2 cli cracklib crypt cxx dbus dri emacs f77 fortran gdbm ginac gpm gtk hdf5 iconv icu ifc jpeg kde latex math modules mudflap ncurses nls nptlonly octave openmp pam pcre perl php png pppd python qhull qt3support qt4 readline ruby server session ssl sysfs tcltk tcpd truetype type1 unicode x86 xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="braindump flow karbon kexi kpresenter krita tables words" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="pt en" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Rafał Mużyło 2011-06-15 21:29:51 UTC
What was the output of 'lafilefixer --justfixit' ?

What was the exact failing command ?
Comment 2 tpereira 2011-06-15 21:42:29 UTC
The output of lafilefixer  has 750 lines. I'll post just the following:

orionte tpereira # cat lafilefizer.output |grep libxcb
/usr/lib/libxcb-property.la already clean, skipping update.
/usr/lib/libxcb-event.la already clean, skipping update.
/usr/lib/libxcb-image.la already clean, skipping update.
/usr/lib/libxcb-aux.la already clean, skipping update.
/usr/lib/libxcb-keysyms.la already clean, skipping update.
/usr/lib/libxcb-render-util.la already clean, skipping update.
/usr/lib/libxcb-reply.la already clean, skipping update.
/usr/lib/libxcb-icccm.la already clean, skipping update.
/usr/lib/libxcb-atom.la already clean, skipping update.


I don't exactly understand what you mean by "exact failing command", but when i try to emerge app-text/xdvik, it fails here:


/bin/sh ../libtool --mode=link gcc -o xdvi-xaw -Wl,-O1 -Wl,--as-needed   browser.o dl_list.o dvi-draw.o dvi-init.o dvisel.o encodings.o events.o exit-handlers.o filehist.o font-open.o gf.o string_list.o hypertex.o image-magick.o main.o mime.o my-snprintf.o my-vsnprintf.o pagehist.o pk.o print-internal.o psdps.o psgs.o psheader.o psnews.o read-mapfile.o search-internal.o special.o string-utils.o tfmload.o util.o vf.o xdvi.o xserver-info.o x_util.o ./gui/libgui.a -lt1 -lkpathsea -Xlinker --allow-multiple-definition  -lXaw -lXmu -lXt -lSM -lICE -lXp -lXext -lXpm -lX11    -lm  
mkdir .libs
libtool: link: cannot find the library `/usr/lib/libxcb.la'
make: *** [xdvi-xaw] Error 1
emake failed
Comment 3 tpereira 2011-06-15 22:08:57 UTC
I forgot to say that all the 750 lines of lafilefixer's output are of the type:
/some_lib already clean, skipping update.
Comment 4 Rafał Mużyło 2011-06-16 00:46:31 UTC
I'm not asking about a grep, just the final few lines.

As for the command, that just might have been it.

Check the la files of libs listed in that command, though even if you find the problem there, it seems that something is still wrong, cause either lafilefixer or revdep-rebuild should have fixed it.

Any chance of you having trash in /usr/local ?
Comment 5 tpereira 2011-06-16 12:10:53 UTC
Ok! In fact, there was some trash there.
I deleted from /usr/local/, what I found to be orphan with qfile -o /usr/local/* and it was then possible to emerge app-text/xdvik.

Thanks for your assistance.

This was not the first time I had problems with old files left in the file system.
Is there a way of solving this kind of thing without having to do qfile -o /.../* to every directory?
Furthermore, qfile doesn't consider some symbolic links to be part of packages, when in fact, they are needed. I already had problems after deleting some links that, accordingly to qfile, were orphan.
Comment 6 Jeroen Roovers (RETIRED) gentoo-dev 2011-06-16 16:15:52 UTC
If you find an ebuild that installs files into /usr/local, then please reopen this bug report.