[Kamailio-Devel] [ openser-Patches-2183510 ] seas module fails to build on OpenBSD 4.3

SourceForge.net noreply at sourceforge.net
Tue Oct 21 11:22:48 CEST 2008


Patches item #2183510, was opened at 2008-10-21 02:44
Message generated for change (Comment added) made by henningw
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=743022&aid=2183510&group_id=139143

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: modules
Group: None
>Status: Closed
>Resolution: Accepted
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
>Assigned to: Henning Westerholt (henningw)
Summary: seas module fails to build on OpenBSD 4.3

Initial Comment:
With Kamailio 1.4.1 (I believe the problem also exists in trunk), the seas module fails to build on OpenBSD:

In file included from encode_allow.c:42:
/usr/include/netinet/in.h:136: error: syntax error before "in_addr_t"
/usr/include/netinet/in.h:213: error: syntax error before "u_int8_t"
/usr/include/netinet/in.h:217: error: syntax error before "int8_t"
<snip lots more>

I previously reported on the mailing list:

http://www.nabble.com/Build-failures-with-seas-and-mi_xmlrpc-modules-on-OpenBSD-4.3-to20006967.html

Attached is a patch to fix the problem. I previously thought that a conditional include of <sys/types.h> was required, but it turns out that OpenBSD simply needs <stdio.h> (or probably any similar system header) to be included before <netinet/in.h>. So all this does is move the relative position of the stdio include. Also, encode_allow.c is actually the only affected file; all the other files using <netinet/in.h> were already including <stdio.h> before <netinet/in.h>

----------------------------------------------------------------------

>Comment By: Henning Westerholt (henningw)
Date: 2008-10-21 09:22

Message:
Hi Jason,

thanks for the patch, i applied it to trunk and 1.4 branch.

Henning

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=743022&aid=2183510&group_id=139143



More information about the Devel mailing list