Hi,
When I try to compile ser from sources I get the following conflicting types errors: gcc -m64 -g -O9 -funroll-loops -Wcast-align -minline-all-stringops -falign-loops -ftree-vectorize -mtune=opteron -Wall -DNAME='"ser"' -DVERSION='"2.1.0-dev23-make"' -DARCH='"x86_64"' -DOS='linux_' -DOS_QUOTED='"linux"' -DCOMPILER='"gcc 4.3.1"' -D__CPU_x86_64 -D__OS_linux -DSER_VER=2001000 -DCFG_DIR='"/usr/local/etc/ser/"' -DMODS_DIR='"/usr/local/lib/ser/modules/"' -DPKG_MALLOC -DSHM_MEM -DSHM_MMAP -DDNS_IP_HACK -DUSE_IPV6 -DUSE_MCAST -DUSE_TCP -DDISABLE_NAGLE -DHAVE_RESOLV_RES -DUSE_DNS_CACHE -DUSE_DNS_FAILOVER -DUSE_DST_BLACKLIST -DUSE_NAPTR -DDBG_QM_MALLOC -DUSE_TLS -DTLS_HOOKS -DFAST_LOCK -DADAPTIVE_WAIT -DADAPTIVE_WAIT_LOOPS=1024 -DCC_GCC_LIKE_ASM -DHAVE_GETHOSTBYNAME2 -DHAVE_UNION_SEMUN -DHAVE_SCHED_YIELD -DHAVE_MSG_NOSIGNAL -DHAVE_MSGHDR_MSG_CONTROL -DHAVE_ALLOCA_H -DHAVE_TIMEGM -DHAVE_SCHED_SETSCHEDULER -DHAVE_EPOLL -DHAVE_SIGIO_RT -DSIGINFO64_WORKARROUND -DUSE_FUTEX -DHAVE_SELECT -c lock_ops.c -o lock_ops.o In file included from ut.h:53, from lock_ops.c:28: /usr/include/sys/types.h:46: error: conflicting types for 'loff_t' /usr/include/linux/types.h:30: error: previous declaration of 'loff_t' was here /usr/include/sys/types.h:62: error: conflicting types for 'dev_t' /usr/include/linux/types.h:13: error: previous declaration of 'dev_t' was here In file included from /usr/include/sys/types.h:133, from ut.h:53, from lock_ops.c:28: /usr/include/time.h:105: error: conflicting types for 'timer_t' /usr/include/linux/types.h:22: error: previous declaration of 'timer_t' was here In file included from ut.h:53, from lock_ops.c:28: /usr/include/sys/types.h:198: error: conflicting types for 'int64_t' /usr/include/linux/types.h:98: error: previous declaration of 'int64_t' was here /usr/include/sys/types.h:204: error: conflicting types for 'u_int64_t' /usr/include/linux/types.h:97: error: previous declaration of 'u_int64_t' was here In file included from /usr/include/sys/types.h:220, from ut.h:53, from lock_ops.c:28: /usr/include/sys/select.h:78: error: conflicting types for 'fd_set' /usr/include/linux/types.h:12: error: previous declaration of 'fd_set' was here In file included from ut.h:53, from lock_ops.c:28: /usr/include/sys/types.h:235: error: conflicting types for 'blkcnt_t' /usr/include/linux/types.h:124: error: previous declaration of 'blkcnt_t' was here make: *** [lock_ops.o] Błąd 1
Is there any fix for that?
Regards Tomasz
On Aug 06, 2008 at 01:11, Tomasz Zieleniewski tzieleniewski@gmail.com wrote:
[...]
Is there any fix for that?
Thanks for the bug report. I've just fixed it on cvs, so update the sources and it should work. It seems to be a bug / conflict between recent linux-libc-dev and libc6-dev headers on debian sid.
Andrei
Hi,
Great but there are still some errors:
config.mak included make[1]: Wejście do katalogu `/home/voip/src/ser/trunk/modules/auth_identity' gcc -fPIC -DPIC -m64 -g -O9 -funroll-loops -Wcast-align -minline-all-stringops -falign-loops -ftree-vectorize -mtune=opteron -Wall -DNAME='"ser"' -DVERSION='"2.1.0-dev23-make"' -DARCH='"x86_64"' -DOS='linux_' -DOS_QUOTED='"linux"' -DCOMPILER='"gcc 4.3.1"' -D__CPU_x86_64 -D__OS_linux -DSER_VER=2001000 -DCFG_DIR='"/usr/local/etc/ser/"' -DMODS_DIR='"/usr/local/lib/ser/modules/"' -DPKG_MALLOC -DSHM_MEM -DSHM_MMAP -DDNS_IP_HACK -DUSE_IPV6 -DUSE_MCAST -DUSE_TCP -DDISABLE_NAGLE -DHAVE_RESOLV_RES -DUSE_DNS_CACHE -DUSE_DNS_FAILOVER -DUSE_DST_BLACKLIST -DUSE_NAPTR -DDBG_QM_MALLOC -DUSE_TLS -DTLS_HOOKS -DFAST_LOCK -DADAPTIVE_WAIT -DADAPTIVE_WAIT_LOOPS=1024 -DCC_GCC_LIKE_ASM -DHAVE_GETHOSTBYNAME2 -DHAVE_UNION_SEMUN -DHAVE_SCHED_YIELD -DHAVE_MSG_NOSIGNAL -DHAVE_MSGHDR_MSG_CONTROL -DHAVE_ALLOCA_H -DHAVE_TIMEGM -DHAVE_SCHED_SETSCHEDULER -DHAVE_EPOLL -DHAVE_SIGIO_RT -DSIGINFO64_WORKARROUND -DUSE_FUTEX -DHAVE_SELECT -Wall -I/usr/local/ssl/include -c auth_identity.c -o auth_identity.o auth_identity.c: In function 'mod_init': auth_identity.c:177: error: 'openssl' undeclared (first use in this function) auth_identity.c:177: error: (Each undeclared identifier is reported only once auth_identity.c:177: error: for each function it appears in.) auth_identity.c:177: error: expected ';' before 'verify' make[1]: *** [auth_identity.o] Błąd 1 make[1]: Opuszczenie katalogu `/home/voip/src/ser/trunk/modules/auth_identity' make: *** [modules] Błąd 1
config.mak included make[1]: Wejście do katalogu `/home/voip/src/ser/trunk/modules/rr' make -wC ../../lib/cds/ compile_for_install=no Makefile.defs defs skipped make[2]: Wejście do katalogu `/home/voip/src/ser/trunk/lib/cds' gcc -fPIC -DPIC -fPIC -DPIC -m64 -g -O9 -funroll-loops -Wcast-align -minline-all-stringops -falign-loops -ftree-vectorize -mtune=opteron -Wall -I/home/voip/src/ser/trunk/lib/cds/.. -I/home/voip/src/ser/trunk/lib/cds/../.. -DNAME='"ser"' -DVERSION='"2.1.0-dev23-make"' -DARCH='"x86_64"' -DOS='linux_' -DOS_QUOTED='"linux"' -DCOMPILER='"gcc 4.3.1"' -D__CPU_x86_64 -D__OS_linux -DSER_VER=2001000 -DCFG_DIR='"/usr/local/etc/ser/"' -DMODS_DIR='"/usr/local/lib/ser/modules/"' -DPKG_MALLOC -DSHM_MEM -DSHM_MMAP -DDNS_IP_HACK -DUSE_IPV6 -DUSE_MCAST -DUSE_TCP -DDISABLE_NAGLE -DHAVE_RESOLV_RES -DUSE_DNS_CACHE -DUSE_DNS_FAILOVER -DUSE_DST_BLACKLIST -DUSE_NAPTR -DDBG_QM_MALLOC -DUSE_TLS -DTLS_HOOKS -DFAST_LOCK -DADAPTIVE_WAIT -DADAPTIVE_WAIT_LOOPS=1024 -DCC_GCC_LIKE_ASM -DHAVE_GETHOSTBYNAME2 -DHAVE_UNION_SEMUN -DHAVE_SCHED_YIELD -DHAVE_MSG_NOSIGNAL -DHAVE_MSGHDR_MSG_CONTROL -DHAVE_ALLOCA_H -DHAVE_TIMEGM -DHAVE_SCHED_SETSCHEDULER -DHAVE_EPOLL -DHAVE_SIGIO_RT -DSIGINFO64_WORKARROUND -DUSE_FUTEX -DHAVE_SELECT -DSER -c ref_cntr.c -o ref_cntr.o In file included from /home/voip/src/ser/trunk/lib/cds/../../mem/shm_mem.h:47, from /home/voip/src/ser/trunk/lib/cds/../../lock_alloc.h:58, from /home/voip/src/ser/trunk/lib/cds/../../locking.h:71, from /home/voip/src/ser/trunk/lib/cds/../cds/sync.h:30, from /home/voip/src/ser/trunk/lib/cds/../cds/ref_cntr.h:91, from ref_cntr.c:1: /usr/include/sys/types.h:46: error: conflicting types for 'loff_t' /usr/include/linux/types.h:30: error: previous declaration of 'loff_t' was here /usr/include/sys/types.h:62: error: conflicting types for 'dev_t' /usr/include/linux/types.h:13: error: previous declaration of 'dev_t' was here In file included from /usr/include/sys/types.h:133, from /home/voip/src/ser/trunk/lib/cds/../../mem/shm_mem.h:47, from /home/voip/src/ser/trunk/lib/cds/../../lock_alloc.h:58, from /home/voip/src/ser/trunk/lib/cds/../../locking.h:71, from /home/voip/src/ser/trunk/lib/cds/../cds/sync.h:30, from /home/voip/src/ser/trunk/lib/cds/../cds/ref_cntr.h:91, from ref_cntr.c:1: /usr/include/time.h:105: error: conflicting types for 'timer_t' /usr/include/linux/types.h:22: error: previous declaration of 'timer_t' was here In file included from /home/voip/src/ser/trunk/lib/cds/../../mem/shm_mem.h:47, from /home/voip/src/ser/trunk/lib/cds/../../lock_alloc.h:58, from /home/voip/src/ser/trunk/lib/cds/../../locking.h:71, from /home/voip/src/ser/trunk/lib/cds/../cds/sync.h:30, from /home/voip/src/ser/trunk/lib/cds/../cds/ref_cntr.h:91, from ref_cntr.c:1: /usr/include/sys/types.h:198: error: conflicting types for 'int64_t' /usr/include/linux/types.h:98: error: previous declaration of 'int64_t' was here /usr/include/sys/types.h:204: error: conflicting types for 'u_int64_t' /usr/include/linux/types.h:97: error: previous declaration of 'u_int64_t' was here In file included from /usr/include/sys/types.h:220, from /home/voip/src/ser/trunk/lib/cds/../../mem/shm_mem.h:47, from /home/voip/src/ser/trunk/lib/cds/../../lock_alloc.h:58, from /home/voip/src/ser/trunk/lib/cds/../../locking.h:71, from /home/voip/src/ser/trunk/lib/cds/../cds/sync.h:30, from /home/voip/src/ser/trunk/lib/cds/../cds/ref_cntr.h:91, from ref_cntr.c:1: /usr/include/sys/select.h:78: error: conflicting types for 'fd_set' /usr/include/linux/types.h:12: error: previous declaration of 'fd_set' was here In file included from /home/voip/src/ser/trunk/lib/cds/../../mem/shm_mem.h:47, from /home/voip/src/ser/trunk/lib/cds/../../lock_alloc.h:58, from /home/voip/src/ser/trunk/lib/cds/../../locking.h:71, from /home/voip/src/ser/trunk/lib/cds/../cds/sync.h:30, from /home/voip/src/ser/trunk/lib/cds/../cds/ref_cntr.h:91, from ref_cntr.c:1: /usr/include/sys/types.h:235: error: conflicting types for 'blkcnt_t' /usr/include/linux/types.h:124: error: previous declaration of 'blkcnt_t' was here make[2]: *** [ref_cntr.o] Błąd 1 make[2]: Opuszczenie katalogu `/home/voip/src/ser/trunk/lib/cds' make[1]: *** [../../lib/cds/libser_cds.so] Błąd 2 make[1]: Opuszczenie katalogu `/home/voip/src/ser/trunk/modules/rr' make: *** [modules] Błąd 1
Regards Tomasz
On Wed, Aug 6, 2008 at 5:28 PM, Andrei Pelinescu-Onciul andrei@iptel.orgwrote:
On Aug 06, 2008 at 17:35, Tomasz Zieleniewski tzieleniewski@gmail.com wrote:
Hi,
Great but there are still some errors:
Thanks, could you try again with the latest cvs?
Andrei
Hi,
Those fixed but new one left: config.mak included make[1]: Wejście do katalogu `/home/voip/src/ser/trunk/modules/avpops' gcc -fPIC -DPIC -m64 -g -O9 -funroll-loops -Wcast-align -minline-all-stringops -falign-loops -ftree-vectorize -mtune=opteron -Wall -DNAME='"ser"' -DVERSION='"2.1.0-dev23-make"' -DARCH='"x86_64"' -DOS='linux_' -DOS_QUOTED='"linux"' -DCOMPILER='"gcc 4.3.1"' -D__CPU_x86_64 -D__OS_linux -DSER_VER=2001000 -DCFG_DIR='"/usr/local/etc/ser/"' -DMODS_DIR='"/usr/local/lib/ser/modules/"' -DPKG_MALLOC -DSHM_MEM -DSHM_MMAP -DDNS_IP_HACK -DUSE_IPV6 -DUSE_MCAST -DUSE_TCP -DDISABLE_NAGLE -DHAVE_RESOLV_RES -DUSE_DNS_CACHE -DUSE_DNS_FAILOVER -DUSE_DST_BLACKLIST -DUSE_NAPTR -DDBG_QM_MALLOC -DUSE_TLS -DTLS_HOOKS -DFAST_LOCK -DADAPTIVE_WAIT -DADAPTIVE_WAIT_LOOPS=1024 -DCC_GCC_LIKE_ASM -DHAVE_GETHOSTBYNAME2 -DHAVE_UNION_SEMUN -DHAVE_SCHED_YIELD -DHAVE_MSG_NOSIGNAL -DHAVE_MSGHDR_MSG_CONTROL -DHAVE_ALLOCA_H -DHAVE_TIMEGM -DHAVE_SCHED_SETSCHEDULER -DHAVE_EPOLL -DHAVE_SIGIO_RT -DSIGINFO64_WORKARROUND -DUSE_FUTEX -DHAVE_SELECT -c avpops.c -o avpops.o In file included from avpops_impl.h:41, from avpops_parse.h:38, from avpops.c:50: avpops_db.h:66: error: expected ')' before '*' token make[1]: *** [avpops.o] Błąd 1 make[1]: Opuszczenie katalogu `/home/voip/src/ser/trunk/modules/avpops' make: *** [modules] Błąd 1
regards tomasz
On Thu, Aug 7, 2008 at 3:30 PM, Andrei Pelinescu-Onciul andrei@iptel.orgwrote:
On Aug 07, 2008 at 19:43, Tomasz Zieleniewski tzieleniewski@gmail.com wrote:
avpops doesn't work yet, it was not ported to the new db interface (along bdb, dbtext, iptrtproxy a.s.o). It will be ported sometime in the future, but note that almost everything you could do with it you can do now directly from core, or using db_ops (so it has quite a low priority, unless more people complain).
It should not be compiled by default (make all should not compile it). How did you get it to compile?
Andrei
I did make group_include=radius all
On Thu, Aug 7, 2008 at 7:59 PM, Andrei Pelinescu-Onciul andrei@iptel.orgwrote:
Hello,
Where can i find the latest version of Ser? On the website, the latest is RC1 and dated 2007
Olivier
I'm just copying&pasting what Jan wrote a few days ago about the coming version 2:
Hello,
I just uploaded the source tarball with release 2.0.0 to the FTP server. You can get it from
http://ftp.iptel.org/pub/ser/2.0.0/src/ser-2.0.0_src.tar.gz
and I also created a tag in the cvs repository. You can use the following command to get version 2.0.0:
cvs co -r v_2_0_0 sip_router
File ser/NEWS contains a brief description of changes.
As the next step I am going to do some updates to the new management toolset ser_ctl to make sure it works smoothly with 2.0, upload it to the ftp server and after that we can announce the release on serusers.
Jan.
2008/8/8 olivier.taylor@gmail.com olivier.taylor@gmail.com
Jan just announced the 2.0 on the development mailing list. http://lists.iptel.org/pipermail/serdev/2008-August/012892.html
Otherwise I think it is time to work on releasing 2.1 -- there are quite some using it and it seems actually pretty good. the iptel.org service is powered by it too.
-jiri
olivier.taylor@gmail.com wrote: