RE: Unable to build on Solaris 2.6

From: Kovács Péter <peter(dot)kovacs(at)sysdata(dot)siemens(dot)hu>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: pgsql-ports(at)postgresql(dot)org
Subject: RE: Unable to build on Solaris 2.6
Date: 2001-07-17 08:22:54
Message-ID: 8A2DDD7ED7876A4698F6FF204F62CBFC6DC004@budg112a.sysdata.siemens.hu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-ports

Peter,

Thanks a lot.

The generated definition looked like:

typedef struct FormData_ pg_attribute
{
Oid attrelid;

NameData attname;
Oid atttypid;

Apparently, the configure script did not correctly recognize the stringizing
capibality of the preprocessor. (Should I report this as a bug in
autoconf???) Defining the HAVE_STRINGIZING macro in config.h by hand seemed
to solve the problem and the compilation completed without error (though
with lots of "<type>_{MIN | MAX} redefined" warnings).

Thank you again.

Peter

-----Original Message-----
From: Peter Eisentraut [mailto:peter_e(at)gmx(dot)net]
Sent: Monday, July 16, 2001 11:56 PM
To: Kovács Péter
Cc: pgsql-ports(at)postgresql(dot)org
Subject: Re: [PORTS] Unable to build on Solaris 2.6

Kovács Péter writes:

> gmake[3]: Entering directory `/tmp/postgresql-7.1.2/src/backend/access'
> gmake -C common SUBSYS.o
> gmake[4]: Entering directory
> `/tmp/postgresql-7.1.2/src/backend/access/common'
> gcc -Wall -Wmissing-prototypes -Wmissing-declarations
> -I../../../../src/include -c heaptuple
> .c -o heaptuple.o
> In file included from ../../../../src/include/access/tupdesc.h:18,
> from ../../../../src/include/utils/rel.h:18,
> from ../../../../src/include/storage/bufmgr.h:21,
> from ../../../../src/include/storage/bufpage.h:18,
> from ../../../../src/include/access/htup.h:17,
> from ../../../../src/include/access/heapam.h:18,
> from heaptuple.c:23:
> ../../../../src/include/catalog/pg_attribute.h:43: syntax error before `{'
> ../../../../src/include/catalog/pg_attribute.h:156: parse error before `}'
> ../../../../src/include/catalog/pg_attribute.h:156: warning: type defaults
> to `int' in declaration of `FormData_pg_attribute'

There's some macro trickery going on there, so it's hard to tell what it's
really seeing. Try this:

$ cd src/backend/access/common
$ make heaptuple.o CFLAGS=-save-temps

Then look at the resulting (I hope) heaptuple.i and look at what's
really happening at line 42 (search for pg_attribute should find it). It
should look similar to this:

# 42 "../../../../src/include/catalog/pg_attribute.h" 1
typedef struct FormData_pg_attribute
{
Oid attrelid;

NameData attname;
# 55 "../../../../src/include/catalog/pg_attribute.h"
Oid atttypid;

There's the "{" it's talking about.

--
Peter Eisentraut peter_e(at)gmx(dot)net http://funkturm.homeip.net/~peter

Responses

Browse pgsql-ports by date

  From Date Subject
Next Message Peter Eisentraut 2001-07-17 15:20:53 RE: Unable to build on Solaris 2.6
Previous Message Peter Eisentraut 2001-07-16 21:56:10 Re: Unable to build on Solaris 2.6