build error in PeerDirect's patched POstgreSQL 7.2.1 - Mailing list pgsql-hackers-win32

From Hisaji Ono
Subject build error in PeerDirect's patched POstgreSQL 7.2.1
Date
Msg-id 03d501c3bcf1$bef5dcf0$818001db@webgis
Whole thread Raw
List pgsql-hackers-win32
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.



pgsql-hackers-win32 by date:

Previous
From: Tom Lane
Date:
Subject: Re: Nightly snapshot tarball
Next
From: "Marc G. Fournier"
Date:
Subject: Re: Nightly snapshot tarball