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

Bug 464046

Summary: net-print/cups-1.7.1 fails to build with USE="-threads"
Product: Gentoo Linux Reporter: Patrick Lauer <patrick>
Component: New packagesAssignee: Printing Team <printing>
Status: RESOLVED FIXED    
Severity: normal CC: gentoo+bugs, petr.pisar, rhill, tdalman
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 372079    
Attachments: emerge --info
cups-1.6.2-r4:20130514-013613.log

Description Patrick Lauer gentoo-dev 2013-04-01 07:40:31 UTC
Compiling socket.c...
lpd.c: In function ‘main’:
lpd.c:484:12: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
       write(fd, buffer, bytes);
            ^
ipp.c: In function ‘sigterm_handler’:
ipp.c:3132:8: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
   write(2, "DEBUG: Got SIGTERM.\n", 20);
        ^
ipp.c:3148:10: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
     write(2, "DEBUG: job_canceled = 1.\n", 25);
          ^
snmp.c: In function ‘alarm_handler’:
snmp.c:458:10: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
     write(2, "DEBUG: ALARM!\n", 14);
          ^
Compiling usb.c...
snmp.c: At top level:
cc1: warning: unrecognized command line option "-Wno-tautological-compare" [enabled by default]
Archiving libbackend.a...
lpd.c: At top level:
cc1: warning: unrecognized command line option "-Wno-tautological-compare" [enabled by default]
a - ieee1284.o
a - network.o
a - runloop.o
a - snmp-supplies.o
Linking lpd...
Linking snmp...
Linking socket...
Linking usb...
ipp.c: At top level:
cc1: warning: unrecognized command line option "-Wno-tautological-compare" [enabled by default]
Linking ipp...
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.0/../../../../x86_64-pc-linux-gnu/bin/ld: usb.o: undefined reference to symbol 'pthread_create@@GLIBC_2.2.5'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.0/../../../../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
make[1]: *** [usb] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [all] Error 1
 * ERROR: net-print/cups-1.6.2 failed (compile phase):
 *   emake failed

Portage 2.1.11.59 (default/linux/amd64/13.0, gcc-4.8.0, glibc-2.17, 3.7.9-vs2.3.5.6 x86_64)
=================================================================
System uname: Linux-3.7.9-vs2.3.5.6-x86_64-AMD_Phenom-tm-_II_X4_965_Processor-with-gentoo-2.2
KiB Mem:     7921088 total,    593060 free
KiB Swap:   25165812 total,  24580064 free
Timestamp of tree: Unknown
ld GNU ld (GNU Binutils) 2.23.2
app-shells/bash:          4.2_p45
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.7.3-r3, 3.2.3-r2
dev-util/cmake:           2.8.10.2-r1
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.12.6, 1.13.1
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.8.0::hardened-dev
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.8 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo hardened-dev
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/entropy /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.0/conf /usr/share/polkit-1/actions /usr/share/themes/oxygen-gtk/gtk-2.0 /var/lib/hsqldb"
CONFIG_PROTECT_MASK="${EPREFIX}/etc/gconf /etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.4/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 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms strict test unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://ftp.lecl.net/pub/gentoo/ http://ftp.lecl.net/pub/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
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="/var/lib/layman/hardened-development"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl amd64 berkdb bzip2 cli cracklib crypt cxx dri egl fortran gdbm gpm iconv ipv6 mmx modules mudflap multilib ncurses nls nptl openmp openvg pam pcre readline session sqlite sse sse2 ssl tcpd unicode xa xvfb zlib" 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" 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="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" 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" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby19" USERLAND="GNU" VIDEO_CARDS="vesa" 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, USE_PYTHON
Comment 1 Ryan Hill (RETIRED) gentoo-dev 2013-04-02 00:32:55 UTC
Works fine here.  Wait til 4.8.0 gets added to the tree and try again.
Comment 2 Tolga Dalman 2013-04-12 18:41:36 UTC
Created attachment 345408 [details]
emerge --info
Comment 3 Tolga Dalman 2013-04-12 18:41:51 UTC
Works perfectly here.
Comment 4 Andreas K. Hüttel archtester gentoo-dev 2013-05-13 20:15:07 UTC
Works perfectly here too.
Ryan, if it fails for you too please re-open and add your log and emerge info as well.
Comment 5 Ryan Hill (RETIRED) gentoo-dev 2013-05-14 01:07:32 UTC
The missing ingredient is binutils-2.23.2 but I can't get it to fail either.  The actual linking command line would be nice.
Comment 6 Ryan Hill (RETIRED) gentoo-dev 2013-05-14 01:15:37 UTC
Ah, got it (for at least one "it", I imagine there are more).

Linking usb...
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.0/../../../../x86_64-pc-linux-gnu/bin/ld: usb.o: undefined reference to symbol 'pthread_create@@GLIBC_2.2.5'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.0/../../../../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
Comment 7 Ryan Hill (RETIRED) gentoo-dev 2013-05-14 01:24:37 UTC
caribou ~ # USE="-threads -usb" FEATURES="-test" e -1 cups 

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] net-print/cups-1.6.2-r4  USE="X dbus filters pam ssl -acl -debug -gnutls -java -kerberos -lprng-compat -python (-selinux) -static-libs -threads* -usb* -xinetd -zeroconf" LINGUAS="-ca -es -fr -ja -ru" 0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB


caribou ~ # emerge --info cups
Portage 2.2.0_alpha174 (default/linux/amd64/13.0/developer, gcc-4.8.0, glibc-2.17, 3.8.11-gentoo x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.8.11-gentoo-x86_64-Intel-R-_Core-TM-_i7-3920XM_CPU_@_2.90GHz-with-gentoo-2.2
KiB Mem:    32597952 total,   3548092 free
KiB Swap:    1048572 total,   1048572 free
Timestamp of tree: Sun, 12 May 2013 07:00:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
ccache version 3.1.9 [enabled]
app-shells/bash:          4.2_p45
dev-java/java-config:     2.2.0
dev-lang/python:          2.6.8-r1, 2.7.4, 3.1.5-r1, 3.2.4
dev-util/ccache:          3.1.9::local
dev-util/cmake:           2.8.10.2-r2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.13.1
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.5.4, 4.6.4, 4.7.3::local, 4.7.4_pre9999::toolchain, 4.8.0, 4.8.1_pre9999::toolchain
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo local gcc-porting toolchain dirtyepic
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -g -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=native -g -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y --quiet-build=n"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs ccache clean-logs compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms sign split-log splitdebug strict test test-fail-continue unknown-features-warn unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org/"
LANG="en_US.utf8"
LC_ALL="en_US.utf8"
LDFLAGS="-Wl,--hash-style=gnu -Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j10 V=1"
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="/home/dirtyepic/overlay /home/dirtyepic/svn/gcc-porting /home/dirtyepic/svn/toolchain /home/dirtyepic/svn/dirtyepic"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acpi alsa amd64 archive avahi avx bash-completion berkdb bzip2 cairo caps cdda cdr cli consolekit cracklib crypt cvs cxx dbus dri dts dvd dvdr egl emboss encode exif fam ffmpeg firefox flac fontconfig gif gmp gold graphite gstreamer gtk gtkstyle hdaps iconv infinality inotify jpeg lastfm libcanberra libffi libnotify lto lzma mad mdnsresponder-compat mmx mmxext modules moodbar mp3 mp4 mpeg multilib ncurses network nntp nptl nsplugin ogg opengl openmp optimized-qmake pam pcre pdf png policykit postproc ppds readline savedconfig sdl session snmp spell sse sse2 sse3 sse4 sse4_1 ssh ssl ssse3 startup-notification subversion svg taglib theora threads thumbnail tiff track-src-odirect truetype tsmuxer twolame udev udis86 udisks unicode upower urandom usb vaapi vdpau vim vim-syntax vorbis vpx wifi wxwidgets x264 xattr xcb xft xml xv xvfb xvid xvmc zlib" ABI_X86="64" ALSA_CARDS="hda-intel" 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="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 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="en en_CA en_US" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_6 python2_7 python3_1 python3_2" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="nvidia" 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"
USE_PYTHON="2.6 2.7 3.1 3.2"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

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

net-print/cups-1.6.2-r4 was built with the following:
USE="X dbus filters pam ssl threads usb -acl -debug -gnutls -java -kerberos -lprng-compat -python (-selinux) -static-libs -xinetd -zeroconf" LINGUAS="-ca -es -fr -ja -ru"
Comment 8 Ryan Hill (RETIRED) gentoo-dev 2013-05-14 01:28:16 UTC
Created attachment 348198 [details]
cups-1.6.2-r4:20130514-013613.log

Note that this version of binutils is masked (for exactly these reasons) so this shouldn't block stabilization of cups-1.6.4.
Comment 9 Ryan Hill (RETIRED) gentoo-dev 2013-05-14 01:47:51 UTC
Also note that USE="usb -threads" also fails in the same way.
Comment 10 Andreas K. Hüttel archtester gentoo-dev 2013-06-26 22:32:45 UTC
*** Bug 471360 has been marked as a duplicate of this bug. ***
Comment 11 Andreas K. Hüttel archtester gentoo-dev 2013-06-26 22:58:22 UTC
> Note that this version of binutils is masked (for exactly these reasons) so
> this shouldn't block stabilization of cups-1.6.4.

Ack.
Comment 12 Marcus Schwartz 2014-02-16 20:35:06 UTC
binutils-2.23.2 is marked stable on amd64 now.  I just encountered this bug trying to build net-print/cups-1.7.1.  So, stable binutils fails to build stable cups, when USE=-threads.
Comment 13 Enne Eziarc 2014-08-31 23:15:24 UTC
I just realised I've had cups 1.7.4 installed for a while with -threads. Time to mark this fixed maybe?
Comment 14 Andreas K. Hüttel archtester gentoo-dev 2014-09-06 18:57:58 UTC
(In reply to Anthony Parsons from comment #13)
> I just realised I've had cups 1.7.4 installed for a while with -threads.
> Time to mark this fixed maybe?

Ook. :)