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 -DSER_MOD_INTERFACE -DSER_MOD_INTERFACE -I/opt/openser/include -I/opt/openser/include/mysql -I/opt/openser/mysql/include -I/usr/include/mysql -DMOD_NAME='"db_mysql"' -c km_db_mysql.c -o km_db_mysql.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 -DSER_MOD_INTERFACE -DSER_MOD_INTERFACE -I/opt/openser/include -I/opt/openser/include/mysql -I/opt/openser/mysql/include -I/usr/include/mysql -DMOD_NAME='"db_mysql"' -c my_uri.c -o my_uri.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 -DSER_MOD_INTERFACE -DSER_MOD_INTERFACE -I/opt/openser/include -I/opt/openser/include/mysql -I/opt/openser/mysql/include -I/usr/include/mysql -DMOD_NAME='"db_mysql"' -c my_res.c -o my_res.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 -DSER_MOD_INTERFACE -DSER_MOD_INTERFACE -I/opt/openser/include -I/opt/openser/include/mysql -I/opt/openser/mysql/include -I/usr/include/mysql -DMOD_NAME='"db_mysql"' -c my_cmd.c -o my_cmd.o -MMD -MP In file included from ../../globals.h:37, from ../../pt.h:42, from ../../counters.h:43, from mysql_mod.h:39, from my_cmd.c:40: ../../ip_addr.h:86: error: field 'sin6' has incomplete type ../../ip_addr.h: In function 'ip_addr_loopback': ../../ip_addr.h:283: warning: implicit declaration of function 'htonl' ../../ip_addr.h:286: warning: implicit declaration of function 'IN6_IS_ADDR_LOOPBACK' ../../ip_addr.h: In function 'sockaddr2ip_addr': ../../ip_addr.h:353: error: dereferencing pointer to incomplete type ../../ip_addr.h: In function 'su_getport': ../../ip_addr.h:399: warning: implicit declaration of function 'ntohs' ../../ip_addr.h: In function 'su_setport': ../../ip_addr.h:418: warning: implicit declaration of function 'htons' make: *** [my_cmd.o] Error 1
the onyl thing i did is uncomment the CROSSCOMPILE line
regards
O
Can you try adding
#include <netinet/in.h>
before first #include in modules/db_mysql/my_cmd.c file?
If not working, try to grep in /usr/include/ to see which is the file where sin6 is defined.
Cheers, Daniel
On 6/23/11 3:03 AM, Omar wrote:
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 -DSER_MOD_INTERFACE -DSER_MOD_INTERFACE -I/opt/openser/include -I/opt/openser/include/mysql -I/opt/openser/mysql/include -I/usr/include/mysql -DMOD_NAME='"db_mysql"' -c km_db_mysql.c -o km_db_mysql.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 -DSER_MOD_INTERFACE -DSER_MOD_INTERFACE -I/opt/openser/include -I/opt/openser/include/mysql -I/opt/openser/mysql/include -I/usr/include/mysql -DMOD_NAME='"db_mysql"' -c my_uri.c -o my_uri.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 -DSER_MOD_INTERFACE -DSER_MOD_INTERFACE -I/opt/openser/include -I/opt/openser/include/mysql -I/opt/openser/mysql/include -I/usr/include/mysql -DMOD_NAME='"db_mysql"' -c my_res.c -o my_res.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 -DSER_MOD_INTERFACE -DSER_MOD_INTERFACE -I/opt/openser/include -I/opt/openser/include/mysql -I/opt/openser/mysql/include -I/usr/include/mysql -DMOD_NAME='"db_mysql"' -c my_cmd.c -o my_cmd.o -MMD -MP In file included from ../../globals.h:37, from ../../pt.h:42, from ../../counters.h:43, from mysql_mod.h:39, from my_cmd.c:40: ../../ip_addr.h:86: error: field 'sin6' has incomplete type ../../ip_addr.h: In function 'ip_addr_loopback': ../../ip_addr.h:283: warning: implicit declaration of function 'htonl' ../../ip_addr.h:286: warning: implicit declaration of function 'IN6_IS_ADDR_LOOPBACK' ../../ip_addr.h: In function 'sockaddr2ip_addr': ../../ip_addr.h:353: error: dereferencing pointer to incomplete type ../../ip_addr.h: In function 'su_getport': ../../ip_addr.h:399: warning: implicit declaration of function 'ntohs' ../../ip_addr.h: In function 'su_setport': ../../ip_addr.h:418: warning: implicit declaration of function 'htons' make: *** [my_cmd.o] Error 1
the onyl thing i did is uncomment the CROSSCOMPILE line
regards
O _______________________________________________ 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
added, and got same error:
bash-3.00# grep sin6 /usr/include/* /usr/include/resolv.h: struct sockaddr_in6 sin6;
Thanks Daniel
O
On Jun 24, 2011, at 3:58 AM, Daniel-Constantin Mierla wrote:
Can you try adding
#include <netinet/in.h>
before first #include in modules/db_mysql/my_cmd.c file?
If not working, try to grep in /usr/include/ to see which is the file where sin6 is defined.
Cheers, Daniel
On 6/23/11 3:03 AM, Omar wrote:
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 -DSER_MOD_INTERFACE -DSER_MOD_INTERFACE -I/opt/openser/include -I/opt/openser/include/mysql -I/opt/openser/mysql/include -I/usr/include/mysql -DMOD_NAME='"db_mysql"' -c km_db_mysql.c -o km_db_mysql.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 -DSER_MOD_INTERFACE -DSER_MOD_INTERFACE -I/opt/openser/include -I/opt/openser/include/mysql -I/opt/openser/mysql/include -I/usr/include/mysql -DMOD_NAME='"db_mysql"' -c my_uri.c -o my_uri.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 -DSER_MOD_INTERFACE -DSER_MOD_INTERFACE -I/opt/openser/include -I/opt/openser/include/mysql -I/opt/openser/mysql/include -I/usr/include/mysql -DMOD_NAME='"db_mysql"' -c my_res.c -o my_res.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 -DSER_MOD_INTERFACE -DSER_MOD_INTERFACE -I/opt/openser/include -I/opt/openser/include/mysql -I/opt/openser/mysql/include -I/usr/include/mysql -DMOD_NAME='"db_mysql"' -c my_cmd.c -o my_cmd.o -MMD -MP In file included from ../../globals.h:37, from ../../pt.h:42, from ../../counters.h:43, from mysql_mod.h:39, from my_cmd.c:40: ../../ip_addr.h:86: error: field 'sin6' has incomplete type ../../ip_addr.h: In function 'ip_addr_loopback': ../../ip_addr.h:283: warning: implicit declaration of function 'htonl' ../../ip_addr.h:286: warning: implicit declaration of function 'IN6_IS_ADDR_LOOPBACK' ../../ip_addr.h: In function 'sockaddr2ip_addr': ../../ip_addr.h:353: error: dereferencing pointer to incomplete type ../../ip_addr.h: In function 'su_getport': ../../ip_addr.h:399: warning: implicit declaration of function 'ntohs' ../../ip_addr.h: In function 'su_setport': ../../ip_addr.h:418: warning: implicit declaration of function 'htons' make: *** [my_cmd.o] Error 1
the onyl thing i did is uncomment the CROSSCOMPILE line
regards
O _______________________________________________ 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
-- Daniel-Constantin Mierla -- http://www.asipto.com http://linkedin.com/in/miconda -- http://twitter.com/miconda
On Monday 27 June 2011, Omar wrote:
added, and got same error:
bash-3.00# grep sin6 /usr/include/* /usr/include/resolv.h: struct sockaddr_in6 sin6;
Hi Omar,
ok, have you already tried to include the resolv.h file (instead or additionally to the in.h) to the db_mysql source file?
Best regards,
Henning
generating autover.h ... CC (/opt/SUNWgccfss/gcc/bin/gcc -m64) [kamailio] nonsip_hooks.o In file included from /usr/include/netinet/in.h:27, from /usr/include/sys/socket.h:45, from parser/../ip_addr.h:45, from parser/msg_parser.h:63, from nonsip_hooks.h:42, from nonsip_hooks.c:45: /usr/include/resolv.h:222: error: array type has incomplete element type /usr/include/resolv.h:236: error: field 'addr' has incomplete type /usr/include/resolv.h:260: error: field 'sin' has incomplete type make: *** [nonsip_hooks.o] Error 1
this is what i got if i try that.
Omar
On Jul 4, 2011, at 5:15 AM, Henning Westerholt wrote:
On Monday 27 June 2011, Omar wrote:
added, and got same error:
bash-3.00# grep sin6 /usr/include/* /usr/include/resolv.h: struct sockaddr_in6 sin6;
Hi Omar,
ok, have you already tried to include the resolv.h file (instead or additionally to the in.h) to the db_mysql source file?
Best regards,
Henning
On Thursday 07 July 2011, Omar wrote:
generating autover.h ... CC (/opt/SUNWgccfss/gcc/bin/gcc -m64) [kamailio] nonsip_hooks.o In file included from /usr/include/netinet/in.h:27, from /usr/include/sys/socket.h:45, from parser/../ip_addr.h:45, from parser/msg_parser.h:63, from nonsip_hooks.h:42, from nonsip_hooks.c:45: /usr/include/resolv.h:222: error: array type has incomplete element type /usr/include/resolv.h:236: error: field 'addr' has incomplete type /usr/include/resolv.h:260: error: field 'sin' has incomplete type make: *** [nonsip_hooks.o] Error 1
this is what i got if i try that.
Hi Omar,
Jason Penton mentioned on the sr-dev list a similar issue yesterday, he says that this fixes the problem for him:
removing the following macro from my_cmd.c fixes the issue:
define _XOPEN_SOURCE 4 /* BSD */
Maybe you could try this as well.
Best regards,
Henning
thank you henning:
in my case it did not work, i am unable to find the error.
CC (/opt/SUNWgccfss/gcc/bin/gcc -m64) [M db_mysql.so] my_uri.o CC (/opt/SUNWgccfss/gcc/bin/gcc -m64) [M db_mysql.so] my_res.o In file included from my_res.c:31: my_cmd.h:47: error: expected specifier-qualifier-list before 'MYSQL_STMT' my_res.c: In function 'my_res_free': my_res.c:46: error: 'struct my_cmd' has no member named 'st' my_res.c:46: warning: implicit declaration of function 'mysql_stmt_free_result' my_res.c:46: error: 'struct my_cmd' has no member named 'st' my_res.c:47: warning: implicit declaration of function 'mysql_stmt_errno' my_res.c:47: error: 'struct my_cmd' has no member named 'st' my_res.c:47: warning: implicit declaration of function 'mysql_stmt_error' my_res.c:47: error: 'struct my_cmd' has no member named 'st' my_res.c:47: warning: format '%s' expects type 'char *', but argument 8 has type 'int' my_res.c:47: error: 'struct my_cmd' has no member named 'st' my_res.c:47: error: 'struct my_cmd' has no member named 'st' my_res.c:47: error: 'struct my_cmd' has no member named 'st' my_res.c:47: error: 'struct my_cmd' has no member named 'st' my_res.c:47: warning: format '%s' expects type 'char *', but argument 7 has type 'int' my_res.c:47: error: 'struct my_cmd' has no member named 'st' my_res.c:47: error: 'struct my_cmd' has no member named 'st' my_res.c:47: error: 'struct my_cmd' has no member named 'st' my_res.c:47: error: 'struct my_cmd' has no member named 'st' make[1]: *** [my_res.o] Error 1 make: *** [modules] Error 1
thanks
O
On Jul 15, 2011, at 10:57 AM, Henning Westerholt wrote:
On Thursday 07 July 2011, Omar wrote:
generating autover.h ... CC (/opt/SUNWgccfss/gcc/bin/gcc -m64) [kamailio] nonsip_hooks.o In file included from /usr/include/netinet/in.h:27, from /usr/include/sys/socket.h:45, from parser/../ip_addr.h:45, from parser/msg_parser.h:63, from nonsip_hooks.h:42, from nonsip_hooks.c:45: /usr/include/resolv.h:222: error: array type has incomplete element type /usr/include/resolv.h:236: error: field 'addr' has incomplete type /usr/include/resolv.h:260: error: field 'sin' has incomplete type make: *** [nonsip_hooks.o] Error 1
this is what i got if i try that.
Hi Omar,
Jason Penton mentioned on the sr-dev list a similar issue yesterday, he says that this fixes the problem for him:
removing the following macro from my_cmd.c fixes the issue:
define _XOPEN_SOURCE 4 /* BSD */
Maybe you could try this as well.
Best regards,
Henning
Hi Omar,
what platform are you compiling on?
Cheers Jason
On Sat, Jul 16, 2011 at 3:53 AM, Omar omar@321communications.com wrote:
thank you henning:
in my case it did not work, i am unable to find the error.
CC (/opt/SUNWgccfss/gcc/bin/gcc -m64) [M db_mysql.so] my_uri.o CC (/opt/SUNWgccfss/gcc/bin/gcc -m64) [M db_mysql.so] my_res.o In file included from my_res.c:31: my_cmd.h:47: error: expected specifier-qualifier-list before 'MYSQL_STMT' my_res.c: In function 'my_res_free': my_res.c:46: error: 'struct my_cmd' has no member named 'st' my_res.c:46: warning: implicit declaration of function 'mysql_stmt_free_result' my_res.c:46: error: 'struct my_cmd' has no member named 'st' my_res.c:47: warning: implicit declaration of function 'mysql_stmt_errno' my_res.c:47: error: 'struct my_cmd' has no member named 'st' my_res.c:47: warning: implicit declaration of function 'mysql_stmt_error' my_res.c:47: error: 'struct my_cmd' has no member named 'st' my_res.c:47: warning: format '%s' expects type 'char *', but argument 8 has type 'int' my_res.c:47: error: 'struct my_cmd' has no member named 'st' my_res.c:47: error: 'struct my_cmd' has no member named 'st' my_res.c:47: error: 'struct my_cmd' has no member named 'st' my_res.c:47: error: 'struct my_cmd' has no member named 'st' my_res.c:47: warning: format '%s' expects type 'char *', but argument 7 has type 'int' my_res.c:47: error: 'struct my_cmd' has no member named 'st' my_res.c:47: error: 'struct my_cmd' has no member named 'st' my_res.c:47: error: 'struct my_cmd' has no member named 'st' my_res.c:47: error: 'struct my_cmd' has no member named 'st' make[1]: *** [my_res.o] Error 1 make: *** [modules] Error 1
thanks
O
On Jul 15, 2011, at 10:57 AM, Henning Westerholt wrote:
On Thursday 07 July 2011, Omar wrote:
generating autover.h ... CC (/opt/SUNWgccfss/gcc/bin/gcc -m64) [kamailio] nonsip_hooks.o In file included from /usr/include/netinet/in.h:27, from /usr/include/sys/socket.h:45, from parser/../ip_addr.h:45, from parser/msg_parser.h:63, from nonsip_hooks.h:42, from nonsip_hooks.c:45: /usr/include/resolv.h:222: error: array type has incomplete element type /usr/include/resolv.h:236: error: field 'addr' has incomplete type /usr/include/resolv.h:260: error: field 'sin' has incomplete type make: *** [nonsip_hooks.o] Error 1
this is what i got if i try that.
Hi Omar,
Jason Penton mentioned on the sr-dev list a similar issue yesterday, he
says
that this fixes the problem for him:
removing the following macro from my_cmd.c fixes the issue:
define _XOPEN_SOURCE 4 /* BSD */
Maybe you could try this as well.
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
Solaris 10 Sparc.
Omar
On Jul 16, 2011, at 5:28 AM, Jason Penton wrote:
Hi Omar,
what platform are you compiling on?
Cheers Jason
On Sat, Jul 16, 2011 at 3:53 AM, Omar omar@321communications.com wrote: thank you henning:
in my case it did not work, i am unable to find the error.
CC (/opt/SUNWgccfss/gcc/bin/gcc -m64) [M db_mysql.so] my_uri.o CC (/opt/SUNWgccfss/gcc/bin/gcc -m64) [M db_mysql.so] my_res.o In file included from my_res.c:31: my_cmd.h:47: error: expected specifier-qualifier-list before 'MYSQL_STMT' my_res.c: In function 'my_res_free': my_res.c:46: error: 'struct my_cmd' has no member named 'st' my_res.c:46: warning: implicit declaration of function 'mysql_stmt_free_result' my_res.c:46: error: 'struct my_cmd' has no member named 'st' my_res.c:47: warning: implicit declaration of function 'mysql_stmt_errno' my_res.c:47: error: 'struct my_cmd' has no member named 'st' my_res.c:47: warning: implicit declaration of function 'mysql_stmt_error' my_res.c:47: error: 'struct my_cmd' has no member named 'st' my_res.c:47: warning: format '%s' expects type 'char *', but argument 8 has type 'int' my_res.c:47: error: 'struct my_cmd' has no member named 'st' my_res.c:47: error: 'struct my_cmd' has no member named 'st' my_res.c:47: error: 'struct my_cmd' has no member named 'st' my_res.c:47: error: 'struct my_cmd' has no member named 'st' my_res.c:47: warning: format '%s' expects type 'char *', but argument 7 has type 'int' my_res.c:47: error: 'struct my_cmd' has no member named 'st' my_res.c:47: error: 'struct my_cmd' has no member named 'st' my_res.c:47: error: 'struct my_cmd' has no member named 'st' my_res.c:47: error: 'struct my_cmd' has no member named 'st' make[1]: *** [my_res.o] Error 1 make: *** [modules] Error 1
thanks
O
On Jul 15, 2011, at 10:57 AM, Henning Westerholt wrote:
On Thursday 07 July 2011, Omar wrote:
generating autover.h ... CC (/opt/SUNWgccfss/gcc/bin/gcc -m64) [kamailio] nonsip_hooks.o In file included from /usr/include/netinet/in.h:27, from /usr/include/sys/socket.h:45, from parser/../ip_addr.h:45, from parser/msg_parser.h:63, from nonsip_hooks.h:42, from nonsip_hooks.c:45: /usr/include/resolv.h:222: error: array type has incomplete element type /usr/include/resolv.h:236: error: field 'addr' has incomplete type /usr/include/resolv.h:260: error: field 'sin' has incomplete type make: *** [nonsip_hooks.o] Error 1
this is what i got if i try that.
Hi Omar,
Jason Penton mentioned on the sr-dev list a similar issue yesterday, he says that this fixes the problem for him:
removing the following macro from my_cmd.c fixes the issue:
define _XOPEN_SOURCE 4 /* BSD */
Maybe you could try this as well.
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
just check you havent changed anything because the fix to remove the BSD macro def. fixed mine and I had exact same problem as you, although mine was on Solaris x86. Are you using gcc? I dont have a sparc machine to test for you but if you send me a private mail with a tmp ssh login I will have a look in a screen session (so you can follow) for you.
Cheers Jason
On Sat, Jul 16, 2011 at 2:57 PM, Omar omar@321communications.com wrote:
Solaris 10 Sparc.
Omar
On Jul 16, 2011, at 5:28 AM, Jason Penton wrote:
Hi Omar,
what platform are you compiling on?
Cheers Jason
On Sat, Jul 16, 2011 at 3:53 AM, Omar omar@321communications.com wrote:
thank you henning:
in my case it did not work, i am unable to find the error.
CC (/opt/SUNWgccfss/gcc/bin/gcc -m64) [M db_mysql.so] my_uri.o CC (/opt/SUNWgccfss/gcc/bin/gcc -m64) [M db_mysql.so] my_res.o In file included from my_res.c:31: my_cmd.h:47: error: expected specifier-qualifier-list before 'MYSQL_STMT' my_res.c: In function 'my_res_free': my_res.c:46: error: 'struct my_cmd' has no member named 'st' my_res.c:46: warning: implicit declaration of function 'mysql_stmt_free_result' my_res.c:46: error: 'struct my_cmd' has no member named 'st' my_res.c:47: warning: implicit declaration of function 'mysql_stmt_errno' my_res.c:47: error: 'struct my_cmd' has no member named 'st' my_res.c:47: warning: implicit declaration of function 'mysql_stmt_error' my_res.c:47: error: 'struct my_cmd' has no member named 'st' my_res.c:47: warning: format '%s' expects type 'char *', but argument 8 has type 'int' my_res.c:47: error: 'struct my_cmd' has no member named 'st' my_res.c:47: error: 'struct my_cmd' has no member named 'st' my_res.c:47: error: 'struct my_cmd' has no member named 'st' my_res.c:47: error: 'struct my_cmd' has no member named 'st' my_res.c:47: warning: format '%s' expects type 'char *', but argument 7 has type 'int' my_res.c:47: error: 'struct my_cmd' has no member named 'st' my_res.c:47: error: 'struct my_cmd' has no member named 'st' my_res.c:47: error: 'struct my_cmd' has no member named 'st' my_res.c:47: error: 'struct my_cmd' has no member named 'st' make[1]: *** [my_res.o] Error 1 make: *** [modules] Error 1
thanks
O
On Jul 15, 2011, at 10:57 AM, Henning Westerholt wrote:
On Thursday 07 July 2011, Omar wrote:
generating autover.h ... CC (/opt/SUNWgccfss/gcc/bin/gcc -m64) [kamailio] nonsip_hooks.o In file included from /usr/include/netinet/in.h:27, from /usr/include/sys/socket.h:45, from parser/../ip_addr.h:45, from parser/msg_parser.h:63, from nonsip_hooks.h:42, from nonsip_hooks.c:45: /usr/include/resolv.h:222: error: array type has incomplete element
type
/usr/include/resolv.h:236: error: field 'addr' has incomplete type /usr/include/resolv.h:260: error: field 'sin' has incomplete type make: *** [nonsip_hooks.o] Error 1
this is what i got if i try that.
Hi Omar,
Jason Penton mentioned on the sr-dev list a similar issue yesterday, he
says
that this fixes the problem for him:
removing the following macro from my_cmd.c fixes the issue:
define _XOPEN_SOURCE 4 /* BSD */
Maybe you could try this as well.
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
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
have you compiled in 32 bits or 64 bits, not sure if we should compile in 32 bits only.
i have errors like
cfg/../atomic/atomic_sparc.h:41:2: warning: #warning "sparc32 atomic operations support not tested"
should i ignore them?
Omar
On Jul 16, 2011, at 9:58 AM, Jason Penton wrote:
just check you havent changed anything because the fix to remove the BSD macro def. fixed mine and I had exact same problem as you, although mine was on Solaris x86. Are you using gcc? I dont have a sparc machine to test for you but if you send me a private mail with a tmp ssh login I will have a look in a screen session (so you can follow) for you.
Cheers Jason
On Sat, Jul 16, 2011 at 2:57 PM, Omar omar@321communications.com wrote: Solaris 10 Sparc.
Omar
On Jul 16, 2011, at 5:28 AM, Jason Penton wrote:
Hi Omar,
what platform are you compiling on?
Cheers Jason
On Sat, Jul 16, 2011 at 3:53 AM, Omar omar@321communications.com wrote: thank you henning:
in my case it did not work, i am unable to find the error.
CC (/opt/SUNWgccfss/gcc/bin/gcc -m64) [M db_mysql.so] my_uri.o CC (/opt/SUNWgccfss/gcc/bin/gcc -m64) [M db_mysql.so] my_res.o In file included from my_res.c:31: my_cmd.h:47: error: expected specifier-qualifier-list before 'MYSQL_STMT' my_res.c: In function 'my_res_free': my_res.c:46: error: 'struct my_cmd' has no member named 'st' my_res.c:46: warning: implicit declaration of function 'mysql_stmt_free_result' my_res.c:46: error: 'struct my_cmd' has no member named 'st' my_res.c:47: warning: implicit declaration of function 'mysql_stmt_errno' my_res.c:47: error: 'struct my_cmd' has no member named 'st' my_res.c:47: warning: implicit declaration of function 'mysql_stmt_error' my_res.c:47: error: 'struct my_cmd' has no member named 'st' my_res.c:47: warning: format '%s' expects type 'char *', but argument 8 has type 'int' my_res.c:47: error: 'struct my_cmd' has no member named 'st' my_res.c:47: error: 'struct my_cmd' has no member named 'st' my_res.c:47: error: 'struct my_cmd' has no member named 'st' my_res.c:47: error: 'struct my_cmd' has no member named 'st' my_res.c:47: warning: format '%s' expects type 'char *', but argument 7 has type 'int' my_res.c:47: error: 'struct my_cmd' has no member named 'st' my_res.c:47: error: 'struct my_cmd' has no member named 'st' my_res.c:47: error: 'struct my_cmd' has no member named 'st' my_res.c:47: error: 'struct my_cmd' has no member named 'st' make[1]: *** [my_res.o] Error 1 make: *** [modules] Error 1
thanks
O
On Jul 15, 2011, at 10:57 AM, Henning Westerholt wrote:
On Thursday 07 July 2011, Omar wrote:
generating autover.h ... CC (/opt/SUNWgccfss/gcc/bin/gcc -m64) [kamailio] nonsip_hooks.o In file included from /usr/include/netinet/in.h:27, from /usr/include/sys/socket.h:45, from parser/../ip_addr.h:45, from parser/msg_parser.h:63, from nonsip_hooks.h:42, from nonsip_hooks.c:45: /usr/include/resolv.h:222: error: array type has incomplete element type /usr/include/resolv.h:236: error: field 'addr' has incomplete type /usr/include/resolv.h:260: error: field 'sin' has incomplete type make: *** [nonsip_hooks.o] Error 1
this is what i got if i try that.
Hi Omar,
Jason Penton mentioned on the sr-dev list a similar issue yesterday, he says that this fixes the problem for him:
removing the following macro from my_cmd.c fixes the issue:
define _XOPEN_SOURCE 4 /* BSD */
Maybe you could try this as well.
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
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