Re: MAGIC_MODULE and libc

From: Martijn van Oosterhout <kleptog(at)svana(dot)org>
To: Jeff Amiel <jeff(dot)amiel(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: MAGIC_MODULE and libc
Date: 2006-12-19 14:27:17
Message-ID: 20061219142717.GB21385@svana.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)svana(dot)org> http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Jeff Amiel 2006-12-19 14:32:02 Re: MAGIC_MODULE and libc
Previous Message Alvaro Herrera 2006-12-19 14:23:28 Re: MAGIC_MODULE and libc