simpleproxy
simpleproxy copied to clipboard
issue on centos 7 at stropts.h
[root@ simpleproxy]# make
gcc -g -O2 -DHAVE_LIBNSL=1 -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_FCNTL_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_SYSLOG_H=1 -DHAVE_TERMIO_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STROPTS_H=1 -DTIME_WITH_SYS_TIME=1 -DRETSIGTYPE=void -DHAVE_VPRINTF=1 -DHAVE_SYSLOG=1 -DHAVE_OPENLOG=1 -DHAVE_CLOSELOG=1 -DHAVE_SELECT=1 -DHAVE_SOCKET=1 -DHAVE_STRDUP=1 -DHAVE_STRERROR=1 -DHAVE_STRTOL=1 -DHAVE_VSNPRINTF=1 -DHAVE_VSPRINTF=1 -c simpleproxy.c
simpleproxy.c:61:22: fatal error: stropts.h: No such file or directory
# include <stropts.h>
^
compilation terminated.
make: *** [simpleproxy.o] Error 1
as a workaround, did
touch /usr/include/stropts.h
and looks working fine, but I think HAVE_STROPTS_H should be removed
some more details at https://bugzilla.redhat.com/show_bug.cgi?id=656245
Word of caution:
We support many platforms and perhaps on some of them this header was needed.
Just removing it could cause breakage.
The proper way to fix it is to add a check to the configure script and include it if present.