On Wed, Mar 21, 2001 at 10:15:49AM +0800, james wrote:
> I had downloaded thecygwin DLL 1.1.8 install it on 'Windows 2000 professional'
> then i download the postgresql 7.03 and I followed the instructions "http://
> I could successfully run the 'configure' command.
> The next step 'make' is unsuccessful. 'make' terminates
> giving the following error message:
> In file included from dllinit.c:46:
> /usr/include/cygwin/cygwin_dll.h:14: windows.h: No such file or directory
> make: *** [dllinit.o] Error 1
> make: Leaving directory `/usr/src/postgresql-7.0.3/src/utils'
> make: *** [../utils/dllinit.o] Error 2
> make: Leaving directory `/usr/src/postgresql-7.0.3/src/backend'
> make: *** [all] Error 2
I presume from the above that your version of Cygwin gcc is 2.95.2-7 or
later. You can execute "gcc --version" to verify. Anyway, there has
been a change to Cygwin gcc that stops it from automatically looking in
/usr/include/w32api. This is why you are getting the "windows.h: No
such file or directory" error above.
You can try reconfiguring (after removing config.cache), using the
$ CC='gcc -mwin32' configure
I believe that this should work but you may get other problems due to the
Alternatively, I strongly recommend using PostgreSQL 7.1beta6 since it
builds OOTB under Cygwin (and for other reasons too).
Additionally, you should replace the Cygwin 1.1.8-2 DLL (i.e.,
cygwin1.dll) with one from a recent snapshot to avoid the following
In the future, please post to the list instead of using direct email so
others can benefit too.
Director, Software Engineering Phone: +1 (732) 264-8770 x235
Dot Hill Systems Corp. Fax: +1 (732) 264-8798
82 Bethany Road, Suite 7 Email: Jason(dot)Tishler(at)dothill(dot)com
Hazlet, NJ 07730 USA WWW: http://www.dothill.com
pgsql-ports by date
|Next:||From: JHopkins||Date: 2001-03-21 22:58:52|
|Subject: problem starting postmaster under W2000|
|Previous:||From: Tom Lane||Date: 2001-03-20 22:48:25|
|Subject: Re: surprise! Help needed on Win2K Postgres |