Stephan Schulz
2010-Aug-31 17:03 UTC
[Dovecot] configure forgets to add -lgcc_s under Solaris 10
Hi all! I built dovecot-1.2.14 on Solaris 10 with gcc as well as cc and had reproducible crashes of imap-login: Aug 31 19:00:05 dovecot: Info: Dovecot v1.2.14 starting up Aug 31 19:00:10 imap-login: Info: Login: user=<someuser>, method=PLAIN, rip=<remote_ip>, lip=<local_ip> Aug 31 19:00:10 IMAP(someuser): Error: ld.so.1: imap: fatal: libgcc_s.so.1: open failed: No such file or directory Aug 31 19:00:10 dovecot: Error: child 26222 (imap) killed with signal 9 To solution was to set the environment variable LIBS to "-lgcc_s" before running configure. I think this is a bug as this library should be added automatically by configure to the Makefile when considered necessary. The same problem applies to Dovecot-2.0.1 also, which gave the same error message. regards, Stephan P.S. I found a similar message of this issue for version 1.0.rc27 but the suggestions didn't help (i.e. /usr/sfw/lib is already in the RPATH).
Timo Sirainen
2010-Aug-31 17:23 UTC
[Dovecot] configure forgets to add -lgcc_s under Solaris 10
On Tue, 2010-08-31 at 19:03 +0200, Stephan Schulz wrote:> To solution was to set the environment variable LIBS to "-lgcc_s" before > running configure. I think this is a bug as this library should be added > automatically by configure to the Makefile when considered necessary.But when is it necessary?.. Looks like in my Solaris installation it's been automatically added to dovecot-auth and managesieve binaries, but not elsewhere and Dovecot works just fine. The one special thing about imap/pop3-login binaries is OpenSSL, maybe that's trying to include it automatically?..
Stephan Schulz
2010-Sep-01 16:49 UTC
[Dovecot] configure forgets to add -lgcc_s under Solaris 10
Am 01.09.2010 17:46, schrieb Timo Sirainen:> On Wed, 2010-09-01 at 08:10 +0200, Stephan Schulz wrote: > >> Yes, I have no problem compiling and using for example GNU-grep, >> GNU-patch, GNU-make, pkg-config, GNU-tar or the latest xz-utils without >> having to set the LIBS environment variable. (I hope that this is a >> little bit representative.) > > But do their binaries link to libgcc_s?I checked back and of the above mentioned programs in fact only GNU-tar (version 1.23) links against libgcc_s. regards, Stephan