Project

General

Profile

Bug #1916

Cannot Compile on FreeBSD 7.1

Added by unixeagle over 10 years ago. Updated over 4 years ago.

Status:
Fixed
Priority:
Normal
Assignee:
-
Target version:
Start date:
2009-02-25
Due date:
% Done:

100%

Estimated time:

Description

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.

History

#1

Updated by spaam over 10 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

#2

Updated by stbuehler over 10 years ago

  • Status changed from New to Fixed
  • % Done changed from 0 to 100

Fixed in r22.

Also available in: Atom