Hi.
I've tried to build PostgreSQL 7.2.1 using PeerDirect's patch in latest
Cygwin on WinXP..
Patch was successful, but I've got following errors.
$ patch < win32-port-newfiles.diff
$ cd postgresql-7.4.2
$ CC='gcc -mno-cygwin' CXX='g++ -mno-cygwin' ./configure
$ make all
gcc -mno-cygwin -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -I../.
./..
/../src/include -I/usr/local/include -DBUILDING_DLL=1 -c -o heaptuple.o
heaptuple.c
In file included from ../../../../src/include/c.h:52,
from ../../../../src/include/postgres.h:47,
from heaptuple.c:21:
../../../../src/include/pg_config.h:492:25: netinet/in.h: No such file or
directory
../../../../src/include/pg_config.h:493:24: arpa/inet.h: No such file or
directory
In file included from ../../../../src/include/c.h:52,
from ../../../../src/include/postgres.h:47,
from heaptuple.c:21:
../../../../src/include/pg_config.h:494: warning: `struct in_addr' declared
inside parameter list
../../../../src/include/pg_config.h:494: warning: its scope is only this
definition or declaration, which is probably not what you want
In file included from ../../../../src/include/pg_config.h:722,
from ../../../../src/include/c.h:52,
from ../../../../src/include/postgres.h:47,
from heaptuple.c:21:
../../../../src/include/pg_config_os.h:11:28: cygwin/version.h: No such file
or directory
make[4]: *** [heaptuple.o] Error 1
make[4]: Leaving directory
`/usr/src/postgresql-7.2.1/src/backend/access/common'
make[3]: *** [common-recursive] Error 2
make[3]: Leaving directory `/usr/src/postgresql-7.2.1/src/backend/access'
make[2]: *** [access-recursive] Error 2
make[2]: Leaving directory `/usr/src/postgresql-7.2.1/src/backend'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/src/postgresql-7.2.1/src'
make: *** [all] Error 2
Could anyone give me any suggestion?
Regards.