Re: [GENERAL] pgxs problem...

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: John R Pierce <pierce(at)hogranch(dot)com>
Cc: pgsql-general(at)postgresql(dot)org, pgsql-hackers(at)postgresql(dot)org
Subject: Re: [GENERAL] pgxs problem...
Date: 2012-10-09 22:41:59
Message-ID: 8539.1349822519@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

John R Pierce <pierce(at)hogranch(dot)com> 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. however, SHLIB_LINK is
> defined to concatenate PLJAVA_LDFLAGS, so I set that to -lm and POOF,
> its built. scary!

Well, the reason I mentioned contrib/cube is that it's known to need
libm. I see in its makefile

SHLIB_LINK += $(filter -lm, $(LIBS))

so apparently that's the de rigueur way to add libm when you need it.
I'd suggest pestering the pljava people to do likewise. They might be
getting away without this on more-forgiving platforms, but that doesn't
make it good practice to omit.

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 will see about fixing the first two, but the third is on pljava to
fix.

(These aren't new bugs BTW --- it looks to me like this has been wrong
since the pgxs code was created, in 8.1. I guess we don't have many
AIX users :-()

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Greg Williamson 2012-10-09 22:58:24 Re: PostgreSQL and WMS/WFS Service
Previous Message John R Pierce 2012-10-09 21:43:11 Re: pgxs problem...

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael Paquier 2012-10-09 23:09:20 Re: Bugs in CREATE/DROP INDEX CONCURRENTLY
Previous Message John R Pierce 2012-10-09 21:43:11 Re: pgxs problem...