libpq and libecpg problems on MacOs-X (Panther/10.3.3)

Поиск
Список
Период
Сортировка
От Richard Frith-Macdonald
Тема libpq and libecpg problems on MacOs-X (Panther/10.3.3)
Дата
Msg-id B63DB18A-861B-11D8-A590-000A95CD7044@brainstorm.co.uk
обсуждение исходный текст
Ответы Re: libpq and libecpg problems on MacOs-X (Panther/10.3.3)  (Bruce Momjian <pgman@candle.pha.pa.us>)
Re: libpq and libecpg problems on MacOs-X (Panther/10.3.3)  (Benjamin Reed <ranger@befunk.com>)
Re: libpq and libecpg problems on MacOs-X (Panther/10.3.3)  (Bruce Momjian <pgman@candle.pha.pa.us>)
Re: libpq and libecpg problems on MacOs-X (Panther/10.3.3)  (Bruce Momjian <pgman@candle.pha.pa.us>)
Re: libpq and libecpg problems on MacOs-X (Panther/10.3.3)  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-ports
When trying to use postgresql on my MacOS-X system (10.3.3) I
encountered the problem that the libecpg and libpq dynamic libraries
could not be linked into my applications.

Upon investigation, it turns out that the postgresql libraries on
MacOS-X/Darwin are being built as 'bundles' ... which means that you
can dynamically load them into a running program using the dlopen()
api, but you can't link them at application build time.  This may be
correct behavior for some of the modules in postgres (eg the perl
module), but is certainly wrong for libecpg and libpq ... which are
meant to be linked with C (and other language) applications.

I attach a patch which fixes this for MacOS-X 10.3.3, by altering the
makefiles to understand the two ways of building a library/bundle and
having a variable setting 'BUNDLE=no' to day that the normal dynamic
library should be built rather than a bundle.  The patch alters the
libecpg and libpq makefiles to set this variable, so these two are
built as normal dynamic libraries, while the other code continues to be
built as bundles.

Probably there are other parts of the system which should not be
bundles either ... but I don't use them so I don't know.
Possibly behavior differs in older versions of MacOS-X ... again, I
don't have the old systems so I don't know.


Вложения

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

Предыдущее
От: Jose' Cruanyes
Дата:
Сообщение: invalid input syntax for type tid: "(,)"
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: