Re: MAGIC_MODULE and libc

Поиск
Список
Период
Сортировка
От Martijn van Oosterhout
Тема Re: MAGIC_MODULE and libc
Дата
Msg-id 20061219142717.GB21385@svana.org
обсуждение исходный текст
Ответ на MAGIC_MODULE and libc  ("Jeff Amiel" <jeff.amiel@gmail.com>)
Ответы Re: MAGIC_MODULE and libc  (Jeff Amiel <jamiel@istreamimaging.com>)
Список pgsql-general
On Tue, Dec 19, 2006 at 08:20:23AM -0600, Jeff Amiel wrote:
> ERROR: incompatible library "/lib/libc.so.6": missing magic block
> SQL state: XX000
> Hint: Extension libraries are required to use the PG_MODULE_MAGIC macro.
>
> I've added the appropriate macro to all my actual C code...but in this
> case surely I am not expected to recompile libc...am I?  Is there an
> easier way to get the pid of the current process?

In general you should use a wrapper library, but in your case
pg_backend_pid() will do it.

Have a nice day,
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.

Вложения

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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: MAGIC_MODULE and libc
Следующее
От: Lincoln Yeoh
Дата:
Сообщение: Re: Let's play bash the search engine