RE: Unable to build on Solaris 2.6 - Mailing list pgsql-ports
| From | Kovács Péter |
|---|---|
| Subject | RE: Unable to build on Solaris 2.6 |
| Date | |
| Msg-id | 8A2DDD7ED7876A4698F6FF204F62CBFC6DC004@budg112a.sysdata.siemens.hu Whole thread Raw |
| In response to | Unable to build on Solaris 2.6 (Kovács Péter <peter.kovacs@sysdata.siemens.hu>) |
| Responses |
RE: Unable to build on Solaris 2.6
|
| List | 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@gmx.net]
Sent: Monday, July 16, 2001 11:56 PM
To: Kovács Péter
Cc: pgsql-ports@postgresql.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@gmx.net http://funkturm.homeip.net/~peter
pgsql-ports by date: