Cannot Compile on FreeBSD 7.1
Compiling from svn check out on FreeBSD 7.1 fails with the following error:
/usr/include/netinet/tcp.h:40: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'tcp_seq'
/usr/include/netinet/tcp.h:50: error: expected specifier-qualifier-list before 'u_short'
/usr/include/netinet/tcp.h:175: error: expected specifier-qualifier-list before 'u_int8_t'
Since Lighttp has removed spawn-fcgi from it's source tree starting from version 1.4.21 which is the version in FreeBSD 7.1 ports, we need to compile spawn-fcgi separately.
Updated by spaam almost 11 years ago
If you add -DPOSIX_SOURCE to args for gcc it will compile.
if gcc -DPOSIX_SOURCE -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -MT spawn-fcgi.o -MD -MP -MF ".deps/spawn-fcgi.Tpo" -c -o spawn-fcgi.o spawn-fcgi.c; then mv -f ".deps/spawn-fcgi.Tpo" ".deps/spawn-fcgi.Po"; else rm -f ".deps/spawn-fcgi.Tpo"; exit 1; fi
Also available in: Atom