Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 73513 - courier-authlib: cannot build: "ld: unrecognized option '-Wl'"
Summary: courier-authlib: cannot build: "ld: unrecognized option '-Wl'"
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Net-Mail Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-05 21:46 UTC by Alexander Skwar
Modified: 2004-12-06 21:30 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 Alexander Skwar 2004-12-05 21:46:10 UTC
06:45:48 askwar@alturo:~ $ emerge -vpt courier-authlib

These are the packages that I would merge, in reverse order:

Calculating dependencies ...done!
[ebuild  N    ] net-libs/courier-authlib-0.50.20041203  -berkdb +crypt -debug +gdbm -ldap +mysql +pam -postgres (-uclibc) 0 kB

Total size of downloads: 0 kB

[...]


Linking authdaemontest
/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../../i686-pc-linux-gnu/bin/ld: unrecognized option '-Wl'
/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../../i686-pc-linux-gnu/bin/ld: use the --help option for usage information
collect2: ld returned 1 exit status
make[2]: *** [libauthmysql.la] Fehler 1
make[2]: *** Warte auf noch nicht beendete Prozesse...
make[2]: Leaving directory `/var/tmp/portage/courier-authlib-0.50.20041203/work/courier-authlib-0.50.20041203'
make[1]: *** [all-recursive] Fehler 1
make[1]: Leaving directory `/var/tmp/portage/courier-authlib-0.50.20041203/work/courier-authlib-0.50.20041203'
make: *** [all] Fehler 2

!!! ERROR: net-libs/courier-authlib-0.50.20041203 failed.


Reproducible: Always
Steps to Reproduce:

Actual Results:  
Usually, I build stuff with

LDFLAGS="-Wl,-O1"

in /etc/make.conf. For this build, I commented the LDFLAGS line. Error still
happens.


06:45:57 askwar@alturo:~ $ emerge info
Portage 2.0.51-r8 (default-linux/x86/2004.3, gcc-3.4.3, glibc-2.3.4.20041102-r0,
2.6.9-gentoo-r3.PHP2.4kb.cleaned.no-preempt.05 i686)
=================================================================
System uname: 2.6.9-gentoo-r3.PHP2.4kb.cleaned.no-preempt.05 i686 Intel(R)
Celeron(R) CPU 2.00GHz
Gentoo Base System version 1.6.6
Python:              dev-lang/python-2.3.4 [2.3.4 (#1, Nov 14 2004, 22:41:19)]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.4
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.8.5-r2, 1.5, 1.4_p6, 1.6.3, 1.7.9, 1.9.3
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.5.2-r7
virtual/os-headers:  2.6.8.1-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-fomit-frame-pointer -pipe -O2 -march=pentium4"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache collision-protect distlocks sandbox sfperms"
GENTOO_MIRRORS="http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/
ftp://mirrors.sec.informatik.tu-darmstadt.de/gentoo/
ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo
ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo http://194.117.158.29/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="acl apache2 apm arts async avi bzlib crypt cscope cups curl curlwrappers
diet djbfft encode exif fam flash foomaticdb ftp fwdzone gd gdbm gif hal
hardened iconv imagemagick imap imlib immqt-bc ithreads javascript jpeg libedit
libg++ libwww lzo lzw lzw-tiff mad maildir mailwrapper mbox mmap mmx mng mpeg
mysql ncurses nls no-old-linux noantlr nobcel nobeanutils nobsh nocommonslogging
nocommonsnet nojdepend nojsch nojython nolog4j nooro noregexp norhino noxalan
noxerces nptl offensive oggvorbis opengl oss pam parse-clocks pcntl pcre pdflib
perl pic pie png posix postgres pwdb python qt quicktime readline recode sasl
sdl shared slang sockets spell sse ssl sysvipc tcpd tiff truetype unicode vhosts
x86 xfs xml2 xmms xv zlib linguas_de"
Comment 1 Tuan Van (RETIRED) gentoo-dev 2004-12-05 22:33:07 UTC
because you compile mysql with that LDFLAGS. open /usr/bin/mysql_config, commented #ldflags='-Wl,-O1' then try again.
Comment 2 Alexander Skwar 2004-12-06 05:08:29 UTC
Well, yes, I do have that line in /usr/bin/mysql_config. Why should I comment the line?

Is the problem, that I wanted to compile authlib with LDFLAGS="-Wl,-O1"? 
Comment 3 Tuan Van (RETIRED) gentoo-dev 2004-12-06 09:28:01 UTC
> Well, yes, I do have that line in /usr/bin/mysql_config. Why should I comment the line?
It's just a quick workaround unless you want to reompile mysql with a correct LDFLAGS, because the courier-authlib use `mysql_config --libs` for its mysql support linking and prepend W to all of them. In your case, something looks like this:
# mysql_config --libs output
-Wl,-O1 -L/usr/lib/mysql -lmysqlclient -lz -lcrypt -lnsl -lm -L/usr/lib -lssl -lcrypto
will become:
-W,Wl, -W,O1 -W,L/usr/lib/mysql -W,lmysqlclient ...
so:
/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../../i686-pc-linux-gnu/bin/ld: unrecognized option '-Wl'.
bug #70367 will explain to you that your LDFLAGS is not valid.
Comment 4 Alexander Skwar 2004-12-06 11:20:55 UTC
Ah, okay, thanks a lot for the pointer!
Comment 5 Alexander Skwar 2004-12-06 21:30:18 UTC
Tuan, could you please have a look at bug #73622 (http://bugs.gentoo.org/show_bug.cgi?id=73622)?

Thanks a lot!