Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 494450 - app-emulation/libcacard-0.1.2 - ld: vscclient.o: undefined reference to symbol 'pthread_c reate@@GLIBC_2.2.5'
Summary: app-emulation/libcacard-0.1.2 - ld: vscclient.o: undefined reference to symbo...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Tiziano Müller (RETIRED)
URL:
Whiteboard:
Keywords:
: 498298 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-12-16 15:02 UTC by Fabio Coatti
Modified: 2016-02-21 22:38 UTC (History)
4 users (show)

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


Attachments
build.log (build.log,12.46 KB, text/plain)
2013-12-17 08:57 UTC, Fabio Coatti
Details
plaudis output log (1390142922-install-app-emulation_libcacard-0.1.2.out,13.05 KB, text/plain)
2014-01-19 14:07 UTC, Christoph Löhr
Details
libcacard.patch (libcacard.patch,857 bytes, patch)
2014-08-10 19:54 UTC, Ted Tanberry
Details | Diff
libcacard-0.1.2-underlinking.patch (libcacard-0.1.2-underlinking.patch,407 bytes, patch)
2014-08-10 19:56 UTC, Ted Tanberry
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Fabio Coatti 2013-12-16 15:02:05 UTC
I'm trying to emerge libcacard but the result is not good:

libtool: link: (cd ".libs" && rm -f "libcacard.so" && ln -s "libcacard.so.0.0.0" "libcacard.so")
libtool: link: ( cd ".libs" && rm -f "libcacard.la" && ln -s "../libcacard.la" "libcacard.la" )
/bin/sh ./libtool --tag=CC   --mode=link x86_64-pc-linux-gnu-gcc  -march=native -mtune=native -O2 -pipe   -Wl,-O1 -Wl,--as-needed -o vscclient vscclient.o  ./libcacard.la  
libtool: link: x86_64-pc-linux-gnu-gcc -march=native -mtune=native -O2 -pipe -Wl,-O1 -Wl,--as-needed -o .libs/vscclient vscclient.o  ./.libs/libcacard.so -lssl3 -lsmime3 -lnss3 -lnssutil3 -lplds4 -lplc4 -lnspr4
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/../../../../x86_64-pc-linux-gnu/bin/ld: vscclient.o: undefined reference to symbol 'pthread_create@@GLIBC_2.2.5'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/../../../../x86_64-pc-linux-gnu/bin/ld: note: 'pthread_create@@GLIBC_2.2.5' is defined in DSO /lib64/libpthread.so.0 so try adding it to the linker command line
/lib64/libpthread.so.0: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
Makefile:441: recipe for target 'vscclient' failed
make[1]: *** [vscclient] Error 1
make[1]: Leaving directory '/var/tmp/portage/app-emulation/libcacard-0.1.2/work/libcacard-0.1.2'
Makefile:307: recipe for target 'all' failed
make: *** [all] Error 2
 * ERROR: app-emulation/libcacard-0.1.2::gentoo failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=app-emulation/libcacard-0.1.2::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=app-emulation/libcacard-0.1.2::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/app-emulation/libcacard-0.1.2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-emulation/libcacard-0.1.2/temp/environment'.
 * Working directory: '/var/tmp/portage/app-emulation/libcacard-0.1.2/work/libcacard-0.1.2'
 * S: '/var/tmp/portage/app-emulation/libcacard-0.1.2/work/libcacard-0.1.2'


Reproducible: Always




Portage 2.2.7 (default/linux/amd64/13.0/desktop/kde, gcc-4.8.2, glibc-2.17, 3.12.5 x86_64)
=================================================================
System uname: Linux-3.12.5-x86_64-Intel-R-_Core-TM-_i5-3427U_CPU_@_1.80GHz-with-gentoo-2.2
KiB Mem:     8095464 total,   1462924 free
KiB Swap:    8386556 total,   8284032 free
Timestamp of tree: Mon, 16 Dec 2013 07:15:01 +0000
ld ld di GNU (GNU Binutils) 2.23.2
app-shells/bash:          4.2_p45
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.6, 3.2.5-r3, 3.3.3
dev-util/cmake:           2.8.12.1-r2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.6, 1.13.4, 1.14
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.8.2
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.12 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo rion overlay
Installed sets: @kde-4.11
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -mtune=native -O2 -pipe "
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/easy-rsa /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /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="-march=native -mtune=native -O2 -pipe "
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="it_IT.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-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="/var/lib/layman/rion /usr/overlay"
USE="3dnow 3dnowext 3dnowprefetch X \ a52 aac aalib acl acpi aim alsa amd64 apng ares asf ati audio audiofile avahi bash-completion berkdb bidi bl bluetooth branding bri bzip2 cairo caps ccdda cdda cdr cjk cli consolekit cracklib crypt cups curl cxx dba dbus declarative device-mapper dga divx divx4linux dparanoia dri dts dv dvb dvd dvdr dvdread eap-sim edl embedded emboss encode ethereal exif expat faad fam fame fbcon ffmpeg fftw firefox flac force-cgi-redirect fortran ftp gallium garmin gd gdbm gif gimp gmedia gmp gnutls gphoto2 gpm gps gsm gtk h264 h323 iconv icq icu idn ifp ilbc imagemagick imap innodb ipod iproute2 ipv6 ithreads jabber java javascript joystick jpeg kde kipi kontact kvm lastfm lcms ldap libcaca libnotify libvirtd live lm_sensors lua lvm lxc lzma lzo mad maildir matroska mbox mdnsresponder-compat mhash mime mjpeg mmap mmx mmxext mng modules mozdevelop mozilla mp3 mp4 mpeg msn mtp mudflap multilib mysql ncurses nepomuk network networkmanager new-hpcups nfsv4 njb nls nptl nptlonly nsplugin offensive ofx ogg oggvorbis ogm openal openexr opengl openmp oscar pam pango parted pcap pcre pdf phonon php plasma plotutils png policykit ppds pulseaudio qemu qt3support qt4 readline real rtc ruby samba sasl sdl semantic-desktop session sha512 sip slang slp smartcard sndfile snmp sox speex spell srt sse sse2 ssh ssl ssse3 startup-notification svg symlink tcltk tcpd theora threads tiff tk tremor truetype udev udisks unicode upower usb utempter v4l v4l2 vaapi vcd vde vhosts video videos vim-syntax virt-network virtualbox vorbis wav webkit wifi wimax wmf wmp wps wxwidgets wxwindows x264 xanim xattr xcb xcomposite xface xft xine xinerama xml xosd xpm xscreensaver xsl xulrunner xv xvid zlib zpm" ABI_X86="64" 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" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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="kexi words flow plan sheets stage tables krita karbon braindump author" 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 ublox ubx" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="it en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby19 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, SYNC, USE_PYTHON
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2013-12-16 19:55:29 UTC
Please attach the entire build log to this bug report.
Comment 2 Fabio Coatti 2013-12-17 08:57:04 UTC
Created attachment 365518 [details]
build.log

Build log
Comment 3 Berthold Humkamp 2014-01-03 20:47:12 UTC
same problem here: gcc-4.7.3 on mostly stable amd64-multilib system
Comment 4 Christoph Löhr 2014-01-19 14:06:14 UTC
same problem here: 
gcc-4.7.3 on stable amd64-multilib system
gcc-4.7.3 on stable hardened amd64-multilib system
Comment 5 Christoph Löhr 2014-01-19 14:07:42 UTC
Created attachment 368152 [details]
plaudis output log
Comment 6 Tiziano Müller (RETIRED) gentoo-dev 2014-06-19 13:30:14 UTC
*** Bug 498298 has been marked as a duplicate of this bug. ***
Comment 7 Ted Tanberry 2014-08-10 19:54:35 UTC
Created attachment 382638 [details, diff]
libcacard.patch

Update the ebuild to EAPI=5 paradigms and include patch. With the underlinking patch this should solve it.
Comment 8 Ted Tanberry 2014-08-10 19:56:30 UTC
Created attachment 382640 [details, diff]
libcacard-0.1.2-underlinking.patch

I've solved the pthread underlinking issue by a mere inclusion of an AC_SEARCH_LIBS. This is not the most elegant/portable way of testing for libpthread, which should optimally be done with AX_PTHREAD from the archive, but whatever.
Comment 9 Bertrand Jacquin 2015-01-17 16:37:31 UTC
Can we have an update from a developer on that bug ?
Comment 10 David Seifert gentoo-dev 2016-02-21 22:38:46 UTC
commit 53e73ee4e31a603d3b067a7090ef73f683c70626
Author: David Seifert <soap@gentoo.org>
Date:   Sun Feb 21 23:37:29 2016 +0100

    app-emulation/libcacard: Detect libpthread flags properly
    
    Gentoo-Bug: 494450
    * EAPI=6
    * Unconditionally delete .la files, due to provided
      pkg-config file