andrei,
i made some more tests.
sercmd linked during debian package build crashes:
gcc -shared -m32 -Wl,-O2 -Wl,-E parse_listen_id.o sercmd.o -lreadline -lncurses -o
sip-proxy_ctl
./sip-proxy_ctl
Segmentation fault
if i link it again in the same dir without any gcc params, it works fine:
gcc parse_listen_id.o sercmd.o -lreadline -lncurses -o sip-proxy_ctl
./sip-proxy_ctl sip-proxy_ctl 0.2
Copyright 2006 iptelorg GmbH
This is free software with ABSOLUTELY NO WARRANTY.
For details type `warranty'.
sip-proxy_ctl> quit
obviously something is wrong with the linkage params used by debian
build. i don't know where it gets them. the commands i have in
debian/rules are
$(MAKE) cfg CC=$(CC) CFLAGS="$(CFLAGS)" KMSTATS=$(KMSTATS)
MAIN_NAME=$(MAIN_NAME) basedir=$(BASEDIR) prefix=/usr cfg_prefix=$(BASEDIR)
cfg_target=/etc/sip-proxy/ modules="$(MODULES)"
modules_s="$(MODULES_S)" modules_k="$(MODULES_K)"
$(MAKE) all
and i haven't defined $(CFLAGS) in rules file.
-- juha