ifaddrs.h header not installed

Yann E. MORIN yann.morin.1998 at anciens.enib.fr
Tue Aug 5 16:59:30 UTC 2008


Hello Ricard and All!

On Tuesday 05 August 2008 16:57:54 Ricard Wanderlof wrote:
> include/ifaddrs.h was not the same as libc/inet/ifaddrs.h
[--SNIP--]

Yes, I've seen that. I was suggesting to go back to the situation prior to
r22534, when ifaddrs.h was installed, and not reverting its content.
Sorry for the confusion...

> since we
> didn't need it outside uclibc anyway.

Well, I'm not quite confortable with that: it's dependent on a config option,
we build it, it's in the libc.so, but noone should use it?

Anyway, we've got one user at least: the Java frontend from gcc-4.3.1.

> However, I can't see a problem with making it globally accessible, so the 
> change you propose
> 
> > So I moved ifaddrs.h back to the include/ directory, also changed back
> > libc/inet/ifaddrs.c and libc/inet/getaddrinfo.c to #include <ifaddrs.h>
> > (instead of "ifaddrs.h"), and the build completes.
> 
> should be ok. Check that the whole shebang builds properly if 
> UCLIBC_SUPPORT_AI_ADDRCONFIG is not defined.

The whole .h file should be guarded with __UCLIBC_SUPPORT_AI_ADDRCONFIG__
and processed through unifdef to remove its content if uClibc is not
configured as such. Or better yet, there are a bunch of includes that get
removed at install time. Let's add one more.

Will check tomorrow. Will keep you informed.

> Also, technically it's not  
> reverting 22534 as the files looked different then.

Right, sorry again...

> Then again, someone else may have another view. Seems a bit odd of a 
> configuration script to define its own prototype and try to link, rather 
> than just trying to see if the requested function could be found in an 
> include file, but I guess there's a good reason for doing so.

Well, you know those autotools stuff: they try to include the header file,
then they define a prototype and try to link, and if the latest works
although the former does not, they conclude that they can use it.

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +0/33 662376056 | Software  Designer | \ / CAMPAIGN     |   ^                |
| --==< °_° >==-- °------------.-------:  X  AGAINST      |  /e\  There is no  |
| http://ymorin.is-a-geek.org/ | * _ * | / \ HTML MAIL    |  """  conspiracy.  |
°------------------------------°-------°------------------°--------------------°
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 100-ifaddrs.patch
Type: text/x-diff
Size: 845 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/uclibc/attachments/20080805/ef2aff42/attachment.bin 


More information about the uClibc mailing list