Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:15506 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 54552 invoked by uid 1010); 20 Mar 2005 02:13:49 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 54515 invoked from network); 20 Mar 2005 02:13:49 -0000 Received: from unknown (HELO pb1.pair.com) (127.0.0.1) by localhost with SMTP; 20 Mar 2005 02:13:49 -0000 X-Host-Fingerprint: 195.197.172.116 gw02.mail.saunalahti.fi Linux 2.4/2.6 Received: from ([195.197.172.116:45915] helo=gw02.mail.saunalahti.fi) by pb1.pair.com (ecelerity HEAD r(5268)) with SMTP id 10/09-11294-C5CDC324 for ; Sat, 19 Mar 2005 21:13:49 -0500 Received: from nest.netphobia.fi (YZCLXVIII.dsl.saunalahti.fi [85.76.34.69]) by gw02.mail.saunalahti.fi (Postfix) with ESMTP id 4B513BA62C; Sun, 20 Mar 2005 04:13:43 +0200 (EET) Received: from nest.netphobia.fi (nest.netphobia.fi [127.0.0.1]) by nest.netphobia.fi (8.13.1/8.13.1) with ESMTP id j2K2DhY5017246; Sun, 20 Mar 2005 04:13:43 +0200 Received: from localhost (jani@localhost) by nest.netphobia.fi (8.13.1/8.13.1/Submit) with ESMTP id j2K2Dh6c017243; Sun, 20 Mar 2005 04:13:43 +0200 X-Authentication-Warning: nest.netphobia.fi: jani owned process doing -bs Date: Sun, 20 Mar 2005 04:13:43 +0200 (EET) Reply-To: Jani Taskinen To: Christopher Kings-Lynne Cc: chriskl@php.net, internals@lists.php.net In-Reply-To: <423CD7E4.4080407@familyhealth.com.au> Message-ID: References: <423CD7E4.4080407@familyhealth.com.au> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Subject: Re: [PHP-DEV] ext/pgsql build broken From: sniper@iki.fi (Jani Taskinen) On Sun, 20 Mar 2005, Christopher Kings-Lynne wrote: >> /usr/src/php5/ext/pgsql/pgsql.c:3488: error: `PG_DIAG_INTERNAL_POSITION' >> undeclared (first use in this function) >> /usr/src/php5/ext/pgsql/pgsql.c:3488: error: `PG_DIAG_INTERNAL_QUERY' > > Is that all the failure messages? I cannot understand why 2 of the 12 > diagnostic codes are not defined and the others are, given that they were all > added in one go in PostgreSQL 7.4?? Yes, that was all. > What version of PostgreSQL libpq are you linking against? 7.4.7 (from the fedora core 3 rpms) > Also, is this before or after I added the #if HAVE_PQRESULTERRORFIELD on line > 486 of pgsql.c? After. I didn't try compiling before. :) > Do these #defines appear in your include dir in postgres_ext.h on your system? No. Here's the whole section from it: #define PG_DIAG_SEVERITY 'S' #define PG_DIAG_SQLSTATE 'C' #define PG_DIAG_MESSAGE_PRIMARY 'M' #define PG_DIAG_MESSAGE_DETAIL 'D' #define PG_DIAG_MESSAGE_HINT 'H' #define PG_DIAG_STATEMENT_POSITION 'P' #define PG_DIAG_CONTEXT 'W' #define PG_DIAG_SOURCE_FILE 'F' #define PG_DIAG_SOURCE_LINE 'L' #define PG_DIAG_SOURCE_FUNCTION 'R' --Jani