GitHub user jirib opened an issue:
https://github.com/apache/trafficserver/issues/1312
[openbsd] build fails as openbsd doesn't have gethostbyname_r
OpenBSD doesn't have gethostbyname_r, see
https://github.com/openbsd/src/blob/master/include/netdb.h
```
c++ -DHAVE_CONFIG_H -I. -I../../lib
-I/home/jirib/openbsd/pobj/trafficserver-20170106/trafficserver-24347df553e91660b794af1079fbf69f986dc5b4/lib
-I/usr/local/include -I/usr/local/include/lua-5.1/ -Dopenbsd
-D_LARGEFILE64_SOURCE=1 -D_COMPILE64BIT_SOURCE=1 -D_GNU_SOURCE -D_REENTRANT
-D__STDC_LIMIT_MACROS=1 -D__STDC_FORMAT_MACROS=1 -D_FORTIFY_SOURCE=2
-I/usr/include -DOPENSSL_NO_SSL_INTERN -I/usr/local/include/tcl8.5 -O2 -pipe
-O0 -g -std=c++11 -Wall -Wextra -Wno-ignored-qualifiers -Wno-unused-parameter
-feliminate-unused-debug-symbols -fno-strict-aliasing -Wno-invalid-offsetof
-fstack-protector -mcx16 -MT ink_inet.lo -MD -MP -MF .deps/ink_inet.Tpo -c
ink_inet.cc -fPIC -DPIC -o .libs/ink_inet.o
ink_inet.cc: In function 'hostent* ink_gethostbyname_r(char*,
ink_gethostbyname_r_data*)':
ink_inet.cc:62:116: error: 'gethostbyname_r' was not declared in this scope
struct hostent *r = gethostbyname_r(hostname, &data->ent, data->buf,
INK_GETHOSTBYNAME_R_DATA_SIZE, &data->herrno);
^
ink_inet.cc: In function 'hostent* ink_gethostbyaddr_r(char*, int, int,
ink_gethostbyaddr_r_data*)':
ink_inet.cc:82:129: error: 'gethostbyaddr_r' was not declared in this scope
struct hostent *r = gethostbyaddr_r((char *)ip, len, type, &data->ent,
data->buf, INK_GETHOSTBYNAME_R_DATA_SIZE, &data->herrno);
^
Error while executing c++ -DHAVE_CONFIG_H -I. -I../../lib
-I/home/jirib/openbsd/pobj/trafficserver-20170106/trafficserver-24347df553e91660b794af1079fbf69f986dc5b4/lib
-I/usr/local/include -I/usr/local/include/lua-5.1/ -Dopenbsd
-D_LARGEFILE64_SOURCE=1 -D_COMPILE64BIT_SOURCE=1 -D_GNU_SOURCE -D_REENTRANT
-D__STDC_LIMIT_MACROS=1 -D__STDC_FORMAT_MACROS=1 -D_FORTIFY_SOURCE=2
-I/usr/include -DOPENSSL_NO_SSL_INTERN -I/usr/local/include/tcl8.5 -O2 -pipe
-O0 -g -std=c++11 -Wall -Wextra -Wno-ignored-qualifiers -Wno-unused-parameter
-feliminate-unused-debug-symbols -fno-strict-aliasing -Wno-invalid-offsetof
-fstack-protector -mcx16 -MT ink_inet.lo -MD -MP -MF .deps/ink_inet.Tpo -c
ink_inet.cc -fPIC -DPIC -o .libs/ink_inet.o
```
----
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---