libpgeasy symbol conflicts with libc ... libpgeasy loses

Поиск
Список
Период
Сортировка
От Tom Lane
Тема libpgeasy symbol conflicts with libc ... libpgeasy loses
Дата
Msg-id 3760.963785733@sss.pgh.pa.us
обсуждение исходный текст
Ответы Re: libpgeasy symbol conflicts with libc ... libpgeasy loses  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-interfaces
I had some trouble running findoidjoins today, which I eventually
tracked down to the fact that where it thinks it's calling libpgeasy's
fetch() subroutine, it was actually getting bound to the DBM library's
fetch() routine, which is in libc on my platform ... and the Makefile
for findoidjoins does -lc before -lpgeasy.

I counsel picking a less-generic name for libpgeasy's function.
We could fix this particular lossage with Makefile tweaking,
but this program won't be the last one to get burnt if you stick
with the conflicting name.

You might also want to check for conflicts against the other
functions exported by <dbm.h>:
    int dbminit(const char *file);    datum fetch(datum key);    int store(datum key, datum content);    int
delete(datumkey);    datum firstkey(void);    datum nextkey(datum key);    int dbmclose(void);
 
        regards, tom lane


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

Предыдущее
От: Matt Fair
Дата:
Сообщение: JDBC Source
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: libpgeasy symbol conflicts with libc ... libpgeasy loses