Re: [exim] Building Exim in a VServer

Pàgina inicial
Delete this message
Reply to this message
Autor: Marcin Krol
Data:  
A: exim-users
Assumpte: Re: [exim] Building Exim in a VServer
Hello Christian,

Thanks for the strace suggestion, it helped me to solve the previous
problem.

However, now Exim build process complains about missing zlib:

/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../lib/libcrypto.a(c_zlib.o):
In function `zlib_stateful_expand_block':
(.text+0x7c): undefined reference to `inflate'
/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../lib/libcrypto.a(c_zlib.o):
In function `zlib_stateful_compress_block':
(.text+0xfc): undefined reference to `deflate'
/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../lib/libcrypto.a(c_zlib.o):
In function `zlib_stateful_init':
(.text+0x1ce): undefined reference to `inflateInit_'
/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../lib/libcrypto.a(c_zlib.o):
In function `zlib_stateful_init':
(.text+0x243): undefined reference to `deflateInit_'
/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../lib/libcrypto.a(c_zlib.o):
In function `zlib_stateful_free_ex_data':
(.text+0x33e): undefined reference to `inflateEnd'
/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../lib/libcrypto.a(c_zlib.o):
In function `zlib_stateful_free_ex_data':
(.text+0x349): undefined reference to `deflateEnd'

Now I'm totally stymied since I took care to install zlib:

% dpkg -l | grep zlib
ii  zlib1g                   1.2.3-13                                 
compression library - runtime
ii  zlib1g-dev               1.2.3-13                                 
compression library - development


I checked that the functions like inflateInit_ that linker fails to find
are present in the /usr/include/zlib.h file and that /usr/lib/libz.so is
there! I also added /usr/lib to /etc/ld.so.conf and reran ldconfig.

I have also added -lz to EXTRALIBS_EXIM. Yet it still complains and this
time around I can't find anything in strace output that would indicate
the source of the problem.

Here's the strace, maybe someone will be willing and able to spot smth:

execve("/usr/bin/make", ["make"], [/* 30 vars */]) = 0
uname({sys="Linux", node="da2.domeny.com", ...}) = 0
brk(0)                                  = 0x806d000
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or 
directory)
mmap2(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 
0) = 0xf7fd2000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or 
directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=24234, ...}) = 0
mmap2(NULL, 24234, PROT_READ, MAP_PRIVATE, 3, 0) = 0xf7fcc000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or 
directory)
open("/lib/tls/i686/cmov/librt.so.1", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0000\36\0"..., 
512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=30612, ...}) = 0
mmap2(NULL, 33384, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) 
= 0xf7fc3000
mmap2(0xf7fca000, 8192, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x6) = 0xf7fca000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or 
directory)
open("/lib/tls/i686/cmov/libc.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\240O\1"..., 
512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=1241392, ...}) = 0
mmap2(NULL, 1247388, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 
0) = 0xf7e92000
mmap2(0xf7fb9000, 28672, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x127) = 0xf7fb9000
mmap2(0xf7fc0000, 10396, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xf7fc0000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or 
directory)
open("/lib/tls/i686/cmov/libpthread.so.0", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\240H\0"..., 
512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=89370, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 
0) = 0xf7e91000
mmap2(NULL, 70104, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) 
= 0xf7e7f000
mmap2(0xf7e8d000, 8192, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xe) = 0xf7e8d000
mmap2(0xf7e8f000, 4568, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xf7e8f000
close(3)                                = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 
0) = 0xf7e7e000
mprotect(0xf7fb9000, 20480, PROT_READ)  = 0
set_thread_area({entry_number:-1 -> 12, base_addr:0xf7e7e6c0, 
limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, 
limit_in_pages:1, seg_not_present:0, useable:1}) = 0
munmap(0xf7fcc000, 24234)               = 0
set_tid_address(0xf7e7e708)             = 4533
rt_sigaction(SIGRTMIN, {0xf7e834c0, [], SA_SIGINFO}, NULL, 8) = 0
rt_sigaction(SIGRT_1, {0xf7e83420, [], SA_RESTART|SA_SIGINFO}, NULL, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0
getrlimit(RLIMIT_STACK, {rlim_cur=8192*1024, rlim_max=RLIM_INFINITY}) = 0
uname({sys="Linux", node="da2.domeny.com", ...}) = 0
getrlimit(RLIMIT_STACK, {rlim_cur=8192*1024, rlim_max=RLIM_INFINITY}) = 0
setrlimit(RLIMIT_STACK, {rlim_cur=RLIM_INFINITY, 
rlim_max=RLIM_INFINITY}) = 0
brk(0)                                  = 0x806d000
brk(0x808e000)                          = 0x808e000
open("/usr/lib/locale/locale-archive", O_RDONLY|O_LARGEFILE) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=2555520, ...}) = 0
mmap2(NULL, 2097152, PROT_READ, MAP_PRIVATE, 3, 0xffb46790) = 0xf7c7e000
close(3)                                = 0
rt_sigaction(SIGHUP, {0x804b680, [HUP], SA_RESTART}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGQUIT, {0x804b680, [QUIT], SA_RESTART}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGINT, {0x804b680, [INT], SA_RESTART}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGTERM, {0x804b680, [TERM], SA_RESTART}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGXCPU, {0x804b680, [XCPU], SA_RESTART}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGXFSZ, {0x804b680, [XFSZ], SA_RESTART}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGCHLD, {SIG_DFL}, {SIG_DFL}, 8) = 0
getcwd("/usr/local/exim-4.69", 4096)    = 21
stat64("/usr/include", {st_mode=S_IFDIR|0755, st_size=12288, ...}) = 0
stat64("/usr/gnu/include", 0xffb46aec)  = -1 ENOENT (No such file or 
directory)
stat64("/usr/local/include", {st_mode=S_IFDIR|S_ISGID|0775, 
st_size=4096, ...}) = 0
stat64("/usr/include", {st_mode=S_IFDIR|0755, st_size=12288, ...}) = 0
rt_sigaction(SIGCHLD, {0x8053a00, [CHLD], SA_RESTART}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGUSR1, {0x8055eb0, [USR1], SA_RESTART}, {SIG_DFL}, 8) = 0
stat64(".", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open(".", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 3
fstat64(3, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
fcntl64(3, F_SETFD, FD_CLOEXEC)         = 0
getdents64(3, /* 18 entries */, 4096)   = 552
getdents64(3, /* 0 entries */, 4096)    = 0
close(3)                                = 0
open("Makefile", O_RDONLY|O_LARGEFILE)  = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=3413, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 
0xffb467b4) = 0xf7fd1000
read(3, "# $Cambridge: exim/exim-src/Make"..., 4096) = 3413
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0xf7fd1000, 4096)                = 0
pipe([3, 4])                            = 0
dup(3)                                  = 5
write(4, "+", 1)                        = 1
stat64("RCS", 0xffb46a54)               = -1 ENOENT (No such file or 
directory)
stat64("SCCS", 0xffb46a54)              = -1 ENOENT (No such file or 
directory)
stat64("Makefile", {st_mode=S_IFREG|0644, st_size=3413, ...}) = 0
clock_gettime(CLOCK_REALTIME, {1198320706, 157258025}) = 0
stat64("all", 0xffb4697c)               = -1 ENOENT (No such file or 
directory)
stat64("Local/Makefile", {st_mode=S_IFREG|0644, st_size=2680, ...}) = 0
stat64("configure", 0xffb4697c)         = -1 ENOENT (No such file or 
directory)
stat64("build-directory", 0xffb4689c)   = -1 ENOENT (No such file or 
directory)
pipe([6, 7])                            = 0
close(7)                                = 0
fcntl64(6, F_SETFD, FD_CLOEXEC)         = 0
rt_sigprocmask(SIG_BLOCK, [HUP INT QUIT TERM XCPU XFSZ], NULL, 8) = 0
vfork()                                 = 4534
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
stat64("go", 0xffb4697c)                = -1 ENOENT (No such file or 
directory)
waitpid(-1, 0xffb46928, WNOHANG)        = 0
waitpid(-1, 0xffb46928, WNOHANG)        = 0
rt_sigaction(SIGCHLD, {0x8053a00, [], 0}, NULL, 8) = 0
read(5, "+", 1)                         = 1
rt_sigaction(SIGCHLD, {0x8053a00, [], SA_RESTART}, NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [HUP INT QUIT TERM XCPU XFSZ], NULL, 8) = 0
vfork()                                 = 4535
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 4534
--- SIGCHLD (Child exited) @ 0 (0) ---
close(5)                                = 0
sigreturn()                             = ? (mask now [])
rt_sigprocmask(SIG_BLOCK, [HUP INT QUIT TERM XCPU XFSZ], NULL, 8) = 0
write(4, "+", 1)                        = 1
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
waitpid(-1, 0xffb46af8, WNOHANG)        = 0
stat64("build-directory", 0xffb4689c)   = -1 ENOENT (No such file or 
directory)
waitpid(-1, 0xffb46928, WNOHANG)        = 0
dup(3)                                  = 5
waitpid(-1, 0xffb46928, WNOHANG)        = 0
rt_sigaction(SIGCHLD, {0x8053a00, [], 0}, NULL, 8) = 0
read(5, "+", 1)                         = 1
rt_sigaction(SIGCHLD, {0x8053a00, [], SA_RESTART}, NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [HUP INT QUIT TERM XCPU XFSZ], NULL, 8) = 0
vfork()                                 = 4568
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 4568
--- SIGCHLD (Child exited) @ 0 (0) ---
close(5)                                = 0
sigreturn()                             = ? (mask now [])
rt_sigprocmask(SIG_BLOCK, [HUP INT QUIT TERM XCPU XFSZ], NULL, 8) = 0
write(4, "+", 1)                        = 1
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
waitpid(-1, 0xffb46af8, WNOHANG)        = 0
stat64("configure", 0xffb4697c)         = -1 ENOENT (No such file or 
directory)
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 2}], 0, NULL) = 4535
--- SIGCHLD (Child exited) @ 0 (0) ---
sigreturn()                             = ? (mask now [])
open("/usr/share/locale/locale.alias", O_RDONLY) = 5
fstat64(5, {st_mode=S_IFREG|0644, st_size=2582, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 
0xffb46508) = 0xf7fd1000
read(5, "# Locale name alias data base.\n#"..., 4096) = 2582
read(5, "", 4096)                       = 0
close(5)                                = 0
munmap(0xf7fd1000, 4096)                = 0
open("/usr/share/locale/en_US.UTF-8/LC_MESSAGES/make.mo", O_RDONLY) = -1 
ENOENT (No such file or directory)
open("/usr/share/locale/en_US.utf8/LC_MESSAGES/make.mo", O_RDONLY) = -1 
ENOENT (No such file or directory)
open("/usr/share/locale/en_US/LC_MESSAGES/make.mo", O_RDONLY) = -1 
ENOENT (No such file or directory)
open("/usr/share/locale/en.UTF-8/LC_MESSAGES/make.mo", O_RDONLY) = -1 
ENOENT (No such file or directory)
open("/usr/share/locale/en.utf8/LC_MESSAGES/make.mo", O_RDONLY) = -1 
ENOENT (No such file or directory)
open("/usr/share/locale/en/LC_MESSAGES/make.mo", O_RDONLY) = -1 ENOENT 
(No such file or directory)
write(2, "make: ", 6)                   = 6
write(2, "*** [go] Error 2", 16)        = 16
write(2, "\n", 1)                       = 1
rt_sigprocmask(SIG_BLOCK, [HUP INT QUIT TERM XCPU XFSZ], NULL, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
close(4)                                = 0
read(3, "+", 1)                         = 1
read(3, "", 1)                          = 0
close(3)                                = 0
chdir("/usr/local/exim-4.69")           = 0
close(1)                                = 0
exit_group(2)                           = ?








--
Marcin Krol