Thread: Problem with compile pgsql on Irix 5.3

Problem with compile pgsql on Irix 5.3

From
"Marek Bobrowski"
Date:
Hi,
I want instal on my server pgsql, i have installed gcc version 2.7.2.3.f.1, and
for compile it i installed now GNU Make version 3.73,
First I call ./configure (configure.log is attached to this mail), next i call
gmake and get error message (error messages is attached as gmake.err). I have
no more experience in compile more complicated packages and not know what is
bad, maybe you can help me. I very need pgsql on this computer.
best regards
Marek

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

configure:603: checking host system type
configure:697: checking setting template to
configure:831: checking whether to support locale
configure:846: checking whether to support cyrillic recode
configure:862: checking whether to support multibyte
configure:901: checking setting DEF_PGPORT
configure:919: checking setting DEF_MAXBACKENDS
configure:937: checking setting USE_TCL
configure:989: checking setting USE_PERL
configure:1006: checking setting USE_ODBC
configure:1024: checking setproctitle
configure:1073: checking setting ASSERT CHECKING
configure:1104: checking for gcc
configure:1217: checking whether the C compiler (gcc  ) works
configure:1233: gcc -o conftest    conftest.c  1>&5
configure:1259: checking whether the C compiler (gcc  ) is a cross-compiler
configure:1264: checking whether we are using GNU C
configure:1292: checking whether gcc accepts -g
configure:1324: checking how to run the C preprocessor
configure:1405: checking whether gcc needs -traditional
configure:1466: checking setting debug compiler flag
configure:1563: checking for c++
configure:1595: checking whether the C++ compiler (c++   ) works
configure:1611: c++ -o conftest      conftest.C  1>&5
configure:1637: checking whether the C++ compiler (c++   ) is a cross-compiler
configure:1642: checking whether we are using GNU C++
configure:1670: checking whether c++ accepts -g
configure:1710: checking for include <string> in C++
configure:1722: c++ -c -O2   conftest.C 1>&5
configure:1771: checking for namespace std in C++
configure:1786: c++ -c -O2   conftest.C 1>&5
configure:1779: warning: namespaces are mostly broken in this version of g++
configure:1822: checking for a BSD compatible install
configure:1910: checking for flex
configure:1944: checking for yywrap in -lfl
configure:2000: checking whether ln -s works
configure:2021: checking whether make sets ${MAKE}
configure:2050: checking for ranlib
configure:2080: checking for find
configure:2115: checking for tar
configure:2150: checking for split
configure:2185: checking for etags
configure:2220: checking for xargs
configure:2257: checking for gzcat
configure:2298: checking for perl
configure:2336: checking for bison
configure:2417: checking for main in -lsfio
configure:2461: checking for main in -lncurses
configure:2461: checking for main in -lcurses
configure:2498: checking for main in -ltermcap
configure:2541: checking for main in -lreadline
configure:2584: checking for using_history in -lreadline
configure:2625: checking for main in -lhistory
configure:2673: checking for main in -lbsd
configure:2717: checking for main in -lutil
configure:2760: checking for main in -lm
configure:2803: checking for main in -ldl
configure:2846: checking for main in -lsocket
configure:2889: checking for main in -lnsl
configure:2932: checking for main in -lipc
configure:2975: checking for main in -lIPC
configure:3018: checking for main in -llc
configure:3061: checking for main in -ldld
configure:3104: checking for main in -lln
configure:3147: checking for main in -lld
configure:3190: checking for main in -lcompat
configure:3233: checking for main in -lBSD
configure:3276: checking for main in -lcrypt
configure:3319: checking for main in -lgen
configure:3362: checking for main in -lPW
configure:3406: checking for ANSI C header files
configure:3510: checking for sys/wait.h that is POSIX.1 compatible
configure:3555: checking for arpa/inet.h
configure:3595: checking for crypt.h
configure:3635: checking for dld.h
configure:3675: checking for endian.h
configure:3715: checking for float.h
configure:3755: checking for fp_class.h
configure:3795: checking for getopt.h
configure:3835: checking for history.h
configure:3875: checking for ieeefp.h
configure:3915: checking for limits.h
configure:3955: checking for netdb.h
configure:3995: checking for netinet/in.h
configure:4035: checking for readline.h
configure:4075: checking for readline/history.h
configure:4115: checking for readline/readline.h
configure:4155: checking for sys/select.h
configure:4195: checking for termios.h
configure:4235: checking for unistd.h
configure:4275: checking for values.h
configure:4315: checking for sys/param.h
configure:4315: checking for pwd.h
configure:4353: checking for working const
configure:4428: checking for inline
configure:4470: checking for preprocessor stringizing operator
configure:4505: checking for uid_t in sys/types.h
configure:4539: checking for mode_t
configure:4572: checking for off_t
configure:4605: checking for size_t
configure:4638: checking whether time.h and sys/time.h may both be included
configure:4673: checking whether struct tm is in sys/time.h or time.h
configure:4707: checking for tm_zone in struct tm
configure:4740: checking for tzname
configure:4778: checking for signed types
configure:4787: gcc -c    conftest.c 1>&5
configure:4802: checking for volatile
configure:4811: gcc -c    conftest.c 1>&5
configure:4826: checking for type of last arg to accept
configure:4838: gcc -c    conftest.c 1>&5
configure:4856: checking for int timezone
configure:4865: gcc -o conftest      conftest.c -lPW -lgen -lcrypt -lnsl -lsocket -ldl -lm -lbsd -ltermcap -lcurses
1>&5
/usr/bin/../lib/ld:
The shared object /usr/lib/libcrypt.so did not resolve any symbols.
    You may want to remove it from your link line.
The shared object /usr/lib/libnsl.so did not resolve any symbols.
    You may want to remove it from your link line.
The shared object /usr/lib/libsocket.so did not resolve any symbols.
    You may want to remove it from your link line.
The shared object /usr/lib/libdl.so did not resolve any symbols.
    You may want to remove it from your link line.
The shared object /usr/lib/libm.so did not resolve any symbols.
    You may want to remove it from your link line.
The shared object /usr/lib/libtermcap.so did not resolve any symbols.
    You may want to remove it from your link line.
configure:4880: checking for gettimeofday args
configure:4889: gcc -o conftest      conftest.c -lPW -lgen -lcrypt -lnsl -lsocket -ldl -lm -lbsd -ltermcap -lcurses
1>&5
/usr/bin/../lib/ld:
The shared object /usr/lib/libcrypt.so did not resolve any symbols.
    You may want to remove it from your link line.
The shared object /usr/lib/libnsl.so did not resolve any symbols.
    You may want to remove it from your link line.
The shared object /usr/lib/libsocket.so did not resolve any symbols.
    You may want to remove it from your link line.
The shared object /usr/lib/libdl.so did not resolve any symbols.
    You may want to remove it from your link line.
The shared object /usr/lib/libm.so did not resolve any symbols.
    You may want to remove it from your link line.
The shared object /usr/lib/libtermcap.so did not resolve any symbols.
    You may want to remove it from your link line.
configure:4904: checking for union semun
configure:4915: gcc -o conftest      conftest.c -lPW -lgen -lcrypt -lnsl -lsocket -ldl -lm -lbsd -ltermcap -lcurses
1>&5
/usr/bin/../lib/ld:
The shared object /usr/lib/libcrypt.so did not resolve any symbols.
    You may want to remove it from your link line.
The shared object /usr/lib/libnsl.so did not resolve any symbols.
    You may want to remove it from your link line.
The shared object /usr/lib/libsocket.so did not resolve any symbols.
    You may want to remove it from your link line.
The shared object /usr/lib/libdl.so did not resolve any symbols.
    You may want to remove it from your link line.
The shared object /usr/lib/libm.so did not resolve any symbols.
    You may want to remove it from your link line.
The shared object /usr/lib/libtermcap.so did not resolve any symbols.
    You may want to remove it from your link line.
configure:4930: checking for fcntl(F_SETLK)
configure:4942: gcc -o conftest      conftest.c -lPW -lgen -lcrypt -lnsl -lsocket -ldl -lm -lbsd -ltermcap -lcurses
1>&5
configure: In function `main':
configure:4936: `SEEK_SET' undeclared (first use this function)
configure:4936: (Each undeclared identifier is reported only once
configure:4936: for each function it appears in.)
configure: failed program was:
#line 4932 "configure"
#include "confdefs.h"
#include <fcntl.h>
int main() {
struct flock lck;
         lck.l_whence = SEEK_SET; lck.l_start = lck.l_len = 0;
         lck.l_type = F_WRLCK;
         fcntl(0, F_SETLK, &lck);
; return 0; }
configure:4957: checking for 8-bit clean memcmp
configure:4993: checking return type of signal handlers
configure:5034: checking for vprintf
configure:5141: checking for memmove
configure:5141: checking for sysconf
configure:5196: checking for sigprocmask
configure:5196: checking for waitpid
configure:5196: checking for setsid
configure:5196: checking for fcvt
configure:5311: checking for fpclass
configure:5311: checking for fp_class
configure:5311: checking for fp_class_d
configure:5311: checking for class
configure:5365: checking for snprintf
configure:5417: checking for vsnprintf
configure:5500: checking for isinf
configure:5537: checking for getrusage
configure:5590: checking for srandom
configure:5643: checking for gethostname
configure:5696: checking for random
configure:5749: checking for inet_aton
configure:5802: checking for strerror
configure:5856: checking for strdup
configure:5909: checking for strtol
configure:5962: checking for strtoul
configure:6015: checking for strcasecmp
configure:6068: checking for cbrt
configure:6174: checking for rint
configure:6270: readline.h: No such file or directory
configure:6284: readline/readline.h: No such file or directory
configure:6305: checking for filename_completion_function
configure:6395: checking for getopt_long
configure:6449: checking for finite
configure:6458: gcc -o conftest      conftest.c -lPW -lgen -lcrypt -lnsl -lsocket -ldl -lm -lbsd -ltermcap -lcurses
1>&5
/usr/bin/../lib/ld:
The shared object /usr/lib/libcrypt.so did not resolve any symbols.
    You may want to remove it from your link line.
The shared object /usr/lib/libnsl.so did not resolve any symbols.
    You may want to remove it from your link line.
The shared object /usr/lib/libsocket.so did not resolve any symbols.
    You may want to remove it from your link line.
The shared object /usr/lib/libdl.so did not resolve any symbols.
    You may want to remove it from your link line.
The shared object /usr/lib/libm.so did not resolve any symbols.
    You may want to remove it from your link line.
The shared object /usr/lib/libtermcap.so did not resolve any symbols.
    You may want to remove it from your link line.
configure:6473: checking for sigsetjmp
configure:6482: gcc -o conftest      conftest.c -lPW -lgen -lcrypt -lnsl -lsocket -ldl -lm -lbsd -ltermcap -lcurses
1>&5
/usr/bin/../lib/ld:
The shared object /usr/lib/libcrypt.so did not resolve any symbols.
    You may want to remove it from your link line.
The shared object /usr/lib/libnsl.so did not resolve any symbols.
    You may want to remove it from your link line.
The shared object /usr/lib/libsocket.so did not resolve any symbols.
    You may want to remove it from your link line.
The shared object /usr/lib/libdl.so did not resolve any symbols.
    You may want to remove it from your link line.
The shared object /usr/lib/libm.so did not resolve any symbols.
    You may want to remove it from your link line.
The shared object /usr/lib/libtermcap.so did not resolve any symbols.
    You may want to remove it from your link line.
configure:6561: checking whether 'long int' is 64 bits
configure:6594: gcc -o conftest      conftest.c -lPW -lgen -lcrypt -lnsl -lsocket -ldl -lm -lbsd -ltermcap -lcurses
1>&5
/usr/bin/../lib/ld:
The shared object /usr/lib/libcrypt.so did not resolve any symbols.
    You may want to remove it from your link line.
The shared object /usr/lib/libnsl.so did not resolve any symbols.
    You may want to remove it from your link line.
The shared object /usr/lib/libsocket.so did not resolve any symbols.
    You may want to remove it from your link line.
The shared object /usr/lib/libdl.so did not resolve any symbols.
    You may want to remove it from your link line.
The shared object /usr/lib/libm.so did not resolve any symbols.
    You may want to remove it from your link line.
The shared object /usr/lib/libtermcap.so did not resolve any symbols.
    You may want to remove it from your link line.
configure: failed program was:
#line 6566 "configure"
#include "confdefs.h"
typedef long int int64;

/* These are globals to discourage the compiler from folding all the
 * arithmetic tests down to compile-time constants.
 */
int64 a = 20000001;
int64 b = 40000005;

int does_int64_work()
{
  int64 c,d;

  if (sizeof(int64) != 8)
    return 0;            /* doesn't look like the right size */

  /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
  c = a * b;
  d = (c + b) / b;
  if (d != a+1)
    return 0;
  return 1;
}
main() {
  exit(! does_int64_work());
}
configure:6615: checking whether 'long long int' is 64 bits
configure:6648: gcc -o conftest      conftest.c -lPW -lgen -lcrypt -lnsl -lsocket -ldl -lm -lbsd -ltermcap -lcurses
1>&5
/usr/bin/../lib/ld:
The shared object /usr/lib/libcrypt.so did not resolve any symbols.
    You may want to remove it from your link line.
The shared object /usr/lib/libnsl.so did not resolve any symbols.
    You may want to remove it from your link line.
The shared object /usr/lib/libsocket.so did not resolve any symbols.
    You may want to remove it from your link line.
The shared object /usr/lib/libdl.so did not resolve any symbols.
    You may want to remove it from your link line.
The shared object /usr/lib/libm.so did not resolve any symbols.
    You may want to remove it from your link line.
The shared object /usr/lib/libtermcap.so did not resolve any symbols.
    You may want to remove it from your link line.
configure:6796: checking alignment of short
configure:6836: checking alignment of int
configure:6876: checking alignment of long
configure:6917: checking alignment of long long int
configure:6958: checking alignment of double
configure:7020: checking for POSIX signal interface
configure:7032: gcc -o conftest      conftest.c -lPW -lgen -lcrypt -lnsl -lsocket -ldl -lm -lbsd -ltermcap -lcurses
1>&5
/usr/bin/../lib/ld:
The shared object /usr/lib/libcrypt.so did not resolve any symbols.
    You may want to remove it from your link line.
The shared object /usr/lib/libnsl.so did not resolve any symbols.
    You may want to remove it from your link line.
The shared object /usr/lib/libsocket.so did not resolve any symbols.
    You may want to remove it from your link line.
The shared object /usr/lib/libdl.so did not resolve any symbols.
    You may want to remove it from your link line.
The shared object /usr/lib/libm.so did not resolve any symbols.
    You may want to remove it from your link line.
The shared object /usr/lib/libtermcap.so did not resolve any symbols.
    You may want to remove it from your link line.
configure:7056: checking for tclsh
[marek@INDY src]$ gmake
gmake -C utils all
gmake[1]: Entering directory `/disk3/marek3/postgres/postgresql-7.0.3/src/utils'
gmake[1]: Nothing to be done for `all'.
gmake[1]: Leaving directory `/disk3/marek3/postgres/postgresql-7.0.3/src/utils'
gmake -C backend all
gmake[1]: Entering directory `/disk3/marek3/postgres/postgresql-7.0.3/src/backend'
gmake -C access all
gmake[2]: Entering directory `/disk3/marek3/postgres/postgresql-7.0.3/src/backend/access'
gmake -C common  SUBSYS.o
gmake[3]: Entering directory `/disk3/marek3/postgres/postgresql-7.0.3/src/backend/access/common'
gcc -I../../../include -I../../../backend    -U_NO_XOPEN4 -woff 1164,1171,1185,1195,1552 -Wl,-woff,15 -Wl,-w,84 -Wall
-Wmissing-prototypes-Wmissing-declarations -I../..   -c indextuple.c -o indextuple.o 
gcc: 1164,1171,1185,1195,1552: No such file or directory
gcc: unrecognized option `-woff'
gmake[3]: *** [indextuple.o] Error 1
gmake[3]: Leaving directory `/disk3/marek3/postgres/postgresql-7.0.3/src/backend/access/common'
gmake[2]: *** [submake] Error 2
gmake[2]: Leaving directory `/disk3/marek3/postgres/postgresql-7.0.3/src/backend/access'
gmake[1]: *** [access.dir] Error 2
gmake[1]: Leaving directory `/disk3/marek3/postgres/postgresql-7.0.3/src/backend'
gmake: *** [all] Error 2

Re: Problem with compile pgsql on Irix 5.3

From
Peter Eisentraut
Date:
Marek Bobrowski writes:

> Hi,
> I want instal on my server pgsql, i have installed gcc version 2.7.2.3.f.1, and
> for compile it i installed now GNU Make version 3.73,
> First I call ./configure (configure.log is attached to this mail), next i call
> gmake and get error message (error messages is attached as gmake.err). I have
> no more experience in compile more complicated packages and not know what is
> bad, maybe you can help me. I very need pgsql on this computer.

You cannot compile PostgreSQL 7.0 or earlier on Irix with GCC; you must
use the SGI compiler.  You might want to try a 7.1 beta version, which
might work.  (I added support for it, but I don't actually have a system
to try so I'd appreciate it if you could test it.)

And you might want to update your gcc and gmake.  I'd recommend gmake
3.76.1.

--
Peter Eisentraut      peter_e@gmx.net       http://yi.org/peter-e/


Re: Problem with compile pgsql on Irix 5.3

From
Tom Lane
Date:
"Marek Bobrowski" <marek@indy.chemia.pk.edu.pl> writes:
> gcc -I../../../include -I../../../backend    -U_NO_XOPEN4 -woff 1164,1171,1185,1195,1552 -Wl,-woff,15 -Wl,-w,84 -Wall
-Wmissing-prototypes-Wmissing-declarations -I../..   -c indextuple.c -o indextuple.o 
> gcc: 1164,1171,1185,1195,1552: No such file or directory
> gcc: unrecognized option `-woff'
> gmake[3]: *** [indextuple.o] Error 1

Wow.  Where did all that cruft come from?  The "-U_NO_XOPEN4 -woff
1164,1171,1185,1195,1552 -Wl,-woff,15 -Wl,-w,84" should not be there.

Do you perhaps have CFLAGS or CPPFLAGS set in your environment?

            regards, tom lane

Re: Re: Problem with compile pgsql on Irix 5.3

From
Pete Forman
Date:
Tom Lane writes:
 > "Marek Bobrowski" <marek@indy.chemia.pk.edu.pl> writes:
 > > gcc -I../../../include -I../../../backend    -U_NO_XOPEN4 -woff
 > > 1164,1171,1185,1195,1552 -Wl,-woff,15 -Wl,-w,84 -Wall
 > > -Wmissing-prototypes -Wmissing-declarations -I../..   -c
 > > indextuple.c -o indextuple.o
 > > gcc: 1164,1171,1185,1195,1552: No such file or directory
 > > gcc: unrecognized option `-woff'
 > > gmake[3]: *** [indextuple.o] Error 1
 >
 > Wow.  Where did all that cruft come from?  The "-U_NO_XOPEN4 -woff
 > 1164,1171,1185,1195,1552 -Wl,-woff,15 -Wl,-w,84" should not be there.
 >
 > Do you perhaps have CFLAGS or CPPFLAGS set in your environment?

Those are set in Makefile.irix5.  They were appropriate for the native
compiler, a different configuration is needed for gcc.
--
Pete Forman                 -./\.- Disclaimer: This post is originated
WesternGeco                   -./\.-  by myself and does not represent
pete.forman@westerngeco.com     -./\.-  opinion of Schlumberger, Baker
http://www.crosswinds.net/~petef  -./\.-  Hughes or their divisions.

Re: Problem with compile pgsql on Irix 5.3

From
Mark Dalphin
Date:
Those funny options are for the native SGI C compiler.  I have never been able
to compile any versions of Postgresql using gcc under Irix. Switching to the
native cc, I've had very few problems (including no problems with 7.0.3).  The
list of numeric options turns off a number of warning messages from the native
cc; they tend to be so numerous that real errors are tough to spot.  The
particular list begins with the suggested  list from SGI for compiling
"freeware" which has been tuned to compile with gcc
(http://freeware.sgi.com/shared/howto.html). I modified the list for postgresql
which generated its own list of errors.

Perhaps a way is needed to differentiate between the two compilers; Some kind of
a test within the Makefile which looks not only at the machine type?

The quote from SGI is:

> Catching other problems
>
> The SGI cc is verbose and pedantic. The problem is that when you get way too may warnings you start ignoring the real
ones.
>
> To make the SGI compiler more like gcc in terms of warnings you may use something like:
>
>     NOWARN = -woff 1009,1014,1048,1110,1116,1185,1188,1204,1230,1233 \
>              -Wl,-woff,85,-woff,84
>     $(CC) $(NOWARN) ...
>
> "Marek Bobrowski"  writes:
> > gcc -I../../../include -I../../../backend    -U_NO_XOPEN4 -woff 1164,1171,1185,1195,1552 -Wl,-woff,15 -Wl,-w,84
-Wall
> -Wmissing-prototypes -Wmissing-declarations -I../..   -c indextuple.c -o indextuple.o
> > gcc: 1164,1171,1185,1195,1552: No such file or directory
> > gcc: unrecognized option `-woff'
> > gmake[3]: *** [indextuple.o] Error 1
>
> Wow.  Where did all that cruft come from?  The "-U_NO_XOPEN4 -woff
> 1164,1171,1185,1195,1552 -Wl,-woff,15 -Wl,-w,84" should not be there.
>
> Do you perhaps have CFLAGS or CPPFLAGS set in your environment?
>
>                         regards, tom lane
>

Hope this helps,
Mark Dalphin (mdalphin@amgen.com)


Re: Problem with compile pgsql on Irix 5.3

From
Tom Lane
Date:
Mark Dalphin <mdalphin@amgen.com> writes:
> Those funny options are for the native SGI C compiler.  I have never
> been able to compile any versions of Postgresql using gcc under
> Irix. Switching to the native cc, I've had very few problems
> (including no problems with 7.0.3).

Now that I look, I see Peter E. has modified Makefile.irix5 in current
sources so that it has some chance of working with gcc.  It's untested
though, as far as I've heard.  Who wants to pull down the current
snapshot and give us a port report for Irix?

            regards, tom lane