Re: Compile error
Reza Iskandar Achmad <[email protected]>
| Newsgroups | gmane.mail.qmail.admin |
|---|---|
| Message-ID | <C6F29D4E.5B6E%[email protected]> |
Hi, Thank you for supporting me on this issue. I attach output from strace. Thanks, reza On 10/7/09 7:24 PM, "Itamar Reis Peixoto" <[email protected]> wrote: > Can you post your strace ? > > strace -s255 -f -o out.txt qmailadmin > > or use gdb, but for gdb I think we need to add -g to compile flags to > enable debug. > > > > 2009/10/7 Lendvai Péter <[email protected]>: >> Hi, >> >> I am fighting with the same problem. It is a RHEL 5.3 box and qmailadmin >> segfaults. >> >> strace shows something that segfault happened around a call to vhckpw. >> >> Any clues? >> >> Thanks, >> Peter >> >> On 2009. október 7. 10.05.02 Reza Iskandar Achmad wrote: >>> Ok, after add -ldl to LIBS line at Makefile, then compilation got succeed. >>> But http://server/cgi-bin/qmailadmin returns blank page. When I execute >>> /usr/lib/cgi-bin/qmailadmin it returns segmentation faults. >>> >>> Please anyone who could help. :) >>> >>> reza >>> >>> On 10/7/09 12:28 PM, "Itamar Reis Peixoto" <[email protected]> wrote: >>>> I think it's  probably missing -ldl in the flags >>>> >>>> >>>> On Wed, Oct 7, 2009 at 2:25 AM, Reza Iskandar Achmad >>>> >>>> <[email protected]> wrote: >>>>> Hi All, >>>>> >>>>> I am trying to compile qmailadmin-1.2.13 but keep getting errors. Its >>>>> weird because previously I it successful compiled on same machine. >>>>> >>>>> These are error lines I got when giving "make" command >>>>> >>>>> make[1]: Entering directory `/usr/local/src/qmailadmin-1.2.13' >>>>> gcc  -g -O2 -Wall  -o qmailadmin  qmailadmin.o alias.o autorespond.o >>>>> forward.o mailinglist.o user.o util.o printh.o auth.o template.o >>>>> command.o show.o cgi.o limits.o dotqmail.o -L/home/vpopmail/lib >>>>> -lvpopmail  -lcrypt -lcrypt >>>>> /home/vpopmail/lib/libvpopmail.so: undefined reference to `dlsym' >>>>> /home/vpopmail/lib/libvpopmail.so: undefined reference to `dlerror' >>>>> /home/vpopmail/lib/libvpopmail.so: undefined reference to `dlopen' >>>>> /home/vpopmail/lib/libvpopmail.so: undefined reference to `dlclose' >>>>> collect2: ld returned 1 exit status >>>>> make[1]: *** [qmailadmin] Error 1 >>>>> make[1]: Leaving directory `/usr/local/src/qmailadmin-1.2.13' >>>>> make: *** [all] Error 2 >>>>> >>>>> Please anyone out there help me to resolve this problem. >>>>> >>>>> Thank you >>>>> >>>>> reza >>> >>> >> >> >> >> >> > > !DSPAM:4acc8a6f32711439112918!
out.txt
(application/octet-stream, 13.5 KB)
21144 execve("/usr/lib/cgi-bin/qmailadmin", ["/usr/lib/cgi-bin/qmailadmin"], [/* 18 vars */]) = 0
21144 brk(0) = 0x9a29000
21144 fcntl64(0, F_GETFD) = 0
21144 fcntl64(1, F_GETFD) = 0
21144 fcntl64(2, F_GETFD) = 0
21144 access("/etc/suid-debug", F_OK) = -1 ENOENT (No such file or directory)
21144 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
21144 mmap2(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f06000
21144 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
21144 open("/etc/ld.so.cache", O_RDONLY) = 3
21144 fstat64(3, {st_mode=S_IFREG|0644, st_size=18942, ...}) = 0
21144 mmap2(NULL, 18942, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7f01000
21144 close(3) = 0
21144 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
21144 open("/home/vpopmail/lib/libvpopmail.so", O_RDONLY) = 3
21144 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0 X\0\0004\0\0\0(?\2\0\0\0\0\0004\0 \0\6\0(\0!\0\36\0\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0P \2\0P \2\0\5\0\0\0\0\20\0\0\1\0\0\0\254.\2\0\254>\2\0\254>\2\0d\10\0\0\0&\0\0\6\0\0\0\0\20\0\0\2\0\0\0\300.\2\0\300>\2\0\300>\2\0\310\0\0\0\310\0\0\0\6\0\0\0\4\0\0\0P\345td\0 \2\0\0 \2\0\0 \2\0\24\0\0\0\24\0\0\0\4\0\0\0\4\0\0\0Q\345td\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\6\0\0\0\4\0\0\0R\345td\254.\2\0\254>\2\0\254>\2\0T\1\0\0T\1\0\0\4\0\0\0\1\0\0\0\7\1\0\0n\1\0\0\0\0\0\0"..., 512) = 512
21144 fstat64(3, {st_mode=S_IFREG|0644, st_size=165153, ...}) = 0
21144 mmap2(NULL, 156844, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7eda000
21144 mmap2(0xb7efd000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x22) = 0xb7efd000
21144 mmap2(0xb7eff000, 5292, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7eff000
21144 close(3) = 0
21144 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
21144 open("/lib/tls/i686/cmov/libcrypt.so.1", O_RDONLY) = 3
21144 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0 \7\0\0004\0\0\0008\221\0\0\0\0\0\0004\0 \0\10\0(\0\34\0\33\0\6\0\0\0004\0\0\0004\0\0\0004\0\0\0\0\1\0\0\0\1\0\0\5\0\0\0\4\0\0\0\3\0\0\0`\213\0\0`\213\0\0`\213\0\0\23\0\0\0\23\0\0\0\4\0\0\0\1\0\0\0\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\214\214\0\0\214\214\0\0\5\0\0\0\0\20\0\0\1\0\0\0\350\216\0\0\350\236\0\0\350\236\0\0\\\1\0\0tr\2\0\6\0\0\0\0\20\0\0\2\0\0\0\374\216\0\0\374\236\0\0\374\236\0\0\340\0\0\0\340\0\0\0\6\0\0\0\4\0\0\0\4\0\0\0004\1\0\0004\1\0\0004\1\0\0 \0\0\0 \0\0\0\4\0\0\0\4\0\0\0Q\345td\0\0\0\0\0\0\0\0"..., 512) = 512
21144 fstat64(3, {st_mode=S_IFREG|0644, st_size=38296, ...}) = 0
21144 mmap2(NULL, 201052, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7ea8000
21144 mmap2(0xb7eb1000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x8) = 0xb7eb1000
21144 mmap2(0xb7eb3000, 155996, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7eb3000
21144 close(3) = 0
21144 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
21144 open("/lib/tls/i686/cmov/libdl.so.2", O_RDONLY) = 3
21144 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0 \n\0\0004\0\0\0D!\0\0\0\0\0\0004\0 \0\10\0(\0\35\0\34\0\6\0\0\0004\0\0\0004\0\0\0004\0\0\0\0\1\0\0\0\1\0\0\5\0\0\0\4\0\0\0\3\0\0\0\347\32\0\0\347\32\0\0\347\32\0\0\23\0\0\0\23\0\0\0\4\0\0\0\1\0\0\0\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\254\34\0\0\254\34\0\0\5\0\0\0\0\20\0\0\1\0\0\0\264\36\0\0\264.\0\0\264.\0\0\220\1\0\0\304\1\0\0\6\0\0\0\0\20\0\0\2\0\0\0\320\36\0\0\320.\0\0\320.\0\0\370\0\0\0\370\0\0\0\6\0\0\0\4\0\0\0\4\0\0\0004\1\0\0004\1\0\0004\1\0\0 \0\0\0 \0\0\0\4\0\0\0\4\0\0\0Q\345td\0\0\0\0\0\0\0\0"..., 512) = 512
21144 fstat64(3, {st_mode=S_IFREG|0644, st_size=9676, ...}) = 0
21144 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7ea7000
21144 mmap2(NULL, 12408, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7ea3000
21144 mmap2(0xb7ea5000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1) = 0xb7ea5000
21144 close(3) = 0
21144 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
21144 open("/lib/tls/i686/cmov/libc.so.6", O_RDONLY) = 3
21144 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\320h\1\0004\0\0\0\344\366\25\0\0\0\0\0004\0 \0\n\0(\0D\0C\0\6\0\0\0004\0\0\0004\0\0\0004\0\0\0@\1\0\0@\1\0\0\5\0\0\0\4\0\0\0\3\0\0\0000r\24\0000r\24\0000r\24\0\23\0\0\0\23\0\0\0\4\0\0\0\1\0\0\0\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\364\261\25\0\364\261\25\0\5\0\0\0\0\20\0\0\1\0\0\0\304\301\25\0\304\321\25\0\304\321\25\0\270'\0\0\254T\0\0\6\0\0\0\0\20\0\0\2\0\0\0|\335\25\0|\355\25\0|\355\25\0\360\0\0\0\360\0\0\0\6\0\0\0\4\0\0\0\4\0\0\0t\1\0\0t\1\0\0t\1\0\0 \0\0\0 \0\0\0\4\0\0\0\4\0\0\0\7\0\0\0\304\301\25\0\304\321\25\0"..., 512) = 512
21144 fstat64(3, {st_mode=S_IFREG|0755, st_size=1442180, ...}) = 0
21144 mmap2(NULL, 1451632, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7d40000
21144 mprotect(0xb7e9c000, 4096, PROT_NONE) = 0
21144 mmap2(0xb7e9d000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x15c) = 0xb7e9d000
21144 mmap2(0xb7ea0000, 9840, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7ea0000
21144 close(3) = 0
21144 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7d3f000
21144 set_thread_area({entry_number:-1 -> 6, base_addr:0xb7d3f6c0, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0
21144 open("/dev/urandom", O_RDONLY) = 3
21144 read(3, "\0\361\355"..., 3) = 3
21144 close(3) = 0
21144 mprotect(0xb7e9d000, 8192, PROT_READ) = 0
21144 mprotect(0xb7ea5000, 4096, PROT_READ) = 0
21144 mprotect(0xb7eb1000, 4096, PROT_READ) = 0
21144 mprotect(0xb7efd000, 4096, PROT_READ) = 0
21144 mprotect(0x805d000, 4096, PROT_READ) = 0
21144 mprotect(0xb7f25000, 4096, PROT_READ) = 0
21144 munmap(0xb7f01000, 18942) = 0
21144 lstat64("/usr/local/share/qmailadmin/lang/en", {st_mode=S_IFREG|0644, st_size=8076, ...}) = 0
21144 brk(0) = 0x9a29000
21144 brk(0x9a4a000) = 0x9a4a000
21144 open("/usr/local/share/qmailadmin/lang/en", O_RDONLY) = 3
21144 fstat64(3, {st_mode=S_IFREG|0644, st_size=8076, ...}) = 0
21144 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f05000
21144 fstat64(3, {st_mode=S_IFREG|0644, st_size=8076, ...}) = 0
21144 _llseek(3, 4096, [4096], SEEK_SET) = 0
21144 read(3, "ail addresses on mailing list\n192 Back to main menu\n193 added to mailing list\n194 added as a moderator to mailing list\n195 Delete subscriber from mailing list\n196 Delete moderator from mailing list\n197 removed as a moderator for mailing list\n198 Invalid Lo"..., 3980) = 3980
21144 _llseek(3, 0, [0], SEEK_SET) = 0
21144 read(3, "000 iso-8859-1\n001 Main Menu\n002 Email Account\n003 Add Mail Robot:\n004 Mail Robot Name:\n005 Send copy to:\n006 Subject: \n007 Add Forward Account:\n008 Forward Email Address: \n009 Local Name:\n010 (Account name to forward to<br>OR<br>full email address if forw"..., 4096) = 4096
21144 read(3, "ail addresses on mailing list\n192 Back to main menu\n193 added to mailing list\n194 added as a moderator to mailing list\n195 Delete subscriber from mailing list\n196 Delete moderator from mailing list\n197 removed as a moderator for mailing list\n198 Invalid Lo"..., 4096) = 3980
21144 open("/usr/local/share/qmailadmin/html/colortable", O_RDONLY) = 4
21144 umask(077) = 022
21144 fstat64(1, {st_mode=S_IFCHR|0600, st_rdev=makedev(136, 0), ...}) = 0
21144 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f04000
21144 write(1, "Content-Type: text/html; charset=iso-8859-1\n"..., 44) = 44
21144 write(1, "\n"..., 1) = 1
21144 lstat64("/usr/local/share/qmailadmin/html/header.html", {st_mode=S_IFREG|0644, st_size=289, ...}) = 0
21144 open("/usr/local/share/qmailadmin/html/header.html", O_RDONLY) = 5
21144 fstat64(5, {st_mode=S_IFREG|0644, st_size=289, ...}) = 0
21144 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f03000
21144 read(5, "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 TRansitional//EN\" \"http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd\">\n<html>\n <head>\n <title>QmailAdmin ##D</title>\n <meta http-equiv=\"content-type\" content=\"text/html; charset=##X000\">\n <meta name=\"r"..., 4096) = 289
21144 write(1, "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 TRansitional//EN\" \"http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd\">\n"..., 123) = 123
21144 write(1, "<html>\n"..., 7) = 7
21144 write(1, " <head>\n"..., 8) = 8
21144 write(1, " <title>QmailAdmin </title>\n"..., 29) = 29
21144 write(1, " <meta http-equiv=\"content-type\" content=\"text/html; charset=iso-8859-1\">\n"..., 75) = 75
21144 write(1, " <meta name=\"robots\" content=\"noindex,follow\">\n"..., 48) = 48
21144 read(5, ""..., 4096) = 0
21144 close(5) = 0
21144 munmap(0xb7f03000, 4096) = 0
21144 lstat64("/usr/local/share/qmailadmin/html/show_login.html", {st_mode=S_IFREG|0644, st_size=4700, ...}) = 0
21144 open("/usr/local/share/qmailadmin/html/show_login.html", O_RDONLY) = 5
21144 fstat64(5, {st_mode=S_IFREG|0644, st_size=4700, ...}) = 0
21144 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f03000
21144 read(5, " </head>\n <body bgcolor=\"#ffffff\" vlink=\"#000000\" link=\"#000000\" alink=\"#000000\" onload=\"init();\">\n\n<script language=\"Javascript\" type=\"text/javascript\">\n<!--\nfunction init()\n{\ndocument.logon.username.focus();\n}\n//-->\n</script>\n\n <center>\n <h2>##S</h2>\n"..., 4096) = 4096
21144 write(1, " </head>\n"..., 9) = 9
21144 write(1, " <body bgcolor=\"#ffffff\" vlink=\"#000000\" link=\"#000000\" alink=\"#000000\" onload=\"init();\">\n"..., 90) = 90
21144 write(1, "\n"..., 1) = 1
21144 write(1, "<script language=\"Javascript\" type=\"text/javascript\">\n"..., 54) = 54
21144 write(1, "<!--\n"..., 5) = 5
21144 write(1, "function init()\n"..., 16) = 16
21144 write(1, "{\n"..., 2) = 2
21144 write(1, "document.logon.username.focus();\n"..., 33) = 33
21144 write(1, "}\n"..., 2) = 2
21144 write(1, "//-->\n"..., 6) = 6
21144 write(1, "</script>\n"..., 10) = 10
21144 write(1, "\n"..., 1) = 1
21144 write(1, " <center>\n"..., 11) = 11
21144 write(1, " <h2></h2>\n"..., 13) = 13
21144 write(1, " <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\n"..., 54) = 54
21144 write(1, " <tr>\n"..., 9) = 9
21144 write(1, " <td width=\"147\">\n"..., 22) = 22
21144 write(1, " <table background=\"/images/qmailadmin/upperleft.png\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\n"..., 103) = 103
21144 write(1, " <tr><td width=\"147\" height=\"41\"><img src=\"/images/qmailadmin/pixel.png\" height=\"1\" width=\"1\"></td></tr>\n"..., 111) = 111
21144 write(1, " </table>\n"..., 15) = 15
21144 write(1, " </td>\n"..., 11) = 11
21144 write(1, " <td>\n"..., 10) = 10
21144 write(1, " <table background=\"/images/qmailadmin/uppermiddle1.png\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">\n"..., 119) = 119
21144 write(1, " <tr><td height=\"41\"><img src=\"/images/qmailadmin/pixel.png\" height=\"1\" width=\"1\"></td></tr>\n"..., 99) = 99
21144 write(1, " </table>\n"..., 15) = 15
21144 write(1, " </td>\n"..., 11) = 11
21144 write(1, " <td>\n"..., 10) = 10
21144 write(1, " <table background=\"/images/qmailadmin/upperright.png\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\n"..., 104) = 104
21144 write(1, " <tr><td width=\"31\" height=\"41\"><img src=\"/images/qmailadmin/pixel.png\" height=\"1\" width=\"1\"></td></tr>\n"..., 110) = 110
21144 write(1, " </table>\n"..., 15) = 15
21144 write(1, " </td>\n"..., 11) = 11
21144 write(1, " </tr>\n"..., 10) = 10
21144 write(1, " <tr>\n"..., 9) = 9
21144 write(1, " <td>\n"..., 10) = 10
21144 write(1, " <table background=\"/images/qmailadmin/middleleft1.png\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\n"..., 105) = 105
21144 write(1, " <tr><td width=\"147\" height=\"199\"><img src=\"/images/qmailadmin/pixel.png\" height=\"1\" width=\"1\"></td></tr>\n"..., 112) = 112
21144 write(1, " </table>\n"..., 15) = 15
21144 write(1, " </td>\n"..., 11) = 11
21144 write(1, " <td rowspan=\"2\" style=\"font:Verdana,Arial,Helvetica,sans-serif\" align=center valign=bottom>\n"..., 97) = 97
21144 write(1, " <!--Content-->\n"..., 21) = 21
21144 write(1, " <form method=\"post\" name=\"logon\" action=\"/cgi-bin/qmailadmin\">\n"..., 69) = 69
21144 write(1, " <table>\n"..., 15) = 15
21144 write(1, " <tr><td>User Account</td><td><input type=\"text\" size=\"14\" name=\"username\" value=\"postmaster\" maxlength=\"128\"></td></tr>\n"..., 128) = 128
21144 write(1, " <tr><td>Domain Name </td><td><input type=\"text\" size=\"14\" name=\"domain\" maxlength=\"128\" value=\"\"></td></tr>\n"..., 116) = 116
21144 write(1, " <tr><td>Password</td><td><input type=\"password\" size=\"14\" name=\"password\" maxlength=\"128\"></td></tr>\n"..., 109) = 109
21144 write(1, " <tr>\n"..., 13) = 13
21144 write(1, " <td colspan=\"2\" align=\"right\">\n"..., 41) = 41
21144 --- SIGSEGV (Segmentation fault) @ 0 (0) ---
21144 +++ killed by SIGSEGV +++