Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 812F89FA265 for ; Sat, 21 Oct 2006 01:37:30 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 87510-05 for ; Sat, 21 Oct 2006 01:37:25 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from tigger.fuhr.org (tigger.fuhr.org [63.214.45.158]) by postgresql.org (Postfix) with ESMTP id 347B89F93A0 for ; Sat, 21 Oct 2006 01:37:25 -0300 (ADT) Received: from winnie.fuhr.org (winnie.fuhr.org [10.1.0.1]) by tigger.fuhr.org (8.13.8/8.13.8) with ESMTP id k9L4bGZE012737 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 20 Oct 2006 22:37:18 -0600 (MDT) Received: from winnie.fuhr.org (localhost [127.0.0.1]) by winnie.fuhr.org (8.13.8/8.13.8) with ESMTP id k9L4bGwI078711; Fri, 20 Oct 2006 22:37:16 -0600 (MDT) (envelope-from mfuhr@winnie.fuhr.org) Received: (from mfuhr@localhost) by winnie.fuhr.org (8.13.8/8.13.8/Submit) id k9L4bFln078710; Fri, 20 Oct 2006 22:37:15 -0600 (MDT) (envelope-from mfuhr) Date: Fri, 20 Oct 2006 22:37:15 -0600 From: Michael Fuhr To: Rares Vernica Cc: pgsql-sql@postgresql.org Subject: Re: PostgreSQL 8.1.5 Documentation - Chapter 32. Extending SQL Message-ID: <20061021043715.GB78648@winnie.fuhr.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.139 tagged_above=0 required=5 tests=AWL, SPF_PASS X-Spam-Level: X-Archive-Number: 200610/190 X-Sequence-Number: 26579 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