Hello Omar,
You are missing a -DOPENSER_MOD_INTERFACE in the gcc command line. This is set in
modules/carrierroute/Makefile like below
...
DEFS+=$(CONFUSEDEFS)
LIBS=$(CONFUSELIBS)
DEFS+=-DOPENSER_MOD_INTERFACE
SERLIBPATH=../../lib
SER_LIBS+=$(SERLIBPATH)/trie/trie $(SERLIBPATH)/srdb1/srdb1 $(SERLIBPATH)/kmi/kmi
$(SERLIBPATH)/kcore/kcore
include ../../Makefile.modules
....
(This is just under the libconfuse find).
Can you check that this Makefile is unchanged(or at least you have this line). Also try
to run make QUIET=0 from the modules/carrierroute directory and see what -D flags are
passed to the compiler
Thanks
Marius
bash-3.00# make clean
bash-3.00# make quiet=0
/opt/SUNWgccfss/gcc/bin/gcc -m64 -fPIC -DPIC -g -O9 -funroll-loops -m64 -mcpu=ultrasparc
-mtune=ultrasparc -fno-strict-overflow -ftree-vectorize -Wall
-DNAME='"kamailio"' -DVERSION='"3.1.4"'
-DARCH='"sparc64"' -DOS='solaris_'
-DOS_QUOTED='"solaris"'
-DCOMPILER='"/opt/SUNWgccfss/gcc/bin/gcc 4.2.0"' -D__CPU_sparc64
-D__OS_solaris -DSER_VER=3001004
-DCFG_DIR='"/opt/kamailio3/etc/kamailio/"' -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 -DUSE_CORE_STATS -DSTATISTICS -DMALLOC_STATS
-DWITH_AS_SUPPORT -DFAST_LOCK -DADAPTIVE_WAIT -DADAPTIVE_WAIT_LOOPS=1024 -DCC_GCC_LIKE_ASM
-DSPARC64_MODE -DHAVE_GETIPNODEBYNAME -DHAVE_SYS_SOCKIO_H -DHAVE_SCHED_YIELD
-DHAVE_ALLOCA_H -DUSE_SIGACTION -DHAVE_DEVPOLL -DHAVE_SELECT -DHAVE_FILIO_H
-I/opt/openser/include -DMOD_NAME='"carrierroute"' -c prime_hash.c -o
prime_hash.o -MMD -MP
/opt/SUNWgccfss/gcc/bin/gcc -m64 -fPIC -DPIC -g -O9 -funroll-loops -m64 -mcpu=ultrasparc
-mtune=ultrasparc -fno-strict-overflow -ftree-vectorize -Wall
-DNAME='"kamailio"' -DVERSION='"3.1.4"'
-DARCH='"sparc64"' -DOS='solaris_'
-DOS_QUOTED='"solaris"'
-DCOMPILER='"/opt/SUNWgccfss/gcc/bin/gcc 4.2.0"' -D__CPU_sparc64
-D__OS_solaris -DSER_VER=3001004
-DCFG_DIR='"/opt/kamailio3/etc/kamailio/"' -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 -DUSE_CORE_STATS -DSTATISTICS -DMALLOC_STATS
-DWITH_AS_SUPPORT -DFAST_LOCK -DADAPTIVE_WAIT -DADAPTIVE_WAIT_LOOPS=1024 -DCC_GCC_LIKE_ASM
-DSPARC64_MODE -DHAVE_GETIPNODEBYNAME -DHAVE_SYS_SOCKIO_H -DHAVE_SCHED_YIELD
-DHAVE_ALLOCA_H -DUSE_SIGACTION -DHAVE_DEVPOLL -DHAVE_SELECT -DHAVE_FILIO_H
-I/opt/openser/include -DMOD_NAME='"carrierroute"' -c cr_data.c -o
cr_data.o -MMD -MP
/opt/SUNWgccfss/gcc/bin/gcc -m64 -fPIC -DPIC -g -O9 -funroll-loops -m64 -mcpu=ultrasparc
-mtune=ultrasparc -fno-strict-overflow -ftree-vectorize -Wall
-DNAME='"kamailio"' -DVERSION='"3.1.4"'
-DARCH='"sparc64"' -DOS='solaris_'
-DOS_QUOTED='"solaris"'
-DCOMPILER='"/opt/SUNWgccfss/gcc/bin/gcc 4.2.0"' -D__CPU_sparc64
-D__OS_solaris -DSER_VER=3001004
-DCFG_DIR='"/opt/kamailio3/etc/kamailio/"' -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 -DUSE_CORE_STATS -DSTATISTICS -DMALLOC_STATS
-DWITH_AS_SUPPORT -DFAST_LOCK -DADAPTIVE_WAIT -DADAPTIVE_WAIT_LOOPS=1024 -DCC_GCC_LIKE_ASM
-DSPARC64_MODE -DHAVE_GETIPNODEBYNAME -DHAVE_SYS_SOCKIO_H -DHAVE_SCHED_YIELD
-DHAVE_ALLOCA_H -DUSE_SIGACTION -DHAVE_DEVPOLL -DHAVE_SELECT -DHAVE_FILIO_H
-I/opt/openser/include -DMOD_NAME='"carrierroute"' -c carrierroute.c -o
carrierroute.o -MMD -MP
carrierroute.c:54: error: 'MODULE_INTERFACE_VER' undeclared here (not in a
function)
carrierroute.c:87: error: expected '=', ',', ';', 'asm'
or '__attribute__' before 'cmds'
carrierroute.c:132: error: variable 'exports' has initializer but incomplete
type
carrierroute.c:133: warning: excess elements in struct initializer
carrierroute.c:133: warning: (near initialization for 'exports')
carrierroute.c:134: warning: excess elements in struct initializer
carrierroute.c:134: warning: (near initialization for 'exports')
carrierroute.c:135: error: 'cmds' undeclared here (not in a function)
carrierroute.c:135: warning: excess elements in struct initializer
carrierroute.c:135: warning: (near initialization for 'exports')
carrierroute.c:136: warning: excess elements in struct initializer
carrierroute.c:136: warning: (near initialization for 'exports')
carrierroute.c:137: warning: excess elements in struct initializer
carrierroute.c:137: warning: (near initialization for 'exports')
carrierroute.c:138: warning: excess elements in struct initializer
carrierroute.c:138: warning: (near initialization for 'exports')
carrierroute.c:139: warning: excess elements in struct initializer
carrierroute.c:139: warning: (near initialization for 'exports')
carrierroute.c:140: warning: excess elements in struct initializer
carrierroute.c:140: warning: (near initialization for 'exports')
carrierroute.c:141: warning: excess elements in struct initializer
carrierroute.c:141: warning: (near initialization for 'exports')
carrierroute.c:142: warning: excess elements in struct initializer
carrierroute.c:142: warning: (near initialization for 'exports')
carrierroute.c:143: warning: excess elements in struct initializer
carrierroute.c:143: warning: (near initialization for 'exports')
carrierroute.c:145: warning: excess elements in struct initializer
carrierroute.c:145: warning: (near initialization for 'exports')
carrierroute.c: In function 'mod_init':
carrierroute.c:161: error: invalid use of undefined type 'struct module_exports'
make: *** [carrierroute.o] Error 1
bash-3.00#
On Jun 21, 2011, at 11:30 AM, Henning Westerholt wrote:
On Monday 20 June 2011, Omar wrote:
Everything compiles fine until the showed error
the were errors about the
libconfuse which I fixed stating the path to the library, yes lib confuse
is installed I am using the same one I installed for the kamailio 1.4.3.
Hi Omar,
ok, strange. If it works for the 1.4.3 it should also work for the new
version, at least i'm not aware of any changes in this regards. Can you please
provide the output of a "make clean; make quiet=0" command in the
modules/carrierroute directory?
Best regards,
Henning
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users(a)lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users(a)lists.sip-router.org