From: Thomas W. <to...@to...> - 2005-09-09 12:30:02
|
Hello, I am trying to use fetchmail with SSL on SunOS. First I had some trouble getting it compiled with a local (non-root) installation of openssl. After a first hint from Rob Funk (thank you), I used the following with fetchmail 6.2.9rc2: demsn702@sulphur:~> ./configure --with-ssl=/home/demsn702/opt/openssl-0.9.8 \ --includedir=/home/demsn702/opt/openssl-0.9.8/include (Actually, having given it the openssl dir with --with-ssl, I would not have expected that I have to tell it to look for the openssl include files additionally, but that's a minor point.) Compile/make problems: Undefined first referenced symbol in file dlclose /home/demsn702/lib/libcrypto.a(dso_dlfcn.o) (symbol belongs to implicit dependency /usr/lib/libdl.so.1) interface_init fetchmail.o dlsym /home/demsn702/lib/libcrypto.a(dso_dlfcn.o) (symbol belongs to implicit dependency /usr/lib/libdl.so.1) dlopen /home/demsn702/lib/libcrypto.a(dso_dlfcn.o) (symbol belongs to implicit dependency /usr/lib/libdl.so.1) dlerror /home/demsn702/lib/libcrypto.a(dso_dlfcn.o) (symbol belongs to implicit dependency /usr/lib/libdl.so.1) ld: fatal: Symbol referencing errors. No output written to fetchmail So I added -ldl manually, and the following unresolved symbol remained: Undefined first referenced symbol in file interface_init fetchmail.o ld: fatal: Symbol referencing errors. No output written to fetchmail I noticed that the missing function is only compiled for linux and some other system. So I added a copy of the empty function to the source. Then it compiled... SSL access problems: demsn702@sulphur:~> fetchmail --ssl fetchmail: fetchmail: getaddrinfo("msx","imaps") error: servname not for ai_socktype IMAP connection to msx.bln1.siemens.de failed: Bad file number fetchmail: Query status=2 (SOCKET) Comments: 1. The error message is very "bit-wise" and not helpful. 2. Does this mean that the host does not support IMAPS, or does it mean that /etc/services does not list IMAPS (which it doesn't)? 3. In the latter case, can fetchmail be convinced to try it though? If I change socket.c, line 279: i = getaddrinfo(host, service, &req, &ai0); to i = getaddrinfo(host, NULL, &req, &ai0); it says: IMAP connection to msx failed: Cannot assign requested address fetchmail: Query status=2 (SOCKET) Again, the message is not helpful as it doesn't tell me if something went wrong accessing the server (maybe not trying the right port after my best-guess modification) or if the server was detected not to support IMAPS. Configuration script problems: As a last hint, I am listing here my attempt to call the configuration script. The problems are obvious: demsn702@sulphur:~/opt/fetchmail-6.2.9-rc2> ./fetchmailconf bash: ./fetchmailconf: Permission denied demsn702@sulphur:~/opt/fetchmail-6.2.9-rc2> ls -l fetchmailconf -rw-r--r-- 1 demsn702 mdd 41 Sep 9 11:41 fetchmailconf demsn702@sulphur:~/opt/fetchmail-6.2.9-rc2> sh fetchmailconf fetchmailconf: :: not found demsn702@sulphur:~/opt/fetchmail-6.2.9-rc2> ./fetchmailconf.py /usr/bin/env: No such file or directory demsn702@sulphur:~/opt/fetchmail-6.2.9-rc2> ls -l /usr/bin/env -r-xr-xr-x 1 root bin 5116 Jan 6 2000 /usr/bin/env demsn702@sulphur:~/opt/fetchmail-6.2.9-rc2> I would appreciate if the compilation problems get fixed and also if someone could help me with the SSL issues (and please improve error feedback...). Kind regards, Thomas Woff |