Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 409959 - sys-libs/libsemanage-2.1.0 - semanageswig_wrap.c:(.text+0x16e16): undefined reference to `PyCObject_Import'
Summary: sys-libs/libsemanage-2.1.0 - semanageswig_wrap.c:(.text+0x16e16): undefined r...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Sven Vermeulen (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-28 08:25 UTC by Krzysztof
Modified: 2012-04-05 16:49 UTC (History)
1 user (show)

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


Attachments
Complete build.log (build.log,21.92 KB, text/plain)
2012-03-28 12:59 UTC, Krzysztof
Details
The complete build log (build.log,27.41 KB, text/plain)
2012-04-02 09:18 UTC, Krzysztof
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Krzysztof 2012-03-28 08:25:59 UTC
emerge always ends like this

x86_64-pc-linux-gnu-gcc -march=core2 -O2 -pipe -I../include -I/usr/include -D_GNU_SOURCE  -Wl,-O1 -Wl,--as-needed -shared -o _semanage.so semanageswig_wrap.lo -L. -lsemanage -lpython3.2 -L/usr/lib -Wl,-soname,_semanage.so,-z,defs
semanageswig_wrap.lo: In function `PyInit__semanage':
semanageswig_wrap.c:(.text+0x16e16): undefined reference to `PyCObject_Import'
semanageswig_wrap.c:(.text+0x16e5d): undefined reference to `PyCObject_FromVoidPtr'
collect2: ld returned 1 exit status
make: *** [_semanage.so] Error 1


emerge --info =sys-libs/libsemanage-2.1.0

Portage 2.1.10.49 (hardened/linux/amd64/no-multilib/selinux, gcc-4.5.3, glibc-2.13-r4, 3.2.12-gentoo x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.2.12-gentoo-x86_64-Intel-R-_Xeon-R-_CPU_3065_@_2.33GHz-with-gentoo-2.0.3
Timestamp of tree: Wed, 28 Mar 2012 00:45:01 +0000
app-shells/bash:          4.2_p20
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r3, 3.2.2
dev-util/cmake:           2.8.6-r4
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.9.8.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.68
sys-devel/automake:       1.11.1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.5.3-r2
sys-devel/gcc-config:     1.5-r2
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 3.1 (virtual/os-headers)
sys-libs/glibc:           2.13-r4
Repositories: gentoo
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /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"
CXXFLAGS="-march=core2 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox selinux sesandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en pl"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 berkdb bzip2 cli cracklib crypt cups cxx dri gdbm gnutls gpm hardened iconv ipv6 jbig jpeg jpeg2k justify mmx modules mudflap ncurses nls nptl nptlonly open_perms openmp pam pax_kernel pcre png pppd readline selinux session sse sse2 ssl sysfs tcpd tiff unicode urandom xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci 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 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 userdirusertrack vhost_alias auth_digest proxy proxy_http" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" 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 evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en pl" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy 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, LANG, LC_ALL, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

sys-libs/libsemanage-2.1.0 was built with the following:
USE="(python) (selinux) -ruby"
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2012-03-28 12:32:29 UTC
Please attach the entire build log to this bug report.
Comment 2 Krzysztof 2012-03-28 12:59:39 UTC
Created attachment 306963 [details]
Complete build.log
Comment 3 Krzysztof 2012-03-28 13:00:17 UTC
This is paravirt OS, if it has any meaning
Comment 4 Sven Vermeulen (RETIRED) gentoo-dev 2012-04-01 17:43:50 UTC
Hmm, my builds don't try Python 3.2, only 3.1. Lemme see if I can reproduce by removing python 3.1 from a system.
Comment 5 Sven Vermeulen (RETIRED) gentoo-dev 2012-04-01 17:55:21 UTC
Nope, can't seem to reproduce. Any chance for you that you can try out the libsemanage-2.1.6 version (it'll ask for ~arch'ing other selinux-related packages as well though)?
Comment 6 Krzysztof 2012-04-02 09:15:34 UTC
no problem, as this is xen I can clone VM to test stuff

same old, samee old

x86_64-pc-linux-gnu-gcc -march=core2 -O2 -pipe -I../include -I/usr/include -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64  -fPIC -Wl,-O1 -Wl,--as-needed -shared -o python-3.2_selinux.so python-3.2selinuxswig_wrap.lo -L. -lselinux -L/usr/lib64 -lpython3.2   -Wl,-soname,python-3.2_selinux.so,-z,defs
python-3.2selinuxswig_wrap.lo: In function `PyInit__selinux':
selinuxswig_wrap.c:(.text+0x21aa7): undefined reference to `PyCObject_Import'
selinuxswig_wrap.c:(.text+0x21aee): undefined reference to `PyCObject_FromVoidPtr'
collect2: ld returned 1 exit status
make: *** [python-3.2_selinux.so] Error 1

this time @ sys-libs/libselinux-2.1.9

Do you think there is something wrong with my python installation?
Comment 7 Krzysztof 2012-04-02 09:18:45 UTC
Created attachment 307459 [details]
The complete build log
Comment 8 Jörg 2012-04-02 12:26:22 UTC
I can confirm this bug.

My emerge fails exactly at the same point:

x86_64-pc-linux-gnu-gcc -march=native -O2 -pipe -fomit-frame-pointer -I../include -I/usr/include -D_GNU_SOURCE  -Wl,-O1 -Wl,--as-needed -shared -o _semanage.so semanageswig_wrap.lo -L. -lsemanage -lpython3.2 -L/usr/lib -Wl,-soname,_semanage.so,-z,defs
semanageswig_wrap.lo: In function `PyInit__semanage':
semanageswig_wrap.c:(.text+0x1669e): undefined reference to `PyCObject_Import'
semanageswig_wrap.c:(.text+0x166e5): undefined reference to `PyCObject_FromVoidPtr'
collect2: ld returned 1 exit status
make: *** [_semanage.so] Error 1
emake failed
Comment 9 Krzysztof 2012-04-02 13:29:36 UTC
I think SOLVED. This is somehow related to [Python] wrapper does not compile with python 3.2 - ID: 3057804.

For some reason emerge -uDNv world, with portage timestamp Mon, 02 Apr 2012 00:45:01 +0000, does not pull dev-lang/swig-2.0.4-r1.

I had dev-lang/swig-2.0.2.

When I did emerge -v swig, it emerged dev-lang/swig-2.0.4-r1 and now everything compiles fine. I supose I update too often ;)

The unanswered question is: why emerge didn't pull new swig, while it was available in portage tree?
Comment 10 Krzysztof 2012-04-02 13:49:19 UTC
OK, there is no dev-lang/swig entry in /var/lib/portage/world, and sys-libs/libsemanage does not have dependency on swig package, with fixed "[Python] wrapper does not compile with python 3.2 - ID: 3057804".

So we're happy and we can close this.

Thanks for everyone's time.
Comment 11 Sven Vermeulen (RETIRED) gentoo-dev 2012-04-03 07:24:50 UTC
I'll have it depend on the recent swig version then, thanks
Comment 12 Sven Vermeulen (RETIRED) gentoo-dev 2012-04-05 16:49:48 UTC
Fixed in CVS