[Dovecot] configure forgets to add -lgcc_s under Solaris 10

Stephan Schulz ss.c at gmx.net
Tue Aug 31 20:03:38 EEST 2010


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).


More information about the dovecot mailing list