need help in compiling inet6-apps0.35

Stig Venaas venaas@itea.ntnu.no
Fri, 12 Feb 1999 23:29:12 +0100


On Fri, Feb 12, 1999 at 07:31:34AM +0100, Stig Venaas wrote:
> 
> I had this problem too. I've made a patch that works for me at least.
> You can get it from ftp.nvg.ntnu.no/venaas/inet6-apps-0.35-glibc.dif.

I testet the patch with glibc-2.0.109 and I assumed that it would work
also with the glibc-2.1 release. Well, guess what, it doesn't. Sorry.

It turns out that union sockaddr_union is gone in glibc-2.1.
The quick and dirty fix is to add the following at the bottom of
include/support.h in inet6-apps-0.35. Just add something like:

#if defined __GLIBC__ && __GLIBC__ >= 2
union sockaddr_union
{
    struct sockaddr sa;
    struct sockaddr_in sin;
    struct sockaddr_in6 sin6;
    char __maxsize[128];
};
#endif /* defined __GLIBC__ && __GLIBC__ >= 2 */

Does anyone know if sockaddr_union is deprecated? I'm wondering if the
correct fix is to get sockaddr_union into the glibc include files, or
if one should change the application code.

I guess I'm getting a bit off topic here, sorry.

Stig

-- 
Stig Venås                      Tel:    +47 73 59 53 29
NTNU				Fax:    +47 73 59 80 98
ITEA/Nett, Prof. Brochs g. 6
N-7034 Trondheim, Norway	E-mail: venaas@itea.ntnu.no