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

Bug 234273

Summary: sys-libs/libcap - include/sys/capability.hswig: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory
Product: Gentoo Linux Reporter: gentoo
Component: New packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED NEEDINFO    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description gentoo 2008-08-08 21:09:39 UTC
As part of the recent update, I ran python-updater which said it wanted to upgrade libcap, but it never completes because the compile fails.

Reproducible: Always

Steps to Reproduce:
Run python-updater -i

Actual Results:  
jlandes@wynnfieldcapital.com

Expected Results:  
gcc -Dlinux -D_POSIX_SOURCE -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wtraditional -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -pedantic -g  -march=athlon -O3 -pipe -I/usr/include/python2.5 -I/var/tmp/portage/sys-libs/libcap-1.10-r11/work/libcap-1.10/libcap/include -c cap_sys.c -o cap_sys.oIn file included from cap_sys.c:10:libcap.h:57:3: warning: suggest hiding #error from traditional C with an indented #libcap.h:58:3: warning: suggest hiding #error from traditional C with an indented #libcap.h:101:25: warning: ISO C does not permit named variadic macrosar csruv libcap.a cap_alloc.o cap_proc.o cap_extint.o cap_flag.o cap_text.o cap_sys.oa - cap_alloc.oa - cap_proc.oa - cap_extint.oa - cap_flag.oa - cap_text.oa - cap_sys.oswig -python -o libcap_wrap.c include/sys/capability.hswig: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directorymake[1]: *** [libcap_wrap.c] Error 127make[1]: Leaving directory `/var/tmp/portage/sys-libs/libcap-1.10-r11/work/libcap-1.10/libcap'make: *** [all] Error 2 * * ERROR: sys-libs/libcap-1.10-r11 failed. * Call stack: *               ebuild.sh, line   49:  Called src_compile *             environment, line 2576:  Called die * The specific snippet of code: *       emake COPTFLAG="${CFLAGS}" LDFLAGS="${LDFLAGS}" ${myflags} || die
 *  The die message:
 *   (no error message)
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/log/portage/sys-libs:libcap-1.10-r11:20080808-201349.log'. * The ebuild environment file is located at '/var/tmp/portage/sys-libs/libcap-1.10-r11/temp/environment'. *


# emerge --info

Portage 2.1.4.4 (default/linux/x86/2008.0/server, gcc-4.1.2, glibc-2.6.1-r0, 2.6.24-gentoo-r8 i686)
=================================================================
System uname: 2.6.24-gentoo-r8 i686 AMD Athlon(tm) MP 1600+
Timestamp of tree: Thu, 07 Aug 2008 18:45:01 +0000
app-shells/bash:     3.2_p33
dev-lang/python:     2.4.4-r14, 2.5.2-r6
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r2
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon -O3 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"CXXFLAGS="-march=athlon -O3 -pipe"DISTDIR="/usr/portage/distfiles"FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo http://mirror.datapipe.net/gentoo http://mirrors.acm.cs.rpi.edu/gentoo/"LDFLAGS="-Wl,-O1"MAKEOPTS="-j3"PKGDIR="/usr/portage/packages"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"PORTDIR_OVERLAY="/usr/local/portage"SYNC="rsync://eskimo.bway.net/gentoo-portage"USE="acl apache2 bash-completion berkdb bzip2 cli cracklib crypt dri gdbm iconv ipv6 isdnlog ithreads mailwrapper midi mmx mudflap mysql ncurses nls nptl nptlonly openmp pam pcre perl pppd python readline reflection session snmp spl ssl sysfs tcpd threads truetype unicode x86 xml 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 auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="fbdev glint i810 mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa vga via vmware voodoo"Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2008-08-09 05:18:57 UTC
Could you try and update dev-lang/swig first, please?
Comment 2 gentoo 2008-08-09 18:39:16 UTC
It already looks like its up-to-date:

# eix swig
[I] dev-lang/swig
     Available versions:  1.3.31 ~1.3.33 1.3.34 ~1.3.35 ~1.3.36 {R chicken clisp doc guile java lua mono mzscheme ocaml octave perl php pike python ruby tcl tk}
     Installed versions:  1.3.34(13:20:02 04/15/08)(perl python -R -chicken -clisp -doc -guile -java -lua -mono -mzscheme -ocaml -php -pike -ruby -tcl -tk)
     Homepage:            http://www.swig.org/
     Description:         Simplified Wrapper and Interface Generator


Comment 3 Santiago M. Mola (RETIRED) gentoo-dev 2008-08-12 09:56:30 UTC
Please, try to rebuild swig anyway or run a revdep-rebuild and then try again.
Comment 4 gentoo 2008-08-18 16:08:23 UTC
I rebuilt swig and did a revdep-rebuild.

Afterwards, I ran python-updater -i:

gcc -Dlinux -D_POSIX_SOURCE -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wtraditional -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -pedantic -g  -march=athlon -O3 -pipe -I/usr/include/python2.5 -I/var/tmp/portage/sys-libs/libcap-1.10-r11/work/libcap-1.10/libcap/include -c cap_sys.c -o cap_sys.o
In file included from cap_sys.c:10:
libcap.h:57:3: warning: suggest hiding #error from traditional C with an indented #
libcap.h:58:3: warning: suggest hiding #error from traditional C with an indented #
libcap.h:101:25: warning: ISO C does not permit named variadic macros
ar csruv libcap.a cap_alloc.o cap_proc.o cap_extint.o cap_flag.o cap_text.o cap_sys.o
a - cap_alloc.o
a - cap_proc.o
a - cap_extint.o
a - cap_flag.o
a - cap_text.o
a - cap_sys.o
swig -python -o libcap_wrap.c include/sys/capability.h
swig: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory
make[1]: *** [libcap_wrap.c] Error 127
make[1]: Leaving directory `/var/tmp/portage/sys-libs/libcap-1.10-r11/work/libcap-1.10/libcap'
make: *** [all] Error 2
 * 
 * ERROR: sys-libs/libcap-1.10-r11 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2576:  Called die
 * The specific snippet of code:
 *       emake COPTFLAG="${CFLAGS}" LDFLAGS="${LDFLAGS}" ${myflags} || die
 *  The die message:
 *   (no error message)
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/log/portage/sys-libs:libcap-1.10-r11:20080818-160440.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-libs/libcap-1.10-r11/temp/environment'.
 *