bug-glibc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AI_V4MAPPED, AI_ALL ... problem with glibc 2.2


From: Minko Markov
Subject: AI_V4MAPPED, AI_ALL ... problem with glibc 2.2
Date: Wed, 10 Jan 2001 12:04:09 +0000

Hello,

I compiled and installed glibc 2.2. Then I tried to build the two nss_*.tar
packages. nss_lwres-0.91 refused to compile, with the error message

lwres-host.c:26: `AI_V4MAPPED' undeclared here (not in a function)
lwres-host.c:27: `AI_ALL' undeclared here (not in a function)
lwres-host.c:28: `AI_ADDRCONFIG' undeclared here (not in a function)
make: *** [lwres-host.lo] Error 1

It turned out that there are no such AI* flags in the new (2.2, that is) 
/usr/include/netdb.h .  However, 2.1.3's /usr/include/netdb.h has these
flags:  

        #define AI_V4MAPPED     1       /* IPv4-mapped addresses are 
acceptable.  */
        #define AI_ALL          2       /* Return both IPv4 and IPv6 addresses. 
 */
        #define AI_ADDRCONFIG   4       /* Use configuration of this host to 
choose
                                   returned address type.  */
        #define AI_DEFAULT      (AI_V4MAPPED | AI_ADDRCONFIG)

Is it the case that nss_lwres-0.91  must be compiled with the old 2.1.3 headers?
Are the AI_ALL,... flags obsolete? Or is it a bug in 2.2?

Thanks,
Minko



-- 
Minko Markov  -  Doctoral Student in Computer Science,
                 University of Victoria, Victoria, CANADA
email: address@hidden
office: (250) 721-8768                             home: (250) 385-1041



reply via email to

[Prev in Thread] Current Thread [Next in Thread]