Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 69748 - samba failes to install if LDFLAGS="-z combreloc"
Summary: samba failes to install if LDFLAGS="-z combreloc"
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Please assign to toolchain
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-01 11:17 UTC by Grzegorz Kulewski
Modified: 2004-12-10 03:42 UTC (History)
1 user (show)

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 Grzegorz Kulewski 2004-11-01 11:17:14 UTC
Compiling modules/vfs_full_audit.c with -fPIC
Building plugin bin/full_audit.so
Compiling modules/vfs_netatalk.c with -fPIC
Building plugin bin/netatalk.so
Compiling modules/vfs_fake_perms.c with -fPIC
Building plugin bin/fake_perms.so
Compiling modules/vfs_default_quota.c with -fPIC
Building plugin bin/default_quota.so
Compiling modules/vfs_readonly.c with -fPIC
Compiling modules/getdate.c with -fPIC
Building plugin bin/readonly.so
Compiling modules/vfs_cap.c with -fPIC
Building plugin bin/cap.so
Compiling modules/vfs_expand_msdfs.c with -fPIC
Building plugin bin/expand_msdfs.so
Compiling modules/vfs_shadow_copy.c with -fPIC
Building plugin bin/shadow_copy.so
Compiling passdb/pdb_xml.c with -fPIC
Building plugin bin/xml.so
Compiling passdb/pdb_mysql.c with -fPIC
Building plugin bin/mysql.so
Compiling passdb/pdb_pgsql.c with -fPIC
Building plugin bin/pgsql.so
Compiling modules/CP850.c with -fPIC
Building plugin bin/CP850.so
Compiling modules/CP437.c with -fPIC
Building plugin bin/CP437.so
PYTHON_OBJS="dynconfig.po param/loadparm.po param/params.po lib/version.po lib/charcnv.po lib/debug.po lib/fault.po lib/getsmbpass.po lib/interface.po lib/md4.po lib/interfaces.po lib/pidfile.po lib/replace.po lib/replace1.po lib/signal.po lib/system.po lib/sendfile.po lib/time.po lib/ufc.po lib/genrand.po lib/username.po lib/util_getent.po lib/util_pw.po lib/access.po lib/smbrun.po lib/bitmap.po lib/crc32.po lib/snprintf.po lib/dprintf.po lib/xfile.po lib/wins_srv.po lib/util_str.po lib/clobber.po lib/util_sid.po lib/util_uuid.po lib/util_unistr.po lib/util_file.po lib/data_blob.po lib/util.po lib/util_sock.po lib/sock_exec.po lib/util_sec.po lib/talloc.po lib/hash.po lib/substitute.po lib/fsusage.po lib/ms_fnmatch.po lib/select.po lib/messages.po lib/tallocmsg.po lib/dmallocmsg.po libsmb/smb_signing.po lib/md5.po lib/hmacmd5.po lib/iconv.po nsswitch/wb_client.po nsswitch/wb_common.po lib/pam_errors.po intl/lang_tdb.po lib/account_pol.po lib/adt_tree.po lib/gencache.po tdb/tdb.po tdb/spinlock.po tdb/tdbutil.po tdb/tdbback.po lib/module.po lib/ldap_escape.po lib/privileges.po lib/secdesc.po lib/secace.po lib/secacl.po lib/dummysmbd.po libsmb/clientgen.po libsmb/cliconnect.po libsmb/clifile.po libsmb/clikrb5.po libsmb/clispnego.po libsmb/asn1.po libsmb/clirap.po libsmb/clierror.po libsmb/climessage.po libsmb/clireadwrite.po libsmb/clilist.po libsmb/cliprint.po libsmb/clitrans.po libsmb/clisecdesc.po libsmb/clidgram.po libsmb/clistr.po lib/util_seaccess.po libsmb/cliquota.po libsmb/clifsinfo.po libsmb/smberr.po libsmb/credentials.po libsmb/pwd_cache.po libsmb/clioplock.po libsmb/errormap.po libsmb/clirap2.po libsmb/doserr.po rpc_parse/parse_prs.po rpc_parse/parse_misc.po rpc_parse/parse_sec.po libsmb/nterr.po libsmb/smbdes.po libsmb/smbencrypt.po libsmb/ntlm_check.po libsmb/ntlmssp.po libsmb/ntlmssp_parse.po libsmb/ntlmssp_sign.po libsmb/unexpected.po libsmb/namecache.po libsmb/nmblib.po libsmb/namequery.po libsmb/conncache.po   rpc_parse/parse_lsa.po rpc_parse/parse_net.po rpc_parse/parse_reg.po rpc_parse/parse_rpc.po rpc_parse/parse_samr.po rpc_parse/parse_srv.po rpc_parse/parse_wks.po rpc_parse/parse_ds.po rpc_parse/parse_spoolss.po rpc_parse/parse_dfs.po rpc_parse/parse_echo.po rpc_parse/parse_shutdown.po registry/reg_objects.po ubiqx/ubi_BinTree.po ubiqx/ubi_Cache.po ubiqx/ubi_SplayTree.po ubiqx/ubi_dLinkList.po ubiqx/ubi_sLinkList.po  rpc_client/cli_lsarpc.po rpc_client/cli_samr.po rpc_client/cli_netlogon.po rpc_client/cli_srvsvc.po rpc_client/cli_wkssvc.po rpc_client/cli_dfs.po rpc_client/cli_reg.po rpc_client/cli_pipe.po rpc_client/cli_spoolss.po rpc_client/cli_spoolss_notify.po rpc_client/cli_ds.po rpc_client/cli_echo.po rpc_client/cli_shutdown.po passdb/pdb_get_set.po passdb/passdb.po passdb/pdb_interface.po passdb/util_sam_sid.po passdb/pdb_compat.po passdb/privileges.po passdb/lookup_sid.po passdb/login_cache.po  passdb/pdb_smbpasswd.po passdb/pdb_tdb.po passdb/pdb_guest.po passdb/pdb_sql.po groupdb/mapping.po passdb/secrets.po passdb/machine_sid.po  libads/kerberos.po libads/ads_status.po   lib/dummyroot.po" \
PYTHON_CFLAGS="-O2 -O3 -Os -march=athlon-xp -mtune=athlon-xp -fomit-frame-pointer -fweb -frename-registers -freorder-blocks -ftracer -funit-at-a-time -fforce-addr -pipe -I/usr/include/postgresql/pgsql -I/usr/include/mysql -Os -march=athlon-xp -mtune=athlon-xp -fomit-frame-pointer -fweb -frename-registers -freorder-blocks -ftracer -funit-at-a-time -fforce-addr -pipe -DHAVE_ERRNO_AS_DEFINE=1 -DUSE_OLD_FUNCTIONS -I/usr/include/libxml2 -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE  -O2 -O3 -Os -march=athlon-xp -mtune=athlon-xp -fomit-frame-pointer -fweb -frename-registers -freorder-blocks -ftracer -funit-at-a-time -fforce-addr -pipe -I/usr/include/postgresql/pgsql -I/usr/include/mysql -Os -march=athlon-xp -mtune=athlon-xp -fomit-frame-pointer -fweb -frename-registers -freorder-blocks -ftracer -funit-at-a-time -fforce-addr -pipe -DHAVE_ERRNO_AS_DEFINE=1 -DUSE_OLD_FUNCTIONS -I/usr/include/libxml2  -Iinclude -I/var/tmp/portage/samba-3.0.7-r1/work/samba-3.0.7/source/include -I/var/tmp/portage/samba-3.0.7-r1/work/samba-3.0.7/source/ubiqx -I/var/tmp/portage/samba-3.0.7-r1/work/samba-3.0.7/source/smbwrapper  -I. -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -I/var/tmp/portage/samba-3.0.7-r1/work/samba-3.0.7/source    " \
LIBS="-z combreloc -Wl,-rpath,/usr/lib -lcrypt -lresolv -lnsl -ldl    " \
        python python/setup.py build
Unknown entry '-z' in $LIBS variable passed to setup.py
make: *** [python_ext] Error 1

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


Reproducible: Always
Steps to Reproduce:
1. emerge -e system




Portage 2.0.51-r2 (default-x86-2004.2, gcc-3.4.2, glibc-2.3.4.20041021-r0,
2.6.9-cko2 i686)
=================================================================
System uname: 2.6.9-cko2 i686 Unknown CPU Type
Gentoo Base System version 1.6.4
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.92.0.2-r1
Headers:  sys-kernel/linux26-headers-2.6.8.1-r1
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -O3 -Os -march=athlon-xp -mtune=athlon-xp -fomit-frame-pointer -fweb
-frename-registers -freorder-blocks -ftracer -funit-at-a-time -fforce-addr -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3/share/config /usr/share/config /usr/share/texmf/dvipdfm/config/
/usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -O3 -Os -march=athlon-xp -mtune=athlon-xp -fomit-frame-pointer
-fweb -frename-registers -freorder-blocks -ftracer -funit-at-a-time -fforce-addr
-pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs buildpkg ccache distlocks fixpackages nostrip sandbox sfperms"
GENTOO_MIRRORS="http://www.gigaload.org/gentoo.org/
ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo
http://gentoo.eliteitminds.com http://gentoo.mirror.sdv.fr
http://gentoo.math.bme.hu http://gentoo.tiscali.nl/gentoo/
http://trumpetti.atm.tut.fi/gentoo/
http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://src.gentoo.pl
http://gentoo.prz.rzeszow.pl http://gentoo.zie.pg.gda.pl"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowex X aalib accessibility acl alsa apm artworkextra audiofile avi
bcmath berkdb bitmap-fonts bluetooth bmp bzlib calendar cdparanoia cdr crypt
ctype cups curl curlwrappers dga dio directfb doc dvd dvdr dvdread edl encode
erandom f77 fbcon flac foomaticdb freetts ftp gcj gd gdbm ggi gif gimpprint gmp
gnokii gnome gnutls gphoto2 gpm gstreamer gtk gtk2 guile hal howl icc imap imlib
inifile innodb irda jack jack-tmpfs java javascript jce jms joystick jpeg jpeg2k
justify jython kde libcaca libedit libg++ libwww lirc live lzo mad matroska
md5sum mhash mikmod mime ming mmap mmx mmx2 mng mnogosearch motif mozcalendar
mozdevelop mozilla mpeg msession mysql mysqli mythtv nas ncurses network nls
no-old-linux noantlr nptl nvidia objc oggvorbis opengl oss pam pcntl pcre pdflib
perl php pic png posix postgres povray python qt quicktime readline real rhino
rtc ruby samba scanner sdl session shared sharedmem simplexml slang sms sndfile
soap sockets speex spell sqlite sse ssl svg sysvipc tcltk tcpd tetex tga theora
tiff tokenizer truetype unicode v4l2 x86 xanim xinerama xml xml2 xmlrpc xmms xpm
xprint xscreensaver xsl xv xvid xvmc zlib"
Comment 1 Daniel Black (RETIRED) gentoo-dev 2004-11-02 01:11:57 UTC
Should this be -z,combreloc?
Comment 2 Disenchanted (RETIRED) gentoo-dev 2004-11-05 16:05:07 UTC
LDFLAGS="-Wl, -z combreloc"

and 'man gcc' so you can lose those ridiculous CFLAGS 
and 'man ld' so you can see what is expected in LDFLAGS

bug invalid/user error

and on a side note: stop overclocking
Comment 3 Disenchanted (RETIRED) gentoo-dev 2004-11-05 16:21:34 UTC
 -Wl,-z,combreloc
Comment 4 SpanKY gentoo-dev 2004-12-06 19:41:21 UTC
your analysis is half wrong ...

LDFLAGS="-z combreloc" is correct ... but shouldnt be used

if people want to pass linker flags, they should add "-Wl,-z combreloc" to CFLAGS ... see Bug 65002
Comment 5 Christian Andreetta (RETIRED) gentoo-dev 2004-12-10 03:42:51 UTC
> your analysis is half wrong ...

that means that's half right (and that's good) ;-)