[Dovecot] Solaris Dovecot dovecot dovecot-1.0.rc27
To all,
I am using Dovecot on solaris 10. Home directories are mounted using NFS. However, they are not readable by root.
I compiled Dovecot from the source. I set the following environment variables:
export LDFLAGS='-L/local/software/openssl/lib -R/local/software/openssl/lib'
export CPPFLAGS=-I/local/software/openssl/include
Then I ran gmake and the gmake install.
In the server logs, when I attempt to connect to port 993 using imap over SSL, i receive the following error:
dovecot: Mar 21 15:34:25 Info: imap-login: Login: user=<someusername>, method=PLAIN, rip=134.121.92.228, lip=134.121.5.141, TLS dovecot: Mar 21 15:34:25 Error: IMAP(someusername): ld.so.1: imap: fatal: libgcc_s.so.1: open failed: No such file or directory dovecot: Mar 21 15:34:25 Error: child 13085 (imap) killed with signal 9
Has anyone seen similar issues?
Randall
Randall Svancara wrote:
In the server logs, when I attempt to connect to port 993 using imap over SSL, i receive the following error:
dovecot: Mar 21 15:34:25 Info: imap-login: Login: user=<someusername>, method=PLAIN, rip=134.121.92.228, lip=134.121.5.141, TLS dovecot: Mar 21 15:34:25 Error: IMAP(someusername): ld.so.1: imap: fatal: libgcc_s.so.1: open failed: No such file or directory dovecot: Mar 21 15:34:25 Error: child 13085 (imap) killed with signal 9
Has anyone seen similar issues?
You need the GCC runtime libraries (package SFWgcc34l or similar) installed.
Hope this helps, Chris
-- --+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+- Christopher Wakelin, c.d.wakelin@reading.ac.uk IT Services Centre, The University of Reading, Tel: +44 (0)118 378 8439 Whiteknights, Reading, RG6 2AF, UK Fax: +44 (0)118 975 3094
Randall Svancara wrote:
dovecot: Mar 21 15:34:25 Info: imap-login: Login: user=<someusername>, method=PLAIN, rip=134.121.92.228, lip=134.121.5.141, TLS dovecot: Mar 21 15:34:25 Error: IMAP(someusername): ld.so.1: imap: fatal: libgcc_s.so.1: open failed: No such file or directory dovecot: Mar 21 15:34:25 Error: child 13085 (imap) killed with signal 9
Has anyone seen similar issues?
The RPATH for the dovecot binaries appear to not include the path to where libgcc_s.so.1 exists at. run 'dump -Lv <binary>' to see what RPATH is embeded in the binary, and recompile either fixing the -R args used when linking or set LD_RUN_PATH to a colon delimited list of paths for the RPATH to be set to when your compiling.
-Phil.
Phil Oleson wrote:
Randall Svancara wrote:
dovecot: Mar 21 15:34:25 Info: imap-login: Login: user=<someusername>, method=PLAIN, rip=134.121.92.228, lip=134.121.5.141, TLS dovecot: Mar 21 15:34:25 Error: IMAP(someusername): ld.so.1: imap: fatal: libgcc_s.so.1: open failed: No such file or directory dovecot: Mar 21 15:34:25 Error: child 13085 (imap) killed with signal 9
Has anyone seen similar issues?
The RPATH for the dovecot binaries appear to not include the path to where libgcc_s.so.1 exists at. run 'dump -Lv <binary>' to see what RPATH is embeded in the binary, and recompile either fixing the -R args used when linking or set LD_RUN_PATH to a colon delimited list of paths for the RPATH to be set to when your compiling.
-Phil.
Not the best thing to do, but you could just run this:
# crle -u -l /dir/where/libgcc_s.so.1/is/located
This is the ldconfig equivalent for solaris.
But recompiling with the proper -R and -L paths in LDFLAGS, as Phil suggested is the way to go.
Cheers
Everyone,
I went ahead and added -L/usr/sfw/lib and -R/usr/sfw/lib to the LDFLAGS environment variable prior to running configure, make and make install.
dump -Lv dovecot now reveals /usr/sfw/lib in the RPATH.
Above all, I am not receiving any errors.
Thanks,
Randall
On Wed, 2007-03-21 at 17:17 -0700, Tom Bombadil wrote:
Phil Oleson wrote:
Randall Svancara wrote:
dovecot: Mar 21 15:34:25 Info: imap-login: Login: user=<someusername>, method=PLAIN, rip=134.121.92.228, lip=134.121.5.141, TLS dovecot: Mar 21 15:34:25 Error: IMAP(someusername): ld.so.1: imap: fatal: libgcc_s.so.1: open failed: No such file or directory dovecot: Mar 21 15:34:25 Error: child 13085 (imap) killed with signal 9
Has anyone seen similar issues?
The RPATH for the dovecot binaries appear to not include the path to where libgcc_s.so.1 exists at. run 'dump -Lv <binary>' to see what RPATH is embeded in the binary, and recompile either fixing the -R args used when linking or set LD_RUN_PATH to a colon delimited list of paths for the RPATH to be set to when your compiling.
-Phil.
Not the best thing to do, but you could just run this:
# crle -u -l /dir/where/libgcc_s.so.1/is/located
This is the ldconfig equivalent for solaris.
But recompiling with the proper -R and -L paths in LDFLAGS, as Phil suggested is the way to go.
Cheers
Randall Svancara wrote:
To all,
I am using Dovecot on solaris 10. Home directories are mounted using NFS. However, they are not readable by root.
I compiled Dovecot from the source. I set the following environment variables:
export LDFLAGS='-L/local/software/openssl/lib -R/local/software/openssl/lib'
export CPPFLAGS=-I/local/software/openssl/include
Then I ran gmake and the gmake install.
In the server logs, when I attempt to connect to port 993 using imap over SSL, i receive the following error:
dovecot: Mar 21 15:34:25 Info: imap-login: Login: user=<someusername>, method=PLAIN, rip=134.121.92.228, lip=134.121.5.141, TLS dovecot: Mar 21 15:34:25 Error: IMAP(someusername): ld.so.1: imap: fatal: libgcc_s.so.1: open failed: No such file or directory dovecot: Mar 21 15:34:25 Error: child 13085 (imap) killed with signal 9
Has anyone seen similar issues?
Randall
I see you found a solution, but I'm perplexed as to why you have this problem. Did you use the gcc in /usr/sfw/bin?
- Bart
Yes, I used gcc in /usr/sfw/bin. I was perplexed as well. It could be that the server's run time linking configuration is not correct. I will check our other servers to confirm this.
Randall
-----Original Message----- From: dovecot-bounces@dovecot.org on behalf of Bart Smaalders Sent: Wed 3/21/2007 8:45 PM To: Svancara, Randall Cc: dovecot@dovecot.org Subject: Re: [Dovecot] Solaris Dovecot dovecot dovecot-1.0.rc27
Randall Svancara wrote:
To all,
I am using Dovecot on solaris 10. Home directories are mounted using NFS. However, they are not readable by root.
I compiled Dovecot from the source. I set the following environment variables:
export LDFLAGS='-L/local/software/openssl/lib -R/local/software/openssl/lib'
export CPPFLAGS=-I/local/software/openssl/include
Then I ran gmake and the gmake install.
In the server logs, when I attempt to connect to port 993 using imap over SSL, i receive the following error:
dovecot: Mar 21 15:34:25 Info: imap-login: Login: user=<someusername>, method=PLAIN, rip=134.121.92.228, lip=134.121.5.141, TLS dovecot: Mar 21 15:34:25 Error: IMAP(someusername): ld.so.1: imap: fatal: libgcc_s.so.1: open failed: No such file or directory dovecot: Mar 21 15:34:25 Error: child 13085 (imap) killed with signal 9
Has anyone seen similar issues?
Randall
I see you found a solution, but I'm perplexed as to why you have this problem. Did you use the gcc in /usr/sfw/bin?
- Bart
participants (6)
-
Bart Smaalders
-
Chris Wakelin
-
Phil Oleson
-
Randall Svancara
-
Svancara, Randall
-
Tom Bombadil