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]           my_uri.o<br>
CC (/opt/SUNWgccfss/gcc/bin/gcc -m64) [M db_mysql.so]           my_res.o<br>
In file included from my_res.c:31:<br>
my_cmd.h:47: error: expected specifier-qualifier-list before &#39;MYSQL_STMT&#39;<br>
my_res.c: In function &#39;my_res_free&#39;:<br>
my_res.c:46: error: &#39;struct my_cmd&#39; has no member named &#39;st&#39;<br>
my_res.c:46: warning: implicit declaration of function &#39;mysql_stmt_free_result&#39;<br>
my_res.c:46: error: &#39;struct my_cmd&#39; has no member named &#39;st&#39;<br>
my_res.c:47: warning: implicit declaration of function &#39;mysql_stmt_errno&#39;<br>
my_res.c:47: error: &#39;struct my_cmd&#39; has no member named &#39;st&#39;<br>
my_res.c:47: warning: implicit declaration of function &#39;mysql_stmt_error&#39;<br>
my_res.c:47: error: &#39;struct my_cmd&#39; has no member named &#39;st&#39;<br>
my_res.c:47: warning: format &#39;%s&#39; expects type &#39;char *&#39;, but argument 8 has type &#39;int&#39;<br>
my_res.c:47: error: &#39;struct my_cmd&#39; has no member named &#39;st&#39;<br>
my_res.c:47: error: &#39;struct my_cmd&#39; has no member named &#39;st&#39;<br>
my_res.c:47: error: &#39;struct my_cmd&#39; has no member named &#39;st&#39;<br>
my_res.c:47: error: &#39;struct my_cmd&#39; has no member named &#39;st&#39;<br>
my_res.c:47: warning: format &#39;%s&#39; expects type &#39;char *&#39;, but argument 7 has type &#39;int&#39;<br>
my_res.c:47: error: &#39;struct my_cmd&#39; has no member named &#39;st&#39;<br>
my_res.c:47: error: &#39;struct my_cmd&#39; has no member named &#39;st&#39;<br>
my_res.c:47: error: &#39;struct my_cmd&#39; has no member named &#39;st&#39;<br>
my_res.c:47: error: &#39;struct my_cmd&#39; has no member named &#39;st&#39;<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;                 from /usr/include/sys/socket.h:45,<br>
&gt;&gt;                 from parser/../ip_addr.h:45,<br>
&gt;&gt;                 from parser/msg_parser.h:63,<br>
&gt;&gt;                 from nonsip_hooks.h:42,<br>
&gt;&gt;                 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 &#39;addr&#39; has incomplete type<br>
&gt;&gt; /usr/include/resolv.h:260: error: field &#39;sin&#39; 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      /* 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>