| Summary: | net-mail/cyrus-imapd-2.5.10 - ld: /usr/lib64/libcyrus_min.a(libconfig.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Sebastian Damm <gentoo-bugzilla> |
| Component: | Current packages | Assignee: | No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed> |
| Status: | RESOLVED TEST-REQUEST | ||
| Severity: | normal | CC: | johannes.geiss, net-mail+disabled, tb, vanbochove, vmatare+gbug, vovan |
| Priority: | Normal | ||
| Version: | unspecified | ||
| Hardware: | AMD64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: |
emerge log
build.log |
||
|
Description
Sebastian Damm
2016-12-14 14:44:12 UTC
I'm having the same/ a similar problem. This seems to be it in my case: /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.4/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib64/libcyrus_min.a(libconfig.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC I can confirm this bug. emerge fails with the same error message My emerge --info Portage 2.3.0 (python 2.7.12-final-0, default/linux/amd64/13.0, gcc-4.9.4, glibc-2.23-r3, 4.4.0-gentoo-r1 x86_64) ================================================================= System uname: Linux-4.4.0-gentoo-r1-x86_64-Intel-R-_Core-TM-_i7_CPU_920_@_2.67GHz-with-gentoo-2.3 KiB Mem: 8169244 total, 68188 free KiB Swap: 4200892 total, 3946796 free Timestamp of repository gentoo: Wed, 11 Jan 2017 08:30:01 +0000 sh bash 4.3_p48-r1 ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1 app-shells/bash: 4.3_p48-r1::gentoo dev-java/java-config: 2.2.0-r3::gentoo dev-lang/perl: 5.22.3_rc4::gentoo dev-lang/python: 2.7.12::gentoo, 3.4.5::gentoo dev-util/cmake: 3.6.3::gentoo dev-util/pkgconfig: 0.28-r2::gentoo sys-apps/baselayout: 2.3::gentoo sys-apps/openrc: 0.22.4::gentoo sys-apps/sandbox: 2.10-r1::gentoo sys-devel/autoconf: 2.13::gentoo, 2.69::gentoo sys-devel/automake: 1.11.6::gentoo, 1.13.4::gentoo, 1.14.1::gentoo, 1.15::gentoo sys-devel/binutils: 2.25.1-r1::gentoo sys-devel/gcc: 4.9.3::gentoo, 4.9.4::gentoo sys-devel/gcc-config: 1.7.3::gentoo sys-devel/libtool: 2.4.6-r2::gentoo sys-devel/make: 4.1-r1::gentoo sys-kernel/linux-headers: 4.4::gentoo (virtual/os-headers) sys-libs/glibc: 2.23-r3::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 gbin location: /var/lib/layman/gbin masters: gentoo priority: 0 olqs location: /usr/local/portage/olqs masters: gentoo priority: 1 ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -march=native" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/bind" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.6/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-O2 -pipe -march=native" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--jobs --load-average=10 --autounmask-write" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://gentoo.mneisen.org/ http://de-mirror.org/distro/gentoo/ http://gentoo.supp.name/" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j10" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git" PORTAGE_TMPDIR="/var/tmp" USE="X acl amavis amd64 apache2 berkdb bzip2 clamav clamd clamdtop cli cracklib crypt cxx dcc dlz doc dri extensions fontconfig fortran fpm fuse gd gdbm iconv idled imagemagick imap ipv6 jabber jadetex jpeg latex ldap md5 mmx mmxext modules multilib mysql mysqli mysqlnd nat nat-transport ncurses nls nptl openmp openssl pam pcre php png postfix python pyzord razor readline rrdtool rss rsync ruby sasl screen seccomp session sieve smtp spamassassin sqlite sqlite3 sse sse2 ssh ssl tcpd truetype unicode usb vchroot virtual-users xattr xml zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_core authn_dbm authn_file authz_core authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio mime mime_magic negotiation rewrite setenvif socache_shmcb speling status unique_id unixd userdir usertrack vhost_alias proxy proxy_fcgi" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby21 ruby22" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON Created attachment 464662 [details]
emerge log
emerge log
Happened to me as well - the log attached.
Several warnings and one error:
libtool: error: error: relink 'sieve/libcyrus_sieve.la' with the above command before installing it
make: *** [Makefile:5658: install] Error 2
* ERROR: net-mail/cyrus-imapd-2.5.10::gentoo failed (install phase):
* emake failed
>>> Failed to emerge net-mail/cyrus-imapd-2.5.10, Log file:
I can confirm with cyrus-imapd-2.5.10 as well. Hi Devs, i don't want to bother, but what's necessary to mark this bug at least "confirmed"? On net-mail/cyrus-imapd-2.5.11-r1 it's the same. I could come around this by uninstalling net-mail/cyrus-imapd first. On the new install compile run i got some messages like "libtool: warning: '/usr/lib/libjansson.la' seems to be moved" but the installation completes w/o further errors. Please check net-mail/cyrus-imapd-3.0.1 and let me know if you still have the same problem. Thank you. (In reply to Eray Aslan from comment #9) > Please check net-mail/cyrus-imapd-3.0.1 and let me know if you still have > the same problem. Thank you. Yes, 3.0.1 makes the same error: /usr/lib/gcc/x86_64-pc-linux-gnu/5.4.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib64/libcyrus_min.a(libconfig.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC /usr/lib64/libcyrus_min.a: error adding symbols: Bad value (In reply to Eray Aslan from comment #9) > Please check net-mail/cyrus-imapd-3.0.1 and let me know if you still have > the same problem. Thank you. As long as this bug is not fixed i would kindly ask to postpone the removal of net-mail/cyrus-imap-admin-2.4.17-r1::gentoo btw: updating to =net-mail/cyrus-imapd-2.4.18 works (after unmasking), which is safe according to bug 561884 Can you please attach a full build log? Created attachment 474694 [details]
build.log
/var/tmp/portage/net-mail/cyrus-imapd-2.5.10/temp/build.log
(In reply to Eray Aslan from comment #13) > Can you please attach a full build log? i attached the build.log of cyrus-imapd-2.5.10 from the system where i updated to net-mail/cyrus-imapd-2.4.18 today. After trying to install cyrus-imapd again (2.5.10 and 3.0.1 gave the same results), I looked whether I could fix it myself. And stumbled upon this thread in the Gentoo forum: https://forums.gentoo.org/viewtopic-p-8037076.html Turns out, this problem only exists when upgrading cyus-imapd from pre-2.5 releases (in my case it was 2.4.17) to a post-2.5 release. When removing the old cyrus-imapd first, emerging the new version works fine, at least on my machine. (If you want to make sure, you have a way back to your old version, you can create packages with quickpkg of your currently installed package before uninstalling.) Hope this helps some people stuck with the masked version, too. (In reply to Sebastian Damm from comment #16) > When removing the > old cyrus-imapd first, emerging the new version works fine thank you, this helped. at least in my case. (In reply to Johannes Geiss from comment #17) > (In reply to Sebastian Damm from comment #16) > > > When removing the > > old cyrus-imapd first, emerging the new version works fine > > thank you, this helped. at least in my case. i can confirm this (on my testing machine), but IMHO this is not a serious option unless someone can confirm this highly uncommon procedure keeps all local data (configuration, mailbox data, mailbox metadata) intact. What installs /usr/lib64/libcyrus_min.a in the first place? Can we get rid of it? Breaking it down: libtool: relink: x86_64-pc-linux-gnu-gcc -shared -fPIC -DPIC #[lots of objects] # Linking against anything in LIBDIR: -Wl,--as-needed -L/usr/lib64 # Linking against new libraries: -L/mnt/ramsch/gentoo/tmp/portage/net-mail/cyrus-imapd-2.5.10/image//usr/lib64 # Dynamically linked libraries: -lcyrus_com_err -lcyrus_min The solution is quite literally to move the -L/usr/lib64 argument after the -L/mnt/ramsch/gentoo/tmp/portage/net-mail/cyrus-imapd-2.5.10/image//usr/lib64 argument so that it finds the new libraries first. (In reply to Jeroen Roovers from comment #19) > What installs /usr/lib64/libcyrus_min.a in the first place? Can we get rid > of it? it's from net-mail/cyrus-imapd-2.4.18: # equery b /usr/lib64/libcyrus_min.a * Searching for /usr/lib64/libcyrus_min.a ... net-mail/cyrus-imapd-2.4.18 (/usr/lib64/libcyrus_min.a) Something like this maybe. Not sure. Why don't you version your patches, btw?
files/cyrus-imapd-3.0.4-linker.patch
--- a/Makefile.am
+++ b/Makefile.am
@@ -1705,9 +1705,9 @@
sieve/varlist.h
sieve_libcyrus_sieve_la_LIBADD = \
sieve/libcyrus_sieve_lex.la \
- $(COM_ERR_LIBS) \
lib/libcyrus_min.la \
- lib/libcyrus.la
+ lib/libcyrus.la \
+ $(COM_ERR_LIBS)
sieve_libcyrus_sieve_la_CFLAGS = $(AM_CFLAGS) $(CFLAG_VISIBILITY)
sieve_sievec_LDADD = $(LD_SIEVE_ADD)
(In reply to Thomas Beutin from comment #20) > (In reply to Jeroen Roovers from comment #19) > > What installs /usr/lib64/libcyrus_min.a in the first place? Can we get rid > > of it? > > it's from net-mail/cyrus-imapd-2.4.18: > > # equery b /usr/lib64/libcyrus_min.a > * Searching for /usr/lib64/libcyrus_min.a ... > net-mail/cyrus-imapd-2.4.18 (/usr/lib64/libcyrus_min.a) Yes, but that's entirely beside the point: Why install a static archive that literally no one cares about and then bites back at you on the upgrade? please check with 3.0.10 Thanks |