Thread: Trouble compiling postgresql in hp-unix

Trouble compiling postgresql in hp-unix

From
j_v_dsilva@www.com (joseph v d'silva)
Date:
Hi,

  I get the following error message when I am trying to gmake the
postgresql source in HP-unix 10.20
  I tried downloading and compiling glibc but that too failed saying
that mine is not a supported platform.
  Is there a way I can get binaries of postgresql for Hp-unix . I have
been trying in vain to compile to for a long time now.

gmake[1]: Entering directory
`/home/joseph/pgs/postgresql-7.2.2/src/interfaces'
gmake[2]: Entering directory
`/home/joseph/pgs/postgresql-7.2.2/src/interfaces/libpq'
ar crs libpq.a `lorder fe-auth.o fe-connect.o fe-exec.o fe-misc.o
fe-print.o fe-lobj.o pqexpbuffer.o dllist.o md5.o pqsignal.o | tsort`
/usr/lib/dld.sl: Can't find path for shared library: libc.2
/usr/lib/dld.sl: No such file or directory
/usr/lib/dld.sl: Can't find path for shared library: libc.2
/usr/lib/dld.sl: No such file or directory
/bin/sh: 20188 Abort(coredump)
gmake[2]: *** [libpq.a] Error 134
gmake[2]: Leaving directory
`/home/joseph/pgs/postgresql-7.2.2/src/interfaces/libpq'
gmake[1]: *** [all] Error 2
gmake[1]: Leaving directory
`/home/joseph/pgs/postgresql-7.2.2/src/interfaces'
gmake: *** [all] Error 2


    Thanx

Re: Trouble compiling postgresql in hp-unix

From
Tom Lane
Date:
j_v_dsilva@www.com (joseph v d'silva) writes:
>   I get the following error message when I am trying to gmake the
> postgresql source in HP-unix 10.20

PG builds fine on HPUX 10.20 ... I do it several times a day ;-)

> gmake[2]: Entering directory
> `/home/joseph/pgs/postgresql-7.2.2/src/interfaces/libpq'
> ar crs libpq.a `lorder fe-auth.o fe-connect.o fe-exec.o fe-misc.o
> fe-print.o fe-lobj.o pqexpbuffer.o dllist.o md5.o pqsignal.o | tsort`
> /usr/lib/dld.sl: Can't find path for shared library: libc.2
> /usr/lib/dld.sl: No such file or directory
> /usr/lib/dld.sl: Can't find path for shared library: libc.2
> /usr/lib/dld.sl: No such file or directory
> /bin/sh: 20188 Abort(coredump)

That's pretty odd.  It looks to me like you have a broken copy of either
ar, lorder, or tsort --- "broken" meaning it has a bogus shared library
search path in it.  You could check this out by running "chatr" against
the respective executables (use "which" to determine exactly where they
are).

Did you get those tools from HP, or are you using the GNU toolchain?
If GNU, how did you build or come by the tools?

            regards, tom lane

Re: Trouble compiling postgresql in hp-unix

From
j_v_dsilva@www.com (joseph v d'silva)
Date:
tgl@sss.pgh.pa.us (Tom Lane) wrote in message news:<20814.1033743433@sss.pgh.pa.us>...
> j_v_dsilva@www.com (joseph v d'silva) writes:
> >   I get the following error message when I am trying to gmake the
> > postgresql source in HP-unix 10.20
>
> PG builds fine on HPUX 10.20 ... I do it several times a day ;-)
>
> > gmake[2]: Entering directory
> > `/home/joseph/pgs/postgresql-7.2.2/src/interfaces/libpq'
> > ar crs libpq.a `lorder fe-auth.o fe-connect.o fe-exec.o fe-misc.o
> > fe-print.o fe-lobj.o pqexpbuffer.o dllist.o md5.o pqsignal.o | tsort`
> > /usr/lib/dld.sl: Can't find path for shared library: libc.2
> > /usr/lib/dld.sl: No such file or directory
> > /usr/lib/dld.sl: Can't find path for shared library: libc.2
> > /usr/lib/dld.sl: No such file or directory
> > /bin/sh: 20188 Abort(coredump)
>
> That's pretty odd.  It looks to me like you have a broken copy of either
> ar, lorder, or tsort --- "broken" meaning it has a bogus shared library
> search path in it.  You could check this out by running "chatr" against
> the respective executables (use "which" to determine exactly where they
> are).
>
> Did you get those tools from HP, or are you using the GNU toolchain?
> If GNU, how did you build or come by the tools?
>
>             regards, tom lane
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org

You were right, I had tried to install gcc in my machine but due to
some problems  (the libc.2) it had failed. I hadn't removed the
executables from the path and it was picking up these executables,
when I removed it, the default HP ones were picked up and it went
fine. However in one of my machines I got an error

cannot determine argument types for accept when I rane configure.

So I compiled in another machine and installed it.

Thanx

Re: Trouble compiling postgresql in hp-unix

From
Tom Lane
Date:
j_v_dsilva@www.com (joseph v d'silva) writes:
> You were right, I had tried to install gcc in my machine but due to
> some problems  (the libc.2) it had failed. I hadn't removed the
> executables from the path and it was picking up these executables,
> when I removed it, the default HP ones were picked up and it went
> fine. However in one of my machines I got an error

> cannot determine argument types for accept when I rane configure.


We have seen that reported from installations where a gcc built for one
version of HPUX is being used on a different version (eg, gcc for 11.00
used on 11.11).  The problem is that gcc has its own copies of some
system header files, and these are wrong for the system it's being used
in.  Try "gcc -v" and note the version number embedded in the specs
path:

$ gcc -v
Reading specs from /usr/local/lib/gcc-lib/hppa2.0-hp-hpux10.20/2.95.3/specs
                                                  ^^^^^^^^^^^^
gcc version 2.95.3 20010315 (release)

If it doesn't match your actual OS version, reinstalling gcc from source
would be a good plan.

            regards, tom lane