Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 70876 - emerging net-fs/samba-3.0.8.ebuild (and previous versions) with LDFLAGS causes emerge to fail
Summary: emerging net-fs/samba-3.0.8.ebuild (and previous versions) with LDFLAGS cause...
Status: RESOLVED DUPLICATE of bug 69034
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High minor (vote)
Assignee: Gentoo's SAMBA Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-11 15:21 UTC by Bob Ziuchkovski
Modified: 2005-07-17 13:06 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bob Ziuchkovski 2004-11-11 15:21:54 UTC
Any time I attempt to emerge samba with LDFLAGS set in my make.conf, the build will die saying:

PYTHON_CFLAGS="-march=athlon64 -O2 -pipe -fomit-frame-pointer -msse -msse2 -mmmx -m3dnow -ftracer -fPIC -I/usr/include/mysql -march=athlon64 -pipe -fomit-frame-pointer -msse -msse2 -mmmx -m3dnow -ftracer -fPIC -DHAVE_ERRNO_AS_DEFINE=1 -DUSE_OLD_FUNCTIONS -I/usr/include/libxml2 -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE  -march=athlon64 -O2 -pipe -fomit-frame-pointer -msse -msse2 -mmmx -m3dnow -ftracer -fPIC -I/usr/include/mysql -march=athlon64 -pipe -fomit-frame-pointer -msse -msse2 -mmmx -m3dnow -ftracer -fPIC -DHAVE_ERRNO_AS_DEFINE=1 -DUSE_OLD_FUNCTIONS -I/usr/include/libxml2  -Iinclude -I/var/tmp/portage/samba-3.0.8/work/samba-3.0.8/source/include -I/var/tmp/portage/samba-3.0.8/work/samba-3.0.8/source/ubiqx -I/var/tmp/portage/samba-3.0.8/work/samba-3.0.8/source/smbwrapper  -I. -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -I/var/tmp/portage/samba-3.0.8/work/samba-3.0.8/source    " \
LIBS="-Wl,-O1 -Wl,--relax -Wl,--enable-new-dtags -Wl,--sort-common -s -Wl,-rpath,/usr/lib -lcrypt -lnsl -ldl    " \
        python python/setup.py build
Compiling utils/debug2html.c
Unknown entry '-s' in $LIBS variable passed to setup.py
make: *** [python_ext] Error 1
make: *** Waiting for unfinished jobs....

!!! ERROR: net-fs/samba-3.0.8 failed.
!!! Function src_compile, Line 212, Exitcode 2
!!! SAMBA make everything error
!!! If you need support, post the topmost build error, NOT this status message.

The revelant lines of my /etc/make.conf are:

CHOST="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe -fomit-frame-pointer -msse -msse2 -mmmx -m3dnow -ftracer -fPIC"
CXXFLAGS="${CFLAGS}"
LDFLAGS="-Wl,-O1 -Wl,--relax -Wl,--enable-new-dtags -Wl,--sort-common -s"
ACCEPT_KEYWORDS="amd64"

Commenting out my LDFLAGS results in a successfull compile.

Reproducible: Always
Steps to Reproduce:
1. add to /etc/make.conf:    LDFLAGS="-Wl,-O1 -Wl,--relax -Wl,--enable-new-dtags -Wl,--sort-common -s" 
2. emerge net-fs/samba-3.0.8 (or a previous ebuild)

Actual Results:  
The emerge process fails with: "Unknown entry '-s' in $LIBS variable passed to setup.py" 

Expected Results:  
Successful emerge
Comment 1 Christian Andreetta (RETIRED) gentoo-dev 2004-11-13 02:08:10 UTC
there's good work done on it: see bug 69034

*** This bug has been marked as a duplicate of 69034 ***