Thread: Results of compiling PostgreSQL 7.1.2 w/IRIX 6.5.11 and MipsC 7. 3.1.2m

Results of compiling PostgreSQL 7.1.2 w/IRIX 6.5.11 and MipsC 7. 3.1.2m

From
"Itzinger, Oskar"
Date:
Hi,

no idea if anyone would care to comment but here are the results I got upon
compiling a default installation (except --prefix) of PostgreSQL 7.1.2 on
my SGI INDIGO2, with IRIX 6.5.11 and MipsC 7.3.1.2m (-n32). Contents of this
posting is

   1. Configuration
   2. Build [1 error/a bunch of warnings]
   3. Regression Tests [2 failures]


1. Configuration
================

   ./configure  --prefix=/disk03/mephisto/source/postgresql-7.1.2

creating cache ./config.cache
checking host system type... mips-sgi-irix6.5
checking which template to use... irix5
checking whether to build with locale support... no
checking whether to build with recode support... no
checking whether to build with multibyte character support... no
checking whether to build with Unicode conversion support... no
checking for default port number... 5432
checking for default soft limit on number of connections... 32
checking for gcc... no
checking for cc... cc
checking whether the C compiler (cc  ) works... yes
checking whether the C compiler (cc  ) is a cross-compiler... no
checking whether we are using GNU C... no
checking whether cc accepts -g... yes
using CFLAGS=
checking whether the C compiler (cc  ) works... yes
checking whether the C compiler (cc  ) is a cross-compiler... no
checking for Cygwin environment... no
checking for mingw32 environment... no
checking for executable suffix... no
checking how to run the C preprocessor... cc -E
checking whether to build with Tcl... no
checking whether to build with Tk... no
checking whether to build Perl modules... no
checking whether to build Python modules... no
checking whether to build Java/JDBC tools... no
checking whether to build the ODBC driver... no
checking whether to build C++ modules... no
using CPPFLAGS=
using LDFLAGS=
checking for mawk... no
checking for gawk... no
checking for nawk... nawk
checking for flex... /usr/bin/flex
checking whether ln -s works... yes
checking for non-GNU ld... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... no
checking for ranlib... :
checking for lorder... no
checking for tar... /sbin/tar
checking for perl... perl
checking for bison... bison -y
checking for readline... no
checking for library containing using_history... no
checking for main in -lbsd... yes
checking for setproctitle in -lutil... no
checking for main in -lm... yes
checking for main in -ldl... yes
checking for main in -lsocket... yes
checking for main in -lnsl... yes
checking for main in -lipc... no
checking for main in -lIPC... no
checking for main in -llc... no
checking for main in -ldld... no
checking for main in -lld... no
checking for main in -lcompat... no
checking for main in -lBSD... no
checking for main in -lgen... yes
checking for main in -lPW... yes
checking for main in -lresolv... no
checking for main in -lunix... no
checking for library containing crypt... none required
checking for __inet_ntoa in -lbind... no
checking for inflate in -lz... yes
checking for crypt.h... yes
checking for dld.h... no
checking for endian.h... no
checking for fp_class.h... yes
checking for getopt.h... yes
checking for ieeefp.h... yes
checking for pwd.h... yes
checking for sys/ipc.h... yes
checking for sys/pstat.h... no
checking for sys/select.h... yes
checking for sys/sem.h... yes
checking for sys/socket.h... yes
checking for sys/shm.h... yes
checking for sys/types.h... yes
checking for sys/un.h... yes
checking for termios.h... yes
checking for kernel/OS.h... no
checking for kernel/image.h... no
checking for SupportDefs.h... no
checking for netinet/in.h... yes
checking for netinet/tcp.h... yes
checking whether string.h and strings.h may both be included... yes
checking for readline/readline.h... no
checking for readline.h... no
checking for readline/history.h... no
checking for history.h... no
checking for working const... yes
checking for inline... __inline
checking for preprocessor stringizing operator... yes
checking for signed types... yes
checking for volatile... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for tm_zone in struct tm... no
checking for tzname... yes
checking for union semun... yes
checking for struct sockaddr_un... yes
checking for int timezone... yes
checking types of arguments for accept()... int, void *, int *
checking whether gettimeofday takes only one argument... no
checking for fcvt... yes
checking for getopt_long... no
checking for memmove... yes
checking for pstat... no
checking for setproctitle... no
checking for setsid... yes
checking for sigprocmask... yes
checking for sysconf... yes
checking for waitpid... yes
checking for dlopen... yes
checking for fdatasync... yes
checking for PS_STRINGS... no
checking for snprintf... yes
checking for vsnprintf... yes
checking for isinf... no
checking for fpclass... yes
checking for getrusage... yes
checking for srandom... yes
checking for gethostname... yes
checking for random... yes
checking for inet_aton... yes
checking for strerror... yes
checking for strdup... yes
checking for strtol... yes
checking for strtoul... yes
checking for strcasecmp... yes
checking for cbrt... yes
checking for rint... yes
checking for rl_completion_append_character... no
checking for rl_completion_matches... no
checking for finite... yes
checking for sigsetjmp... yes
checking for optreset... no
checking test program... ok
checking whether long int is 64 bits... no
checking whether long long int is 64 bits... yes
checking whether snprintf handles 'long long int' as %lld... yes
checking for strtoll... yes
checking for strtoull... yes
checking for atexit... yes
checking size of unsigned long... 4
checking alignment of short... 2
checking alignment of int... 4
checking alignment of long... 4
checking alignment of long long int... 8
checking alignment of double... 8
checking for POSIX signal interface... yes
checking for onsgmls... no
checking for nsgmls... no
updating cache ./config.cache
creating ./config.status
creating GNUmakefile
creating src/GNUmakefile
creating src/Makefile.global
creating src/backend/port/Makefile
creating src/include/config.h
linking ./src/backend/port/dynloader/irix5.c to src/backend/port/dynloader.c
linking ./src/backend/port/dynloader/irix5.h to src/include/dynloader.h
linking ./src/include/port/irix5.h to src/include/os.h
linking ./src/makefiles/Makefile.irix5 to src/Makefile.port
linking ./src/backend/port/tas/dummy.s to src/backend/port/tas.s


2. Build
========

   gmake

src/Makefile.global:261: *** missing separator.  Stop.


Don't know whether this is due to my gmake (I only have v3.67). In any case,
I
commented out the offending line

   -include $(top_srcdir)/src/Makefile.custom

and tried again. The compilation then went thru with the following warnings:


ld32: WARNING 15 : Multiply defined:(Int_yylval) in bootparse.o and
bootscanner.o (2nd definition ignored).
cc-1183 cc: WARNING File = postmaster.c, Line = 1133
  An unsigned integer is being compared to zero.

      if (PG_PROTOCOL_MAJOR(port->proto) <
PG_PROTOCOL_MAJOR(PG_PROTOCOL_EARLIEST) ||
                                         ^

cc-1515 cc: WARNING File = like.c, Line = 139
  A value of type "char *" cannot be assigned to an entity of type
          "unsigned char *".

      s = NameStr(*str);
        ^

cc-1515 cc: WARNING File = like.c, Line = 141
  A value of type "char *" cannot be assigned to an entity of type
          "unsigned char *".

      p = VARDATA(pat);
        ^

cc-1515 cc: WARNING File = like.c, Line = 160
  A value of type "char *" cannot be assigned to an entity of type
          "unsigned char *".

      s = NameStr(*str);
        ^

cc-1515 cc: WARNING File = like.c, Line = 162
  A value of type "char *" cannot be assigned to an entity of type
          "unsigned char *".

      p = VARDATA(pat);
        ^

cc-1515 cc: WARNING File = like.c, Line = 181
  A value of type "char *" cannot be assigned to an entity of type
          "unsigned char *".

      s = VARDATA(str);
        ^

cc-1515 cc: WARNING File = like.c, Line = 183
  A value of type "char *" cannot be assigned to an entity of type
          "unsigned char *".

      p = VARDATA(pat);
        ^

cc-1515 cc: WARNING File = like.c, Line = 202
  A value of type "char *" cannot be assigned to an entity of type
          "unsigned char *".

      s = VARDATA(str);
        ^

cc-1515 cc: WARNING File = like.c, Line = 204
  A value of type "char *" cannot be assigned to an entity of type
          "unsigned char *".

      p = VARDATA(pat);
        ^

cc-1515 cc: WARNING File = like.c, Line = 227
  A value of type "char *" cannot be assigned to an entity of type
          "unsigned char *".

      s = NameStr(*str);
        ^

cc-1515 cc: WARNING File = like.c, Line = 229
  A value of type "char *" cannot be assigned to an entity of type
          "unsigned char *".

      p = VARDATA(pat);
        ^

cc-1515 cc: WARNING File = like.c, Line = 248
  A value of type "char *" cannot be assigned to an entity of type
          "unsigned char *".

      s = NameStr(*str);
        ^

cc-1515 cc: WARNING File = like.c, Line = 250
  A value of type "char *" cannot be assigned to an entity of type
          "unsigned char *".

      p = VARDATA(pat);
        ^

cc-1515 cc: WARNING File = like.c, Line = 269
  A value of type "char *" cannot be assigned to an entity of type
          "unsigned char *".

      s = VARDATA(str);
        ^

cc-1515 cc: WARNING File = like.c, Line = 271
  A value of type "char *" cannot be assigned to an entity of type
          "unsigned char *".

      p = VARDATA(pat);
        ^

cc-1515 cc: WARNING File = like.c, Line = 290
  A value of type "char *" cannot be assigned to an entity of type
          "unsigned char *".

      s = VARDATA(str);
        ^

cc-1515 cc: WARNING File = like.c, Line = 292
  A value of type "char *" cannot be assigned to an entity of type
          "unsigned char *".

      p = VARDATA(pat);
        ^

cc-1515 cc: WARNING File = like.c, Line = 317
  A value of type "char *" cannot be assigned to an entity of type
          "unsigned char *".

      p = VARDATA(pat);
        ^

cc-1515 cc: WARNING File = like.c, Line = 319
  A value of type "char *" cannot be assigned to an entity of type
          "unsigned char *".

      e = VARDATA(esc);
        ^

cc-1515 cc: WARNING File = like.c, Line = 327
  A value of type "char *" cannot be assigned to an entity of type
          "unsigned char *".

      r = VARDATA(result);
        ^

cc-1515 cc: WARNING File = like.c, Line = 352
  A value of type "char *" cannot be assigned to an entity of type
          "unsigned char *".

          e = VARDATA(esc);
            ^

cc-1515 cc: WARNING File = dfmgr.c, Line = 127
  A value of type "void *" cannot be assigned to an entity of type
"PGFunction".

      retval = pg_dlsym(file_scanner->handle, funcname);
             ^

ld32: WARNING 47 : This module (executor/SUBSYS.o .text) contains branch
instruction(s)
    that might degrade performance on an older version (rev. 2.2) R4000
processor.
cc-1183 cc: WARNING File = fe-misc.c, Line = 202
  An unsigned integer is being compared to zero.

      if (len < 0 || len > conn->inEnd - conn->inCursor)
              ^

ld32: WARNING 84 : /usr/lib32/libnsl.so is not used for resolving any
symbol.
ld32: WARNING 84 : /usr/lib32/libsocket.so is not used for resolving any
symbol.
cc-1515 cc: WARNING File = pg_backup_custom.c, Line = 575
  A value of type "char *" cannot be assigned to an entity of type "Bytef
*".

          zp->next_in = in;
                      ^

cc-1515 cc: WARNING File = pg_backup_custom.c, Line = 585
  A value of type "char *" cannot be assigned to an entity of type "Bytef
*".

                  zp->next_out = out;
                               ^

cc-1515 cc: WARNING File = pg_backup_custom.c, Line = 617
  A value of type "char *" cannot be assigned to an entity of type "Bytef
*".

              zp->next_out = out;
                           ^

cc-1515 cc: WARNING File = pg_backup_custom.c, Line = 916
  A value of type "char *" cannot be assigned to an entity of type "Bytef
*".

      zp->next_out = ctx->zlibOut;
                   ^

cc-1515 cc: WARNING File = pg_backup_custom.c, Line = 964
  A value of type "char *" cannot be assigned to an entity of type "Bytef
*".

              zp->next_out = out;
                           ^

cc-1116 cc: WARNING File = command.c, Line = 1085
  Non-void function "scan_option" (declared at line 806) should return a
value.

  }
  ^

cc-1515 cc: WARNING File = command.c, Line = 1158
  A value of type "char *" cannot be assigned to an entity of type
          "const unsigned char *".

                          p = end - 1;
                            ^

All of PostgreSQL successfully made. Ready to install.


3. Regression Tests
===================

   gmake check

Nothing new here: only the <geometry>/<join> tests failed in the same way as

already reported by other IRIX devotees.


/oskar




Re: Results of compiling PostgreSQL 7.1.2 w/IRIX 6.5.11 and MipsC 7. 3.1.2m

From
Peter Eisentraut
Date:
Itzinger, Oskar writes:

>    gmake
>
> src/Makefile.global:261: *** missing separator.  Stop.

> Don't know whether this is due to my gmake (I only have v3.67).

Yes.

> ld32: WARNING 15 : Multiply defined:(Int_yylval) in bootparse.o and
> bootscanner.o (2nd definition ignored).

I don't see Int_yylval used in bootscanner.c.

> cc-1183 cc: WARNING File = postmaster.c, Line = 1133
>   An unsigned integer is being compared to zero.
>
>       if (PG_PROTOCOL_MAJOR(port->proto) < PG_PROTOCOL_MAJOR(PG_PROTOCOL_EARLIEST) ||
>                                          ^

No harm, no foul.

> cc-1515 cc: WARNING File = like.c, Line = 139
>   A value of type "char *" cannot be assigned to an entity of type
>           "unsigned char *".
>
>       s = NameStr(*str);
>         ^

Sure it can.

> cc-1515 cc: WARNING File = dfmgr.c, Line = 127
>   A value of type "void *" cannot be assigned to an entity of type
> "PGFunction".
>
>       retval = pg_dlsym(file_scanner->handle, funcname);
>              ^

Time to buy a new compiler.

> cc-1116 cc: WARNING File = command.c, Line = 1085
>   Non-void function "scan_option" (declared at line 806) should return a
> value.
>
>   }
>   ^

It does.  See above.

--
Peter Eisentraut   peter_e@gmx.net   http://funkturm.homeip.net/~peter