On 10/09/12 6:52 AM, Tom Lane wrote:
John R Pierce<pie...@hogranch.com>  writes:
>I'm trying to build something (pljava, dont laugh) for IBM AIX (don't
>laugh).  I have my own build of postgresql 9.1.6 on AIX, compiled with
>IBM XLC, it works quite nicely, but this build is bombing..
>/opt/pgsql91/lib/pgxs/src/makefiles/../../src/backend/port/aix/mkldexport.sh
>libpljava.a >libpljava.exp
>/bin/sh:
>/opt/pgsql91/lib/pgxs/src/makefiles/../../src/backend/port/aix/mkldexport.sh:
>not found.
Hm.  There is a src/backend/port/aix/mkldexport.sh in the source tree,
and I see that Makefile.shlib relies on it, but I don't see any evidence
that we make any effort to install it.  For the moment you could just
copy it over to the pgxs tree ... but if we wanted to support AIX a bit
better it seems like we ought to do that automatically.


mm, k.  so I manually copied that file over, and now get...

   ....
   /usr/vacpp/bin/xlc -q64 -I/home/postgres/src/include -O2 -qarch=pwr5
   -qtune=balanced -qnoansialias   -o pljava.so libpljava.a
   -Wl,-bE:libpljava.exp -L/opt/pgsql91/lib -L/home/postgres/src/lib
   
-Wl,-blibpath:'/opt/pgsql91/lib:/opt/pgsql91/lib:/home/postgres/src/lib:/usr/lib:/lib'
   -Wl,-bnoentry -Wl,-H512 -Wl,-bM:SRE
   -Wl,-bI:/opt/pgsql91/bin/postgres/postgres.imp -L.
   -L"/usr/java5_64/jre/bin/j9vm" -ljvm
   ld: 0706-003 Cannot find or read import file:
   /opt/pgsql91/bin/postgres/postgres.imp
            ld:accessx(): A parameter must be a directory.

so thats /another/ missing file... hmmm, a file of that name is in lib, not bin/postgres ...

   $ find . -name postgres.imp
   ./src/backend/postgres.imp
   ./src/test/regress/tmp_check/install/opt/pgsql91/lib/postgres.imp

   $ find /opt/pgsql91 -name postgres.imp
   /opt/pgsql91/lib/postgres.imp

and, muh-oh... $PG_PREFIX/bin/postgres is the binary executable, so I *can't* put a copy of postgres.imp there, hah. and a bit of poking around the pljava makefiles, I'm not figuring out how its cooking that path name up?!?





--
john r pierce                            N 37, W 122
santa cruz ca                         mid-left coast



--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

Reply via email to