Skip site navigation (1) Skip section navigation (2)

Re: building postgres.exe ./configure dies

From: Jason Tishler <Jason(dot)Tishler(at)dothill(dot)com>
To: Jerry Asher <jerry(at)hollyjerry(dot)org>
Cc: pgsql-cygwin(at)postgresql(dot)org
Subject: Re: building postgres.exe ./configure dies
Date: 2001-05-30 13:11:11
Message-ID: 20010530091111.A217@dothill.com (view raw or flat)
Thread:
Lists: pgsql-cygwin
Jerry,

On Wed, May 30, 2001 at 04:03:06AM +0000, Jerry Asher wrote:
> 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. 

Fair enough, but when you figure out what is "wrong" with 7.1.2 please
submit a patch to pgsql-patches(at)postgresql(dot)org for consideration to be
included in 7.2.

> 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.

BTW, the Cygwin PostgreSQL 7.1.2 distribution contains a pre-built
postgresql.jar.

> I was actually counting on the fine cygwin setup program to 
> help ensure that postgres and gcc were installed correctly.

Cygwin's setup.exe did its job, but it can only install packages that
it knows about.  cygipc is not one of the latest or contrib packages.
However, it is quite likely that the cygipc functionality will be
integrated directly into the Cygwin DLL and a new server executable in
the (hopefully) near future.

> >> 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? 

The lack of cygipc does not prevent gcc from working -- the error
message just reports the (link) error as such.  This conclusion can be
derived from reading the config.log.  However, PostgreSQL should have a
FAQ item for this one since it has bitten many people.

Jason

-- 
Jason Tishler
Director, Software Engineering       Phone: 732.264.8770 x235
Dot Hill Systems Corp.               Fax:   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

In response to

pgsql-cygwin by date

Next:From: Jason TishlerDate: 2001-05-30 13:21:21
Subject: Re: cygrunsrv example
Previous:From: Fred YankowskiDate: 2001-05-30 12:47:02
Subject: Re: cygrunsrv example

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group