[Home]

Summary:ASTERISK-11416: ifaddrs.h not available on all linux distributions => asterisk fails to compile
Reporter:Ovidiu Sas (ovi)Labels:
Date Opened:2008-02-11 10:08:39.000-0600Date Closed:2011-06-07 14:02:55
Priority:MajorRegression?No
Status:Closed/CompleteComponents:Core/BuildSystem
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:Some unix distributions don't provide ifaddrs.h.
Asterisk should be able to cope with that.

/home/osas/slug/optware/nslu2/toolchain/armv5b-softfloat-linux/gcc-3.3.5-glibc-2.2.5/bin/armv5b-softfloat-linux-gcc -o acl.o -c acl.c -pthread -I/home/osas/slug/optware/nslu2/builds/asterisk14/include -fsigned-char -I/home/osas/slug/optware/nslu2/staging/opt/include  -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3 -include /home/osas/slug/optware/nslu2/builds/asterisk14/include/asterisk/autoconfig.h   -O6 -MMD -MT acl.o -MF .acl.o.d -MP
acl.c:55:21: warning: ifaddrs.h: No such file or directory
acl.c: In function `get_local_address':
acl.c:169: warning: implicit declaration of function `getifaddrs'
acl.c:180: error: dereferencing pointer to incomplete type
acl.c:182: error: dereferencing pointer to incomplete type
acl.c:183: error: dereferencing pointer to incomplete type
acl.c:237: warning: implicit declaration of function `freeifaddrs'
make[2]: *** [acl.o] Error 1
make[1]: *** [main] Error 2
make[1]: Leaving directory `/home/osas/slug/optware/nslu2/builds/asterisk14'
make: *** [/home/osas/slug/optware/nslu2/builds/asterisk14/.built] Error 2

****** ADDITIONAL INFORMATION ******

libpcap solved this issue by checking the existance of ifaddrs.h during config.
Comments:By: Joshua C. Colp (jcolp) 2008-02-11 10:09:52.000-0600

This has already been fixed in current SVN and will be in the next release.