Compilation problems on IRIX 6.5.5 - Mailing list pgsql-hackers

From Devrim GUNDUZ
Subject Compilation problems on IRIX 6.5.5
Date
Msg-id Pine.LNX.4.44.0310071121230.29036-100000@emo.org.tr
Whole thread Raw
Responses Re: Compilation problems on IRIX 6.5.5
List pgsql-hackers
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


Hi,

I'm trying to compile PostgreSQL 7.4 beta4 on Irix 6.5.5, o200, r10000 
(IP27) with MIPSPro compilers version 6.5.

I've read FAQ_IRIX and saw these lines:

"PostgreSQL 7.2 has been run on MIPS r8000, r10000(both ip25 and ip27)
and r12000(ip35) processors, running IRIX 6.5.5m, 6.5.12 and 6.5.13 with
MIPSPro compilers version 7.30, 7.3.1.2m and 7.3."

Everything seems to be ok, except MIPS version.

Anyway, here is what I did:
bash-2.05b$ ./configure --without-readline --with-CC="/usr/freeware/bin/gcc -O2" --libdir=/usr/people/emr/pgsql/pgsql

configure scripts runs without any errors, except the warning for bison 
version. I've searched freeware.sgi.com but could not find a newer version 
of bison. I'm now using bison v1.25 .

Now it's time for gmake and here are the errors:
===============================================
bash-2.05b$ /usr/freeware/bin/gmake
/usr/freeware/bin/gmake -C doc all
gmake[1]: Entering directory 
`/usr/people/emr/pgsql/postgresql-7.4beta4/doc'
gmake[1]: Nothing to be done for `all'.
gmake[1]: Leaving directory 
`/usr/people/emr/pgsql/postgresql-7.4beta4/doc'
/usr/freeware/bin/gmake -C src all
gmake[1]: Entering directory 
`/usr/people/emr/pgsql/postgresql-7.4beta4/src'
/usr/freeware/bin/gmake -C port all
gmake[2]: Entering directory 
`/usr/people/emr/pgsql/postgresql-7.4beta4/src/port'
/usr/freeware/bin/gcc -O2  -Wall -Wmissing-prototypes 
- -Wmissing-declarations -I../../src/include  -U_NO_XOPEN4  -c -o isinf.o 
isinf.c
In file included from ../../src/include/c.h:60,                from isinf.c:3:
/usr/freeware/lib/gcc-lib/mips-sgi-irix6.5/3.2.1/include/stdio.h:18:33: 
internal/stdio_core.h: No such file or directory
In file included from ../../src/include/c.h:60,                from isinf.c:3:
/usr/freeware/lib/gcc-lib/mips-sgi-irix6.5/3.2.1/include/stdio.h:21: parse 
error before "__SGI_LIBC_USING_FROM_STD"
/usr/freeware/lib/gcc-lib/mips-sgi-irix6.5/3.2.1/include/stdio.h:22: parse 
error before "__SGI_LIBC_USING_FROM_STD"
/usr/freeware/lib/gcc-lib/mips-sgi-irix6.5/3.2.1/include/stdio.h:23: parse 
error before "__SGI_LIBC_USING_FROM_STD"
/usr/freeware/lib/gcc-lib/mips-sgi-irix6.5/3.2.1/include/stdio.h:24: parse 
error before "__SGI_LIBC_USING_FROM_STD"
/usr/freeware/lib/gcc-lib/mips-sgi-irix6.5/3.2.1/include/stdio.h:25: parse 
error before "__SGI_LIBC_USING_FROM_STD"
/usr/freeware/lib/gcc-lib/mips-sgi-irix6.5/3.2.1/include/stdio.h:26: parse 
error before "__SGI_LIBC_USING_FROM_STD"
/usr/freeware/lib/gcc-lib/mips-sgi-irix6.5/3.2.1/include/stdio.h:27: parse 
error before "__SGI_LIBC_USING_FROM_STD"
/usr/freeware/lib/gcc-lib/mips-sgi-irix6.5/3.2.1/include/stdio.h:28: parse 
error before "__SGI_LIBC_USING_FROM_STD"
/usr/freeware/lib/gcc-lib/mips-sgi-irix6.5/3.2.1/include/stdio.h:29: parse 
error before "__SGI_LIBC_USING_FROM_STD"
/usr/freeware/lib/gcc-lib/mips-sgi-irix6.5/3.2.1/include/stdio.h:30: parse 
error before "__SGI_LIBC_USING_FROM_STD"
/usr/freeware/lib/gcc-lib/mips-sgi-irix6.5/3.2.1/include/stdio.h:31: parse 
error before "__SGI_LIBC_USING_FROM_STD"
/usr/freeware/lib/gcc-lib/mips-sgi-irix6.5/3.2.1/include/stdio.h:32: parse 
error before "__SGI_LIBC_USING_FROM_STD"
/usr/freeware/lib/gcc-lib/mips-sgi-irix6.5/3.2.1/include/stdio.h:33: parse 
error before "__SGI_LIBC_USING_FROM_STD"
/usr/freeware/lib/gcc-lib/mips-sgi-irix6.5/3.2.1/include/stdio.h:34: parse 
error before "__SGI_LIBC_USING_FROM_STD"
/usr/freeware/lib/gcc-lib/mips-sgi-irix6.5/3.2.1/include/stdio.h:35: parse 
error before "__SGI_LIBC_USING_FROM_STD"
/usr/freeware/lib/gcc-lib/mips-sgi-irix6.5/3.2.1/include/stdio.h:36: parse 
error before "__SGI_LIBC_USING_FROM_STD"
/usr/freeware/lib/gcc-lib/mips-sgi-irix6.5/3.2.1/include/stdio.h:37: parse 
error before "__SGI_LIBC_USING_FROM_STD"
/usr/freeware/lib/gcc-lib/mips-sgi-irix6.5/3.2.1/include/stdio.h:38: parse 
error before "__SGI_LIBC_USING_FROM_STD"
/usr/freeware/lib/gcc-lib/mips-sgi-irix6.5/3.2.1/include/stdio.h:39: parse 
error before "__SGI_LIBC_USING_FROM_STD"
/usr/freeware/lib/gcc-lib/mips-sgi-irix6.5/3.2.1/include/stdio.h:40: parse 
error before "__SGI_LIBC_USING_FROM_STD"
/usr/freeware/lib/gcc-lib/mips-sgi-irix6.5/3.2.1/include/stdio.h:41: parse 
error before "__SGI_LIBC_USING_FROM_STD"
/usr/freeware/lib/gcc-lib/mips-sgi-irix6.5/3.2.1/include/stdio.h:42: parse 
error before "__SGI_LIBC_USING_FROM_STD"
/usr/freeware/lib/gcc-lib/mips-sgi-irix6.5/3.2.1/include/stdio.h:43: parse 
error before "__SGI_LIBC_USING_FROM_STD"
/usr/freeware/lib/gcc-lib/mips-sgi-irix6.5/3.2.1/include/stdio.h:44: parse 
error before "__SGI_LIBC_USING_FROM_STD"
/usr/freeware/lib/gcc-lib/mips-sgi-irix6.5/3.2.1/include/stdio.h:45: parse 
error before "__SGI_LIBC_USING_FROM_STD"
/usr/freeware/lib/gcc-lib/mips-sgi-irix6.5/3.2.1/include/stdio.h:46: parse 
error before "__SGI_LIBC_USING_FROM_STD"
/usr/freeware/lib/gcc-lib/mips-sgi-irix6.5/3.2.1/include/stdio.h:47: parse 
error before "__SGI_LIBC_USING_FROM_STD"
/usr/freeware/lib/gcc-lib/mips-sgi-irix6.5/3.2.1/include/stdio.h:48: parse 
error before "__SGI_LIBC_USING_FROM_STD"
/usr/freeware/lib/gcc-lib/mips-sgi-irix6.5/3.2.1/include/stdio.h:49: parse 
error before "__SGI_LIBC_USING_FROM_STD"
/usr/freeware/lib/gcc-lib/mips-sgi-irix6.5/3.2.1/include/stdio.h:50: parse 
error before "__SGI_LIBC_USING_FROM_STD"
/usr/freeware/lib/gcc-lib/mips-sgi-irix6.5/3.2.1/include/stdio.h:51: parse 
error before "__SGI_LIBC_USING_FROM_STD"
/usr/freeware/lib/gcc-lib/mips-sgi-irix6.5/3.2.1/include/stdio.h:52: parse 
error before "__SGI_LIBC_USING_FROM_STD"
/usr/freeware/lib/gcc-lib/mips-sgi-irix6.5/3.2.1/include/stdio.h:53: parse 
error before "__SGI_LIBC_USING_FROM_STD"
/usr/freeware/lib/gcc-lib/mips-sgi-irix6.5/3.2.1/include/stdio.h:54: parse 
error before "__SGI_LIBC_USING_FROM_STD"
/usr/freeware/lib/gcc-lib/mips-sgi-irix6.5/3.2.1/include/stdio.h:55: parse 
error before "__SGI_LIBC_USING_FROM_STD"
/usr/freeware/lib/gcc-lib/mips-sgi-irix6.5/3.2.1/include/stdio.h:56: parse 
error before "__SGI_LIBC_USING_FROM_STD"
/usr/freeware/lib/gcc-lib/mips-sgi-irix6.5/3.2.1/include/stdio.h:57: parse 
error before "__SGI_LIBC_USING_FROM_STD"
/usr/freeware/lib/gcc-lib/mips-sgi-irix6.5/3.2.1/include/stdio.h:58: parse 
error before "__SGI_LIBC_USING_FROM_STD"
/usr/freeware/lib/gcc-lib/mips-sgi-irix6.5/3.2.1/include/stdio.h:59: parse 
error before "__SGI_LIBC_USING_FROM_STD"
/usr/freeware/lib/gcc-lib/mips-sgi-irix6.5/3.2.1/include/stdio.h:60: parse 
error before "__SGI_LIBC_USING_FROM_STD"
/usr/freeware/lib/gcc-lib/mips-sgi-irix6.5/3.2.1/include/stdio.h:64: parse 
error before "__SGI_LIBC_USING_FROM_STD"
/usr/freeware/lib/gcc-lib/mips-sgi-irix6.5/3.2.1/include/stdio.h:68: parse 
error before "__SGI_LIBC_USING_FROM_STD"
In file included from /usr/include/stdlib.h:35,                from ../../src/include/c.h:61,                from
isinf.c:3:
/usr/include/sgidefs.h: In function `__SGI_LIBC_USING_FROM_STD':
/usr/include/sgidefs.h:136: storage class specified for parameter 
`__int32_t'
/usr/include/sgidefs.h:137: storage class specified for parameter 
`__uint32_t'
/usr/include/sgidefs.h:183: storage class specified for parameter 
`__int64_t'
/usr/include/sgidefs.h:184: storage class specified for parameter 
`__uint64_t'
/usr/include/sgidefs.h:219: storage class specified for parameter 
`__int32_t'
/usr/include/sgidefs.h:219: redeclaration of `__int32_t'
/usr/include/sgidefs.h:136: `__int32_t' previously declared here
/usr/include/sgidefs.h:219: parse error before "__psint_t"
/usr/include/sgidefs.h:219: declaration for parameter `__int32_t' but no 
such parameter
/usr/include/sgidefs.h:184: declaration for parameter `__uint64_t' but no 
such parameter
/usr/include/sgidefs.h:183: declaration for parameter `__int64_t' but no 
such parameter
/usr/include/sgidefs.h:137: declaration for parameter `__uint32_t' but no 
such parameter
/usr/include/sgidefs.h:136: declaration for parameter `__int32_t' but no 
such parameter
In file included from ../../src/include/c.h:61,                from isinf.c:3:
/usr/include/stdlib.h: At top level:
/usr/include/stdlib.h:190: parse error before "div"
In file included from ../../src/include/c.h:61,                from isinf.c:3:
/usr/include/stdlib.h:292: parse error before "__int64_t"
/usr/include/stdlib.h:296: parse error before "atoll"
/usr/include/stdlib.h:297: parse error before "strtoll"
/usr/include/stdlib.h:298: parse error before "strtoull"
/usr/include/stdlib.h:299: parse error before "llabs"
/usr/include/stdlib.h:304: parse error before "lldiv"
In file included from ../../src/include/c.h:68,                from isinf.c:3:
/usr/freeware/lib/gcc-lib/mips-sgi-irix6.5/3.2.1/include/sys/types.h:40:32: 
internal/sgimacros.h: No such file or directory
In file included from ../../src/include/c.h:68,                from isinf.c:3:
/usr/freeware/lib/gcc-lib/mips-sgi-irix6.5/3.2.1/include/sys/types.h:74: 
parse error before "daddr_t"
/usr/freeware/lib/gcc-lib/mips-sgi-irix6.5/3.2.1/include/sys/types.h:79: 
parse error before 
"pfn_t"/usr/freeware/lib/gcc-lib/mips-sgi-irix6.5/3.2.1/include/sys/types.h:82: 
parse error before "micro_t"
/usr/freeware/lib/gcc-lib/mips-sgi-irix6.5/3.2.1/include/sys/types.h:87: 
parse error before "pgcnt_t"
/usr/freeware/lib/gcc-lib/mips-sgi-irix6.5/3.2.1/include/sys/types.h:139: 
parse error before "o_ino_t"
/usr/freeware/lib/gcc-lib/mips-sgi-irix6.5/3.2.1/include/sys/types.h:163: 
parse error before "ino_t"
/usr/freeware/lib/gcc-lib/mips-sgi-irix6.5/3.2.1/include/sys/types.h:167: 
parse error before "ino64_t"
/usr/freeware/lib/gcc-lib/mips-sgi-irix6.5/3.2.1/include/sys/types.h:176: 
parse error before "off_t"
/usr/freeware/lib/gcc-lib/mips-sgi-irix6.5/3.2.1/include/sys/types.h:184: 
parse error before "off64_t"
/usr/freeware/lib/gcc-lib/mips-sgi-irix6.5/3.2.1/include/sys/types.h:187: 
parse error before "__scoff_t"
/usr/freeware/lib/gcc-lib/mips-sgi-irix6.5/3.2.1/include/sys/types.h:189: 
parse error before "scoff_t"
/usr/freeware/lib/gcc-lib/mips-sgi-irix6.5/3.2.1/include/sys/types.h:194: 
parse error before "blkcnt64_t"
/usr/freeware/lib/gcc-lib/mips-sgi-irix6.5/3.2.1/include/sys/types.h:195: 
parse error before "fsblkcnt64_t"
/usr/freeware/lib/gcc-lib/mips-sgi-irix6.5/3.2.1/include/sys/types.h:196: 
parse error before "fsfilcnt64_t"
/usr/freeware/lib/gcc-lib/mips-sgi-irix6.5/3.2.1/include/sys/types.h:200: 
parse error before "blkcnt_t"
/usr/freeware/lib/gcc-lib/mips-sgi-irix6.5/3.2.1/include/sys/types.h:201: 
parse error before "fsblkcnt_t"
/usr/freeware/lib/gcc-lib/mips-sgi-irix6.5/3.2.1/include/sys/types.h:202: 
parse error before "fsfilcnt_t"
/usr/freeware/lib/gcc-lib/mips-sgi-irix6.5/3.2.1/include/sys/types.h:226: 
parse error before "accum_t"
/usr/freeware/lib/gcc-lib/mips-sgi-irix6.5/3.2.1/include/sys/types.h:227: 
parse error before "prid_t"
/usr/freeware/lib/gcc-lib/mips-sgi-irix6.5/3.2.1/include/sys/types.h:228: 
parse error before "ash_t"
/usr/freeware/lib/gcc-lib/mips-sgi-irix6.5/3.2.1/include/sys/types.h:231: 
parse error before "jid_t"
/usr/freeware/lib/gcc-lib/mips-sgi-irix6.5/3.2.1/include/sys/types.h:233: 
parse error before "ncpus_t"
/usr/freeware/lib/gcc-lib/mips-sgi-irix6.5/3.2.1/include/sys/types.h:234: 
parse error before "id_type_t"
/usr/freeware/lib/gcc-lib/mips-sgi-irix6.5/3.2.1/include/sys/types.h:256: 
parse error before "__SGI_LIBC_END_NAMESPACE_STD"
/usr/freeware/lib/gcc-lib/mips-sgi-irix6.5/3.2.1/include/sys/types.h:273: 
syntax error before "typedef"
/usr/freeware/lib/gcc-lib/mips-sgi-irix6.5/3.2.1/include/sys/types.h:316: 
syntax error before "typedef"
/usr/freeware/lib/gcc-lib/mips-sgi-irix6.5/3.2.1/include/sys/types.h:336: 
parse error before "bitnum_t"
/usr/freeware/lib/gcc-lib/mips-sgi-irix6.5/3.2.1/include/sys/types.h:337: 
parse error before "bitlen_t"
/usr/freeware/lib/gcc-lib/mips-sgi-irix6.5/3.2.1/include/sys/types.h:343: 
parse error before "inst_t"
/usr/freeware/lib/gcc-lib/mips-sgi-irix6.5/3.2.1/include/sys/types.h:352: 
parse error before "machreg_t"
/usr/freeware/lib/gcc-lib/mips-sgi-irix6.5/3.2.1/include/sys/types.h:362: 
parse error before "fpreg_t"
/usr/freeware/lib/gcc-lib/mips-sgi-irix6.5/3.2.1/include/sys/types.h:379: 
parse error before "int64_t"
/usr/freeware/lib/gcc-lib/mips-sgi-irix6.5/3.2.1/include/sys/types.h:380: 
parse error before "uint64_t"
/usr/freeware/lib/gcc-lib/mips-sgi-irix6.5/3.2.1/include/sys/types.h:381: 
parse error before "intmax_t"
/usr/freeware/lib/gcc-lib/mips-sgi-irix6.5/3.2.1/include/sys/types.h:382: 
parse error before "uintmax_t"
/usr/freeware/lib/gcc-lib/mips-sgi-irix6.5/3.2.1/include/sys/types.h:393: 
parse error before "u_int32_t"
In file included from ../../src/include/c.h:68,                from isinf.c:3:
/usr/freeware/lib/gcc-lib/mips-sgi-irix6.5/3.2.1/include/sys/types.h:435: 
parse error before "k_sigset_t"
/usr/freeware/lib/gcc-lib/mips-sgi-irix6.5/3.2.1/include/sys/types.h:561: 
parse error before "__SGI_LIBC_USING_FROM_STD"
/usr/freeware/lib/gcc-lib/mips-sgi-irix6.5/3.2.1/include/sys/types.h:562: 
parse error before "__SGI_LIBC_USING_FROM_STD"
In file included from ../../src/include/c.h:70,                from isinf.c:3:
/usr/include/errno.h:41: redefinition of `__SGI_LIBC_USING_FROM_STD'
/usr/include/sgidefs.h:219: `__SGI_LIBC_USING_FROM_STD' previously defined 
here
/usr/include/errno.h: In function `__SGI_LIBC_USING_FROM_STD':
/usr/include/errno.h:41: storage class specified for parameter 
`sys_errlist'
/usr/include/errno.h:42: storage class specified for parameter `sys_nerr'
/usr/include/errno.h:44: storage class specified for parameter `oserror'
/usr/include/errno.h:45: storage class specified for parameter 
`setoserror'
/usr/include/errno.h:46: storage class specified for parameter `goserror'
/usr/include/errno.h:60: storage class specified for parameter `errno'
In file included from /usr/include/fcntl.h:33,                from ../../src/include/c.h:71,                from
isinf.c:3:
/usr/include/sys/fcntl.h:148: parse error before "off_t"
/usr/include/errno.h:41: parm types given both in parmlist and separately
/usr/freeware/lib/gcc-lib/mips-sgi-irix6.5/3.2.1/include/sys/types.h:562: 
parameter name omitted
/usr/include/sys/fcntl.h:162: parse error before "l_start"
/usr/include/sys/fcntl.h: At top level:
/usr/include/sys/fcntl.h:206: parse error before "__uint32_t"
/usr/include/sys/fcntl.h:208: parse error before "biosz_write"
/usr/include/sys/fcntl.h:209: parse error before "dfl_biosz_read"
/usr/include/sys/fcntl.h:210: parse error before "dfl_biosz_write"
/usr/include/sys/fcntl.h:228: parse error before "__uint32_t"
/usr/include/sys/fcntl.h:230: parse error before "fsx_nextents"
/usr/include/sys/fcntl.h:232: parse error before '}' token
/usr/include/sys/fcntl.h:242: parse error before "__int64_t"
/usr/include/sys/fcntl.h:244: parse error before "bmv_length"
/usr/include/sys/fcntl.h:245: parse error before "bmv_count"
/usr/include/sys/fcntl.h:246: parse error before "bmv_entries"
/usr/include/sys/fcntl.h:258: parse error before "__int64_t"
/usr/include/sys/fcntl.h:260: parse error before "bmv_length"
/usr/include/sys/fcntl.h:261: parse error before "bmv_count"
/usr/include/sys/fcntl.h:262: parse error before "bmv_entries"
/usr/include/sys/fcntl.h:263: parse error before "bmv_iflags"
/usr/include/sys/fcntl.h:264: parse error before "bmv_oflags"
/usr/include/sys/fcntl.h:265: parse error before "bmv_unused1"
/usr/include/sys/fcntl.h:266: parse error before "bmv_unused2"
/usr/include/sys/fcntl.h:305: parse error before "__int32_t"
/usr/include/sys/fcntl.h:308: parse error before '}' token
In file included from ../../src/include/port.h:16,                from ../../src/include/c.h:795,                from
isinf.c:3:
/usr/include/pwd.h:85: parse error before '*' token
/usr/include/pwd.h:86: parse error before "FILE"
/usr/include/pwd.h:89: parse error before "FILE"
/usr/include/pwd.h:92: parse error before '*' token
In file included from /usr/include/netdb.h:48,                from ../../src/include/port.h:17,                from
../../src/include/c.h:795,               from isinf.c:3:
 
/usr/include/netinet/in.h:43: parse error before "in_addr_t"
/usr/include/netinet/in.h:173: parse error before "in_addr_t"
/usr/include/netinet/in.h:271: field `sin_addr' has incomplete type
/usr/include/netinet/in.h:280: field `sin_addr' has incomplete type
/usr/include/netinet/in.h:536: field `ip_dst' has incomplete type
/usr/include/netinet/in.h:598: field `imr_multiaddr' has incomplete type
/usr/include/netinet/in.h:599: field `imr_interface' has incomplete type
In file included from ../../src/include/port.h:17,                from ../../src/include/c.h:795,                from
isinf.c:3:
/usr/include/netdb.h:79: parse error before "in_addr_t"
/usr/include/netdb.h:125: parse error before "int"
/usr/include/netdb.h:192: parse error before '*' token
/usr/include/netdb.h:193: parse error before '*' token
/usr/include/netdb.h:199: parse error before '*' token
/usr/include/netdb.h:200: parse error before '*' token
/usr/include/netdb.h:206: parse error before '*' token
/usr/include/netdb.h:207: parse error before '*' token
/usr/include/netdb.h:210: parse error before "int"
/usr/include/netdb.h:213: parse error before '*' token
/usr/include/netdb.h:214: parse error before '*' token
/usr/include/netdb.h:220: parse error before '*' token
/usr/include/netdb.h:221: parse error before '*' token
gmake[2]: *** [isinf.o] Error 1
gmake[2]: Leaving directory 
`/usr/people/emr/pgsql/postgresql-7.4beta4/src/port'
gmake[1]: *** [all] Error 2
gmake[1]: Leaving directory 
`/usr/people/emr/pgsql/postgresql-7.4beta4/src'
==============================0

Does anyone have a solution for this? I'm not familiar with IRIX (Long 
Live Linux!), so I'm really stuck there.

Regards,
- -- 
Devrim GUNDUZ
devrim@gunduz.org                devrim.gunduz@linux.org.tr         http://www.tdmsoft.com
http://www.gunduz.org

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE/gnrntl86P3SPfQ4RArQKAKDoyWBiWAw4KYOKude4mGbchqexyACfY8qV
HBOFuCv3T2VzaPVNylwISDY=
=uFR/
-----END PGP SIGNATURE-----



pgsql-hackers by date:

Previous
From: Hannu Krosing
Date:
Subject: Re: Architecture Roadmap?
Next
From: Peter Eisentraut
Date:
Subject: Re: Compilation problems on IRIX 6.5.5