[SR-Users] MYSQL Compilation Kamailio 3.1.4

Jason Penton jason.penton at smilecoms.com
Sat Jul 16 11:28:36 CEST 2011


Hi Omar,

what platform are you compiling on?

Cheers
Jason

On Sat, Jul 16, 2011 at 3:53 AM, Omar <omar at 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 at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20110716/384e8e09/attachment.htm>


More information about the sr-users mailing list