Re: pgxs problem...

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pgxs problem...
Дата
Msg-id 8539.1349822519@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: pgxs problem...  (John R Pierce <pierce@hogranch.com>)
Ответы Re: pgxs problem...  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
John R Pierce <pierce@hogranch.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


В списке pgsql-general по дате отправления:

Предыдущее
От: John R Pierce
Дата:
Сообщение: Re: pgxs problem...
Следующее
От: Greg Williamson
Дата:
Сообщение: Re: PostgreSQL and WMS/WFS Service