Re: building postgres.exe ./configure dies - Mailing list pgsql-cygwin

From Jerry Asher
Subject Re: building postgres.exe ./configure dies
Date
Msg-id 20010530040307.22483.qmail@web.hollyjerry.org
Whole thread Raw
In response to Re: building postgres.exe ./configure dies  (Jason Tishler <Jason.Tishler@dothill.com>)
Responses Re: building postgres.exe ./configure dies  (Jason Tishler <Jason.Tishler@dothill.com>)
List pgsql-cygwin
Jason Tishler writes:

> On Tue, May 29, 2001 at 01:28:43PM -0700, Jerry Asher wrote:
>> I'm trying to build postgres 7.1.1 (or 7.1.2) on Windows NTW4SP6 using
>> the latest cygwin.

> I'm just curious, but why doesn't the pre-built 7.1.2 provided with
> Cygwin meet your needs?

The stronger answer (but it's not the real reason) is that there was one bug
in postgres that prevented it from working with the OpenACS
(www.openacs.org) in 7.1.1, and I have a fix for that bug, and there is an
entirely different bug in 7.1.2 that keeps it from working with the OpenACS
and I don't know the fix for that, so for now, OpenACS developers need this
half breed version of postgres.  But that was not the real reason when I
asked the question.

The real reason was that last night I was beating my head into a wall on
Linux with a fresh Ant install trying to get postgres to cough up
postgresql.jar, its jdbc driver.  I was getting all sorts of bizarro
results, enough so, that I thought I would try to reproduce the bad results
by compiling under Windows to see if the problem was something I had caused
under Linux.  I was actually counting on the fine cygwin setup program to
help ensure that postgres and gcc were installed correctly.

So Step One to getting the jdbc driver is to ./configure postgres and then
run make in the src/interface/jdbc directory, which led to this error.

Anyway, today I was able to get a working jdbc driver out of linux, and
being 100% pure java, that works just fine on NT as well.  (Today within an
hour or so, I had java programs on linux and nt speaking to Oracle and
Postgres on Linux and SQL Server (via jdbc-odbc) on NT.  Pretty nice!)

So that leaves wanting 7.1.1 on Linux so that I can try an NT OpenACS
development project.  (Sorry you asked?)

>> In the very first step, ./configure errors out!
>>
>> >checking whether gcc accepts -g... yes
>> >using CFLAGS=-O2
>> >checking whether the C compiler (gcc -O2 ) works... no
>> >configure: error: installation or configuration problem: C compiler cannot
>> >create executables.
>
> Did you forgot to install cygipc?  If so, then download it from:
>
>     http://www.neuro.gatech.edu/users/cwilson/cygutils/V1.1/cygipc/

You're right I hadn't installed that yet.  Although on the face of it, it
seems odd that the lack of cygipc would make gcc -O2 not work, doesn't it?

Thanks for your help,

Jerry Asher

pgsql-cygwin by date:

Previous
From: "Richard Church"
Date:
Subject: Re: Start up and shutdown scripts for postgres on cygwin
Next
From: "Henshall, Stuart - WCP"
Date:
Subject: cygrunsrv example