Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 174602 - net-fs/samba-3.0.24 fails with: Unknown entry '-O1' in $LIBS variable passed to setup.py
Summary: net-fs/samba-3.0.24 fails with: Unknown entry '-O1' in $LIBS variable passed ...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's SAMBA Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-14 15:49 UTC by Steve L
Modified: 2007-09-12 21:27 UTC (History)
1 user (show)

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


Attachments
emerge log (net-fs:samba-3.0.24-r2:20070524-151615.log,65.00 KB, text/plain)
2007-05-25 01:59 UTC, Steve L
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Steve L 2007-04-14 15:49:31 UTC
I had to change my LDFLAGS from "Wl,O1" to "O1" for C programs, samba now falls over with two "-O1" entries in LDFLAGS on python linking at end.
I can sort this with a per-package env of course, but thought it might be affecting other things.
NB I don't believe this is samba-specific.

Reproducible: Always
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-04-14 16:07:34 UTC
(In reply to comment #0)
> I had to change my LDFLAGS from "Wl,O1" to "O1" 

So don't do it; most apps won't compile with this.

*** This bug has been marked as a duplicate of bug 65002 ***
Comment 2 SpanKY gentoo-dev 2007-04-14 17:16:26 UTC
if something fails with -Wl,-O1 complaining about invalid flags, that file a bug about that package
Comment 3 Steve L 2007-05-24 18:51:00 UTC
Thanks for earlier help (was away). Sorry to reopen but I am getting the same error with -r2. 3.0.24 one worked with:
LDFLAGS="-Wl,-O1"

But -O1 is coming thru alone in LIBS for -r2:
LIBS="-Wl,-rpath -Wl,/usr/lib -O1 -Wl,-O1 -lcrypt -lresolv -lresolv -lnsl
-ldl -lldap -llber   -L/usr/lib -Wl,-rpath -Wl,/usr/lib -O1  
-L/usr/lib -Wl,-rpath -Wl,/usr/lib -O1 -lgssapi_krb5 -lkrb5 -lk5crypto 
-lcom_err -lresolv -ldl -lldap -llber "

It appears to be split by /usr/lib?
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2007-05-24 18:55:52 UTC
(In reply to comment #3)
> But -O1 is coming thru alone in LIBS for -r2:

Completely not reproducible. Reopen with completely emerge log and emerge --info output.
Comment 5 Steve L 2007-05-25 01:56:06 UTC
Ah OK: attaching log, --info here (non-mockery feedback welcome ;)
Portage 2.1.2.7 (default-linux/x86/2006.1/desktop, gcc-4.1.2, glibc-2.5-r2, 2.6.19-gentoo-r5 i686)
=================================================================
System uname: 2.6.19-gentoo-r5 i686 AMD Athlon(tm) XP
Gentoo Base System release 1.12.9
Timestamp of tree: Thu, 24 May 2007 12:50:01 +0000
ccache version 2.4 [disabled]
dev-java/java-config: 1.3.7, 2.0.31-r5
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r7
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer -falign-jumps=4 -falign-labels=4 -falign-loops=4"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/php/apache1-php5/ext-active/ /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer -falign-jumps=4 -falign-labels=4 -falign-loops=4"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.virginmedia.com http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://gentoo.blueyonder.co.uk http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/ "
LC_ALL="en_GB.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="en_GB"
MAKEOPTS="-j2"
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/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext 3ds X a52 aac acpi aim alsa apache apache2 arts audacious audiofile berkdb binary-drivers bitmap-fonts blender-game bzip2 cairo calendar cdb cddb cdparanoia cdr cdrom cli cracklib crypt css cups curl curlwrappers cvs dbus dga directfb dri dv dvd dvdr dvdread eds emboss encode extrafilters fam fame fat fbcon ffmpeg fftw firefox flac flash flatfile fltk fontconfig fpx freetds ftp gadu gatos gd gdbm gif gimp gimpprint glade glep glib glibc-omitfp glut gphoto2 gpm graphviz gs gstreamer gtk gtk2 gtkhtml hal haskell html iconv icq idea idn imagemagick imap imlib innodb jabber jack jack-tmpfs java java-external java5 javacomm javamail javascript jbig jce jikes joystick jpeg jpeg2k junit kde kdeenablefinal kdehiddenvisibility kerberos ladspa lame lash latex lcms ldap libclamav libdsk libedit libg++ libgda libnotify libsamplerate libwww linuxthreads-tls live lm_sensors log4j logrotate lzo mad maildir mdb mhash midi mikmod mime ming mjpeg mmap mmx mng modplug mono mozcalendar mozdevelop mozsvg mp3 mp4 mp4live mpeg mpeg2 mplayer msn mssql mudflap musepack musicbrainz mysql mysqli ncurses net netjack nntp no-old-linux nptl nptlonly nsplugin ntfs ntlm odbc ogg openal openexr opengl openmp oscar oss pam pch pcre pdf pear-db perl php png portaudio posix postgres ppds pulseaudio python qt3 qt4 quicktime rc5 rdesktop readline real reflection reiserfs rss rtc samba sametime sasl scanner screen sdk sdl session sftp sftplogging sharedext sharedmem shorten simplexml skey sms sndfile soap sockets sound spell spl sql sqlite sse ssl submenu subtitles subversion svg svga sysfs syslog sysvipc szip t1lib taglib tagwriting tcl tcltk tcpd tetex theora threads tidy tiff timidity tk tokenizer toolbar transcode truetype truetype-fonts type1 type1-fonts unicode usb vcd vdr visualization vlm vnc vorbis wddx webdav win32codecs winpopup wma wmf wxwindows x86 xanim xcomposite xine xml xmlreader xmlrpc xmlwriter xorg xpm xprint xscreensaver xsl xv xvid xvmc yaepg yahoo zip zlib zvbi" ALSA_CARDS="cmipci darla20" 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" CAMERAS="canon kodak panasonic sonydscf1 toshiba" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_GB" USERLAND="GNU" VIDEO_CARDS="radeon vesa"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 6 Steve L 2007-05-25 01:59:25 UTC
Created attachment 120239 [details]
emerge log
Comment 7 Steve L 2007-05-25 02:01:17 UTC
Reopening per instruction (sorry should have attached file then emerge --info and reopen. Will bear it in mind for future.)
Comment 8 Evgeniy Kliymovich 2007-06-09 14:05:42 UTC
Try:

# MAKEOPTS="-j1" emerge samba

Maybe that will help you...
Comment 9 Steve L 2007-07-12 02:55:40 UTC
(In reply to comment #8)
> Try:
> 
> # MAKEOPTS="-j1" emerge samba
> 
Yeah it didn't, but thanks for the hint. -O1 *still* comes thru for some reason.
Comment 10 Tiziano Müller (RETIRED) gentoo-dev 2007-09-07 21:38:38 UTC
Can you please retry with samba-3.0.25c? Thanks.
Comment 11 Tiziano Müller (RETIRED) gentoo-dev 2007-09-12 21:27:42 UTC
Please reopen if the problem still exists with samba-3.0.25c-r2 AND you have sanitized your CFLAGS and LDFLAGS: