Re: [Boa-devel] 0.94.14rc8 compilation problem
Brought to you by:
jnelson
From: Jon N. <jn...@ja...> - 2002-12-14 17:41:56
|
Try this for the sa_family_t issue. Index: src/request.c =================================================================== RCS file: /home/jnelson/cvs/boa/src/request.c,v retrieving revision 1.112.2.20 diff -u -r1.112.2.20 request.c --- src/request.c 13 Dec 2002 01:42:34 -0000 1.112.2.20 +++ src/request.c 14 Dec 2002 17:38:07 -0000 @@ -74,6 +74,10 @@ * does some basic initialization and adds it to the ready queue;. */ +#ifndef sa_family_t +typedef unsigned short int sa_family_t; +#endif + void get_request(int server_s) { int fd; /* socket */ ======= On Sat, 14 Dec 2002, [ISO-8859-1] Frédéric L. W. Meunier wrote: > I'm at my first attempt to compile Boa on Cygwin and get rid of > the Windows Apache port. > > I used --prefix=/usr --enable-access-control --disable-debug > > The only tests which failed: > > checking for working mmap... no > checking for tm.tm_gmtoff... no > checking for tm.tm_zone... no > checking for sockaddr_in.sin_len... no > > Now to the problem: > > gcc-2.exe -O2 -pipe -DACCESS_CONTROL -I. -I. -c -o request.o request.c > request.c: In function `get_request': > request.c:87: `sa_family_t' undeclared (first use in this function) > request.c:87: (Each undeclared identifier is reported only once > request.c:87: for each function it appears in.) > request.c:87: parse error before `0xdead' > make[1]: *** [request.o] Error 1 > make[1]: Leaving directory `/cygdrive/g/Linux/boa-0.94.14rc8/src' > make: *** [boa] Error 2 > > -- > 0@pervalidus.{net, dyndns.org} > > -- Democracy is two wolves and a sheep voting on what to have for dinner. Liberty is two wolves attempting to have a sheep for dinner and finding a well-informed, well-armed sheep. Jon Nelson <jn...@ja...> C and Python Code Gardener |