[OpenSIPS-Users] Compiling Opensips 2.2 on FreeBSD 10.2

Torsten Hantzsche thantzsche at petitenet.de
Sun Nov 1 18:11:30 CET 2015


Hi,

I have tried to compile Opensips 2.2 on a most recent FreeBSD 10.2 (r290233).

I did the following steps:

#> git clone https://github.com/OpenSIPS/opensips.git opensips_2
#> cd opensips_2
#> export CC=/usr/local/bin/gcc49  (because clang is not working)
#> gmake menuconfig
   - disabled USE_MCAST
   - enabled db_postgres  (postgresql94-client-9.4.4 is installed)
   - enabled regex        (pcre-8.37_4 is installed)
   - enabled proto_tls    (openssl-1.0.2_4 is installed)
#> gmake all


It breaks with the following messages:


gmake[1]: Entering directory '/data/opensips_2/modules/proto_tls'
Compiling proto_tls.c
Compiling tls_server.c
In file included from proto_tls.c:47:0:
/usr/include/netinet/ip.h:69:17: error: field 'ip_src' has incomplete type
   struct in_addr ip_src,ip_dst; /* source and dest address */
                  ^
/usr/include/netinet/ip.h:69:24: error: field 'ip_dst' has incomplete type
   struct in_addr ip_src,ip_dst; /* source and dest address */
                         ^
/usr/include/netinet/ip.h:181:19: error: field 'ipt_addr' has incomplete type
     struct in_addr ipt_addr;
                    ^
/usr/include/netinet/ip.h:216:17: error: field 'ippseudo_src' has incomplete type
   struct in_addr ippseudo_src; /* source internet address */
                  ^
/usr/include/netinet/ip.h:217:17: error: field 'ippseudo_dst' has incomplete type
   struct in_addr ippseudo_dst; /* destination internet address */
                  ^
../../Makefile.rules:25: recipe for target 'proto_tls.o' failed
gmake[1]: *** [proto_tls.o] Error 1
gmake[1]: *** Waiting for unfinished jobs....
gmake[1]: Leaving directory '/data/opensips_2/modules/proto_tls'
Makefile:197: recipe for target 'modules' failed
gmake: *** [modules] Error 2


Could somebody give me a hint on what I missed here to resolve this, please?


Thanks,
Torsten



More information about the Users mailing list