Just grabbed the latest CVS for SER and attempted to compile it on a CentOS 5.3 box, but received these errors:
config.mak loaded Makefile.defs defs skipped 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.1.2"' -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 cfg_core.c -o cfg_core.o In file included from futexlock.h:52, from lock_ops.h:85, from locking.h:70, from pt.h:50, from cfg_core.c:42: /usr/include/linux/futex.h:108: error: expected ')' before '*' token /usr/include/linux/futex.h:112: error: expected ')' before '*' token make: *** [cfg_core.o] Error 1
As you can see, it's an X86_64 architecture box running kernel 2.6.18-128.el5.
I saw a similar error in Google, but there was no resolution. Any ideas?
N.
On 27.07.2009 16:43 Uhr, SIP wrote:
Just grabbed the latest CVS for SER and attempted to compile it on a CentOS 5.3 box, but received these errors:
config.mak loaded Makefile.defs defs skipped 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.1.2"' -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 cfg_core.c -o cfg_core.o In file included from futexlock.h:52, from lock_ops.h:85, from locking.h:70, from pt.h:50, from cfg_core.c:42: /usr/include/linux/futex.h:108: error: expected ')' before '*' token /usr/include/linux/futex.h:112: error: expected ')' before '*' token make: *** [cfg_core.o] Error 1
As you can see, it's an X86_64 architecture box running kernel 2.6.18-128.el5.
I saw a similar error in Google, but there was no resolution. Any ideas?
if you are playing the the development version, then it is better to use the GIT version from http://sip-router.org. The development is happening there. Just download the source code via git: git clone --depth 1 git://git.sip-router.org/sip-router cd sip-router make all ...
Beware that ser modules are now located in "modules" and "modules_s" (you can find kamailio(openser) modules in "modules_k"). Also, mysql and other db modules have changed the name being prefixed with "db_".
For any questions, join sr-dev mailing list and ask there: http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev
Cheers, Daniel