Hi

2014-03-02 19:59 GMT+01:00 Marko Tiikkaja <ma...@joh.to>:

> Hi Pavel,
>
> The extra semicolons are still in there; around line 525 in this patch.
>  However, I removed them to compile the patch, but I can't compile my
> plugin on OS X.  The plugin is simple, it just does:
>
> void
> _PG_init(void)
> {
>     DirectFunctionCall1(plpgsql_register_plugin,
> &pgt_plpgsql_plugin_struct);
> }
>
> I get:
>
> Undefined symbols for architecture x86_64:
>   "_plpgsql_register_plugin", referenced from:
>       __PG_init in plpgtest.o
>
> I'm guessing this is because PL/PgSQL is a shared library and not in core?
>  Is there a way around this?
>

yes, PLpgSQL is not referenced and, if I remember well, clang is too
restrictive.

probably
http://stackoverflow.com/questions/17281901/ignoring-an-undefined-symbol-in-a-dynamic-library-from-xcode

or you can add a reference on plpgsql to your Makefile

Regards

Pavel

>
>
> Regards,
> Marko Tiikkaja
>

Reply via email to