Skip site navigation (1) Skip section navigation (2)

Re: [INTERFACES] Compiling a function

From: Matthew Hagerty <matthew(at)venux(dot)net>
To: "Gene Selkov, Jr(dot)" <selkovjr(at)mcs(dot)anl(dot)gov>
Cc: pgsql-interfaces(at)postgreSQL(dot)org
Subject: Re: [INTERFACES] Compiling a function
Date: 1999-04-20 08:19:00
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-interfaces
At 01:55 AM 4/20/99 -0400, you wrote:
>> ERROR:  Load of file /usr/local/pgsql/procs/bool2int.o failed: dlopen
>> (/usr/local/pgsql/procs/bool2int.o) failed
>3 points:
>Make sure /usr/local/pgsql/procs/bool2int.o exists and is accessible to 
>Even though you are running FreeBSD, I believe you need to build a shared 
>object (, not just an object file
>Start with examples in src/tutorial/. Watch what their Makefile is doing.

Thanks!  I linked with -shared and that fixed the LOAD problem.  Now I get
an error saying the function cannot be found in the file...

ERROR:  Can't find function bool2int in file /usr/local/pgsql/procs/bool2int.o

I have tried every linker flag possible, nothing helps.  Seems funny that a
function cannot be located in a library file?!?!

Any *more* insight whould be greatly appreciated.


In response to

pgsql-interfaces by date

Next:From: Gene Selkov, Jr.Date: 1999-04-20 12:58:17
Subject: Re: [INTERFACES] Compiling a function
Previous:From: Matthew HagertyDate: 1999-04-20 06:41:36
Subject: Compiling a function

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group