pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Matthew Hagerty <matthew@venux.net>
To: Gene Selkov, Jr. <selkovjr@mcs.anl.gov>
Cc: pgsql-interfaces@postgreSQL.org
Subject: Re: [INTERFACES] Compiling a function
Date: Tue, 20 Apr 1999 04:19:00 -0400
Message-ID: <4.1.19990420041438.00bea910@mail.venux.net> (raw)
In-Reply-To: <199904200655.BAA21841@antares.mcs.anl.gov>
References: <Your message of "Tue, 20 Apr 1999 02:41:36 EDT." <4.1.19990420023358.00b5c340@mail.venux.net>

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 
>postgres
>
>Even though you are running FreeBSD, I believe you need to build a shared 
>object (bool2int.so), not just an object file
>
>Start with examples in src/tutorial/. Watch what their Makefile is doing.
>
>
>--Gene

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.

Thanks,
Matthew




view thread (4+ messages)  latest in thread

Message-ID: <4.1.19990420041438.00bea910@mail.venux.net>
Permalink:  ../4.1.19990420041438.00bea910@mail.venux.net/
Also on:    postgresql.org/message-id/4.1.19990420041438.00bea910@mail.venux.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: matthew@venux.net, selkovjr@mcs.anl.gov
  Subject: Re: [INTERFACES] Compiling a function
  In-Reply-To: <4.1.19990420041438.00bea910@mail.venux.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox