emerge fails with error: /usr/lib/gcc-lib/x86_64-pc-linux-gnu/3.3.5/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/libol.a(format.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC Reproducible: Always Steps to Reproduce: 1. emerge =syslog-ng-1.6.5-r2 Actual Results: Error message as shown in details. Expected Results: Should have compiled libol library components with appropriate CFLAGS This error occured using gcc-3.3.5 with a 2004.1 profile, and after upgrade to 2004.3 profile, and gcc-3.4.3 it was still repeatable.
no herd; CCed devs with recent changelog activity
What happened to syslog-ng-1.6.5-r1? We had a working version in the tree, now it's gone... and all that is available is -r2 which fails, and I don't know what changed.
The only thing that changed between -r1 and -r2 was the init.d script. I'd like to see the emerge --info from the bug reporter.
OK. I found a "fix", if you want to call it that. Reporter: 1. emerge -v dev-libs/libol 2. emerge -v app-admin/syslog-ng Please comment if this works for you.
Re: 1. emerge -v dev-libs/libol 2. emerge -v app-admin/syslog-ng Please comment if this works for you. Yes, this worked for me.
Re: I'd like to see the emerge --info from the bug reporter. Here it is, in case it's of any further interest: Portage 2.0.51-r8 (default-linux/amd64/2004.3, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.5-hardened-r5 x86_64) ================================================================= System uname: 2.6.5-hardened-r5 x86_64 AMD Athlon(tm) 64 Processor 3200+ Gentoo Base System version 1.6.8 Python: dev-lang/python-2.3.4 [2.3.4 (#1, Dec 18 2004, 12:04:39)] 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-r2 sys-devel/libtool: 1.5.10-r2 virtual/os-headers: 2.6.8.1-r1 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CFLAGS="-O2 -mtune=k8 -pipe -fomit-frame-pointer -ffast-math -funroll-all-loops -funit-at-a-time -fpeel-loops -ftracer -funswitch-loops" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /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="-O2 -mtune=k8 -pipe -fomit-frame-pointer -ffast-math -funroll-all-loops -funit-at-a-time -fpeel-loops -ftracer -funswitch-loops" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig buildpkg ccache distcc distlocks strict userpriv usersandbox" GENTOO_MIRRORS="ftp:///ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://mirror.datapipe.net/gentoo http://gentoo.chem.wisc.edu/gentoo/ http://mirrors.tds.net/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="amd64 X acl acpi alsa apache2 apm bcmath berkdb bitmap-fonts bzlib crypt dio dvd dvdr f77 fortran gdbm gif gpm hardened hardenedphp innodb ipv6 jp2 jpeg ldap libwww lzw lzw-tiff memlimit multilib mysql mysqli ncurses nls opengl oss pam pcre pdflib perl php pic pie png posix python readline session shared slang snmp spl ssl tcltk tcpd tiff tokenizer truetype usb userlocales vhosts xml xml2 xpm xrandr xv zlib"
sounds fixed to me.
I have a problem installing app-admin/syslog-ng-1.6.5-r2 The offered following steps didn't help me: 1. emerge -v dev-libs/libol 2. emerge -v app-admin/syslog-ng Here is an error message: gcc -march=athlon -O2 -fforce-addr -fomit-frame-pointer -funroll-loops -funroll-all-loops -fprefetch-loop-arrays -maccumulate-outgoing-args-pipe -Wall -I/usr/include/libol -D_GNU_SOURCE -o syslog-ng main.o sources.o center.o filters.o destinations.o log.o cfgfile.o cfg-grammar.o cfg-lex.o affile.o afsocket.o afunix.o afinet.o afinter.o afuser.o afstreams.o afprogram.o afremctrl.o nscache.o utils.o syslog-names.o macros.o -lnsl -lresolv /usr/lib/libol.a -lnsl cfg-lex.o(.text+0x6a6): In function `.L62': : undefined reference to `yywrap' cfg-lex.o(.text+0x14dd): In function `input': : undefined reference to `yywrap' collect2: ld returned 1 exit status make[3]: *** [syslog-ng] Error 1 make[3]: Leaving directory `/var/tmp/portage/syslog-ng-1.6.5-r2/work/syslog-ng-1.6.5/src' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/syslog-ng-1.6.5-r2/work/syslog-ng-1.6.5/src' make[1]: *** [all] Error 2 make[1]: Leaving directory `/var/tmp/portage/syslog-ng-1.6.5-r2/work/syslog-ng-1.6.5/src' make: *** [all-recursive] Error 1 !!! ERROR: app-admin/syslog-ng-1.6.5-r2 failed. !!! Function src_compile, Line 34, Exitcode 2 !!! emake failed !!! If you need support, post the topmost build error, NOT this status message. my emerge --info is: Portage 2.0.51-r15 (hardened/x86/2.6, gcc-3.3.5, glibc-2.3.4.20040808-r1, 2.6.9-gentoo-r1 i686) ================================================================= System uname: 2.6.9-gentoo-r1 i686 AMD Athlon(tm) Gentoo Base System version 1.4.16 Python: dev-lang/python-2.3.4 [2.3.4 (#1, Jan 23 2005, 04:49:06)] dev-lang/python: 2.3.4 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.5, 1.8.5-r3, 1.6.3, 1.7.9-r1, 1.4_p6, 1.9.4 sys-devel/binutils: 2.15.92.0.2-r1 sys-devel/libtool: 1.5.10-r4 virtual/os-headers: 2.6.8.1-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=athlon -O2 -fforce-addr -fomit-frame-pointer -funroll-loops -funroll-all-loops -fprefetch-loop-arrays -maccumulate-outgoing-args -pipe" 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="-march=athlon -O2 -fforce-addr -fomit-frame-pointer -funroll-loops -funroll-all-loops -fprefetch-loop-arrays -maccumulate-outgoing-args -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig buildpkg ccache distlocks sandbox strict" GENTOO_MIRRORS="ftp://ftp.unix.kg/pub/Linux/gentoo ftp://mtv.kg http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage//packages/x86/" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage/" SYNC="rsync://rsync.kyrnet.kg/gentoo-portage" USE="3dnow bash-completion berkdb bzlib cdr crypt hardened memlimit minimal mmap mmx ncurses nls nptl nptlonly pam pic pie readline slang snmp spell sse ssl x86 xml xml2 zlib" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY
OK, it works now! :))) I think it was 2005.0 bootstrap issue. I re-build my world with emerge -e world and everything works :)