Re: [GENERAL] pgxs problem...

2012-10-09 Thread Tom Lane
John R Pierce writes: > On 10/09/12 6:09 PM, Tom Lane wrote: >> I've committed a patch for the first two things: >> http://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=bd0ef304f8a306522983f3b4b06274fdc45beed8 >> ... but not having an AIX machine, I can't actually test it. Would >> y

Re: [GENERAL] pgxs problem...

2012-10-09 Thread John R Pierce
On 10/09/12 6:09 PM, Tom Lane wrote: I wrote: >So if I've not lost track, the scorecard is: >1. We need to install mkldexport.sh when on AIX, so that pgxs builds can >use it. >2. Makefile.aix has the wrong idea about where to find postgres.imp when >in pgxs mode. >3. pljava needs -lm and isn't e

Re: [GENERAL] pgxs problem...

2012-10-09 Thread Tom Lane
I wrote: > So if I've not lost track, the scorecard is: > 1. We need to install mkldexport.sh when on AIX, so that pgxs builds can > use it. > 2. Makefile.aix has the wrong idea about where to find postgres.imp when > in pgxs mode. > 3. pljava needs -lm and isn't explicitly asking for it. > I w

Re: [GENERAL] pgxs problem...

2012-10-09 Thread Tom Lane
John R Pierce writes: > Further, it appears the link command pljava is using for the AIX case is > given in its makefile as... > $(COMPILER) $(LDFLAGS_NO_L) $(LDFLAGS_SL) -o $(plugin) $< > -Wl,-bE:$(NAME)$(EXPSUFF) $(SHLIB_LINK) > I can't find anywhere LDFLAGS_NO_L is defined. howev

Re: [GENERAL] pgxs problem...

2012-10-09 Thread John R Pierce
On 10/09/12 1:45 PM, Tom Lane wrote: Well, you're making progress anyway. That one probably needs -lm added to the command. Hard to tell if the fact that it's not there already is our fault or pljava's. On my machine, if I go into say contrib/cube and do "make", I see -lm in the link command -

Re: [GENERAL] pgxs problem...

2012-10-09 Thread Tom Lane
John R Pierce writes: > btw, $pkglibdir didn't fare any better than $libdir, I'm stuck at... > ld: 0711-317 ERROR: Undefined symbol: .floor Well, you're making progress anyway. That one probably needs -lm added to the command. Hard to tell if the fact that it's not there already is our fault o

Re: [GENERAL] pgxs problem...

2012-10-09 Thread John R Pierce
On 10/09/12 12:11 PM, Tom Lane wrote: Looks like it's coming from src/makefiles/Makefile.aix: ifdef PGXS BE_DLLLIBS= -Wl,-bI:$(bindir)/postgres/$(POSTGRES_IMP) else BE_DLLLIBS= -Wl,-bI:$(top_builddir)/src/backend/$(POSTGRES_IMP) endif I think the first case is just wrong (evidently never been t

Re: [GENERAL] pgxs problem...

2012-10-09 Thread John R Pierce
On 10/09/12 11:49 AM, John R Pierce wrote: $ find /opt/pgsql91 -name postgres.imp /opt/pgsql91/lib/postgres.imp ah, and so I find the $PG_PREFIX/lib/pgxs/src/Makefile.port has that bad reference to $(bindir)/postgres/postgres.imp and hack it like... POSTGRES_IMP= postgres.imp ifdef

Re: [GENERAL] pgxs problem...

2012-10-09 Thread Tom Lane
John R Pierce writes: > 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/s

Re: [GENERAL] pgxs problem...

2012-10-09 Thread John R Pierce
On 10/09/12 11:49 AM, John R Pierce wrote: 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?!? ok, its coming from

Re: [GENERAL] pgxs problem...

2012-10-09 Thread John R Pierce
On 10/09/12 6:52 AM, Tom Lane wrote: John R Pierce 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/makef

Re: [GENERAL] pgxs problem...

2012-10-09 Thread Tom Lane
John R Pierce 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/m

[GENERAL] pgxs problem...

2012-10-08 Thread John R Pierce
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 libpljav