Hi Bruno, Bruno Haible <[email protected]> writes:
>> ../libguile/net_db.x: In function 'scm_init_net_db': >> ../libguile/net_db.x:19: error: 'AI_V4MAPPED' undeclared (first use in this >> function) >> ../libguile/net_db.x:19: error: (Each undeclared identifier is reported only >> once >> ../libguile/net_db.x:19: error: for each function it appears in.) >> ../libguile/net_db.x:21: error: 'AI_ADDRCONFIG' undeclared (first use in >> this function) >> gmake[3]: *** [net_db.lo] Error 1 >> ... >> but these are within “#if @gnulib_getaddri...@” and AFAICS >> @GNULIB_GETADDRINFO@ is always zero. > > @GNULIB_GETADDRINFO@ is 1 if you ask gnulib-tool to include the 'getaddrinfo' > module. Oops, indeed. > If you are not including the 'getaddrinfo' module, what are you doing with > AI_V4MAPPED etc.? I am using the ‘getaddrinfo’ module, otherwise I wouldn’t have emailed you in the first place. ;-) The full log is at <http://autobuild.josefsson.org/guile/log-201004150603901912000.txt>. I think the problem is that ‘gl_HEADER_NETDB’ determines ‘NETDB_H=''’ because <netdb.h> is indeed available and it does define ‘struct addrinfo’; it just happens to lack some of the AI_ macros. Should ‘gl_HEADER_NETDB’ be augmented to explicitly check for missing macros? Thanks, Ludo’.
