ok, removing the following macro from my_cmd.c fixes the issue:<br><br>define _XOPEN_SOURCE 4 /* BSD */<br><br>im not familiar with this macro though<br><br>anyone?<br><br><br><div class="gmail_quote">On Thu, Jul 14, 2011 at 9:08 PM, Jason Penton <span dir="ltr"><<a href="mailto:jason.penton@gmail.com">jason.penton@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi All,<br><br>I've seen someone else had a similar problem but there were no responses. On Solaris, compiling db_mysql results in the following:<br>
<br>CC (gcc) [M db_mysql.so] my_cmd.o<br>In file included from ../../globals.h:37:0,<br>
from ../../pt.h:42,<br> from ../../counters.h:43,<br> from mysql_mod.h:39,<br> from my_cmd.c:40:<br>../../ip_addr.h:85:23: error: field 'sin6' has incomplete type<br>
../../ip_addr.h: In function 'ip_addr_loopback':<br>../../ip_addr.h:281:3: warning: implicit declaration of function 'htonl'<br>../../ip_addr.h:284:3: warning: implicit declaration of function 'IN6_IS_ADDR_LOOPBACK'<br>
../../ip_addr.h: In function 'sockaddr2ip_addr':<br>../../ip_addr.h:351:50: error: dereferencing pointer to incomplete type<br>../../ip_addr.h: In function 'su_getport':<br>../../ip_addr.h:397:4: warning: implicit declaration of function 'ntohs'<br>
../../ip_addr.h: In function 'su_setport':<br>../../ip_addr.h:416:4: warning: implicit declaration of function 'htons'<br><br><br>whats puzzling me is that ip_addr.h is included in other modules which compile perfectly, however in db_mysql, not<br>
<br>feel like I'm missing something really silly? any ideas?<br><br><br>
</blockquote></div><br>