[SR-Users] Build error: "no type or storage class" when building "presence" modules on solaris (pa module)

Bruce McAlister bruce.mcalister at blueface.ie
Mon Dec 7 11:15:32 CET 2009


Hi All,

I have come across another build issue when building the presence module
bundle on Solaris 10. The specific error is as follows:

config.mak included
make[1]: Entering directory
`/export/home/user/packages/BUILD/ser-2.99.99-pre3/modules_s/pa'
make[1]: Leaving directory
`/export/home/user/packages/BUILD/ser-2.99.99-pre3/modules_s/pa'
config.mak included
make[1]: Entering directory
`/export/home/user/packages/BUILD/ser-2.99.99-pre3/modules_s/pa'
/usr/sfw/bin/gcc -fPIC -DPIC -g -O9 -funroll-loops -Wcast-align -m32
-minline-all-stringops -falign-loops -mtune=athlon -Wall
-I/usr/include/libxml2 -I/usr/local/include/libxml2 -I/usr/local/include
-I../../lib -I../.. -DNAME='"ser"' -DVERSION='"2.99.99-pre3"'
-DARCH='"i386"' -DOS='solaris_' -DOS_QUOTED='"solaris"'
-DCOMPILER='"/usr/sfw/bin/gcc 3.4.3"' -D__CPU_i386 -D__OS_solaris
-DSER_VER=2099099 -DCFG_DIR='"/opt/kamailio/etc/ser/"' -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_GETIPNODEBYNAME -DHAVE_SYS_SOCKIO_H -DHAVE_SCHED_YIELD
-DHAVE_ALLOCA_H -DUSE_SIGACTION -DHAVE_DEVPOLL -DHAVE_SELECT
-DHAVE_FILIO_H   -DSER -DSER_MOD_INTERFACE -DMOD_NAME='"pa"' -c
async_auth.c -o async_auth.o
In file included from async_auth.c:1:
pa_mod.h:54: error: syntax error before "pa_dbf"
pa_mod.h:54: warning: type defaults to `int' in declaration of `pa_dbf'
pa_mod.h:54: warning: data definition has no type or storage class
make[1]: *** [async_auth.o] Error 1
make[1]: Leaving directory
`/export/home/user/packages/BUILD/ser-2.99.99-pre3/modules_s/pa'
make: *** [modules_s] Error 1

I have read the INSTALL text file and it seems that the pa module
requires libxml2. I have checked that this library is on the box. The
version of libxml2 on Solaris is as follows:

user at soldev:~ $ /usr/bin/xml2-config --version
2.6.23

user at soldev:~ $ /usr/bin/xml2-config --libs
-L/usr/lib -R/usr/lib -lxml2 -lz -lpthread -lm -lsocket -lnsl

user at soldev:~ $ /usr/bin/xml2-config --cflags
-I/usr/include/libxml2

I am building the following version of SIPRouter:

ser-2.99.99-pre3_src_2009-12-05_b8e67f

The way I am building SIPRouter is as follows:

make prefix=/opt/kamailio group_include="standard postgres presence" all

If I manually change directory into the modules_s/pa directory and issue
a "make" then the build still fails with the same error.

If I remove the "presence" group then the build completes successfully.

Any pointers for a resolution would be greatly appreciated. If you
require any additional information please dont hesitate to ask.

Thank you
Bruce




More information about the sr-users mailing list