Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Libtool error while installing net-mail/cyrus-imapd-2.5.10
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
RAPHEAD
Tux's lil' helper
Tux's lil' helper


Joined: 20 Jun 2003
Posts: 134
Location: Germany

PostPosted: Fri Jan 06, 2017 12:49 am    Post subject: Libtool error while installing net-mail/cyrus-imapd-2.5.10 Reply with quote

I have the following issue while emerging cyrus-imapd:

Code:
libtool: warning: 'com_err/et/libcyrus_com_err.la' has not been installed in '/usr/lib64'
libtool: warning: 'imap/libcyrus_imap.la' has not been installed in '/usr/lib64'
libtool: install: /usr/lib/portage/python2.7/ebuild-helpers/xattr/install -c imap/.libs/lmtpd /var/tmp/portage/net-mail/cyrus-imapd-2.5.10/image//usr/lib64/cyrus/lmtpd
libtool: relink: x86_64-pc-linux-gnu-gcc -shared  -fPIC -DPIC  sieve/.libs/sieve_libcyrus_sieve_la-addr.o sieve/.libs/sieve_libcyrus_sieve_la-bc_dump.o sieve/.libs/sieve_libcyrus_sieve_la-bc_emit.o sieve/.libs/sieve_libcyrus_sieve_la-bc_eval.o sieve/.libs/sieve_libcyrus_sieve_la-bc_generate.o sieve/.libs/sieve_libcyrus_sieve_la-comparator.o sieve/.libs/sieve_libcyrus_sieve_la-flags.o sieve/.libs/sieve_libcyrus_sieve_la-interp.o sieve/.libs/sieve_libcyrus_sieve_la-message.o sieve/.libs/sieve_libcyrus_sieve_la-script.o sieve/.libs/sieve_libcyrus_sieve_la-sieve.o sieve/.libs/sieve_libcyrus_sieve_la-tree.o sieve/.libs/sieve_libcyrus_sieve_la-varlist.o sieve/.libs/sieve_libcyrus_sieve_la-sieve_err.o  -Wl,--whole-archive sieve/.libs/libcyrus_sieve_lex.a -Wl,--no-whole-archive  -Wl,--as-needed -L/usr/lib64 -L/var/tmp/portage/net-mail/cyrus-imapd-2.5.10/image//usr/lib64 -lcyrus_com_err -lcyrus_min -lcyrus -lsasl2 -ldb -lmysqlclient -lpthread -lm -lssl -lcrypto -ldl -lpcre -lpcreposix -lz  -O2 -march=core2 -Wl,-O1   -Wl,-soname -Wl,libcyrus_sieve.so.0 -o sieve/.libs/libcyrus_sieve.so.0.0.0
/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
/usr/lib64/libcyrus_min.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
libtool: warning: '/var/tmp/portage/net-mail/cyrus-imapd-2.5.10/work/cyrus-imapd-2.5.10/com_err/et/libcyrus_com_err.la' has not been installed in '/usr/lib64'
libtool: warning: 'sieve/libcyrus_sieve.la' has not been installed in '/usr/lib64'
libtool: warning: '/var/tmp/portage/net-mail/cyrus-imapd-2.5.10/work/cyrus-imapd-2.5.10/lib/libcyrus_min.la' has not been installed in '/usr/lib64'
libtool:   error: error: relink 'sieve/libcyrus_sieve.la' with the above command before installing it
Makefile:2384: recipe for target 'install-libLTLIBRARIES' failed
make[3]: *** [install-libLTLIBRARIES] Error 1
make[3]: *** Waiting for unfinished jobs....


as you can see, it's not while bulding but while installing instead. Never had something like this, that's why I did not open a bug.
Any idea what it could be?
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31094
Location: here

PostPosted: Fri Jan 06, 2017 8:42 am    Post subject: Reply with quote

Code:
/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

As workaround you can try to recompile package with force -fPIC in package.env.

You can post also full build.log?
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
RAPHEAD
Tux's lil' helper
Tux's lil' helper


Joined: 20 Jun 2003
Posts: 134
Location: Germany

PostPosted: Fri Jan 06, 2017 5:11 pm    Post subject: Reply with quote

thanks for the reply! That sounds like a hacky thing and in 15 years of Gentoo I cannot remember that I needed to do this before.
Is this something that qualifies as a bug? In that case I will raise an issue.
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22148

PostPosted: Sat Jan 07, 2017 6:44 pm    Post subject: Reply with quote

Someone else already filed a bug for it in mid-December: 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. The inline build log in that bug looks like it is the same error you posted here.
Back to top
View user's profile Send private message
RAPHEAD
Tux's lil' helper
Tux's lil' helper


Joined: 20 Jun 2003
Posts: 134
Location: Germany

PostPosted: Sat Jan 07, 2017 8:47 pm    Post subject: Reply with quote

many thanks!
Back to top
View user's profile Send private message
boyan7640
n00b
n00b


Joined: 07 Jun 2010
Posts: 4

PostPosted: Tue Feb 28, 2017 8:24 am    Post subject: Recompile package with force -fPIC in package.env. Reply with quote

I have tried to recompile package with force -fPIC in package.env but it didn't worked for me.
It seems the number of affected users are growing - https://bugs.gentoo.org/show_bug.cgi?id=602646 but still no workaround or permanent solution for more than two months :( .

Any other suggestion/s?
Back to top
View user's profile Send private message
RAPHEAD
Tux's lil' helper
Tux's lil' helper


Joined: 20 Jun 2003
Posts: 134
Location: Germany

PostPosted: Tue Feb 28, 2017 8:36 am    Post subject: Reply with quote

I Agree, this package should just compile on AMD64 with all other packages recent w/o hacks.
Back to top
View user's profile Send private message
z0ny
Tux's lil' helper
Tux's lil' helper


Joined: 19 Mar 2005
Posts: 102
Location: Germany

PostPosted: Sun May 21, 2017 6:17 am    Post subject: Reply with quote

Any news on this? cyrus-imapd 2.4 will be masked soon but the "stabilized" version 2.5 does not build without hacks. Sounds a bit weird...
_________________
Old C programmers never die. They're just cast into void.
Back to top
View user's profile Send private message
RAPHEAD
Tux's lil' helper
Tux's lil' helper


Joined: 20 Jun 2003
Posts: 134
Location: Germany

PostPosted: Sun May 21, 2017 12:31 pm    Post subject: Reply with quote

no chnage, even with everything up-to-date
Back to top
View user's profile Send private message
z0ny
Tux's lil' helper
Tux's lil' helper


Joined: 19 Mar 2005
Posts: 102
Location: Germany

PostPosted: Thu May 25, 2017 9:09 am    Post subject: Reply with quote

Sad enough the related bug is even still in state UNCONFIRMED.

By the way, which packages have to be built with -fPIC? It seems not enough to build net-mail/cyrus-imapd with it on my machines.
_________________
Old C programmers never die. They're just cast into void.
Back to top
View user's profile Send private message
ChrisJumper
Advocate
Advocate


Joined: 12 Mar 2005
Posts: 2395
Location: Germany

PostPosted: Thu May 25, 2017 5:39 pm    Post subject: Reply with quote

Hi z0ny!

I got the errors too and i will not upgrading to 3.0.1 because on the cyrusimap.org page is a longer howto about upgrading to Version 3.0.1 from 2.x.

The installation failed if cyrus 2.x is still installed. But when you remove it first with emerge -C cyrus and reemerge it again the installation went through. But i am not fine because i have this warnings:

Code:
libtool: warning: '/var/tmp/portage/net-mail/cyrus-imapd-2.5.10/work/cyrus-imapd-2.5.10/lib/libcyrus_min.la' has not been installed in '/usr/lib64'
libtool: warning: '/var/tmp/portage/net-mail/cyrus-imapd-2.5.10/work/cyrus-imapd-2.5.10/lib/libcyrus.la' has not been installed in '/usr/lib64'
libtool: warning: 'lib/libcyrus.la' has not been installed in '/usr/lib64'
libtool: warning: 'lib/libcyrus_min.la' has not been installed in '/usr/lib64'
libtool: warning: 'com_err/et/libcyrus_com_err.la' has not been installed in '/usr/lib64'
libtool: install: /usr/lib/portage/python3.4/ebuild-helpers/xattr/install -c imap/.libs/squatter /var/tmp/portage/net-mail/cyrus-imapd-2.5.10/image//usr/lib64/cyrus/squatter


Normaly a warning is something less important that you could sometimes ignore. But it feels ugly if it says: has not be installed. Which sound like a major Bug.
Or could it be that this are Parts that you deactivate with the useflags?

Edit: Hey i re-emerged libtool: emerge -1 sys-devel/libtool and then cyrus again emerge -1 cyrus-imapd and i just got LESS messages:

Code:
libtool: warning: relinking 'imap/libcyrus_imap.la'
..
libtool: warning: relinking 'sieve/libcyrus_sieve.la'


Code:
libtool: warning: remember to run 'libtool --finish /usr/lib64'


And if you run that commant:
Code:
# libtool --finish /usr/lib64
libtool: finish: PATH="/sbin:/bin:/usr/sbin:/usr/bin:/sbin" ldconfig -n /usr/lib64
----------------------------------------------------------------------
Libraries have been installed in:
   /usr/lib64

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the '-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the 'LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the 'LD_RUN_PATH' environment variable
     during linking
   - use the '-Wl,-rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to '/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
Back to top
View user's profile Send private message
RAPHEAD
Tux's lil' helper
Tux's lil' helper


Joined: 20 Jun 2003
Posts: 134
Location: Germany

PostPosted: Thu May 25, 2017 6:49 pm    Post subject: Reply with quote

I did try to mess around with fpic yet, I thought it's an easy thing to fix in the ebuild and that we will get it soon.
Back to top
View user's profile Send private message
abu999
n00b
n00b


Joined: 26 Mar 2004
Posts: 4

PostPosted: Thu May 25, 2017 9:41 pm    Post subject: Reply with quote

Same problem here!

I moved
mv /usr/lib64/libcyrus_min.a /usr/lib64/libcyrus_min.a_sav
mv /usr/lib64/libcyrus.a /usr/lib64/libcyrus.a_sav
and cyrus-imapd was successfully compilded and installed. I also get a lot of warnings:
libtool: warning: '/dev/shm/portage/net-mail/cyrus-imapd-2.5.10/work/cyrus-imapd-2.5.10/com_err/et/libcyrus_com_err.la' has not been installed in '/usr/lib64'
libtool: warning: '/dev/shm/portage/net-mail/cyrus-imapd-2.5.10/work/cyrus-imapd-2.5.10/lib/libcyrus_min.la' has not been installed in '/usr/lib64'
libtool: warning: '/dev/shm/portage/net-mail/cyrus-imapd-2.5.10/work/cyrus-imapd-2.5.10/lib/libcyrus.la' has not been installed in '/usr/lib64'
but cyrus-imapd is working.
Back to top
View user's profile Send private message
ChrisJumper
Advocate
Advocate


Joined: 12 Mar 2005
Posts: 2395
Location: Germany

PostPosted: Thu May 25, 2017 10:23 pm    Post subject: Reply with quote

Small OT-Question to other Cyrus users:

Code:
* net-mail/cyrus-imap-admin
     Verfügbare Versionen:   [M]2.4.17-r1 [M]~2.4.18 {berkdb kerberos libressl ssl}
     Startseite:             http://www.cyrusimap.org/
     Beschreibung:           Utilities and Perl modules to administer a Cyrus IMAP server


Since cyrus-imap-admin is mask/gone. How do i administrate cyrus? Because cyradm is not available for cyrus 2.5.10?

Did i miss something?

Update: Yes, i missed to set the PERL Useflag! :)
Back to top
View user's profile Send private message
dbishop
Tux's lil' helper
Tux's lil' helper


Joined: 08 Dec 2007
Posts: 107

PostPosted: Mon May 29, 2017 8:53 pm    Post subject: Reply with quote

I just ran into a similar problem with net-mail/cyrus-imapd-2.5.10

The work-around posted by abu999 above worked perfectly for me. We can probably take this bug a little more seriously now :D
Back to top
View user's profile Send private message
cwbailey
n00b
n00b


Joined: 29 Dec 2017
Posts: 2
Location: Columbia

PostPosted: Fri Dec 29, 2017 1:33 am    Post subject: Reply with quote

FWIW - I was able to avoid the problem by removing those two static libraries in /usr/lib64/cyrus which were placed there. Those old libs seem to be picked up by the linker and don't resolve all the symbols(?). Then reinstalling 3.0.4 went right in.

-rw-r--r-- 1 xxxx xxxx 1245510 Apr 15 2015 libcyrus.a
-rw-r--r-- 1 xxxx xxx 165256 Apr 15 2015 libcyrus_min.a

(And, as a reminder - DON'T forget to migrate any existing Berkely .db databases with the cvt_cyrusdb utility from your OLD install first! You'll lose the utility on update *guilty*)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum