[Kamailio-Devel] TM error with -DEXTRA_DEBUG

Torben Friese contact at derfriese.com
Tue Jan 20 16:16:00 CET 2009


Hi Henning,

It was 1.3.4-notls Openser, I have set -DEXTRA_DEBUG option in the
Makefile.defs file. 
Maybe I have made another mistake but everything seems good to me.


Compiling timer.c
gcc -fPIC -DPIC -g -O9 -funroll-loops -Wcast-align -Wall
-minline-all-stringops -falign-loops -ftree-vectorize -mtune=prescott
-Wold-style-definition -Wmissing-field-initializers -DMOD_NAME='"tm"'
-DNAME='"openser"' -DVERSION='"1.3.4-notls"' -DARCH='"i386"'
-DOS='"linux"' -DCOMPILER='"gcc 4.1.2"' -D__CPU_i386 -D__OS_linux
-D__SMP_yes -DCFG_DIR='"/usr/local/etc/openser/"' -DPKG_MALLOC -DSHM_MEM
-DSHM_MMAP -DUSE_IPV6 -DUSE_MCAST -DUSE_TCP -DDISABLE_NAGLE
-DHAVE_RESOLV_RES -DSTATISTICS -DCHANGEABLE_DEBUG_LEVEL -DF_MALLOC
-DEXTRA_DEBUG  -DFAST_LOCK -DADAPTIVE_WAIT -DADAPTIVE_WAIT_LOOPS=1024
-DHAVE_GETHOSTBYNAME2 -DHAVE_UNION_SEMUN -DHAVE_SCHED_YIELD
-DHAVE_MSG_NOSIGNAL -DHAVE_MSGHDR_MSG_CONTROL -DHAVE_ALLOCA_H
-DHAVE_TIMEGM -DHAVE_EPOLL -DHAVE_SIGIO_RT -DHAVE_SELECT -c timer.c -o
timer.o
timer.c: In function 'check_timer_list':
timer.c:646: error: too many arguments to function 'abort'
timer.c:653: error: too many arguments to function 'abort'
timer.c:662: error: too many arguments to function 'abort'
timer.c:671: error: too many arguments to function 'abort'
timer.c:676: error: too many arguments to function 'abort'
timer.c:685: error: too many arguments to function 'abort'
make[1]: *** [timer.o] Error 1

best regards 

Torben



On Tue, 2009-01-20 at 14:49 +0100, Henning Westerholt wrote:
> On Monday 19 January 2009, Torben Friese wrote:
> > I only want to inform you that the tm module have some errors if you
> > compile with the DEXTRA_DEBUG option.
> >
> > timer.c: In function 'check_timer_list':
> > timer.c:625: error: too many arguments to function 'abort'
> > timer.c:632: error: too many arguments to function 'abort'
> > timer.c:641: error: too many arguments to function 'abort'
> > timer.c:650: error: too many arguments to function 'abort'
> > timer.c:655: error: too many arguments to function 'abort'
> > timer.c:664: error: too many arguments to function 'abort'
> >
> >
> > In these lines have the abort function a '0' as parameter but
> > the abort() function never returns.
> 
> Hi Torben,
> 
> thanks for the report. I've tried to reproduce this, without luck.
> 
> Compiling timer.c
> gcc -fPIC -DPIC -g -O9 -funroll-loops -Wcast-align -Wall -minline-all-stringops -falign-loops -ftree-vectorize 
> -mtune=prescott -Wold-style-definition -Wmissing-field-initializers -Wredundant-decls -DMOD_NAME='"tm"' 
> -DNAME='"kamailio"' -DVERSION='"1.5.0-dev22-notls"' -DARCH='"i386"' -DOS='"linux"' -DCOMPILER='"gcc 
> 4.2.4"' -D__CPU_i386 -D__OS_linux -D__SMP_yes -DCFG_DIR='"/usr/local/etc/kamailio/"' -DPKG_MALLOC
> -DSHM_MMAP -DUSE_IPV6 -DUSE_MCAST -DUSE_TCP -DDISABLE_NAGLE -DHAVE_RESOLV_RES -DSTATISTICS -DCHANGEABLE_DEBUG_LEVEL
> -DUSE_LOCAL_ROUTE -DEXTRA_DEBUG  -DF_MALLOC -DFAST_LOCK -DADAPTIVE_WAIT -DADAPTIVE_WAIT_LOOPS=1024 
> -DHAVE_GETHOSTBYNAME2 -DHAVE_UNION_SEMUN -DHAVE_SCHED_YIELD -DHAVE_MSG_NOSIGNAL -DHAVE_MSGHDR_MSG_CONTROL
> -DHAVE_ALLOCA_H -DHAVE_TIMEGM -DHAVE_EPOLL -DHAVE_SIGIO_RT -DHAVE_SELECT -c 
> timer.c -o timer.o                                                                 
> 
> It seems that two years ago there was a fix related to compile problems with 
> EXTRA_DEBUG (r1656, 2007-02-16). For what version of openser/ kamailio do you 
> encounter this problem?
> 
> Cheers,
> 
> Henning




More information about the Devel mailing list