[Xcb] xcb_util.c:179: error: 'AI_ADDRCONFIG' undeclared

Jeremy C. Reed reed at reedmedia.net
Fri Nov 24 08:29:13 PST 2006


This is libxcb-1.0 on NetBSD 3.99.24.

cc -DHAVE_CONFIG_H -I. 
-I/home/packages/tmp-pkgsrc/new/libxcb/work.glacier/.buildlink/include 
-Wall -pedantic -Wpointer-arith -Wstrict-prototypes -Wmissing-declarations 
-Wnested-externs -O2 -MT xcb_util.lo -MD -MP -MF .deps/xcb_util.Tpo -c 
xcb_util.c  -fPIC -DPIC -o .libs/xcb_util.o
xcb_util.c: In function '_xcb_open_tcp':
xcb_util.c:179: error: 'AI_ADDRCONFIG' undeclared (first use in this 
function)

According to the GETADDRINFO(3) manpage, the ai_flags on this system are:
AI_CANONNAME
AI_NUMERICHOST
AI_PASSIVE

And /usr/include/netdb.h also adds:
AI_NUMERICSERV

Is returning only IPv6 or only IPv4 important?

I have read that this is not implemented on various systems (or doesn't 
work correctly).


More information about the Xcb mailing list