I am Using Solaris 10 and GCC 4.2, i do have libconfuse
everything goes fine until this error comes up.
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[1]: *** [carrierroute.o] Error 1 make: *** [modules] Error 1
On Saturday 18 June 2011, Omar wrote:
I am Using Solaris 10 and GCC 4.2, i do have libconfuse
everything goes fine until this error comes up.
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') [..]
Hi Omar,
the error messages looks not really related to carrierroute module dependencies for me - but its worth to check anyway: Do you've also the libconfuse development headers installed? Other modules compile just fine?
Best regards,
Henning
Thank you for answer Henning
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.
Omar
On Jun 20, 2011, at 5:11 AM, Henning Westerholt henning.westerholt@1und1.de wrote:
On Saturday 18 June 2011, Omar wrote:
I am Using Solaris 10 and GCC 4.2, i do have libconfuse
everything goes fine until this error comes up.
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') [..]
Hi Omar,
the error messages looks not really related to carrierroute module dependencies for me - but its worth to check anyway: Do you've also the libconfuse development headers installed? Other modules compile just fine?
Best regards,
Henning
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
Here we go
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
On 06/22/2011 03:41 AM, Omar wrote:
Here we go
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@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
great that fixed the carrierroute even for some reason i got a several warning:
make[1]: confuse-config: Command not found
But now i am stuck in the MYSQL
On Jun 22, 2011, at 3:48 AM, marius zbihlei wrote:
On 06/22/2011 03:41 AM, Omar wrote:
Here we go
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@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@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
FYI
I did give up, after everything compiled i was trying to install i got an error kamailio.o unable to create kamailio.o.
for the records this is trying to compile in a Sparc 64 bits, and i did actually force to use the 64 bit libraries.
so far anything above the Kamailio 1.4.3 i was unable to compile for solaris Sparc64.
O
On Jun 20, 2011, at 5:11 AM, Henning Westerholt wrote:
On Saturday 18 June 2011, Omar wrote:
I am Using Solaris 10 and GCC 4.2, i do have libconfuse
everything goes fine until this error comes up.
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') [..]
Hi Omar,
the error messages looks not really related to carrierroute module dependencies for me - but its worth to check anyway: Do you've also the libconfuse development headers installed? Other modules compile just fine?
Best regards,
Henning
On Saturday 30 July 2011, Omar wrote:
I did give up, after everything compiled i was trying to install i got an error kamailio.o unable to create kamailio.o.
for the records this is trying to compile in a Sparc 64 bits, and i did actually force to use the 64 bit libraries.
so far anything above the Kamailio 1.4.3 i was unable to compile for solaris Sparc64.
Hi Omar,
i see, bad that it not works for you. :-/ The issue is that I have no access to any solaris hardware at all to debug it. You also discussed some mysql compile issues with Jason Penton on sr-users ("MYSQL Compilation Kamailio 3.1.4") about two weeks ago, i think. He offered to help you on your machine, do you had some more luck here?
Best regards,
Henning