Обсуждение: Still having problems on compiling PostgreSQL 6.5.3 on IRIX 6.5

Поиск
Список
Период
Сортировка

Still having problems on compiling PostgreSQL 6.5.3 on IRIX 6.5

От
Richard NAGY
Дата:
Hello Mark,

I still having problems on compiling PostgreSQL 6.5.3 on IRIX 6.5. I
connot pass threw the compilation of heaptuple.
I have done the following :

sh configure --prefix=/usr/local/pgsql --with-CC=cc --without-CXX
--with-template=irix5.

I have typed this in this directory : /usr1/src/postgresql-6.5.3/src/

In the template/irix5 file, I have the following :

AROPT:crs
CFLAGS:-n32
SHARED_LIB:
ALL:
SRCH_INC:
SRCH_LIB:
USE_LOCALE:no
DLSUFFIX:.so
YFLAGS:-d
YACC:
LDFLAGS:-n32

I have tried the -o32 as well but it's the same result ------> error!

The configure command works well. I have installed the GNU make and
GNU readline.

When I run the GNU make, it quickly halts on heaptuple after 97 errors.

Exemple :
(...)
make[1]: Leaving directory `/usr1/src/postgresql-6.5.3/src/utils'
/usr/local/bin/make -C backend all
make[1]: Entering directory `/usr1/src/postgresql-6.5.3/src/backend'
/usr/local/bin/make -C access all
make[2]: Entering directory
`/usr1/src/postgresql-6.5.3/src/backend/access'
/usr/local/bin/make -C common  SUBSYS.o
make[3]: Entering directory
`/usr1/src/postgresql-6.5.3/src/backend/access/common'
cc -I../../../include -I../../../backend   -n32 -U_NO_XOPEN4 -I../..
-c heaptuple.c -o heaptuple.o
No such feature exists (-5,116)
(...)
97 errors detected in the compilation of "heaptuple.c".

I don't know if this tells you something, but I don't know where to look
for.

--
Richard NAGY
http://www.hitsme.com/



Re: [ADMIN] Still having problems on compiling PostgreSQL 6.5.3 on IRIX 6.5

От
Sarah Officer
Дата:
I have installed version 6.5.3 on an SGI O2 running IRIX6.5.  Here
is what 'uname -a' returns:
    IRIX wasp 6.5 11051733 IP32
I had a few problems with the prefix, and I don't remember why I set
the --disable-shared flag, but here's how I configured:

configure --prefix=$TOP/swl/IRIX6.5 \
 --exec_prefix=$TOP/swl/IRIX6.5 --disable-shared --with-tcl \
 --with-CC=cc

I compiled:

gmake COPT="-O2"
gmake COPT="-O2" install

The prefix & exec_prefix didn't do what I expected, and apparently I
should have listed the path to for tcl on the with-tcl argument, but
stuff compiled otherwise.  The configure script found the correct
template by itself.  It looks like the main differences are that I
disabled shared libraries and you turned off C++.  ??

I hope this helps.

Sarah Officer
officers@aries.tucson.saic.com

Richard NAGY wrote:
>
> Hello Mark,
>
> I still having problems on compiling PostgreSQL 6.5.3 on IRIX 6.5. I
> connot pass threw the compilation of heaptuple.
> I have done the following :
>
> sh configure --prefix=/usr/local/pgsql --with-CC=cc --without-CXX
> --with-template=irix5.
>
> I have typed this in this directory : /usr1/src/postgresql-6.5.3/src/
>
> In the template/irix5 file, I have the following :
>
> AROPT:crs
> CFLAGS:-n32
> SHARED_LIB:
> ALL:
> SRCH_INC:
> SRCH_LIB:
> USE_LOCALE:no
> DLSUFFIX:.so
> YFLAGS:-d
> YACC:
> LDFLAGS:-n32
>
> I have tried the -o32 as well but it's the same result ------> error!
>
> The configure command works well. I have installed the GNU make and
> GNU readline.
>
> When I run the GNU make, it quickly halts on heaptuple after 97 errors.
>
> Exemple :
> (...)
> make[1]: Leaving directory `/usr1/src/postgresql-6.5.3/src/utils'
> /usr/local/bin/make -C backend all
> make[1]: Entering directory `/usr1/src/postgresql-6.5.3/src/backend'
> /usr/local/bin/make -C access all
> make[2]: Entering directory
> `/usr1/src/postgresql-6.5.3/src/backend/access'
> /usr/local/bin/make -C common  SUBSYS.o
> make[3]: Entering directory
> `/usr1/src/postgresql-6.5.3/src/backend/access/common'
> cc -I../../../include -I../../../backend   -n32 -U_NO_XOPEN4 -I../..
> -c heaptuple.c -o heaptuple.o
> No such feature exists (-5,116)
> (...)
> 97 errors detected in the compilation of "heaptuple.c".
>
> I don't know if this tells you something, but I don't know where to look
> for.
>
> --
> Richard NAGY
> http://www.hitsme.com/
>
> ************

Re: [ADMIN] Still having problems on compiling PostgreSQL 6.5.3 on IRIX 6.5

От
Richard NAGY
Дата:
Sarah Officer wrote:

> I have installed version 6.5.3 on an SGI O2 running IRIX6.5.  Here
> is what 'uname -a' returns:
>         IRIX wasp 6.5 11051733 IP32
> I had a few problems with the prefix, and I don't remember why I set
> the --disable-shared flag, but here's how I configured:
>
> configure --prefix=$TOP/swl/IRIX6.5 \
>  --exec_prefix=$TOP/swl/IRIX6.5 --disable-shared --with-tcl \
>  --with-CC=cc
>
> I compiled:
>
> gmake COPT="-O2"
> gmake COPT="-O2" install
>
> The prefix & exec_prefix didn't do what I expected, and apparently I
> should have listed the path to for tcl on the with-tcl argument, but
> stuff compiled otherwise.  The configure script found the correct
> template by itself.  It looks like the main differences are that I
> disabled shared libraries and you turned off C++.  ??
>
> I hope this helps.
>
> Sarah Officer
> officers@aries.tucson.saic.com
>
>

Hello Sarah !
Thank you very much for your help.
I tried to append the "--disable-shared" flag to the configure command but I
always have the same error!
My uname -a returns : IRIX64 presence2 6.5 05190003 IP27
The (nearly) full output is :

/usr/local/bin/make lexverify
make[1]: Entering directory `/usr1/src/postgresql-6.5.3/src'
/usr/local/bin/make -C lextest all
make[2]: Entering directory `/usr1/src/postgresql-6.5.3/src/lextest'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr1/src/postgresql-6.5.3/src/lextest'
make[1]: Leaving directory `/usr1/src/postgresql-6.5.3/src'
/usr/local/bin/make -C utils all
make[1]: Entering directory `/usr1/src/postgresql-6.5.3/src/utils'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/usr1/src/postgresql-6.5.3/src/utils'
/usr/local/bin/make -C backend all
make[1]: Entering directory `/usr1/src/postgresql-6.5.3/src/backend'
/usr/local/bin/make -C access all
make[2]: Entering directory `/usr1/src/postgresql-6.5.3/src/backend/access'
/usr/local/bin/make -C common  SUBSYS.o
make[3]: Entering directory
`/usr1/src/postgresql-6.5.3/src/backend/access/common'
cc -I../../../include -I../../../backend    -U_NO_XOPEN4 -I../..   -c
heaptuple.c -o heaptuple.o
No such feature exists (-5,116)

"../../../include/catalog/pg_attribute.h", line 42: error(1065): expected a
";"
  {
  ^

"../../../include/catalog/pg_attribute.h", line 77: warning(1012): parsing
          restarts here after previous syntax error
        int4            attnelems;
                                 ^

"../../../include/catalog/pg_attribute.h", line 118: error(1166): expected a
          declaration
  } FormData_pg_attribute;
  ^

"../../../include/catalog/pg_attribute.h", line 132: error(1020): identifier
          "FormData_pg_attribute" is undefined
  typedef FormData_pg_attribute *Form_pg_attribute;
          ^

"../../../include/catalog/pg_am.h", line 37: error(1065): expected a ";"
  {
  ^

"../../../include/catalog/pg_am.h", line 58: warning(1012): parsing restarts
          here after previous syntax error
        regproc         amcreate;
                                ^

"../../../include/catalog/pg_am.h", line 60: error(1166): expected a
          declaration
  } FormData_pg_am;
  ^

"../../../include/catalog/pg_am.h", line 67: error(1020): identifier
          "FormData_pg_am" is undefined
  typedef FormData_pg_am *Form_pg_am;
          ^

"../../../include/catalog/pg_class.h", line 54: error(1065): expected a ";"
  {
  ^

"../../../include/catalog/pg_class.h", line 75: warning(1012): parsing
          restarts here after previous syntax error
        int2            relfkeys;               /* # of FOREIGN KEYs */
                                ^

"../../../include/catalog/pg_class.h", line 80: error(1166): expected a
          declaration
  } FormData_pg_class;
  ^

"../../../include/catalog/pg_class.h", line 90: error(1020): identifier
          "FormData_pg_class" is undefined
  typedef FormData_pg_class *Form_pg_class;
          ^

"../../../include/catalog/pg_type.h", line 41: error(1065): expected a ";"
  {
  ^

"../../../include/catalog/pg_type.h", line 64: warning(1012): parsing
restarts
          here after previous syntax error
        char            typtype;
                               ^

"../../../include/catalog/pg_type.h", line 111: error(1166): expected a
          declaration
  } FormData_pg_type;
  ^

"../../../include/catalog/pg_type.h", line 118: error(1020): identifier
          "FormData_pg_type" is undefined
  typedef FormData_pg_type *Form_pg_type;
          ^

"heaptuple.c", line 60: error(1130): expression must have
          pointer-to-struct-or-union type
                data_length = att_align(data_length, att[i]->attlen,
att[i]->attalign);
                              ^

"heaptuple.c", line 60: error(1130): expression must have
          pointer-to-struct-or-union type
                data_length = att_align(data_length, att[i]->attlen,
att[i]->attalign);
                              ^

"heaptuple.c", line 60: error(1130): expression must have
          pointer-to-struct-or-union type
                data_length = att_align(data_length, att[i]->attlen,
att[i]->attalign);
                              ^
"heaptuple.c", line 61: error(1130): expression must have
          pointer-to-struct-or-union type
                data_length = att_addlength(data_length, att[i]->attlen,
value[i]);
                              ^

"heaptuple.c", line 61: error(1130): expression must have
          pointer-to-struct-or-union type
                data_length = att_addlength(data_length, att[i]->attlen,
value[i]);
                              ^

"heaptuple.c", line 116: error(1130): expression must have
          pointer-to-struct-or-union type
                data = (char *) att_align((long) data, att[i]->attlen,
att[i]->attalign);
                                ^

"heaptuple.c", line 116: error(1130): expression must have
          pointer-to-struct-or-union type
                data = (char *) att_align((long) data, att[i]->attlen,
att[i]->attalign);
                                ^
"heaptuple.c", line 116: error(1130): expression must have
          pointer-to-struct-or-union type
                data = (char *) att_align((long) data, att[i]->attlen,
att[i]->attalign);
                                ^

"heaptuple.c", line 117: error(1130): expression must have
          pointer-to-struct-or-union type
                switch (att[i]->attlen)
                        ^

"heaptuple.c", line 125: error(1130): expression must have
          pointer-to-struct-or-union type
                                *data = att[i]->attbyval ?
                                        ^

"heaptuple.c", line 129: error(1130): expression must have
          pointer-to-struct-or-union type
                                *(short *) data = (att[i]->attbyval ?
                                                   ^

"heaptuple.c", line 134: error(1130): expression must have
          pointer-to-struct-or-union type
                                *(int32 *) data = (att[i]->attbyval ?
                                                   ^

"heaptuple.c", line 140: error(1130): expression must have
          pointer-to-struct-or-union type
                                                att[i]->attlen);
                                                ^

"heaptuple.c", line 143: error(1130): expression must have
          pointer-to-struct-or-union type
                data = (char *) att_addlength((long) data, att[i]->attlen,
value[i]);
                                ^

"heaptuple.c", line 143: error(1130): expression must have
          pointer-to-struct-or-union type
                data = (char *) att_addlength((long) data, att[i]->attlen,
value[i]);
                                ^

"heaptuple.c", line 424: error(1130): expression must have
          pointer-to-struct-or-union type
                if (att[attnum]->attcacheoff != -1)
                    ^

"heaptuple.c", line 426: error(1130): expression must have
          pointer-to-struct-or-union type
                        return (Datum) fetchatt(&(att[attnum]),
                                       ^

"heaptuple.c", line 426: error(1130): expression must have
          pointer-to-struct-or-union type
                        return (Datum) fetchatt(&(att[attnum]),
                                       ^

"heaptuple.c", line 426: error(1130): expression must have
          pointer-to-struct-or-union type
                        return (Datum) fetchatt(&(att[attnum]),
                                       ^

"heaptuple.c", line 426: error(1130): expression must have
          pointer-to-struct-or-union type
                        return (Datum) fetchatt(&(att[attnum]),
                                       ^

"heaptuple.c", line 426: error(1130): expression must have
          pointer-to-struct-or-union type
                        return (Datum) fetchatt(&(att[attnum]),
                                       ^

"heaptuple.c", line 426: error(1130): expression must have
          pointer-to-struct-or-union type
                        return (Datum) fetchatt(&(att[attnum]),
                                       ^

"heaptuple.c", line 426: error(1130): expression must have
          pointer-to-struct-or-union type
                        return (Datum) fetchatt(&(att[attnum]),
                                       ^
"heaptuple.c", line 426: error(1130): expression must have
          pointer-to-struct-or-union type
                        return (Datum) fetchatt(&(att[attnum]),
                                       ^

"heaptuple.c", line 430: error(1130): expression must have
          pointer-to-struct-or-union type
                        return (Datum) fetchatt(&(att[0]), tp);
                                       ^

"heaptuple.c", line 430: error(1130): expression must have
          pointer-to-struct-or-union type
                        return (Datum) fetchatt(&(att[0]), tp);
                                       ^

"heaptuple.c", line 430: error(1130): expression must have
          pointer-to-struct-or-union type
                        return (Datum) fetchatt(&(att[0]), tp);
                                       ^

"heaptuple.c", line 430: error(1130): expression must have
          pointer-to-struct-or-union type
                        return (Datum) fetchatt(&(att[0]), tp);
                                       ^

"heaptuple.c", line 441: error(1130): expression must have
          pointer-to-struct-or-union type
                                if (att[j]->attlen < 1 &&
!VARLENA_FIXED_SIZE(att[j]))
                                    ^

"heaptuple.c", line 441: error(1130): expression must have
          pointer-to-struct-or-union type
                                if (att[j]->attlen < 1 &&
!VARLENA_FIXED_SIZE(att[j]))
                                                           ^

"heaptuple.c", line 441: error(1130): expression must have
          pointer-to-struct-or-union type
                                if (att[j]->attlen < 1 &&
!VARLENA_FIXED_SIZE(att[j]))
                                                           ^
"heaptuple.c", line 465: error(1130): expression must have
          pointer-to-struct-or-union type
                att[0]->attcacheoff = 0;
                ^

"heaptuple.c", line 467: error(1130): expression must have
          pointer-to-struct-or-union type
                while (att[j]->attcacheoff > 0)
                       ^

"heaptuple.c", line 470: error(1130): expression must have
          pointer-to-struct-or-union type
                if (!VARLENA_FIXED_SIZE(att[j - 1]))
                     ^

"heaptuple.c", line 470: error(1130): expression must have
          pointer-to-struct-or-union type
                if (!VARLENA_FIXED_SIZE(att[j - 1]))
                     ^

"heaptuple.c", line 471: error(1130): expression must have
          pointer-to-struct-or-union type
                        off = att[j - 1]->attcacheoff + att[j - 1]->attlen;
                              ^

"heaptuple.c", line 471: error(1130): expression must have
          pointer-to-struct-or-union type
                        off = att[j - 1]->attcacheoff + att[j - 1]->attlen;
                                                        ^

"heaptuple.c", line 473: error(1130): expression must have
          pointer-to-struct-or-union type
                        off = att[j - 1]->attcacheoff + att[j -
1]->atttypmod;
                              ^

"heaptuple.c", line 473: error(1130): expression must have
          pointer-to-struct-or-union type
                        off = att[j - 1]->attcacheoff + att[j -
1]->atttypmod;
                                                        ^
"heaptuple.c", line 478: error(1130): expression must have
          pointer-to-struct-or-union type
                          att[j]->attcacheoff == -1 &&
                          ^

"heaptuple.c", line 481: error(1130): expression must have
          pointer-to-struct-or-union type
                           att[j]->attlen > 0 ||
VARLENA_FIXED_SIZE(att[j]))); j++)
                           ^

"heaptuple.c", line 481: error(1130): expression must have
          pointer-to-struct-or-union type
                           att[j]->attlen > 0 ||
VARLENA_FIXED_SIZE(att[j]))); j++)
                                                 ^

"heaptuple.c", line 481: error(1130): expression must have
          pointer-to-struct-or-union type
                           att[j]->attlen > 0 ||
VARLENA_FIXED_SIZE(att[j]))); j++)
                                                 ^

"heaptuple.c", line 525: error(1130): expression must have
          pointer-to-struct-or-union type
                        if (usecache && att[i]->attcacheoff != -1)
                                        ^
(...)

"heaptuple.c", line 755: error(1130): expression must have
          pointer-to-struct-or-union type
                        value[attoff] = heap_getattr(tuple,
                                        ^

97 errors detected in the compilation of "heaptuple.c".
make[3]: *** [heaptuple.o] Error 2
make[3]: Leaving directory
`/usr1/src/postgresql-6.5.3/src/backend/access/common'
make[2]: *** [submake] Error 2
make[2]: Leaving directory `/usr1/src/postgresql-6.5.3/src/backend/access'
make[1]: *** [access.dir] Error 2
make[1]: Leaving directory `/usr1/src/postgresql-6.5.3/src/backend'
make: *** [all] Error 2



I'm going crazy!
I have compiled PostgreSQL 6.5.1 with JAVA and JDBC on Linux on an i686
without any problems but on our IRIX .....!

Is your file template/irix5 the original one ?

Greetings.
--
Richard NAGY




Re: [ADMIN] Still having problems on compiling PostgreSQL 6.5.3 onIRIX 6.5

От
Sarah Officer
Дата:
Hi Richard,

I've only recently installed postgres, so I'm no expert, and I'm not
an IRIX expert either.  This is my disclaimer.

I notice your hardware is a little different than mine.  The
compiler I'm using is:
    cc -version
    MIPSpro Compilers: Version 7.2.1

Our system is using all default stuff from postgres.  I didn't
fiddle with the MK_NO_LORDER flags that are mentioned in the FAQ;
the FAQ looks like it's out of date.

When you reconfigured, did you make sure that stuff REALLY got
reconfigured?  I don't know much about autoconf, but I believe it
will cache the answers it got the last time you configured and it
might not *really* do its work if you configure again.  At least, I
had that problem once years ago with tcl/tk.  I usually 'make
distclean' (I don't know if Postgres has that target) or remove the
config.cache file before reconfiguring.

I've never seen the "No such feature exists" message from the IRIX
compiler.  Were there any warnings prior to the the errors
indicating that include files weren't located?  I've sometimes had
syntax errors such as missiong brackets and semi-colons when an
include file got lost and the system used default prototypes.  Could
you try turning on C++?  Is your LD_LIBRARYN32_PATH okay?

Here's what our template/irix5 file says:
AROPT:crs
CFLAGS:
SHARED_LIB:
ALL:
SRCH_INC:
SRCH_LIB:
USE_LOCALE:no
DLSUFFIX:.so
YFLAGS:-d
YACC:

We have flex and bison installed (as opposed to lex & yacc).
bison --version
  GNU Bison version 1.25
flex --version
  flex version 2.5.4


I'm just floundering around here (which is how I usually operate, to
be honest :)).  I hope something here helps.

Sarah Officer
officers@aries.tucson.saic.com

Richard NAGY wrote:
>
> Sarah Officer wrote:
>
> > I have installed version 6.5.3 on an SGI O2 running IRIX6.5.  Here
> > is what 'uname -a' returns:
> >         IRIX wasp 6.5 11051733 IP32
> > I had a few problems with the prefix, and I don't remember why I set
> > the --disable-shared flag, but here's how I configured:
> >
> > configure --prefix=$TOP/swl/IRIX6.5 \
> >  --exec_prefix=$TOP/swl/IRIX6.5 --disable-shared --with-tcl \
> >  --with-CC=cc
> >
> > I compiled:
> >
> > gmake COPT="-O2"
> > gmake COPT="-O2" install
> >
> > The prefix & exec_prefix didn't do what I expected, and apparently I
> > should have listed the path to for tcl on the with-tcl argument, but
> > stuff compiled otherwise.  The configure script found the correct
> > template by itself.  It looks like the main differences are that I
> > disabled shared libraries and you turned off C++.  ??
> >
> > I hope this helps.
> >
> > Sarah Officer
> > officers@aries.tucson.saic.com
> >
> >
>
> Hello Sarah !
> Thank you very much for your help.
> I tried to append the "--disable-shared" flag to the configure command but I
> always have the same error!
> My uname -a returns : IRIX64 presence2 6.5 05190003 IP27
> The (nearly) full output is :
>
> /usr/local/bin/make lexverify
> make[1]: Entering directory `/usr1/src/postgresql-6.5.3/src'
> /usr/local/bin/make -C lextest all
> make[2]: Entering directory `/usr1/src/postgresql-6.5.3/src/lextest'
> make[2]: Nothing to be done for `all'.
> make[2]: Leaving directory `/usr1/src/postgresql-6.5.3/src/lextest'
> make[1]: Leaving directory `/usr1/src/postgresql-6.5.3/src'
> /usr/local/bin/make -C utils all
> make[1]: Entering directory `/usr1/src/postgresql-6.5.3/src/utils'
> make[1]: Nothing to be done for `all'.
> make[1]: Leaving directory `/usr1/src/postgresql-6.5.3/src/utils'
> /usr/local/bin/make -C backend all
> make[1]: Entering directory `/usr1/src/postgresql-6.5.3/src/backend'
> /usr/local/bin/make -C access all
> make[2]: Entering directory `/usr1/src/postgresql-6.5.3/src/backend/access'
> /usr/local/bin/make -C common  SUBSYS.o
> make[3]: Entering directory
> `/usr1/src/postgresql-6.5.3/src/backend/access/common'
> cc -I../../../include -I../../../backend    -U_NO_XOPEN4 -I../..   -c
> heaptuple.c -o heaptuple.o
> No such feature exists (-5,116)
>
> "../../../include/catalog/pg_attribute.h", line 42: error(1065): expected a
> ";"
>   {
>   ^
>
> "../../../include/catalog/pg_attribute.h", line 77: warning(1012): parsing
>           restarts here after previous syntax error
>         int4            attnelems;
>                                  ^
>
> "../../../include/catalog/pg_attribute.h", line 118: error(1166): expected a
>           declaration
>   } FormData_pg_attribute;
>   ^
>
> "../../../include/catalog/pg_attribute.h", line 132: error(1020): identifier
>           "FormData_pg_attribute" is undefined
>   typedef FormData_pg_attribute *Form_pg_attribute;
>           ^
>
> "../../../include/catalog/pg_am.h", line 37: error(1065): expected a ";"
>   {
>   ^
>
> "../../../include/catalog/pg_am.h", line 58: warning(1012): parsing restarts
>           here after previous syntax error
>         regproc         amcreate;
>                                 ^
>
> "../../../include/catalog/pg_am.h", line 60: error(1166): expected a
>           declaration
>   } FormData_pg_am;
>   ^
>
> "../../../include/catalog/pg_am.h", line 67: error(1020): identifier
>           "FormData_pg_am" is undefined
>   typedef FormData_pg_am *Form_pg_am;
>           ^
>
> "../../../include/catalog/pg_class.h", line 54: error(1065): expected a ";"
>   {
>   ^
>
> "../../../include/catalog/pg_class.h", line 75: warning(1012): parsing
>           restarts here after previous syntax error
>         int2            relfkeys;               /* # of FOREIGN KEYs */
>                                 ^
>
> "../../../include/catalog/pg_class.h", line 80: error(1166): expected a
>           declaration
>   } FormData_pg_class;
>   ^
>
> "../../../include/catalog/pg_class.h", line 90: error(1020): identifier
>           "FormData_pg_class" is undefined
>   typedef FormData_pg_class *Form_pg_class;
>           ^
>
> "../../../include/catalog/pg_type.h", line 41: error(1065): expected a ";"
>   {
>   ^
>
> "../../../include/catalog/pg_type.h", line 64: warning(1012): parsing
> restarts
>           here after previous syntax error
>         char            typtype;
>                                ^
>
> "../../../include/catalog/pg_type.h", line 111: error(1166): expected a
>           declaration
>   } FormData_pg_type;
>   ^
>
> "../../../include/catalog/pg_type.h", line 118: error(1020): identifier
>           "FormData_pg_type" is undefined
>   typedef FormData_pg_type *Form_pg_type;
>           ^
>
> "heaptuple.c", line 60: error(1130): expression must have
>           pointer-to-struct-or-union type
>                 data_length = att_align(data_length, att[i]->attlen,
> att[i]->attalign);
>                               ^
>
> "heaptuple.c", line 60: error(1130): expression must have
>           pointer-to-struct-or-union type
>                 data_length = att_align(data_length, att[i]->attlen,
> att[i]->attalign);
>                               ^
>
> "heaptuple.c", line 60: error(1130): expression must have
>           pointer-to-struct-or-union type
>                 data_length = att_align(data_length, att[i]->attlen,
> att[i]->attalign);
>                               ^
> "heaptuple.c", line 61: error(1130): expression must have
>           pointer-to-struct-or-union type
>                 data_length = att_addlength(data_length, att[i]->attlen,
> value[i]);
>                               ^
>
> "heaptuple.c", line 61: error(1130): expression must have
>           pointer-to-struct-or-union type
>                 data_length = att_addlength(data_length, att[i]->attlen,
> value[i]);
>                               ^
>
> "heaptuple.c", line 116: error(1130): expression must have
>           pointer-to-struct-or-union type
>                 data = (char *) att_align((long) data, att[i]->attlen,
> att[i]->attalign);
>                                 ^
>
> "heaptuple.c", line 116: error(1130): expression must have
>           pointer-to-struct-or-union type
>                 data = (char *) att_align((long) data, att[i]->attlen,
> att[i]->attalign);
>                                 ^
> "heaptuple.c", line 116: error(1130): expression must have
>           pointer-to-struct-or-union type
>                 data = (char *) att_align((long) data, att[i]->attlen,
> att[i]->attalign);
>                                 ^
>
> "heaptuple.c", line 117: error(1130): expression must have
>           pointer-to-struct-or-union type
>                 switch (att[i]->attlen)
>                         ^
>
> "heaptuple.c", line 125: error(1130): expression must have
>           pointer-to-struct-or-union type
>                                 *data = att[i]->attbyval ?
>                                         ^
>
> "heaptuple.c", line 129: error(1130): expression must have
>           pointer-to-struct-or-union type
>                                 *(short *) data = (att[i]->attbyval ?
>                                                    ^
>
> "heaptuple.c", line 134: error(1130): expression must have
>           pointer-to-struct-or-union type
>                                 *(int32 *) data = (att[i]->attbyval ?
>                                                    ^
>
> "heaptuple.c", line 140: error(1130): expression must have
>           pointer-to-struct-or-union type
>                                                 att[i]->attlen);
>                                                 ^
>
> "heaptuple.c", line 143: error(1130): expression must have
>           pointer-to-struct-or-union type
>                 data = (char *) att_addlength((long) data, att[i]->attlen,
> value[i]);
>                                 ^
>
> "heaptuple.c", line 143: error(1130): expression must have
>           pointer-to-struct-or-union type
>                 data = (char *) att_addlength((long) data, att[i]->attlen,
> value[i]);
>                                 ^
>
> "heaptuple.c", line 424: error(1130): expression must have
>           pointer-to-struct-or-union type
>                 if (att[attnum]->attcacheoff != -1)
>                     ^
>
> "heaptuple.c", line 426: error(1130): expression must have
>           pointer-to-struct-or-union type
>                         return (Datum) fetchatt(&(att[attnum]),
>                                        ^
>
> "heaptuple.c", line 426: error(1130): expression must have
>           pointer-to-struct-or-union type
>                         return (Datum) fetchatt(&(att[attnum]),
>                                        ^
>
> "heaptuple.c", line 426: error(1130): expression must have
>           pointer-to-struct-or-union type
>                         return (Datum) fetchatt(&(att[attnum]),
>                                        ^
>
> "heaptuple.c", line 426: error(1130): expression must have
>           pointer-to-struct-or-union type
>                         return (Datum) fetchatt(&(att[attnum]),
>                                        ^
>
> "heaptuple.c", line 426: error(1130): expression must have
>           pointer-to-struct-or-union type
>                         return (Datum) fetchatt(&(att[attnum]),
>                                        ^
>
> "heaptuple.c", line 426: error(1130): expression must have
>           pointer-to-struct-or-union type
>                         return (Datum) fetchatt(&(att[attnum]),
>                                        ^
>
> "heaptuple.c", line 426: error(1130): expression must have
>           pointer-to-struct-or-union type
>                         return (Datum) fetchatt(&(att[attnum]),
>                                        ^
> "heaptuple.c", line 426: error(1130): expression must have
>           pointer-to-struct-or-union type
>                         return (Datum) fetchatt(&(att[attnum]),
>                                        ^
>
> "heaptuple.c", line 430: error(1130): expression must have
>           pointer-to-struct-or-union type
>                         return (Datum) fetchatt(&(att[0]), tp);
>                                        ^
>
> "heaptuple.c", line 430: error(1130): expression must have
>           pointer-to-struct-or-union type
>                         return (Datum) fetchatt(&(att[0]), tp);
>                                        ^
>
> "heaptuple.c", line 430: error(1130): expression must have
>           pointer-to-struct-or-union type
>                         return (Datum) fetchatt(&(att[0]), tp);
>                                        ^
>
> "heaptuple.c", line 430: error(1130): expression must have
>           pointer-to-struct-or-union type
>                         return (Datum) fetchatt(&(att[0]), tp);
>                                        ^
>
> "heaptuple.c", line 441: error(1130): expression must have
>           pointer-to-struct-or-union type
>                                 if (att[j]->attlen < 1 &&
> !VARLENA_FIXED_SIZE(att[j]))
>                                     ^
>
> "heaptuple.c", line 441: error(1130): expression must have
>           pointer-to-struct-or-union type
>                                 if (att[j]->attlen < 1 &&
> !VARLENA_FIXED_SIZE(att[j]))
>                                                            ^
>
> "heaptuple.c", line 441: error(1130): expression must have
>           pointer-to-struct-or-union type
>                                 if (att[j]->attlen < 1 &&
> !VARLENA_FIXED_SIZE(att[j]))
>                                                            ^
> "heaptuple.c", line 465: error(1130): expression must have
>           pointer-to-struct-or-union type
>                 att[0]->attcacheoff = 0;
>                 ^
>
> "heaptuple.c", line 467: error(1130): expression must have
>           pointer-to-struct-or-union type
>                 while (att[j]->attcacheoff > 0)
>                        ^
>
> "heaptuple.c", line 470: error(1130): expression must have
>           pointer-to-struct-or-union type
>                 if (!VARLENA_FIXED_SIZE(att[j - 1]))
>                      ^
>
> "heaptuple.c", line 470: error(1130): expression must have
>           pointer-to-struct-or-union type
>                 if (!VARLENA_FIXED_SIZE(att[j - 1]))
>                      ^
>
> "heaptuple.c", line 471: error(1130): expression must have
>           pointer-to-struct-or-union type
>                         off = att[j - 1]->attcacheoff + att[j - 1]->attlen;
>                               ^
>
> "heaptuple.c", line 471: error(1130): expression must have
>           pointer-to-struct-or-union type
>                         off = att[j - 1]->attcacheoff + att[j - 1]->attlen;
>                                                         ^
>
> "heaptuple.c", line 473: error(1130): expression must have
>           pointer-to-struct-or-union type
>                         off = att[j - 1]->attcacheoff + att[j -
> 1]->atttypmod;
>                               ^
>
> "heaptuple.c", line 473: error(1130): expression must have
>           pointer-to-struct-or-union type
>                         off = att[j - 1]->attcacheoff + att[j -
> 1]->atttypmod;
>                                                         ^
> "heaptuple.c", line 478: error(1130): expression must have
>           pointer-to-struct-or-union type
>                           att[j]->attcacheoff == -1 &&
>                           ^
>
> "heaptuple.c", line 481: error(1130): expression must have
>           pointer-to-struct-or-union type
>                            att[j]->attlen > 0 ||
> VARLENA_FIXED_SIZE(att[j]))); j++)
>                            ^
>
> "heaptuple.c", line 481: error(1130): expression must have
>           pointer-to-struct-or-union type
>                            att[j]->attlen > 0 ||
> VARLENA_FIXED_SIZE(att[j]))); j++)
>                                                  ^
>
> "heaptuple.c", line 481: error(1130): expression must have
>           pointer-to-struct-or-union type
>                            att[j]->attlen > 0 ||
> VARLENA_FIXED_SIZE(att[j]))); j++)
>                                                  ^
>
> "heaptuple.c", line 525: error(1130): expression must have
>           pointer-to-struct-or-union type
>                         if (usecache && att[i]->attcacheoff != -1)
>                                         ^
> (...)
>
> "heaptuple.c", line 755: error(1130): expression must have
>           pointer-to-struct-or-union type
>                         value[attoff] = heap_getattr(tuple,
>                                         ^
>
> 97 errors detected in the compilation of "heaptuple.c".
> make[3]: *** [heaptuple.o] Error 2
> make[3]: Leaving directory
> `/usr1/src/postgresql-6.5.3/src/backend/access/common'
> make[2]: *** [submake] Error 2
> make[2]: Leaving directory `/usr1/src/postgresql-6.5.3/src/backend/access'
> make[1]: *** [access.dir] Error 2
> make[1]: Leaving directory `/usr1/src/postgresql-6.5.3/src/backend'
> make: *** [all] Error 2
>
> I'm going crazy!
> I have compiled PostgreSQL 6.5.1 with JAVA and JDBC on Linux on an i686
> without any problems but on our IRIX .....!
>
> Is your file template/irix5 the original one ?
>
> Greetings.
> --
> Richard NAGY
>
> ************

Re: [ADMIN] Still having problems on compiling PostgreSQL 6.5.3 on IRIX 6.5

От
Richard NAGY
Дата:
Sarah Officer wrote:
Hi Richard,

I've only recently installed postgres, so I'm no expert, and I'm not
an IRIX expert either.  This is my disclaimer.

I notice your hardware is a little different than mine.  The
compiler I'm using is:
        cc -version
        MIPSpro Compilers: Version 7.2.1

Our system is using all default stuff from postgres.  I didn't
fiddle with the MK_NO_LORDER flags that are mentioned in the FAQ;
the FAQ looks like it's out of date.

When you reconfigured, did you make sure that stuff REALLY got
reconfigured?  I don't know much about autoconf, but I believe it
will cache the answers it got the last time you configured and it
might not *really* do its work if you configure again.  At least, I
had that problem once years ago with tcl/tk.  I usually 'make
distclean' (I don't know if Postgres has that target) or remove the
config.cache file before reconfiguring.

I've never seen the "No such feature exists" message from the IRIX
compiler.  Were there any warnings prior to the the errors
indicating that include files weren't located?  I've sometimes had
syntax errors such as missiong brackets and semi-colons when an
include file got lost and the system used default prototypes.  Could
you try turning on C++?  Is your LD_LIBRARYN32_PATH okay?

Here's what our template/irix5 file says:
AROPT:crs
CFLAGS:
SHARED_LIB:
ALL:
SRCH_INC:
SRCH_LIB:
USE_LOCALE:no
DLSUFFIX:.so
YFLAGS:-d
YACC:

We have flex and bison installed (as opposed to lex & yacc).
bison --version
  GNU Bison version 1.25
flex --version
  flex version 2.5.4

I'm just floundering around here (which is how I usually operate, to
be honest :)).  I hope something here helps.

Sarah Officer
officers@aries.tucson.saic.com
 

Hello Sarah,

The versions of cc, flex and bison that are installed on my system are the same.

Actually, I'm looking for the LD_LIBRARYN32_PATH  and LD_LIBRARY_PATH. I have noticed that these environment variables were not positionned.

So, my question is : What is your "env" output ?

Thank you.
Greetings.

--
Richard NAGY