I'm trying to build chicken 2.2 with mingw and am having a small
problem. It looks like it is trying to build posix.c and is having some
difficulty. Should posix.c even be built on windows? Any suggestions
would be appreciated.
Prior to this error there was an error building tcp.c. Swapping the following two lines fixed that one.
// # include <winsock2.h>
#include <ws2tcpip.h>
It looks like I may have a configuration variable out of wack.
Pat
make[1]: Entering directory `/home/brannp01/chicken-2.2'
/bin/sh ./libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.
-DC_STACK_GROWS
_DOWNWARD=1 -DC_INSTALL_LIB_HOME='"/usr/local/lib/chicken"'
-DC_INSTALL_HOME='"/
usr/local/share/chicken"' -DC_USE_C_DEFAULTS
-DC_NO_PIC_NO_DLL
-DC_BUILDING_LI
BCHICKEN -Os -fno-strict-aliasing -Wall -Wno-unused
-Wno-uninitialized -c -o
li
bchicken_la-posix.lo `test -f 'posix.c' || echo './'`posix.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -DC_STACK_GROWS_DOWNWARD=1
-DC_INSTALL_LIB_HOME
=\"/usr/local/lib/chicken\"
-DC_INSTALL_HOME=\"/usr/local/share/chicken\"
-DC_US
E_C_DEFAULTS -DC_NO_PIC_NO_DLL -DC_BUILDING_LIBCHICKEN -Os
-fno-strict-aliasing
-Wall -Wno-unused -Wno-uninitialized -c posix.c -DDLL_EXPORT
-DPIC -o
.libs/lib
chicken_la-posix.o
posix.c:21:22: sys/wait.h: No such file or directory
posix.c:22:25: sys/utsname.h: No such file or directory
posix.c:26:17: pwd.h: No such file or directory
posix.c:36:22: sys/mman.h: No such file or directory
posix.c:90: error: syntax error before "C_fd_sets"
posix.c:90: warning: type defaults to `int' in declaration of `C_fd_sets'
posix.c:90: warning: data definition has no type or storage class
posix.c:273: error: syntax error before '*' token
posix.c:273: warning: type defaults to `int' in declaration of `C_groups'
posix.c:273: warning: data definition has no type or storage class
posix.c: In function `stub975':
posix.c:293: warning: implicit declaration of function `chroot'
posix.c: In function `stub826':
posix.c:302: error: `fd_set' undeclared (first use in this function)
posix.c:302: error: (Each undeclared identifier is reported only once
posix.c:302: error: for each function it appears in.)
posix.c:302: error: syntax error before "in"