[Dovecot] compiling dovecot on aix gcc 3.3.2
I try to compile the dovecot with gcc version 3.3.2 on aix. It seemed it was okay. It was working but when i try to use quota dynamic modules i get error.
Edlopen(/usr/local/lib/dovecot/imap/lib10_quota_plugin.so) failed: Could not load module /usr/local/lib/dovecot/imap/lib10_quota_plugin.so. System error: No such file or directory Error: imap dump-capability process returned 89
When i check the /usr/local/lib/dovecot/imap/lib10_quota_plugin.so i see that it is a link which is pointing /usr/local/lib/dovecot/lib10_quota_plugin.so . But there is no lib10_quota_plugin.so . I try compiling it on linux debian. I see that lib10_quota_plugin.so in it is proper place. I dont know what to do. Did i something wrong? I need help Best regards
On Wed, 2007-03-21 at 00:29 +0200, funkypunky drunky wrote:
When i check the /usr/local/lib/dovecot/imap/lib10_quota_plugin.so i see that it is a link which is pointing /usr/local/lib/dovecot/lib10_quota_plugin.so . But there is no lib10_quota_plugin.so .
What is in src/plugins/quota/.libs/ directory after compiling the sources? If it's in there, copy it manually if make install for some reason decided not to copy it.
Firstly thank you for your respond Timo. I manually copied the lib10_quota_plugin.so and lib11_imap_quota_plugin.so (sorry if i wrote the files wrongly) But it didnt work. I dont understand why it isnt work. Normally installation procedure only copy this *.so files to plugin directory. But when i copied it doesnt solve my problem. Dovecot kill itself. I googled around but i cant find anything. Is there anybody using this plugin on IBM aIX 5.3? Am i only the one who is trying to use this quota extension on IBM AIX 5.3 in the whole world:)It is important for me to use this quota extension. A bit urgent. If you wanna i can post my configuration,"configure","make", and "make install" output. Thanx and best regards Halil
2007/3/21, Timo Sirainen tss@iki.fi
On Wed, 2007-03-21 at 00:29 +0200, funkypunky drunky wrote:
When i check the /usr/local/lib/dovecot/imap/lib10_quota_plugin.so i see that it is a link which is pointing /usr/local/lib/dovecot/lib10_quota_plugin.so . But there is no lib10_quota_plugin.so .
What is in src/plugins/quota/.libs/ directory after compiling the sources? If it's in there, copy it manually if make install for some reason decided not to copy it.
On Wed, 2007-03-21 at 22:36 +0200, funkypunky drunky wrote:
Firstly thank you for your respond Timo. I manually copied the lib10_quota_plugin.so and lib11_imap_quota_plugin.so (sorry if i wrote the files wrongly) But it didnt work. I dont understand why it isnt work.
So if you manually copied the file to the directory where Dovecot expected to find it, what is the error message then? It shouldn't be "No such file or directory" anymore, if you copied it to the right location..
I am writing step by step. 1 ./configure --with-ssl --with-ldap 2 make 3 make install This is my config
protocols = imap imaps pop3 pop3s listen = * disable_plaintext_auth = no log_timestamp = "%b %d %H:%M:%S " ssl_disable = yes login_user = dovecot login_processes_count = 25 login_max_processes_count = 128 login_greeting = Microsoft Exchange POP3 server version 5.5.2653.23 ready default_mail_env = maildir:%h mail_log_prefix = "%Us,user=<%u>,lip=%l rip=%r method=%m %c: " verbose_proctitle = yes
protocol imap { login_executable = /usr/local/libexec/dovecot/imap-login imap_max_line_length = 65536 mail_plugin_dir = /usr/local/lib/dovecot/imap mail_plugins = quota imap_quota login_greeting_capability = yes imap_client_workarounds = outlook-idle }
protocol pop3 { login_executable = /usr/local/libexec/dovecot/pop3-login mail_executable = /usr/local/libexec/dovecot/pop3 pop3_uidl_format = %08Xv%08Xu mail_plugins = quota mail_plugin_dir = /usr/local/lib/dovecot/pop3 pop3_client_workarounds = outlook-no-nuls } auth_executable = /usr/local/libexec/dovecot/dovecot-auth
auth_process_size = 256 auth default { mechanisms = plain login passdb pam { } passdb ldap { args = /usr/local/etc/dovecot-ldap.conf } userdb passwd { } userdb ldap { args = /usr/local/etc/dovecot-ldap.conf } user = dvctauth socket listen { client { path = /var/spool/postfix/private/auth mode = 0666 user = postfix
group = postfix } } } dict { } plugin {
quota = maildir trash = /etc/dovecot-trash.conf } Then i start dovecot. It returns an error. Edlopen(/usr/local/lib/dovecot/imap/lib10_quota_plugin.so) failed: Could not load module /usr/local/lib/dovecot/imap/lib10_quota_plugin.so. System error: No such file or directory Error: imap dump-capability process returned 89
From this installation directory ./src/plugins/quota/.libs i copy the
As you know /usr/local/lib/dovecot/imap/lib10_quota_plugin.so is a link. lrwxrwxrwx 1 root system 24 Mar 22 01:54 lib10_quota_plugin.so@ -> ../lib10_quota_plugin.so I look to directory /usr/local/lib/dovecot/ but there is no lib10_quota_plugin.so lib10_quota_plugin.so to /usr/local/lib/dovecot and error message change to the below one
FPlugin imap_quota not found from directory /usr/local/lib/dovecot/imap Error: imap dump-capability process returned 89
From this error message i understand that lib11_imap_quota_plugin.so is not in its place. I checked it and see there is no file. I copied from the src bla bla to its place /usr/local/lib/dovecot/imap and error messages change to the below one
Error: imap dump-capability process killed with signal 11 I have to notice that every plugin files which has an extension of .so is not in its proper place.
But if i dont activate the plugins there is no problem. Thanx and best regards
2007/3/21, Timo Sirainen tss@iki.fi:
Firstly thank you for your respond Timo. I manually copied the lib10_quota_plugin.so and lib11_imap_quota_plugin.so (sorry if i wrote
On Wed, 2007-03-21 at 22:36 +0200, funkypunky drunky wrote: the
files wrongly) But it didnt work. I dont understand why it isnt work.
So if you manually copied the file to the directory where Dovecot expected to find it, what is the error message then? It shouldn't be "No such file or directory" anymore, if you copied it to the right location..
On 23.3.2007, at 16.11, funkypunky drunky wrote:
Error: imap dump-capability process killed with signal 11
So it crashes when it has loaded the plugins. Could you try getting a
gdb backtrace? See http://dovecot.org/bugreport.html
Also you could try setting imap_capability setting manually so it
won't run this dump-capability. Although it probably still crashes
when the user logs in.
I pasted the output of gdb. I hope it is usefull. Thanx
This GDB was configured as "powerpc-ibm-aix5.1.0.0"... Core was generated by `imap'. Program terminated with signal 11, Segmentation fault. #0 0xd1a468cc in i_malloc () from /usr/local/lib/dovecot/imap/lib10_quota_plugin.so (gdb) bt full #0 0xd1a468cc in i_malloc () from /usr/local/lib/dovecot/imap/lib10_quota_plugin.so No symbol table info available. #1 0xd1a47cc8 in quota_init () at quota.c:32 No locals. #2 0xd1a4e340 in quota_plugin_init () at quota-plugin.c:24 No locals. #3 0x1000d704 in module_dir_init (modules=0xc) at module-dir.c:298 module = (struct module *) 0x20013dd8 #4 0x100006bc in main (argc=12, argv=0x2ff22ad4, envp=0x2ff22ae4) at main.c:203 No locals.
2007/3/23, Timo Sirainen tss@iki.fi:
On 23.3.2007, at 16.11, funkypunky drunky wrote:
Error: imap dump-capability process killed with signal 11
So it crashes when it has loaded the plugins. Could you try getting a gdb backtrace? See http://dovecot.org/bugreport.html
Also you could try setting imap_capability setting manually so it won't run this dump-capability. Although it probably still crashes when the user logs in.
On Mon, 2007-03-26 at 09:24 +0300, funkypunky drunky wrote:
I pasted the output of gdb. I hope it is usefull. Thanx
This GDB was configured as "powerpc-ibm-aix5.1.0.0"... Core was generated by `imap'. Program terminated with signal 11, Segmentation fault. #0 0xd1a468cc in i_malloc () from /usr/local/lib/dovecot/imap/lib10_quota_plugin.so (gdb) bt full #0 0xd1a468cc in i_malloc () from /usr/local/lib/dovecot/imap/lib10_quota_plugin.so No symbol table info available. #1 0xd1a47cc8 in quota_init () at quota.c:32
So it crashes at the first Dovecot function it tries to call. Perhaps the imap binary isn't exporting the symbols, or something like that. I've no idea. Anyway it is most likely related to some linking or compiling flags (or the linker/compiler itself).
Hello!
Have you tried to export all symbols defined in lib archives generated while dovecot is build? I've had this problem on aix with xlC and solved it by writing an compiler script for doing that.
See http://www.dovecot.org/list/dovecot/2007-February/019226.html and http://wiki.dovecot.org/AixPluginsSupport
Regards, Ralf
Timo Sirainen schrieb am 26.03.2007 21:08:
On Mon, 2007-03-26 at 09:24 +0300, funkypunky drunky wrote:
I pasted the output of gdb. I hope it is usefull. Thanx
This GDB was configured as "powerpc-ibm-aix5.1.0.0"... Core was generated by `imap'. Program terminated with signal 11, Segmentation fault. #0 0xd1a468cc in i_malloc () from /usr/local/lib/dovecot/imap/lib10_quota_plugin.so (gdb) bt full #0 0xd1a468cc in i_malloc () from /usr/local/lib/dovecot/imap/lib10_quota_plugin.so No symbol table info available. #1 0xd1a47cc8 in quota_init () at quota.c:32
So it crashes at the first Dovecot function it tries to call. Perhaps the imap binary isn't exporting the symbols, or something like that. I've no idea. Anyway it is most likely related to some linking or compiling flags (or the linker/compiler itself).
--
Dipl.-Inform. (FH) Ralf Becker Rechenzentrum (r/ft) der FH Trier (Network|Mail|Web|Firewall) University of applied sciences Administrator Schneidershof, D-54293 Trier
Mail: beckerr@fh-trier.de Fon: +49 651 8103 499 WWW: http://www.fh-trier.de/~beckerr Fax: +49 651 8103 214 PGP: http://www.fh-trier.de/~beckerr/pgp ICQ: <available>
Wenn Gott gewollt haette, dass E-Mail in HTML geschrieben wuerden, endeten Gebete traditionell mit </amen>. (Tom Listen)
participants (4)
-
funkypunky drunky
-
John Robinson
-
Ralf Becker
-
Timo Sirainen