Creating a C Function

From: Screech <screech(at)screech(dot)org>
To: Postgres Interface List <pgsql-interfaces(at)postgresql(dot)org>
Subject: Creating a C Function
Date: 1998-07-03 18:31:14
Message-ID: Pine.LNX.3.96.980703132537.11559B-100000@home.screech.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

I am trying to create a function using C, but I am having trouble getting
Postgres to execute it. If I call the function from a C program, it works
fine, but pgsql gives me this:

ERROR: Load of file /usr/local/pgsql/obj/gen_username.so failed: Unable
to resolve symbol

Perhaps I am failing in the compilation/linking process. Does anyone
happen to have a generic make file for Linux (2.0.32, pgsql v. 6.3.2)?
The file is there, and the complete tree (including the .so) is world
readable/executable.

In case it matters, here is the interface for the function:

text * gen_username (text *lname, text *fname);

Any ideas? Thanks...

Jason Lee screech(at)screech(dot)org
-------------------------------------------------------------------------
So many times we believe that our lives will go to waste unless strive to
achieve so many things out of haste. Sometimes we run too fast, when God
is asking us to crawl. He who is faithful minding less shall be given to
rule over all

Responses

Browse pgsql-interfaces by date

  From Date Subject
Next Message llestat 1998-07-03 19:05:44 Re: [INTERFACES] JDBC and DriverManager
Previous Message Guy Corbaz 1998-07-03 11:48:55 ODBC connection refused