Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 231772 - sys-power/nut-2.2.2 fails with -Wl,--as-needed - ./.libs/ undefined reference to `TLSv1_client_method'
Summary: sys-power/nut-2.2.2 fails with -Wl,--as-needed - ./.libs/ und...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: Normal enhancement (vote)
Assignee: Robin Johnson
: 248438 (view as bug list)
Depends on:
Blocks: as-needed
  Show dependency tree
Reported: 2008-07-14 15:13 UTC by Alexey Shvetsov
Modified: 2009-04-12 21:18 UTC (History)
3 users (show)

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

build.log (build.log,27.74 KB, text/plain)
2008-07-14 15:14 UTC, Alexey Shvetsov
nut-2.2.2-as-needed.patch (nut-2.2.2-as-needed.patch,9.68 KB, patch)
2008-08-03 16:01 UTC, Gilles Dartiguelongue (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey Shvetsov archtester gentoo-dev 2008-07-14 15:13:54 UTC
Portage 2.2_rc1 (default/linux/amd64/2008.0/desktop, gcc-4.3.1, glibc-2.8_p20080602-r0, 2.6.25-gentoo-r5 x86_64)
System uname: Linux-2.6.25-gentoo-r5-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q6600_@_2.40GHz-with-glibc2.2.5
Timestamp of tree: Mon, 14 Jul 2008 13:34:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.6-r1
dev-lang/python:     2.5.2-r5
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.5
sys-devel/autoconf:  2.13, 2.62-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.4
virtual/os-headers:  2.6.25-r4
ACCEPT_KEYWORDS="amd64 ~amd64"
CFLAGS="-O3 -pipe -march=native -mtune=native -ftree-vectorize"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/4.1/env /usr/kde/4.1/share/config /usr/kde/4.1/shutdown /usr/share/config /var/bind /var/lib/hsqldb"
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/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O3 -pipe -march=native -mtune=native -ftree-vectorize"
FEATURES="ccache distlocks parallel-fetch preserve-libs sandbox sfperms strict unmerge-orphans userfetch"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--as-needed"
LINGUAS="ru en"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTDIR_OVERLAY="/usr/local/portage/layman/desktop-effects /usr/local/portage/layman/science /usr/local/portage/layman/sunrise /usr/local/portage/layman/kdesvn-portage /usr/local/overlays/portage /usr/local/overlays/mpi /usr/local/overlays/cross"
USE="7zip R X Xaw3d a52 aac acl acpi addbookmarks additions administrator akode alias alsa amarok amd64 amr amrnb amrwb apache2 audiofile audit autoreplace bash-completion berkdb big-tables blas branding bzip2 cairo caps catalogs cdr chm cli cluster coda-client coda-server color-console connectionstatus contactnotes contentcache context cracklib crypt cscope css cups curl cviewer cvs cyrillic dbus djvu doc double-precision dri dvd dvdr dvdread emboss emovix enca encode esd exif extra extraengine fam fame fbcondecor ffmpeg fftw firefox fits flac fontconfig fortran fpx ftp fuse games gcc4 gdb gdbm geoip gif gimp git glitz gmp gnutls gphoto2 gpm grace graphics graphviz gs gsl gtk hal history humanities hyperestraier icon iconv ieee1394 imagemagick innodb inode inotify iproute2 ipv6 isdnlog ithreads jadetex java jbig jingle jpeg jpeg2k kde lame lapack latex lcms lesstif libffi libnotify libwww lm_sensors logrotate lyx lzo mad maps mecab midi mikmod mjpeg mmx mng motif mp3 mpeg mpi mplayer mudflap multilib music mysql ncurses neXt nepomuk netcdf newspr nfs nls nova nptl nptlonly nsplugin nxclient odk ogg omega openal openexr opengl openmp oscar pam pch pcre pdf perl pertty php plasma plotutils plugins png pnm postscript povray ppds pppd profile pstricks publishers pulseaudio python q32 qhull qt-copy qt3 qt3support qt4 query-browser quicktime radio rar rdesktop readline reflection resolvconf rtc ruby samba sasl sbcl science sdl sensord session sftp slang slp smp solver soundex speex spell spl sqlite srt sse sse2 ssl ssse3 startup-notification subversion svg svnserve symlink sysfs taglib tcl tcpd teamarena teletext tetex tex4ht theora threads tiff tk translator truetype unicode urandom usb utempter valgrind vboxbfe vhosts vim vim-syntax vnc vorbis webdav webpresence wmf workbench wxwindows x264 x86emu xattr xcb xcomposite xen xetex xft xine xml xorg xscreensaver xulrunner xv xvid 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 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 ident version" APACHE2_MPMS="worker" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ru en" USERLAND="GNU" VIDEO_CARDS="nvidia"
Comment 1 Alexey Shvetsov archtester gentoo-dev 2008-07-14 15:14:09 UTC
Created attachment 160350 [details]
Comment 2 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2008-07-14 18:48:11 UTC
Please test these variations:
LDFLAGS="-Wl,-O1 -Wl,--sort-common"

And tell me if either of them solves the problems.
Comment 3 Alexey Shvetsov archtester gentoo-dev 2008-07-14 19:09:52 UTC
look like removing LDFLAGS solves this issue
Comment 4 Jimmy.Jazz 2008-07-22 14:05:56 UTC
(In reply to comment #2)
> Please test these variations:
> LDFLAGS="-Wl,-O1 -Wl,--sort-common"
> LDFLAGS="-Wl,-O1"
> And tell me if either of them solves the problems.

sed -i "s/-Wl,--as-needed//" ${S}/clients/Makefile just 
before emake in src_compile() should suffice

Comment 5 Gilles Dartiguelongue (RETIRED) gentoo-dev 2008-08-03 16:01:50 UTC
Created attachment 162115 [details, diff]

this patch allowed me to compile it with USE="usb hal ssl xml".

nut's autofoo would need some more cleaning/simplification though.
Comment 6 DEMAINE Benoît-Pierre, aka DoubleHP 2009-01-06 21:47:03 UTC
does the patch work ? can we merge it in portage ?
Comment 7 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2009-02-15 02:10:49 UTC
*** Bug 248438 has been marked as a duplicate of this bug. ***
Comment 8 Ashu Tiwary 2009-02-19 22:52:03 UTC
Yes - the patch works successfully for me.
Comment 9 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2009-04-12 21:18:24 UTC
2.4.1 contains the fix.