From: | Brent Douglas <brent(dot)n(dot)douglas(at)gmail(dot)com> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: PG_MODULE_MAGIC issue with small extension |
Date: | 2016-09-02 15:15:17 |
Message-ID: | CANYh1k04_rVG25m=NjdnjfZJC4KeZcxB-uYCibG3Ywy+i1R5QA@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Hi Tom,
Ok, I think I miss-understood the docs. I have the macro in the extension
anyway, so basically the cause it that somewhere I'm picking up non 9.5.3
libs when I'm compiling? I upgraded from 9.4.5 not too long ago but I can't
find any traces of it left on my system to be interfering.
Brent
On Fri, Sep 2, 2016 at 11:07 AM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> Brent Douglas <brent(dot)n(dot)douglas(at)gmail(dot)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
>
From | Date | Subject | |
---|---|---|---|
Next Message | David Gibbons | 2016-09-02 15:16:00 | Re: 2.5TB Migration from SATA to SSD disks - PostgreSQL 9.2 |
Previous Message | Tom Lane | 2016-09-02 15:07:53 | Re: PG_MODULE_MAGIC issue with small extension |