Re: [Gtksql-users] gtksql: problem with configure: postgres.h presence... no
Brought to you by:
djluff
From: Miernik <mi...@ct...> - 2003-08-10 12:17:27
|
On Sun, Aug 10, 2003 at 08:38:22PM +1000, Darryl Luff wrote: > Hi again Jan. I have finally got a Debian system up and running. It's > debian 3.0. The 0.3.2 version of gtksql configured and built OK for me. > The postgresql header is found in /usr/include/postgresql/server/postgres.h. So you have a 'stable' system. I tried it on an 'unstable' system. I have a mixed 'stable'/'testing' system, and just now I have checked, and (I tried the current CVS version): checking /usr/include/postgresql/server/postgres.h usability... yes checking /usr/include/postgresql/server/postgres.h presence... yes checking for /usr/include/postgresql/server/postgres.h... yes But on three different computers, each with an unstable system, it says no to these checks. Here are the version ov revelant packages in these systems (unstable is the one on which it doesn't work): unstable stable postgresql-dev 7.3.3-1 7.2.1-2woody2 automake <none> 1:1.4-p4-1.1 automake1.7 1.7.6-1 <none> autoconf 2.57-6 2.53-2 autoconf2.13 <none> 2.13-47 I did a little test, and upgraded postgresql-dev on the 'stable' system to 7.3.2r1-5 from 'testing'. And now it also does: checking /usr/include/postgresql/server/postgres.h usability... no checking /usr/include/postgresql/server/postgres.h presence... no checking for /usr/include/postgresql/server/postgres.h... no And from config.log : configure:9393: checking /usr/include/postgresql/server/postgres.h usability configure:9402: gcc -c -g -O2 conftest.c >&5 In file included from configure:9430: /usr/include/postgresql/server/postgres.h:48: server/c.h: No such file or directory /usr/include/postgresql/server/postgres.h:49: server/utils/elog.h: No such file or directory /usr/include/postgresql/server/postgres.h:50: server/utils/palloc.h: No such file or directory configure:9405: $? = 1 configure: failed program was: #line 9395 "configure" #include "confdefs.h" #include <stdio.h> #if HAVE_SYS_TYPES_H # include <sys/types.h> #endif #if HAVE_SYS_STAT_H # include <sys/stat.h> #endif #if STDC_HEADERS # include <stdlib.h> # include <stddef.h> #else # if HAVE_STDLIB_H # include <stdlib.h> # endif #endif #if HAVE_STRING_H # if !STDC_HEADERS && HAVE_MEMORY_H # include <memory.h> # endif # include <string.h> #endif #if HAVE_STRINGS_H # include <strings.h> #endif #if HAVE_INTTYPES_H # include <inttypes.h> #else # if HAVE_STDINT_H # include <stdint.h> # endif #endif #if HAVE_UNISTD_H # include <unistd.h> #endif #include </usr/include/postgresql/server/postgres.h> configure:9420: result: no configure:9424: checking /usr/include/postgresql/server/postgres.h presence configure:9431: gcc -E conftest.c In file included from configure:9427: /usr/include/postgresql/server/postgres.h:48: server/c.h: No such file or directory /usr/include/postgresql/server/postgres.h:49: server/utils/elog.h: No such file or directory /usr/include/postgresql/server/postgres.h:50: server/utils/palloc.h: No such file or directory configure:9437: $? = 1 configure: failed program was: #line 9426 "configure" #include "confdefs.h" #include </usr/include/postgresql/server/postgres.h> configure:9455: result: no configure:9473: checking for /usr/include/postgresql/server/postgres.h configure:9480: result: no > The CVS version had a couple of problems with the older version of gcc. > I've fixed them so it now also builds OK. There are a couple of small > problems (like it doesn't find the bitmap for the 'About' box). These > should be fixed this week. BTW, you had a problem with a new version of gcc (3.3), and I've fixed it in my Debian patch, look at: http://www.miernik.ctnet.pl/debian/pool/gtksql_0.3.2-1.diff.gz In the file d_postgres.c See changelog in that patch: * Fix to compile with gcc-3.3: The preprocessor no longer accepts multi-line string literals: http://gcc.gnu.org/gcc-3.3/changes.html > Is it possible that the postgresql-dev package has a problem on your > system? The autoconf scripts do a test compile using the header, they > don't just check that it's there. Have you been able to compile other > postgresql related programs? > > If you look in the config.log file after it fails it should show you > what it tried to run, and what failed. Yeah, the offending part is: | #include </usr/include/postgresql/server/postgres.h> configure:9872: result: no configure:9876: checking /usr/include/postgresql/server/postgres.h presence configure:9887: gcc -E conftest.c In file included from configure:9900: /usr/include/postgresql/server/postgres.h:48:29: server/c.h: No such file or directory /usr/include/postgresql/server/postgres.h:49:38: server/utils/elog.h: No such file or directory /usr/include/postgresql/server/postgres.h:50:40: server/utils/palloc.h: No such file or directory configure:9893: $? = 1 configure: failed program was: | #line 9878 "configure" | /* confdefs.h. */ | I thought that running ./configure --includedir=/usr/include/postgresql/ would help, but it didn't. I'm attaching the full config.log files from my unstable system, when trying to configure both the 0.3.2 version, and CVS. > >My package is here: > >http://www.miernik.ctnet.pl/debian/pool/gtksql_0.3.2-1_i386.deb > > This fails some dependencies on my system, which is to be expected I guess. It was made for an unstable system, and you have a stable (woody) system. I'll try to make backports for woody and sarge systems later. regards, -- Miernik ________________________ jabber:mi...@ja... __ ICQ: 4004001 ___/__ tel: +48608233394 __/ mailto:mi...@ct... Do not use Paypal. They sometimes shut down accounts and steal users money! http://www.paypalwarning.com/ |