[SR-Users] MYSQL Compilation Kamailio 3.1.4

Omar omar at 321communications.com
Sun Jul 17 00:54:21 CEST 2011


have you compiled in 32 bits or 64 bits, not sure if we should compile in 32 bits only.

i have errors like

cfg/../atomic/atomic_sparc.h:41:2: warning: #warning "sparc32 atomic operations support not tested"

should i ignore them?

Omar

On Jul 16, 2011, at 9:58 AM, Jason Penton wrote:

> just check you havent changed anything because the fix to remove the BSD macro def. fixed mine and I had exact same problem as you, although mine was on Solaris x86. Are you using gcc? I dont have a sparc machine to test for you but if you send me a private mail with a tmp ssh login I will have a look in a screen session (so you can follow) for you.
> 
> Cheers
> Jason
> 
> On Sat, Jul 16, 2011 at 2:57 PM, Omar <omar at 321communications.com> wrote:
> Solaris 10 Sparc.
> 
> Omar
> 
> 
> 
> On Jul 16, 2011, at 5:28 AM, Jason Penton wrote:
> 
>> 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
>> 
>> _______________________________________________
>> 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
> 
> 
> _______________________________________________
> 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
> 
> 
> _______________________________________________
> 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/0e223c1a/attachment-0001.htm>


More information about the sr-users mailing list