From: Atif G. <agh...@de...> - 2001-04-22 04:55:09
|
Hi, I would like to use libmcal with Kronolith (a Horde application http://www.horde.org) here is what I have done to install mcal. cvs co -r libmcal mcal cd libmcal cvs co -r mstore icap compiled mstore && icap configured libmcal with ./configure --prefix=/usr/local/mcal --with-mstore --with-icap make all install then I compiled php4 and apache with mcal and I cant get it to work. so I try mcal cd mcal make I get errors complaining about undefined reference to pam_* so I remove -DUSE_PAM from mstore/Makefile made clean and all in mstore and libmcal try to compile mcal again cd mcal make no error I have /var/calendar which is chmoded 1777 I create /etc/mpasswd file with htpasswd -c /etc/mpasswd atif passwd test I also copy it to /etc/mcalendar (I think its is kronolith's documentation) now if I run ./mcal -u atif -p test I get Segmentation fault If I run without passwd eg ./mcal -u atif I get a year calendar If I run ./mcal its also ok. only If I provide both user and pass I get a segfault Below is the strace output if it can be of any help ----------------------------- strace ./mcal -u atif -p test ----------------------------- execve("./mcal", ["./mcal", "-u", "atif", "-p", "test"], [/* 46 vars */]) = 0 brk(0) = 0x8058a70 open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or directory) open("/etc/ld.so.cache", O_RDONLY) = 3 fstat(3, {st_mode=S_IFREG|0644, st_size=14710, ...}) = 0 mmap(NULL, 14710, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40014000 close(3) = 0 open("/lib/libcrypt.so.1", O_RDONLY) = 3 fstat(3, {st_mode=S_IFREG|0755, st_size=60988, ...}) = 0 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\360\r\0"..., 4096) = 4096 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40018000 mmap(NULL, 181884, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40019000 mprotect(0x4001e000, 161404, PROT_NONE) = 0 mmap(0x4001e000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x4000) = 0x4001e000 mmap(0x4001f000, 157308, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x4001f000 close(3) = 0 open("/lib/libc.so.6", O_RDONLY) = 3 fstat(3, {st_mode=S_IFREG|0755, st_size=4061504, ...}) = 0 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\340\213"..., 4096) = 4096 mmap(NULL, 924892, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40046000 mprotect(0x40120000, 31964, PROT_NONE) = 0 mmap(0x40120000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0xd9000) = 0x40120000 mmap(0x40125000, 11484, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40125000 close(3) = 0 munmap(0x40014000, 14710) = 0 personality(PER_LINUX) = 0 getpid() = 588 --- SIGSEGV (Segmentation fault) --- +++ killed by SIGSEGV +++ --------------------- Thanks for any help |