Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 246748 - dev-libs/libxslt-1.1.24-r1 has undefined references
Summary: dev-libs/libxslt-1.1.24-r1 has undefined references
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High QA (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 246757
  Show dependency tree
 
Reported: 2008-11-14 16:07 UTC by Robert Wohlrab
Modified: 2012-02-03 14:10 UTC (History)
0 users

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


Attachments
libxslt-1.1.24-r1.ebuild.diff (libxslt-1.1.24-r1.ebuild.diff,618 bytes, patch)
2009-07-03 11:02 UTC, Christian Ruppert (idl0r)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Wohlrab 2008-11-14 16:07:22 UTC
I checked the package for undefined reference and got undefined reference. For
testing purposes LDFLAGS in /etc/make.conf was changed to
 LDFLAGS="${LDFLAGS} -Wl,-z,-defs -Wl,--no-undefined"
The reported problem is in most cases a upstream problem - please report it
upstream if it is so. Please use the man page to find the needed library. For
example dlsym would need '-ldl' (libld.so) or cosf need '-lm' (libm.so).

Current results are following:
------------------------------
libtool: link: x86_64-pc-linux-gnu-gcc -shared  .libs/libxslt.o .libs/types.o .libs/libxslt-py.o   -Wl,-rpath -Wl,/var/tmp/portage/dev-libs/libxslt-1.1.24-r1/work/libxslt-1.1.24/libxslt/.libs -Wl,-rpath -Wl,/var/tmp/portage/dev-libs/libxslt-1.1.24-r1/work/libxslt-1.1.24/libexslt/.libs -L/var/tmp/portage/dev-libs/libxslt-1.1.24-r1/work/libxslt-1.1.24/libxslt/.libs ../libxslt/.libs/libxslt.so -L/usr/lib64 ../libexslt/.libs/libexslt.so /usr/lib64/libgcrypt.so /usr/lib64/libgpg-error.so /var/tmp/portage/dev-libs/libxslt-1.1.24-r1/work/libxslt-1.1.24/libxslt/.libs/libxslt.so /usr/lib64/libxml2.so -ldl -lz -lm  -Wl,-O1 -Wl,-z -Wl,-defs -Wl,--no-undefined   -Wl,-soname -Wl,libxsltmod.so -o .libs/libxsltmod.so
.libs/libxslt.o: In function `initlibxsltmod':
libxslt.c:(.text+0xa1): undefined reference to `Py_InitModule4_64'
.libs/libxslt.o: In function `libxslt_xsltErrorFuncHandler':
libxslt.c:(.text+0x211): undefined reference to `PyTuple_New'
libxslt.c:(.text+0x225): undefined reference to `PyTuple_SetItem'
libxslt.c:(.text+0x24d): undefined reference to `PyTuple_SetItem'
libxslt.c:(.text+0x25e): undefined reference to `PyEval_CallObjectWithKeywords'
[...]
.libs/libxslt-py.o: In function `libxslt_xsltParseStylesheetImportedDoc':
libxslt-py.c:(.text+0x2c8b): undefined reference to `PyArg_ParseTuple'
libxslt-py.c:(.text+0x2c9d): undefined reference to `_Py_NoneStruct'
collect2: ld returned 1 exit status
make[3]: *** [libxsltmod.la] Error 1
make[3]: Leaving directory `/var/tmp/portage/dev-libs/libxslt-1.1.24-r1/work/libxslt-1.1.24/python'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/dev-libs/libxslt-1.1.24-r1/work/libxslt-1.1.24/python'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/dev-libs/libxslt-1.1.24-r1/work/libxslt-1.1.24'
make: *** [all] Error 2


Portage 2.2_rc14 (default/linux/amd64/2008.0, gcc-4.3.1, glibc-2.8_p20080602-r0, 2.6.26-1-amd64 x86_64)
=================================================================
System uname: Linux-2.6.26-1-amd64-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_4200+-with-glibc2.2.5
Timestamp of tree: Fri, 14 Nov 2008 12:07:01 +0000
app-shells/bash:     3.2_p39
dev-lang/python:     2.5.2-r8
dev-util/cmake:      2.6.1
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.3.0-r1
sys-apps/sandbox:    1.2.18.1-r3
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.5, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.19
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,-z,-defs -Wl,--no-undefined"
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"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl amd64 berkdb bzip2 cli cracklib crypt cups dri fortran gdbm gpm iconv ipv6 isdnlog midi minimal mmx mudflap multilib ncurses nls nptl nptlonly openmp pam pcre perl pppd python readline reflection session spl sse sse2 ssl sysfs tcpd unicode 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 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 intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa vga via vmware voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Gilles Dartiguelongue (RETIRED) gentoo-dev 2008-11-30 11:08:29 UTC
changing severity for easier searching.
Comment 2 Christian Ruppert (idl0r) gentoo-dev 2009-07-03 11:02:09 UTC
Created attachment 196504 [details, diff]
libxslt-1.1.24-r1.ebuild.diff

Fixes the issue mentioned in #c1.
Comment 3 Samuli Suominen (RETIRED) gentoo-dev 2009-10-07 15:32:11 UTC
It wasn't included in 1.1.26 because noone reported it.(In reply to comment #2)
> Created an attachment (id=196504) [details]
> libxslt-1.1.24-r1.ebuild.diff
> 
> Fixes the issue mentioned in #c1.
> 

Converted your sed into a patch so I can report this upstream,

+  07 Oct 2009; Samuli Suominen <ssuominen@gentoo.org> libxslt-1.1.26.ebuild,
+  +files/libxslt-1.1.26-undefined.patch:
+  Fix linking with -Wl,--no-undefined wrt #246748 by Christian Ruppert.