Ok, it found the problem. The order of the include lines must be changed 
to this in the chan_iax.c  

   29 #include <stdlib.h>
   30 #include <stdio.h>
   31 #include <sys/types.h>
   32 #include <sys/mman.h>
   33 #include <dirent.h>
   34 #include <sys/socket.h>
   35 #include <netinet/in.h>
   36 #include <arpa/inet.h>
   37 #include <netinet/in_systm.h>
   38 #include <netinet/ip.h>
   39 #include <sys/time.h>
   40 #include <sys/signal.h>
   41 #include <signal.h>
   42 #include <string.h>
   43 #include <strings.h>
   44 #include <errno.h>
   45 #include <unistd.h>
   46 #include <netdb.h>
   47 #include <fcntl.h>
   48 #include <sys/stat.h>
   49 #include <regex.h>

Kristijan



Kristijan Vrban schrieb:
> Hy, i just tried to build the latest RC on a fresh FreeBSD. But it crash 
> when it starts to compile the chan_iax:
>
> Making all in channels
> Making all in iax2
> /bin/sh ../../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H 
> -include ../../include/confdefs.h -I. -I../../include -I../../corelib 
> -I../../include  -I//usr/local/include/  -I../../corelib -g -O2 -MT 
> chan_iax2_la-chan_iax2.lo -MD -MP -MF .deps/chan_iax2_la-chan_iax2.Tpo 
> -c -o chan_iax2_la-chan_iax2.lo `test -f 'chan_iax2.c' || echo 
> './'`chan_iax2.c
> mkdir .libs
>  gcc -DHAVE_CONFIG_H -include ../../include/confdefs.h -I. 
> -I../../include -I../../corelib -I../../include -I//usr/local/include/ 
> -I../../corelib -g -O2 -MT chan_iax2_la-chan_iax2.lo -MD -MP -MF 
> .deps/chan_iax2_la-chan_iax2.Tpo -c chan_iax2.c  -fPIC -DPIC -o 
> .libs/chan_iax2_la-chan_iax2.o
> In file included from chan_iax2.c:35:
> /usr/include/netinet/in_systm.h:49: error: syntax error before "n_short"
> /usr/include/netinet/in_systm.h:50: error: syntax error before "n_long"
> /usr/include/netinet/in_systm.h:52: error: syntax error before "n_time"
> In file included from chan_iax2.c:36:
> /usr/include/netinet/ip.h:49: error: syntax error before "u_int"
> /usr/include/netinet/ip.h:148: error: syntax error before "u_char"
> /usr/include/netinet/ip.h:160: error: syntax error before "n_long"
> /usr/include/netinet/ip.h:163: error: syntax error before "n_long"
> /usr/include/netinet/ip.h:200: error: syntax error before "u_char"
> *** Error code 1
>
> Stop in /usr/src/callweaver-RC-1.1.99.20071015/channels/iax2.
> *** Error code 1
>
> Stop in /usr/src/callweaver-RC-1.1.99.20071015/channels.
> *** Error code 1
>
> Stop in /usr/src/callweaver-RC-1.1.99.20071015.
>
>
> Any hints for me?
>
> There before i compiled  latest libtiff and spandsp and made a:
> ./configure LDFLAGS='-L/usr/local/lib -R/usr/local/lib' 
> CPPFLAGS='-I//usr/local/include/'
>
>   
_______________________________________________
Callweaver-users mailing list
[email protected]
http://lists.callweaver.org/mailman/listinfo/callweaver-users

Reply via email to