Re: On OpenBSD and if_freenameindex(3).

2010-09-25 Thread Simon Josefsson
Eric Blake writes: > It turns out that MirBSD has the same bug regarding if_freenameindex > not being a function. So I've gone ahead and documented that; we can > update the documentation when we implement the net_if (replacement > header) and if_freenameindex (function implementation) modules.

Re: On OpenBSD and if_freenameindex(3).

2010-09-21 Thread Mats Erik Andersson
tisdag den 21 september 2010 klockan 22:46 skrev Simon Josefsson detta: > Mats Erik Andersson writes: > > > My protocol "report_for_test_net_if.txt" is attached. I am not able > > to compile the test into any working executable for OpenBSD 4.6. > > The mishaps are due to "if_freenameindex". > >

Re: On OpenBSD and if_freenameindex(3).

2010-09-21 Thread Eric Blake
On 09/21/2010 02:41 PM, Simon Josefsson wrote: Eric Blake writes: On 09/21/2010 06:22 AM, Simon Josefsson wrote: As an initial response to this problem, I'm installing a self check of the net/if.h interface. See below. Mats, if you could quote the compiler errors you get when building the s

Re: On OpenBSD and if_freenameindex(3).

2010-09-21 Thread Simon Josefsson
Bruno Haible writes: > Mats Erik Andersson wrote: >> In OpenBSD (definitely in 4.6) there is a POSIX violation, >> quoting Simon here, since the header file states >> >> ### /usr/include/net/if.h >> >> #define if_freenameindex(x) free(x) >> >> This macro causes difficulties ... > > Ind

Re: On OpenBSD and if_freenameindex(3).

2010-09-21 Thread Simon Josefsson
Mats Erik Andersson writes: > My protocol "report_for_test_net_if.txt" is attached. I am not able > to compile the test into any working executable for OpenBSD 4.6. > The mishaps are due to "if_freenameindex". Thanks, this is very useful. Is there a if_freenameindex symbol in the OpenBSD libc?

Re: On OpenBSD and if_freenameindex(3).

2010-09-21 Thread Simon Josefsson
Eric Blake writes: > On 09/21/2010 06:22 AM, Simon Josefsson wrote: >> As an initial response to this problem, I'm installing a self check of >> the net/if.h interface. See below. Mats, if you could quote the >> compiler errors you get when building the self-check below on OpenBSD, >> that woul

Re: On OpenBSD and if_freenameindex(3).

2010-09-21 Thread Bruno Haible
Mats Erik Andersson wrote: > In OpenBSD (definitely in 4.6) there is a POSIX violation, > quoting Simon here, since the header file states > > ### /usr/include/net/if.h > > #define if_freenameindex(x) free(x) > > This macro causes difficulties ... Indeed, according to POSIX:2008 [1], a

Re: On OpenBSD and if_freenameindex(3).

2010-09-21 Thread Mats Erik Andersson
tisdag den 21 september 2010 klockan 15:52 skrev Simon Josefsson detta: > Mats Erik Andersson writes: > > > tisdag den 21 september 2010 klockan 14:22 skrev Simon Josefsson detta: > >> As an initial response to this problem, I'm installing a self check of > >> the net/if.h interface. See below.

Re: On OpenBSD and if_freenameindex(3).

2010-09-21 Thread Eric Blake
On 09/21/2010 06:22 AM, Simon Josefsson wrote: As an initial response to this problem, I'm installing a self check of the net/if.h interface. See below. Mats, if you could quote the compiler errors you get when building the self-check below on OpenBSD, that would be useful. The next step is to

Re: On OpenBSD and if_freenameindex(3).

2010-09-21 Thread Simon Josefsson
Mats Erik Andersson writes: > tisdag den 21 september 2010 klockan 14:22 skrev Simon Josefsson detta: >> As an initial response to this problem, I'm installing a self check of >> the net/if.h interface. See below. Mats, if you could quote the >> compiler errors you get when building the self-ch

Re: On OpenBSD and if_freenameindex(3).

2010-09-21 Thread Mats Erik Andersson
tisdag den 21 september 2010 klockan 14:22 skrev Simon Josefsson detta: > As an initial response to this problem, I'm installing a self check of > the net/if.h interface. See below. Mats, if you could quote the > compiler errors you get when building the self-check below on OpenBSD, > that would

Re: On OpenBSD and if_freenameindex(3).

2010-09-21 Thread Simon Josefsson
As an initial response to this problem, I'm installing a self check of the net/if.h interface. See below. Mats, if you could quote the compiler errors you get when building the self-check below on OpenBSD, that would be useful. The next step is to see how gnulib can provide a replacement that wo