Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 195144 - app-benchmark/bashmark-0.6.2 does not build with --as-needed
Summary: app-benchmark/bashmark-0.6.2 does not build with --as-needed
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Stefan Schweizer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: as-needed
  Show dependency tree
 
Reported: 2007-10-08 20:20 UTC by Andrei Slavoiu
Modified: 2007-10-12 20:24 UTC (History)
1 user (show)

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


Attachments
bashmark-0.6.2-as-needed.patch (bashmark-0.6.2-as-needed.patch,362 bytes, patch)
2007-10-08 20:21 UTC, Andrei Slavoiu
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andrei Slavoiu 2007-10-08 20:20:56 UTC
When building bashmark with --as-needed in LD_FLAGS it gives errors like:
Benchmark.o: In function `ThreadCreate<Thread_Helper<short unsigned int, 50u>*>':
/var/tmp/portage/app-benchmarks/bashmark-0.6.2/work/bashmark-0.6.2/Thread.hpp:41: undefined reference to `pthread_create'
Benchmark.o: In function `ThreadWaitFor':
/var/tmp/portage/app-benchmarks/bashmark-0.6.2/work/bashmark-0.6.2/Thread.hpp:49: undefined reference to `pthread_join'

Reproducible: Always
Comment 1 Andrei Slavoiu 2007-10-08 20:21:57 UTC
Created attachment 132959 [details, diff]
bashmark-0.6.2-as-needed.patch

Patch that fixes the problem
Comment 2 Andrei Slavoiu 2007-10-08 20:29:57 UTC
My emerge --info, just in case:

Portage 2.1.3.12 (default-linux/amd64/2007.0/desktop, gcc-4.2.1, glibc-2.6.1-r0, 2.6.22-gentoo-r8 x86_64)
=================================================================
System uname: 2.6.22-gentoo-r8 x86_64 AMD Athlon(tm) 64 Processor 2800+
Timestamp of tree: Sun, 07 Oct 2007 11:20:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.5.1-r2
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.10-r5
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r3
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.22-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -ggdb -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /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=athlon64 -ggdb -O2"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y"
FEATURES="buildpkg ccache collision-protect distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms splitdebug strict unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://gentoo.romnet.org/gentoo http://distfiles.gentoo.org"
LANG="ro_RO.UTF-8"
LC_ALL="ro_RO.UTF-8"
LDFLAGS="-Wl,-O1,--enable-new-dtags,--sort-common,-z,combreloc,--as-needed"
LINGUAS="ro en eo"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/sunrise /usr/portage/local/layman/kde /usr/local/portage"
SYNC="rsync://rsync.ro.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext 3ds 7zip X a52 aac aalib accessibility acl acpi aiglx akode alsa amd64 amr amrnb amrwb apache2 asf audiofile bash-completion berkdb bitmap-fonts branding bzip2 caps cddb cdinstall cdparanoia cdr cisco clamav cracklib crypt css cups curl dba dbus dga djvu dmi doc dpms dri dts dv dvd dvdr dvdread eds emboss encode erandom evo examples exif expat fam fbcon ffmpeg firefox flac ftp gcj gd gdbm geoip gif glib glut gmp gnokii gnutls gpm graphviz hal hddtemp hou iconv idn imagemagick ipv6 isdnlog java javascript jingle jpeg jpeg2k justify kde kdeenablefinal kdehiddenvisibility kerberos kig-scripting kipi kqemu lame lcms ldap libcaca libclamav lirc live lm_sensors lua lzo mad maildir matroska mbrola midi mikmod mjpeg mmap mmx mmxext mng mp3 mp4 mplayer mppe-mppc mudflap musepack musicbrainz mythtv ncurses network nls nodrm nowin nptl nptlonly offensive ofx ogg openal openexr opengl openmp pam pch pcre pdf perl php physfs plugins png posix povray ppds pppd python qt3 qt3support qt4 quicktime rdesktop readline reflection reiserfs rtc ruby samba sasl scanner sdl session slang sms sockets sou sox speex spell spl sqlite sqlite3 sse sse2 ssl subversion svg symlink syslog sysvipc tcpd theora threads tidy tiff truetype truetype-fonts type1-fonts unicode usb v4l v4l2 videos visualization voice vorbis wifi wmf x264 xattr xcomposite xine xml xml2 xmlrpc xorg xpm xsl xv xvid xvmc zeroconf zip zlib zvbi" ALSA_CARDS="bt87x via82xx" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ro en eo" LIRC_DEVICES="kworld" USERLAND="GNU" VIDEO_CARDS="radeon v4l vesa"
Unset:  CTARGET, INSTALL_MASK, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 3 Stefan Schweizer (RETIRED) gentoo-dev 2007-10-12 20:24:15 UTC
thank ou, fixed