[sr-dev] Compiling db_mysql on Solaris

Jason Penton jason.penton at gmail.com
Thu Jul 14 21:08:34 CEST 2011


Hi All,

I've seen someone else had a similar problem but there were no responses. On
Solaris, compiling db_mysql results in the following:

CC (gcc) [M db_mysql.so]                my_cmd.o
In file included from ../../globals.h:37:0,
                 from ../../pt.h:42,
                 from ../../counters.h:43,
                 from mysql_mod.h:39,
                 from my_cmd.c:40:
../../ip_addr.h:85:23: error: field 'sin6' has incomplete type
../../ip_addr.h: In function 'ip_addr_loopback':
../../ip_addr.h:281:3: warning: implicit declaration of function 'htonl'
../../ip_addr.h:284:3: warning: implicit declaration of function
'IN6_IS_ADDR_LOOPBACK'
../../ip_addr.h: In function 'sockaddr2ip_addr':
../../ip_addr.h:351:50: error: dereferencing pointer to incomplete type
../../ip_addr.h: In function 'su_getport':
../../ip_addr.h:397:4: warning: implicit declaration of function 'ntohs'
../../ip_addr.h: In function 'su_setport':
../../ip_addr.h:416:4: warning: implicit declaration of function 'htons'


whats puzzling me is that ip_addr.h is included in other modules which
compile perfectly, however in db_mysql, not

feel like I'm missing something really silly? any ideas?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-dev/attachments/20110714/94b79fc1/attachment.htm>


More information about the sr-dev mailing list