Problem compiling PostgreSQL 7.2 on IRIX 6.5.15f

Started by Nonamealmost 24 years ago3 messages
#1Noname
reina@nsi.edu

I've been able to compile previous versions of PostgreSQL on my SGI
machines, but am having trouble this time. I have an SGI O2 with IRIX
6.5.15f, gmake 3.79.1, and MIPSPro C 7.3.1.3 compiler. I can get
through the 'configure' step fine. I've copied the Makefile.irix5 up
to the src directory. I've also added '-O2' flags to the CFLAGS and
LDFLAGS in template/irix5.

When I run 'gmake all', the compilation errors on:

cc-1521 cc: WARNING File = /usr/include/setjmp.h, Line = 26
A nonstandard preprocessing directive is used.

#ident "$Revision: 1.36 $"
^

cc-1521 cc: WARNING File = /usr/include/sys/ipc.h, Line = 17
A nonstandard preprocessing directive is used.

#ident "$Revision: 3.30 $"
^

cc-1070 cc: ERROR File = xact.c, Line = 587
The indicated type is incomplete.

struct timeval delay;
^

1 error detected in the compilation of "xact.c".
gmake[4]: *** [xact.o] Error 2
gmake[4]: Leaving directory
`/usr/src/postgresql-7.2/src/backend/access/transam'
gmake[3]: *** [transam-recursive] Error 2
gmake[3]: Leaving directory
`/usr/src/postgresql-7.2/src/backend/access'
gmake[2]: *** [access-recursive] Error 2
gmake[2]: Leaving directory `/usr/src/postgresql-7.2/src/backend'
gmake[1]: *** [all] Error 2
gmake[1]: Leaving directory `/usr/src/postgresql-7.2/src'
gmake: *** [all] Error 2

Can anyone offer a suggestion on what I'm doing wrong?

Thanks.
-Tony

#2Luis Alberto Amigo Navarro
lamigo@atc.unican.es
In reply to: Noname (#1)
Re: Problem compiling PostgreSQL 7.2 on IRIX 6.5.15f

cc-1070 cc: ERROR File = xact.c, Line = 587
The indicated type is incomplete.

struct timeval delay;

struct timeval must be defined on your "include path"/sys/time.h, what have
you got?
regards

#3Noname
reina@nsi.edu
In reply to: Luis Alberto Amigo Navarro (#2)
Re: Problem compiling PostgreSQL 7.2 on IRIX 6.5.15f

lamigo@atc.unican.es ("Luis Alberto Amigo Navarro") wrote in message news:<005901c1d17a$4d7b0e10$cab990c1@atc.unican.es>...

cc-1070 cc: ERROR File = xact.c, Line = 587
The indicated type is incomplete.

struct timeval delay;

struct timeval must be defined on your "include path"/sys/time.h, what have
you got?
regards

Ok. timeval is defined in /sys/time.h.

#if _XOPEN4UX || defined(_BSD_TYPES) || defined(_BSD_COMPAT)
/*
* Structure returned by gettimeofday(2) system call,
* and used in other calls.
* Note this is also defined in sys/resource.h
*/
#ifndef _TIMEVAL_T
#define _TIMEVAL_T
struct timeval {
#if _MIPS_SZLONG == 64
__int32_t :32;
#endif
time_t tv_sec; /* seconds */
long tv_usec; /* and microseconds */
};

It looks like it won't be used unless XOPEN4UX, BSD_TYPES, or
BSD_COMPAT is defined.

Is there a way to force the build to define one of these flags. Which
one would be best, what's the syntax and what file should it be added
into in the Postgres source?

Thanks.
-Tony