pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
PostgreSQL 8.1.5 Documentation - Chapter 32. Extending SQL
2+ messages / 2 participants
[nested] [flat]

* PostgreSQL 8.1.5 Documentation - Chapter 32. Extending SQL
@ 2006-10-20 03:14 Rares Vernica <rvernica@gmail.com>
  2006-10-21 04:37 ` Re: PostgreSQL 8.1.5 Documentation - Chapter 32. Extending SQL Michael Fuhr <mike@fuhr.org>
  0 siblings, 1 reply; 2+ messages in thread

From: Rares Vernica @ 2006-10-20 03:14 UTC (permalink / raw)
  To: pgsql-sql

Hi,

I tried the code from "Calling Conventions Version 1 for C-Language 
Functions"

I had to add this in order to make it compile:
/* 16-byte structure, passed by reference */
typedef struct
{
    double  x, y;
} Point;

Anyway, the "Point" is still giving me hard time:
psql:foo.sql:3: ERROR:  could not load library "...foo.so": ld.so.1: 
postgres: fatal: relocation error: file ...foo.so: symbol 
PG_GETARG_POINT_P: referenced symbol not found

Thanks a lot,
Ray




^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: PostgreSQL 8.1.5 Documentation - Chapter 32. Extending SQL
  2006-10-20 03:14 PostgreSQL 8.1.5 Documentation - Chapter 32. Extending SQL Rares Vernica <rvernica@gmail.com>
@ 2006-10-21 04:37 ` Michael Fuhr <mike@fuhr.org>
  0 siblings, 0 replies; 2+ messages in thread

From: Michael Fuhr @ 2006-10-21 04:37 UTC (permalink / raw)
  To: Rares Vernica <rvernica@gmail.com>; +Cc: pgsql-sql

On Thu, Oct 19, 2006 at 08:14:26PM -0700, Rares Vernica wrote:
> I tried the code from "Calling Conventions Version 1 for C-Language 
> Functions"
> 
> I had to add this in order to make it compile:
> /* 16-byte structure, passed by reference */
> typedef struct
> {
>    double  x, y;
> } Point;
> 
> Anyway, the "Point" is still giving me hard time:
> psql:foo.sql:3: ERROR:  could not load library "...foo.so": ld.so.1: 
> postgres: fatal: relocation error: file ...foo.so: symbol 
> PG_GETARG_POINT_P: referenced symbol not found

Try including utils/geo_decls.h -- that should define both the
structure and the macro you're missing.

-- 
Michael Fuhr



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2006-10-21 04:37 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2006-10-20 03:14 PostgreSQL 8.1.5 Documentation - Chapter 32. Extending SQL Rares Vernica <rvernica@gmail.com>
2006-10-21 04:37 ` Michael Fuhr <mike@fuhr.org>

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