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 --- do you?
I do.
...
/usr/vacpp/bin/xlc -q64 -I/home/postgres/src/include -O2 -qarch=pwr5
-qtune=balanced -qnoansialias -o cube.so libcube.a
-Wl,-bE:libcube.exp -L../../src/port -L/home/postgres/src/lib
-Wl,-blibpath:'/opt/pgsql91/lib:/home/postgres/src/lib:/usr/lib:/lib' -Wl,-bnoentry
-Wl,-H512 -Wl,-bM:SRE -lm -Wl,-bI:../../src/backend/postgres.imp
...
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. however, SHLIB_LINK is
defined to concatenate PLJAVA_LDFLAGS, so I set that to -lm and POOF,
its built. scary!
--
john r pierce N 37, W 122
santa cruz ca mid-left coast
--
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general