[DOCS] Magic Blocks

2008-01-23 Thread Simon Riggs
I've just solved a problem with referencing magic blocks in plugins.

I can't see anything documented on this and I suspect others have seen
this before...
http://archives.postgresql.org/pgsql-general/2007-04/msg00908.php

While compiling with PGXS, the OBJS line said
OBJS= modulename.so

which then gave the error
ERROR:    missing magic block

By changing the OBJS line to this
OBJS= modulename.o

then no error was received and it all works.

TFM just says "list objects files in OBJS".

It's a minor docs issue, but if y'all agree then we should add a few
more lines of wisdom in this area.

-- 
  Simon Riggs
  2ndQuadrant  http://www.2ndQuadrant.com


---(end of broadcast)---
TIP 5: don't forget to increase your free space map settings


Re: [DOCS] Magic Blocks

2008-01-23 Thread Tom Lane
Simon Riggs <[EMAIL PROTECTED]> writes:
> While compiling with PGXS, the OBJS line said
>   OBJS= modulename.so

> By changing the OBJS line to this
>   OBJS= modulename.o

> then no error was received and it all works.

> TFM just says "list objects files in OBJS".

Are we really in the business of teaching C programmers the difference
between object files and shared libraries?

regards, tom lane

---(end of broadcast)---
TIP 4: Have you searched our list archives?

   http://archives.postgresql.org