delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/06/07/14:40:38

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Date: Thu, 7 Jun 2001 14:40:16 -0400
From: Jason Tishler <Jason DOT Tishler AT dothill DOT com>
To: Sherwood Robinson <srobinson AT fredericksburg DOT com>
Cc: cygwin AT cygwin DOT com
Subject: Re: ZPyGreSQLDA Compile
Message-ID: <20010607144016.S524@dothill.com>
Mail-Followup-To: Sherwood Robinson <srobinson AT fredericksburg DOT com>,
cygwin AT cygwin DOT com
Mime-Version: 1.0
In-Reply-To: <5.1.0.14.2.20010607133530.03b65f08@mail.fredericksburg.com>
User-Agent: Mutt/1.3.18i
Organization: Dot Hill Systems Corp.

Sherwood,

On Thu, Jun 07, 2001 at 01:40:17PM -0400, Sherwood Robinson wrote:
> At 12:14 PM 6/7/2001 -0400, Jason Tishler wrote:
> >BTW, why don't you use the pre-built _pgmodule.dll that is part of the
> >Cygwin PostgreSQL 7.1.2 distribution?
> 
> Oh because I am new to cygwin, PostgreSQL and this whole compile thing and 
> I was just following the instructions with the source that is about 2 years 
> old.  As a matter of fact I may have done that already.  I changed my Start 
> file so that is was different and got a different output message.
> 
> new message
> 
> gcc -DUSE_DL_IMPORT -g -O2 -Wall -Wstrict-prototypes -I/usr/include/python2.1 -
> /usr/include/python2.1 -DHAVE_CONFIG_H  -I/cygwin/usr/src/postgresql-7.1.2/src/
> nclude -c ././pgmodule.c -o ./pgmodule.o
> ././pgmodule.c:30: libpq-fe.h: No such file or directory
> ././pgmodule.c:31: libpq/libpq-fs.h: No such file or directory
> make: *** [pgmodule.o] Error 1
> 
> Trying to find what is targeting the files that are there but it can't find 
> now.

The -I/cygwin/usr/src/postgresql-7.1.2/src/nclude above looks suspicious.
Where is it coming from?  Is it a typo?  Are you building inside of the
PostgreSQL source tree or out?

If inside, then the compile line should look like:

    gcc -DUSE_DL_IMPORT -g -O2 -Wall -Wstrict-prototypes -I/usr/include/python2.1 -I/usr/include/python2.1 -DHAVE_CONFIG_H  -I../../../src/interfaces/libpq -I../../../src/include -I/usr/local/include -c ././pgmodule.c -o ./pgmodule.o

If outside, then the compile line should look (something) like:

    gcc -DUSE_DL_IMPORT -g -O2 -Wall -Wstrict-prototypes -I/usr/include/python2.1 -I/usr/include/postgresql -DHAVE_CONFIG_H  -c ././pgmodule.c -o ./pgmodule.o

Note that the Cygwin PostgreSQL distribution installs libpq-fe.h and
libpq/libpq-fs.h in /usr/include/postgresql.

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

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019