X-Original-To: pgsql-interfaces-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 2160BD1C48E for ; Thu, 7 Aug 2003 04:43:41 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 26942-06 for ; Thu, 7 Aug 2003 01:42:17 -0300 (ADT) Received: from candle.pha.pa.us (momjian.navpoint.com [207.106.42.251]) by svr1.postgresql.org (Postfix) with ESMTP id 51863D1C4BD for ; Thu, 7 Aug 2003 01:43:29 -0300 (ADT) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.11.6) id h774hW211357; Thu, 7 Aug 2003 00:43:32 -0400 (EDT) From: Bruce Momjian Message-Id: <200308070443.h774hW211357@candle.pha.pa.us> Subject: Re: ecpg problem in 7.4 beta In-Reply-To: <200308060022.h760M6K29050@candle.pha.pa.us> To: Bruce Momjian Date: Thu, 7 Aug 2003 00:43:31 -0400 (EDT) Cc: PostgreSQL-interfaces X-Mailer: ELM [version 2.4ME+ PL99 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200308/28 X-Sequence-Number: 4382 OK, I think I can fix this. The include of postgres_fe.h was done recently: revision 1.54 date: 2003/08/01 13:53:36; author: petere; state: Exp; lines: +4 -2 Make ecpg SQLSTATE-aware. Map existing SQLCODE assignments to SQLSTATEs, rather than parsing the message. Add some documentation about embedded SQL. It seems like doing postgres_fe.h rather than postgres_ext.h was just an oversight, so I will make the change in CVS. --------------------------------------------------------------------------- Bruce Momjian wrote: > I tried running ecpg in 7.4 beta and got: > > $ ecpg x.pgc > $ gcc -I/usr/local/pgsql/include -L/usr/local/pgsql/lib -lpgtypes -lecpg x.c > In file included from x.c:4: > /usr/local/pgsql/include/ecpglib.h:9: postgres_fe.h: No such file or > directory > > Why is ecpglib.h referencing postgres_fe.h? I only see postgres_fe.h in > the install directory under pgsql/include/internal. > > -- > Bruce Momjian | http://candle.pha.pa.us > pgman@candle.pha.pa.us | (610) 359-1001 > + If your life is a hard drive, | 13 Roberts Road > + Christ can be your backup. | Newtown Square, Pennsylvania 19073 > > ---------------------------(end of broadcast)--------------------------- > TIP 4: Don't 'kill -9' the postmaster > -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073