Received: from localhost (wm.hub.org [200.46.204.128]) by postgresql.org (Postfix) with ESMTP id 07D3B9FB1FC for ; Fri, 20 Oct 2006 00:15:01 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.128]) (amavisd-new, port 10024) with ESMTP id 87456-02 for ; Fri, 20 Oct 2006 03:14:46 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by postgresql.org (Postfix) with ESMTP id 0A5449FA2EC for ; Fri, 20 Oct 2006 00:14:40 -0300 (ADT) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1GakqB-0003P9-N2 for pgsql-sql@postgresql.org; Fri, 20 Oct 2006 05:14:35 +0200 Received: from cse104g.ics.uci.edu ([128.195.38.176]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 20 Oct 2006 05:14:35 +0200 Received: from rvernica by cse104g.ics.uci.edu with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 20 Oct 2006 05:14:35 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-sql@postgresql.org From: Rares Vernica Subject: PostgreSQL 8.1.5 Documentation - Chapter 32. Extending SQL Date: Thu, 19 Oct 2006 20:14:26 -0700 Lines: 19 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: cse104g.ics.uci.edu User-Agent: Thunderbird 1.5.0.7 (Windows/20060909) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200610/187 X-Sequence-Number: 26576 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