Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 93776 - net-mail/cyrus-imspd-1.7b fails to build, but installs
Summary: net-mail/cyrus-imspd-1.7b fails to build, but installs
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Net-Mail Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-24 02:17 UTC by Michael Cramer
Modified: 2007-07-12 15:06 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Cramer 2005-05-24 02:17:10 UTC
building the cyrus-imspd server failed with the following:
bigmichi1 stunnel # emerge cyrus-imspd
Calculating dependencies ...done!
>>> emerge (1 of 1) net-mail/cyrus-imspd-1.7b to /
>>> md5 files   ;-) cyrus-imspd-1.7b.ebuild
>>> md5 files   ;-) files/cyrus-imspd-db4.patch
>>> md5 files   ;-) files/imspd.conf
>>> md5 files   ;-) files/imspd.rc6
>>> md5 files   ;-) files/cyrus-imspd-gentoo.patch
>>> md5 files   ;-) files/digest-cyrus-imspd-1.7b
>>> md5 files   ;-) files/stunnel.conf
>>> md5 src_uri ;-) cyrus-imspd-v1.7b.tar.gz
>>> Unpacking source...
>>> Unpacking cyrus-imspd-v1.7b.tar.gz to /var/tmp/portage/cyrus-imspd-1.7b/work
 * Applying cyrus-imspd-
db4.patch ...                                                                   
                [ ok ]
 * Applying cyrus-imspd-
gentoo.patch ...                                                                
                [ ok ]
 * Using GNU config files from /usr/share/libtool
 *  Updating 
config.sub                                                                      
                           [ ok ]
 *  Updating 
config.guess                                                                    
                           [ ok ]
 * Recreating 
configure ...                                                                   
                          [ ok ]
>>> Source unpacked.
 * econf: updating cyrus-imspd-v1.7b/config.guess 
with /usr/share/gnuconfig/config.guess
 * econf: updating cyrus-imspd-v1.7b/config.sub 
with /usr/share/gnuconfig/config.sub
./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --
infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --
localstatedir=/var/lib --build=i686-pc-linux-gnu --without-krb --with-
auth=unix --without-ldap --disable-gssapi
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for i686-pc-linux-gnu-gcc... i686-pc-linux-gnu-gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether i686-pc-linux-gnu-gcc accepts -g... yes
checking for i686-pc-linux-gnu-gcc option to accept ANSI C... none needed
checking for a BSD-compatible install... /bin/install -c
checking for i686-pc-linux-gnu-ranlib... i686-pc-linux-gnu-ranlib
checking whether make sets $(MAKE)... yes
checking how to run the C preprocessor... i686-pc-linux-gnu-gcc -E
checking for egrep... grep -E
checking for AIX... no
checking for strerror in -lcposix... no
checking for an ANSI C-conforming const... yes
checking for long file names... yes
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for unistd.h... (cached) yes
checking for memmove... yes
checking for strcasecmp... yes
checking for ftruncate... yes
checking for getdtablesize... yes
checking for getaddrinfo... yes
checking for getnameinfo... yes
checking for strlcat... no
checking for strlcpy... no
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for vprintf... yes
checking for _doprnt... no
checking for strerror... yes
checking nonblocking method... fcntl
checking timezone GMT offset method... tm
checking for runpath switch... -Wl,-rpath,
checking db.h usability... yes
checking db.h presence... yes
checking for db.h... yes
checking for db_create_4000 in -ldb-4.2... no
checking for db_create_4001 in -ldb-4.2... no
checking for db_create_4002 in -ldb-4.2... yes
checking for accept in -lsocket... no
checking for res_search in -lresolv... yes
checking for dlopen... no
checking for dlopen in -ldl... yes
checking for crypt... no
checking for crypt in -lcrypt... yes
checking for connect... yes
checking for res_search... yes
checking for dn_expand... yes
checking for dns_lookup... no
checking GSSAPI... disabled
checking sasl/sasl.h usability... yes
checking sasl/sasl.h presence... yes
checking for sasl/sasl.h... yes
checking sasl/saslutil.h usability... yes
checking sasl/saslutil.h presence... yes
checking for sasl/saslutil.h... yes
checking for prop_get in -lsasl2... yes
checking for fcntl... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating lib/Makefile
config.status: creating imsp/Makefile
config.status: creating config.h
### Making all in /var/tmp/portage/cyrus-imspd-1.7b/work/cyrus-imspd-v1.7b/imsp
make[1]: Entering directory `/var/tmp/portage/cyrus-imspd-1.7b/work/cyrus-imspd-
v1.7b/imsp'
i686-pc-linux-gnu-gcc -c -I.. -I. -I. -I./../lib  -I/usr/local/include   -
DHAVE_CONFIG_H -DSETPROCTITLE  -march=pentium3 -O2 -pipe -fomit-frame-pointer \
main.c
i686-pc-linux-gnu-gcc -c -I.. -I. -I. -I./../lib  -I/usr/local/include   -
DHAVE_CONFIG_H -DSETPROCTITLE  -march=pentium3 -O2 -pipe -fomit-frame-pointer \
dispatch.c
i686-pc-linux-gnu-gcc -c -I.. -I. -I. -I./../lib  -I/usr/local/include   -
DHAVE_CONFIG_H -DSETPROCTITLE  -march=pentium3 -O2 -pipe -fomit-frame-pointer \
imsp_server.c
i686-pc-linux-gnu-gcc -c -I.. -I. -I. -I./../lib  -I/usr/local/include   -
DHAVE_CONFIG_H -DSETPROCTITLE  -march=pentium3 -O2 -pipe -fomit-frame-pointer \
option.c
imsp_server.c:73: Fehler: in Konflikt stehende Typen f
Comment 1 Michael Cramer 2005-05-24 02:17:10 UTC
building the cyrus-imspd server failed with the following:
bigmichi1 stunnel # emerge cyrus-imspd
Calculating dependencies ...done!
>>> emerge (1 of 1) net-mail/cyrus-imspd-1.7b to /
>>> md5 files   ;-) cyrus-imspd-1.7b.ebuild
>>> md5 files   ;-) files/cyrus-imspd-db4.patch
>>> md5 files   ;-) files/imspd.conf
>>> md5 files   ;-) files/imspd.rc6
>>> md5 files   ;-) files/cyrus-imspd-gentoo.patch
>>> md5 files   ;-) files/digest-cyrus-imspd-1.7b
>>> md5 files   ;-) files/stunnel.conf
>>> md5 src_uri ;-) cyrus-imspd-v1.7b.tar.gz
>>> Unpacking source...
>>> Unpacking cyrus-imspd-v1.7b.tar.gz to /var/tmp/portage/cyrus-imspd-1.7b/work
 * Applying cyrus-imspd-
db4.patch ...                                                                   
                [ ok ]
 * Applying cyrus-imspd-
gentoo.patch ...                                                                
                [ ok ]
 * Using GNU config files from /usr/share/libtool
 *  Updating 
config.sub                                                                      
                           [ ok ]
 *  Updating 
config.guess                                                                    
                           [ ok ]
 * Recreating 
configure ...                                                                   
                          [ ok ]
>>> Source unpacked.
 * econf: updating cyrus-imspd-v1.7b/config.guess 
with /usr/share/gnuconfig/config.guess
 * econf: updating cyrus-imspd-v1.7b/config.sub 
with /usr/share/gnuconfig/config.sub
./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --
infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --
localstatedir=/var/lib --build=i686-pc-linux-gnu --without-krb --with-
auth=unix --without-ldap --disable-gssapi
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for i686-pc-linux-gnu-gcc... i686-pc-linux-gnu-gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether i686-pc-linux-gnu-gcc accepts -g... yes
checking for i686-pc-linux-gnu-gcc option to accept ANSI C... none needed
checking for a BSD-compatible install... /bin/install -c
checking for i686-pc-linux-gnu-ranlib... i686-pc-linux-gnu-ranlib
checking whether make sets $(MAKE)... yes
checking how to run the C preprocessor... i686-pc-linux-gnu-gcc -E
checking for egrep... grep -E
checking for AIX... no
checking for strerror in -lcposix... no
checking for an ANSI C-conforming const... yes
checking for long file names... yes
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for unistd.h... (cached) yes
checking for memmove... yes
checking for strcasecmp... yes
checking for ftruncate... yes
checking for getdtablesize... yes
checking for getaddrinfo... yes
checking for getnameinfo... yes
checking for strlcat... no
checking for strlcpy... no
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for vprintf... yes
checking for _doprnt... no
checking for strerror... yes
checking nonblocking method... fcntl
checking timezone GMT offset method... tm
checking for runpath switch... -Wl,-rpath,
checking db.h usability... yes
checking db.h presence... yes
checking for db.h... yes
checking for db_create_4000 in -ldb-4.2... no
checking for db_create_4001 in -ldb-4.2... no
checking for db_create_4002 in -ldb-4.2... yes
checking for accept in -lsocket... no
checking for res_search in -lresolv... yes
checking for dlopen... no
checking for dlopen in -ldl... yes
checking for crypt... no
checking for crypt in -lcrypt... yes
checking for connect... yes
checking for res_search... yes
checking for dn_expand... yes
checking for dns_lookup... no
checking GSSAPI... disabled
checking sasl/sasl.h usability... yes
checking sasl/sasl.h presence... yes
checking for sasl/sasl.h... yes
checking sasl/saslutil.h usability... yes
checking sasl/saslutil.h presence... yes
checking for sasl/saslutil.h... yes
checking for prop_get in -lsasl2... yes
checking for fcntl... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating lib/Makefile
config.status: creating imsp/Makefile
config.status: creating config.h
### Making all in /var/tmp/portage/cyrus-imspd-1.7b/work/cyrus-imspd-v1.7b/imsp
make[1]: Entering directory `/var/tmp/portage/cyrus-imspd-1.7b/work/cyrus-imspd-
v1.7b/imsp'
i686-pc-linux-gnu-gcc -c -I.. -I. -I. -I./../lib  -I/usr/local/include   -
DHAVE_CONFIG_H -DSETPROCTITLE  -march=pentium3 -O2 -pipe -fomit-frame-pointer \
main.c
i686-pc-linux-gnu-gcc -c -I.. -I. -I. -I./../lib  -I/usr/local/include   -
DHAVE_CONFIG_H -DSETPROCTITLE  -march=pentium3 -O2 -pipe -fomit-frame-pointer \
dispatch.c
i686-pc-linux-gnu-gcc -c -I.. -I. -I. -I./../lib  -I/usr/local/include   -
DHAVE_CONFIG_H -DSETPROCTITLE  -march=pentium3 -O2 -pipe -fomit-frame-pointer \
imsp_server.c
i686-pc-linux-gnu-gcc -c -I.. -I. -I. -I./../lib  -I/usr/local/include   -
DHAVE_CONFIG_H -DSETPROCTITLE  -march=pentium3 -O2 -pipe -fomit-frame-pointer \
option.c
imsp_server.c:73: Fehler: in Konflikt stehende Typen für »malloc«
imsp_server.c:73: Fehler: in Konflikt stehende Typen für »malloc«
make[1]: *** [imsp_server.o] Fehler 1
make[1]: *** Warte auf noch nicht beendete Prozesse...
option.c:61: Warnung: in Konflikt stehende Typen für eingebaute 
Funktion »malloc«
option.c: In function `option_test':
option.c:326: Warnung: return erzeugt Ganzzahl von Zeiger ohne Typkonvertierung
option.c:330: Warnung: return erzeugt Ganzzahl von Zeiger ohne Typkonvertierung
make[1]: Leaving directory `/var/tmp/portage/cyrus-imspd-1.7b/work/cyrus-imspd-
v1.7b/imsp'
### Done with /var/tmp/portage/cyrus-imspd-1.7b/work/cyrus-imspd-v1.7b/imsp
>>> Test phase [enabled]: net-mail/cyrus-imspd-1.7b
>>> Test phase [none]: net-mail/cyrus-imspd-1.7b

>>> Install cyrus-imspd-1.7b into /var/tmp/portage/cyrus-imspd-1.7b/image/ 
category net-mail
cp: Aufruf von stat für imsp/cyrus-imspd nicht möglich: Datei oder 
Verzeichnis nicht gefunden
>>> dosbin: making /var/tmp/portage/cyrus-imspd-1.7b/temp/imspd executable...
install: Aufruf von stat für /var/tmp/portage/cyrus-imspd-1.7b/temp/imspd 
nicht möglich: Datei oder Verzeichnis nicht gefunden
 * Generating OpenSSL 
configuration ...                                                               
                  [ ok ]

 * Generating 1024 bit RSA key for 
CA ...                                                                          
     [ ok ]
 * Generating Certificate Signing Request for 
CA ...                                                                    [ ok ]
 * Generating self-signed X.509 Certificate for 
CA ...                                                                  [ ok ]

 * Generating 1024 bit RSA 
key ...                                                                         
             [ ok ]
 * Generating Certificate Signing 
Request ...                                                                     
      [ ok ]
 * Generating authority-signed X.509 
Certificate ...                                                                 
   [ ok ]
 * Generating PEM 
Certificate ...                                                                 
                      [ ok ]

man:
prepallstrip:
strip: i686-pc-linux-gnu-strip --strip-unneeded
strip: i686-pc-linux-gnu-strip --strip-unneeded
>>> Completed installing cyrus-imspd-1.7b into /var/tmp/portage/cyrus-imspd-
1.7b/image/

>>> Merging net-mail/cyrus-imspd-1.7b to /
--- /etc/
--- /etc/ssl/
>>> /etc/ssl/imspd/
>>> /etc/ssl/imspd/server.crt
>>> /etc/ssl/imspd/server.csr
>>> /etc/ssl/imspd/server.key
>>> /etc/ssl/imspd/server.pem
--- /etc/stunnel/
>>> /etc/stunnel/imspd.conf
--- /etc/conf.d/
>>> /etc/conf.d/imspd
--- /etc/init.d/
>>> /etc/init.d/imspd
--- /var/
>>> /var/imsp/
>>> /var/imsp/user/
>>> /var/imsp/user/.keep
>>> /var/imsp/.keep
--- /usr/
--- /usr/sbin/
--- /usr/share/
--- /usr/share/doc/
>>> /usr/share/doc/cyrus-imspd-1.7b/
>>> /usr/share/doc/cyrus-imspd-1.7b/README.gz
>>> /usr/share/doc/cyrus-imspd-1.7b/Setup-instructions.gz
>>> /usr/share/doc/cyrus-imspd-1.7b/imsp.implementation.updates.gz
>>> /usr/share/doc/cyrus-imspd-1.7b/options.sample.gz
>>> /usr/share/doc/cyrus-imspd-1.7b/option.registry.gz
>>> /usr/share/doc/cyrus-imspd-1.7b/Build-instructions.gz
>>> /usr/share/doc/cyrus-imspd-1.7b/imsp.implementation.gz
>>> /usr/share/doc/cyrus-imspd-1.7b/Changes-Todo.gz
>>> Regenerating /etc/ld.so.cache...
>>> net-mail/cyrus-imspd-1.7b merged.
>>> Recording net-mail/cyrus-imspd in "world" favorites file...

>>> clean: No packages selected for removal.

>>> Auto-cleaning packages ...

>>> No outdated packages were found on your system.


 * GNU info directory index is up-to-date.



Reproducible: Always
Steps to Reproduce:
1.
2.
3.

Actual Results:  
build failed, but installed

Expected Results:  
should build cleanly and install only when succesfull build

Portage 2.0.51.22-r1 (default-linux/x86/2005.0, gcc-3.4.3-20050110, glibc-2.3.5-
r0, 2.6.12-rc4-Gentoo-2005.0 i686)
=================================================================
System uname: 2.6.12-rc4-Gentoo-2005.0 i686 Pentium III (Coppermine)
Gentoo Base System version 1.6.12
ccache version 2.4 [enabled]
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.8
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.16
sys-devel/libtool:   1.5.18
virtual/os-headers:  2.6.11
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium3 -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X1
1/xkb /usr/share/config /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-march=pentium3 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks maketest sandbox sfperms strict test"
GENTOO_MIRRORS="http://distfiles.gentoo.org 
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="de_DE.utf8"
LC_ALL="de_DE.utf8"
LINGUAS="de"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X X509 Xaw3d aalib acl activefilter alsa aotuv apache2 apm avi bcmath 
berkdb bitmap-fonts bzip2 bzlib calendar caps cpdflib crypt ctype cups curl 
curlwrappers dba dga dio directfb djbfft doc ecc emboss encode erandom exif 
extensions extraengine fbcon flac flatfile font-server foomaticdb fortran ftp 
gcj gd gdbm geometry ggi gif gmp gpm gtk gtk2 guile iconv idea idled idn imap 
imlib inifile innodb insecure-drivers ipv6 java jce jpeg justify libcaca 
libclamav libg++ libwww mad memlimit mhash mikmod mime mmx motif mp3 mpeg mpm-
prefork mysql ncurses neXt netboot nis nls no_wxgtk1 nonfsv4 nptl nptlonly oav 
objc ogg oggvorbis opengl oss pam pam_chroot pam_timestamp pcntl pcre pdflib 
perl perlsuid php physfs png posix pwdb python quicktime quotas readline 
rrdtool samba sasl sdl sendfile session sftplogging shaper simplexml slang 
sndfile soap sockets softquota speex spell spl sqlite srp sse ssl svga symlink 
sysfs sysvipc tcltk tcpd tetex tidy tiff tokenizer truetype truetype-fonts 
type1-fonts ucs2 unicode urandom utf8 vorbis wddx wxwindows xml xml2 xmlrpc 
xmms xpm xprint xsl xv zlib video_cards_ati128 linguas_de userland_GNU 
kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LDFLAGS
Comment 2 Michael Cramer 2005-05-24 06:13:57 UTC
i could solve the build with adding the following line:

find ./ -type f | xargs sed -i -e 's:extern char \*malloc:\/\/extern char \*malloc:'

after the two epatch lines
Comment 3 Tuan Van (RETIRED) gentoo-dev 2005-05-25 10:45:00 UTC
I can't reproduce this bug. Please switch to an "en" locale and repost the error
message. Thanks.
Comment 4 Michael Cramer 2005-05-25 11:35:41 UTC
this is with LANG=C

### Making all in /var/tmp/portage/cyrus-imspd-1.7b/work/cyrus-imspd-v1.7b/imsp
make[1]: Entering directory
`/var/tmp/portage/cyrus-imspd-1.7b/work/cyrus-imspd-v1.7b/imsp'
i686-pc-linux-gnu-gcc -c -I.. -I. -I. -I./../lib  -I/usr/local/include  
-DHAVE_CONFIG_H -DSETPROCTITLE  -g -O2 \
main.c
i686-pc-linux-gnu-gcc -c -I.. -I. -I. -I./../lib  -I/usr/local/include  
-DHAVE_CONFIG_H -DSETPROCTITLE  -g -O2 \
dispatch.c
i686-pc-linux-gnu-gcc -c -I.. -I. -I. -I./../lib  -I/usr/local/include  
-DHAVE_CONFIG_H -DSETPROCTITLE  -g -O2 \
imsp_server.c
imsp_server.c:73: error: conflicting types for 'malloc'
imsp_server.c:73: error: conflicting types for 'malloc'
make[1]: *** [imsp_server.o] Error 1
make[1]: Leaving directory
`/var/tmp/portage/cyrus-imspd-1.7b/work/cyrus-imspd-v1.7b/imsp'
### Done with /var/tmp/portage/cyrus-imspd-1.7b/work/cyrus-imspd-v1.7b/imsp
Comment 5 Fernando J. Pereda (RETIRED) gentoo-dev 2005-05-26 05:21:58 UTC
Fixed in 1.8 and in 1.7b-r1 (just in case the former fails for some other reason).

Cheers,
Ferdy
Comment 6 Michael Cramer 2005-05-26 09:52:03 UTC
cyrus-imspd-1.7b-r1 builds cleanly and works fine,
but version 1.8 compiles but dosn't work *segmentation fault* when starting
i also noticed that the db4-patch is gone
Comment 7 Fernando J. Pereda (RETIRED) gentoo-dev 2005-05-26 10:01:29 UTC
Mmmm it starts fine can you provide a trace ? Yeah I got rid of the patch
because I think upstream improved its db detection... but I might be wrong (its
working fine here...)

Reopen If you want to help hunting that sigsev

Cheers,
Ferdy
Comment 8 Michael Cramer 2005-05-26 11:18:16 UTC
after a strace imspd the last lines look like:


getpeername(0, 0x806ac3c, [16])         = -1 ENOTSOCK (Socket operation on
non-socket)
fstat64(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 4), ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0xb7efc000
write(1, "Cyrus IMSP server version 1.7b\n", 31Cyrus IMSP server version 1.7b
) = 31
stat64("/var/imsp/user", {st_mode=S_IFDIR|0755, st_size=72, ...}) = 0
stat64("/var/imsp/abooks", {st_mode=S_IFREG|0600, st_size=0, ...}) = 0
getrlimit(RLIMIT_NOFILE, {rlim_cur=1024, rlim_max=1024}) = 0
brk(0)                                  = 0x806b000
brk(0x808c000)                          = 0x808c000
open("/etc/sasl2/imspd.conf", O_RDONLY) = 4
fstat64(4, {st_mode=S_IFREG|0644, st_size=139, ...}) = 0
mmap2(NULL, 131072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0xb7c4b000
read(4, "# $Header: /var/cvsroot/gentoo-x"..., 131072) = 139
read(4, "", 131072)                     = 0
close(4)                                = 0
munmap(0xb7c4b000, 131072)              = 0
stat64("/var/imsp/options", {st_mode=S_IFREG|0644, st_size=437, ...}) = 0
open("/var/imsp/options", O_RDONLY)     = 4
read(4, "common.date R \nimsp.sasl.allowpl"..., 437) = 437
close(4)                                = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++


i figured out that this happens when i have more then one line in my
/var/imsp/options file. with one line e.g. "common.date R" it starts, if i add
another one e.g. "imsp.sasl.allowplaintext N -" imsp starts to crash, also tried
the options.sample, but same result
Comment 9 Michael Cramer 2005-09-18 16:22:57 UTC
had take a little closer look at my segfault problem and found two things:

first:
the statement in ebuild $(use_with ldap) doesn't work, configure braks about
missing library statement for --with-ldap, i changed it to the statement from
1.7b $(use_with ldap ldap ldap) and configure run trough sucessfully

second:
commenting out the -gentoo.patch for this version and adding lib/*.c to the
malloc sed command, results for me in a version which doesn't segfault

perhaps it's good to build the included lib instead of using the system one, if
that's the problem. i'm not very good in c programming, so point me in the right
direction if i'm totally wrong
Comment 10 Jakub Moc (RETIRED) gentoo-dev 2007-07-12 15:06:58 UTC
Well, please file a new bug about issues completely unrelated to the original bug. This doesn't go anywhere.

FIXED.