agora inbox for pljava-dev@postgresql.org  
help / color / mirror / Atom feed
Subject: [Pljava-dev] pljava on AIX for postgres 9.1.x and IBM AIX Java 6?
Date: Thu, 11 Oct 2012 17:49:40 -0700
Message-ID: <50776924.6080504@hogranch.com> (raw)
In-Reply-To: <5077662B.2000607@ejurka.com>
References: <50651F8A.1080704@hogranch.com>
	<50660523.5050503@hogranch.com>
	<50660A90.3020308@hogranch.com>
	<5069E7C8.4090004@hogranch.com>
	<5073DEED.8030504@hogranch.com>
	<507472B6.3060100@hogranch.com>
	<507474C0.1010304@hogranch.com>
	<50749A49.8060003@hogranch.com>
	<5075C351.1010101@hogranch.com>
	<5075C9D9.9080303@ejurka.com>
	<5075FE04.4020407@hogranch.com>
	<50775D08.9030409@hogranch.com>
	<5077662B.2000607@ejurka.com>

On 10/11/12 5:36 PM, Kris Jurka wrote:
> Is there a libpljava.a in your build tree that didn't get installed? 
> If so you could try copying it over to where pljava.so is located.


libpljava.a is built en route to building pljava.so... in fact, 
pljava.so is pretty much libpljava.a ld'd into a .so


here's the pljava link related commands that built this, and some output 
from various tools...


link commands...

/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/lib/postgres.imp -L. -L"/usr/java5_64/jre/bin/j9vm" -ljvm -lm
rm -f libpljava.a
/usr/bin/ar crs libpljava.a pljava.so
/opt/pgsql91/lib/pgxs/src/makefiles/../../src/backend/port/aix/mkldexport.sh libpljava.a > pljava
/usr/vacpp/bin/xlc -q64 -I/home/postgres/src/include -O2 -qarch=pwr5 -qtune=balanced -qnoansialias     -Wl,-bnoentry -Wl,-H512 -Wl,-bM:SRE -o pljava.so libpljava.a -Wl,-bE:pljava -Wl,-bI:/opt/pgsql91/lib/postgres.imp -L. -L"/usr/java5_64/jre/bin/j9vm" -ljvm -lm


result:

$ dump -X64 -H build/objs/pljava.so |more

build/objs/pljava.so:

                         ***Loader  Section***
                       Loader  Header  Information
VERSION#         #SYMtableENT     #RELOCent        LENidSTR
0x00000001        0x00000027        0x00000000        0x00000051        

#IMPfilID        OFFidSTR         LENstrTBL        OFFstrTBL
0x00000002        0x000003e0        0x000001ea        0x00000431        


                         ***Import  File  Strings***
INDEX   PATH                           BASE                 MEMBER               
0       .:/usr/java5_64/jre/bin/j9vm:/usr/vac/lib:/usr/lib:/lib
1                                    libpljava.a         pljava.so


And, when I copy it to its intended location, which is in my $LIBPATH try and load it, I get...

$ ldd /opt/xxx/pljava/pljava.so

/opt/xxx/pljava/pljava.so needs:
/usr/lib/libc.a(shr_64.o)
Cannot find libpljava.a(pljava.so)
/usr/java5_64/jre/bin/j9vm/libjvm.a
/unix
/usr/lib/libcrypt.a(shr_64.o)
/usr/lib/libc_r.a(shr_64.o)
/usr/lib/libpthread.a(shr_xpg5_64.o)
/usr/java5_64/jre/bin/libjsig.so
/usr/java5_64/jre/bin/libj9thr23.so
$ echo $LIBPATH
/opt/xxx/pljava:/usr/java5_64/jre/bin whaaaaaa???







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





view thread (17+ messages)  latest in thread

Message-ID: <50776924.6080504@hogranch.com>
Permalink:  ../50776924.6080504@hogranch.com/
Also on:    postgresql.org/message-id/50776924.6080504@hogranch.com

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pljava-dev@postgresql.org
  Subject: Re: [Pljava-dev] pljava on AIX for postgres 9.1.x and IBM AIX Java 6?
  In-Reply-To: <50776924.6080504@hogranch.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox