build error in PeerDirect's patched POstgreSQL 7.2.1

From: "Hisaji Ono" <hi_ono2001(at)ybb(dot)ne(dot)jp>
To: <pgsql-hackers-win32(at)postgresql(dot)org>
Subject: build error in PeerDirect's patched POstgreSQL 7.2.1
Date: 2003-12-07 18:41:37
Message-ID: 03d501c3bcf1$bef5dcf0$818001db@webgis
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

Browse pgsql-hackers-win32 by date

  From Date Subject
Next Message Marc G. Fournier 2003-12-07 20:30:35 Re: Nightly snapshot tarball
Previous Message Tom Lane 2003-12-07 17:42:54 Re: Nightly snapshot tarball