[Nice] libnice on system without ifaddrs.h ?

Piotr Gluszenia Slawinski curious at bwv190.internetdsl.tpnet.pl
Mon Dec 12 15:35:30 PST 2011


Hello. configure seems to fail on all tests related with iffaddrs.h,
according to config.log , just not finding any headers.

still HAVE_GETIFADDRS is set in config.status and config.h :/
after disabling it manually it does compile :)

i have no idea where configure makes mistake :/

-- 

On Mon, 12 Dec 2011, Youness Alaoui wrote:

> Hi Piotr,
>
> libnice supports systems without ifaddrs.h, but I think the issue is that the
> configure seems to find the ifaddrs.h header as available on the system. Check
> your config.log for it, and try to reproduce the test the configure does..
> Either you didn't configure the project correctly and it somehow detected the
> file, or the configure is looking for the include file in the wrong places.
> If you can find what goes wrong and if it comes from libnice, I'd appreciate
> receiving a patch for it.
>
> Thank you,
> Youness.
>
> On 12/11/2011 02:16 AM, Piotr Gluszenia Slawinski wrote:
>> hello.
>> i try to compile libnice 0.1.0 on system without ifaddrs.h (uclibc)
>> and i get error :
>>   CC     interfaces.lo
>> interfaces.c:46:22: error: ifaddrs.h: No such file or directory
>> interfaces.c: In function 'nice_interfaces_get_local_interfaces':
>> interfaces.c:61: warning: implicit declaration of function 'getifaddrs'
>> interfaces.c:61: warning: nested extern declaration of 'getifaddrs'
>> interfaces.c:66: error: dereferencing pointer to incomplete type
>> interfaces.c:68: error: dereferencing pointer to incomplete type
>> interfaces.c:71: error: dereferencing pointer to incomplete type
>> interfaces.c:74: error: dereferencing pointer to incomplete type
>> interfaces.c:74: error: dereferencing pointer to incomplete type
>> interfaces.c:75: error: dereferencing pointer to incomplete type
>> interfaces.c:76: error: dereferencing pointer to incomplete type
>> interfaces.c:80: warning: implicit declaration of function 'freeifaddrs'
>> interfaces.c:80: warning: nested extern declaration of 'freeifaddrs'
>> interfaces.c: In function 'nice_interfaces_get_local_ips':
>> interfaces.c:181: error: dereferencing pointer to incomplete type
>> interfaces.c:185: error: dereferencing pointer to incomplete type
>> interfaces.c:188: error: dereferencing pointer to incomplete type
>> interfaces.c:190: error: dereferencing pointer to incomplete type
>> interfaces.c:191: error: dereferencing pointer to incomplete type
>> interfaces.c:196: error: dereferencing pointer to incomplete type
>> interfaces.c:197: error: dereferencing pointer to incomplete type
>> interfaces.c:210: error: dereferencing pointer to incomplete type
>> interfaces.c:212: error: dereferencing pointer to incomplete type
>> interfaces.c:218: error: dereferencing pointer to incomplete type
>> distcc[12821] ERROR: compile interfaces.c on localhost failed
>>
>> is it possible to compile it without?
>>
>>
>
>
>


More information about the Nice mailing list