Re: PG_MODULE_MAGIC issue with small extension - Mailing list pgsql-general

From Tom Lane
Subject Re: PG_MODULE_MAGIC issue with small extension
Date
Msg-id 11728.1472828873@sss.pgh.pa.us
Whole thread Raw
In response to PG_MODULE_MAGIC issue with small extension  (Brent Douglas <brent.n.douglas@gmail.com>)
Responses Re: PG_MODULE_MAGIC issue with small extension  (Brent Douglas <brent.n.douglas@gmail.com>)
List pgsql-general
Brent Douglas <brent.n.douglas@gmail.com> writes:
> What I have found however is that when I go to load my extensions I get
> this error:
> test=#  create extension pg_zlib;
> ERROR:  incompatible library "/usr/local/lib/postgresql/pg_zlib.so":
> missing magic block
> HINT:  Extension libraries are required to use the PG_MODULE_MAGIC macro.

Yeah, that would be expected if you don't include such a macro.

> And I can't for the life of me work out why. As far as I understand them,
> the docs indicate that this should only really happen if I'm compiling
> against an 8.* headers.

Hm, where are you reading that?  I forget when the requirement was added,
but it's certainly never been dropped.

            regards, tom lane


pgsql-general by date:

Previous
From: Brent Douglas
Date:
Subject: PG_MODULE_MAGIC issue with small extension
Next
From: Brent Douglas
Date:
Subject: Re: PG_MODULE_MAGIC issue with small extension