Re: [GENERAL] pgxs "missing magic block ... PG_MODULE_MAGIC" with "MODULE_big"

2013-01-08 Thread David Fuhry
Thank you Tom, you are correct. Adding the line: OBJS = test_cfunc.o to the Makefile resolved the problem. -Dave On Tue, Jan 8, 2013 at 12:55 PM, Tom Lane wrote: > David Fuhry writes: > > Hi, I'm trying to add a C-Language function but getting the following > err

Re: [GENERAL] pgxs "missing magic block ... PG_MODULE_MAGIC" with "MODULE_big"

2013-01-08 Thread David Fuhry
Forgot to mention, I am on 9.2.1. "SELECT version();" reports: PostgreSQL 9.2.1 on x86_64-unknown-linux-gnu, compiled by gcc (Debian 4.4.5-8) 4.4.5, 64-bit -Dave On Tue, Jan 8, 2013 at 12:30 PM, David Fuhry wrote: > Hi, I'm trying to add a C-Language function but get

[GENERAL] pgxs "missing magic block ... PG_MODULE_MAGIC" with "MODULE_big"

2013-01-08 Thread David Fuhry
Hi, I'm trying to add a C-Language function but getting the following error: $ psql -f test_cfunc.sql psql:test_cfunc.sql:3: ERROR: incompatible library "/usr/local/pgsql/lib/test_cfunc.so": missing magic block HINT: Extension libraries are required to use the PG_MODULE_MAGIC macro. I am callin