<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Solaris 10 Sparc.<div><br></div><div>Omar<br><div><br></div><div><br><div><div>On Jul 16, 2011, at 5:28 AM, Jason Penton wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hi Omar,<br><br>what platform are you compiling on?<br><br>Cheers<br>Jason<br><br><div class="gmail_quote">On Sat, Jul 16, 2011 at 3:53 AM, Omar <span dir="ltr">&lt;<a href="mailto:omar@321communications.com">omar@321communications.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">thank you henning:<br>
<br>
in my case it did not work, i am unable to find the error.<br>
<br>
CC (/opt/SUNWgccfss/gcc/bin/gcc -m64) [M db_mysql.so] &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; my_uri.o<br>
CC (/opt/SUNWgccfss/gcc/bin/gcc -m64) [M db_mysql.so] &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; my_res.o<br>
In file included from my_res.c:31:<br>
my_cmd.h:47: error: expected specifier-qualifier-list before 'MYSQL_STMT'<br>
my_res.c: In function 'my_res_free':<br>
my_res.c:46: error: 'struct my_cmd' has no member named 'st'<br>
my_res.c:46: warning: implicit declaration of function 'mysql_stmt_free_result'<br>
my_res.c:46: error: 'struct my_cmd' has no member named 'st'<br>
my_res.c:47: warning: implicit declaration of function 'mysql_stmt_errno'<br>
my_res.c:47: error: 'struct my_cmd' has no member named 'st'<br>
my_res.c:47: warning: implicit declaration of function 'mysql_stmt_error'<br>
my_res.c:47: error: 'struct my_cmd' has no member named 'st'<br>
my_res.c:47: warning: format '%s' expects type 'char *', but argument 8 has type 'int'<br>
my_res.c:47: error: 'struct my_cmd' has no member named 'st'<br>
my_res.c:47: error: 'struct my_cmd' has no member named 'st'<br>
my_res.c:47: error: 'struct my_cmd' has no member named 'st'<br>
my_res.c:47: error: 'struct my_cmd' has no member named 'st'<br>
my_res.c:47: warning: format '%s' expects type 'char *', but argument 7 has type 'int'<br>
my_res.c:47: error: 'struct my_cmd' has no member named 'st'<br>
my_res.c:47: error: 'struct my_cmd' has no member named 'st'<br>
my_res.c:47: error: 'struct my_cmd' has no member named 'st'<br>
my_res.c:47: error: 'struct my_cmd' has no member named 'st'<br>
make[1]: *** [my_res.o] Error 1<br>
make: *** [modules] Error 1<br>
<br>
<br>
thanks<br>
<font color="#888888"><br>
O<br>
</font><div><div></div><div class="h5"><br>
<br>
On Jul 15, 2011, at 10:57 AM, Henning Westerholt wrote:<br>
<br>
&gt; On Thursday 07 July 2011, Omar wrote:<br>
&gt;&gt; generating autover.h ...<br>
&gt;&gt; CC (/opt/SUNWgccfss/gcc/bin/gcc -m64) [kamailio]<br>
&gt;&gt; nonsip_hooks.o In file included from /usr/include/netinet/in.h:27,<br>
&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; from /usr/include/sys/socket.h:45,<br>
&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; from parser/../ip_addr.h:45,<br>
&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; from parser/msg_parser.h:63,<br>
&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; from nonsip_hooks.h:42,<br>
&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; from nonsip_hooks.c:45:<br>
&gt;&gt; /usr/include/resolv.h:222: error: array type has incomplete element type<br>
&gt;&gt; /usr/include/resolv.h:236: error: field 'addr' has incomplete type<br>
&gt;&gt; /usr/include/resolv.h:260: error: field 'sin' has incomplete type<br>
&gt;&gt; make: *** [nonsip_hooks.o] Error 1<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; this is what i got if i try that.<br>
&gt;<br>
&gt; Hi Omar,<br>
&gt;<br>
&gt; Jason Penton mentioned on the sr-dev list a similar issue yesterday, he says<br>
&gt; that this fixes the problem for him:<br>
&gt;<br>
&gt;&gt; removing the following macro from my_cmd.c fixes the issue:<br>
&gt;&gt;<br>
&gt;&gt; define _XOPEN_SOURCE 4 &nbsp; &nbsp; &nbsp;/* BSD */<br>
&gt;<br>
&gt; Maybe you could try this as well.<br>
&gt;<br>
&gt; Best regards,<br>
&gt;<br>
&gt; Henning<br>
&gt;<br>
<br>
<br>
_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</div></div></blockquote></div><br>
_______________________________________________<br>SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br><a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users<br></blockquote></div><br></div></div></body></html>