Received: from hera.inf.ucv.cl (root@hera.inf.ucv.cl [158.251.10.6]) by hub.org (8.9.3/8.9.3) with SMTP id PAA20848; Wed, 5 May 1999 15:45:26 -0400 (EDT) (envelope-from cperalta@hera.inf.ucv.cl) Received: from olimpo20.inf.ucv.cl by hera.inf.ucv.cl (AIX 3.2/UCB 5.64/4.03) id AA13145; Wed, 5 May 1999 15:42:00 -0400 Message-Id: <373004CF.C7286A32@hera.inf.ucv.cl> Date: Wed, 05 May 1999 03:44:01 -0500 From: Carlos Peralta Ramirez X-Mailer: Mozilla 4.51 [en] (Win95; I) X-Accept-Language: en Mime-Version: 1.0 To: pgsql-novice , pgsql-hackers , pgsql-sql , pgsql-general Subject: which guru know this ?? Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Primary, Sorry for my english !!! Hi, I īm developing a several test database, for study. But I canīt create any function, every time ERROR appears. I write a C code in a plus2.c file #include int4 plus2(int4 a,int4 b) { return(a+b); } main() /* For getting *.out*/ { } , then I compile it (I made this of two ways) cc -c plus2.c /* I get the object file *.o */ or cc plus2.c plus2.out /*I get the *.out file */ When I create the function on postgresql, occurs this db=> create function plus2(int4,int4) returns int4 as '/var/lib/pgsql/plus2.o' language 'c'; CREATE or db=> create function plus2(int4,int4) returns int4 as '/var/lib/pgsql/plus2.out' language 'c'; CREATE Wherever, when I call the function plus2 from Sql sentence ... db=> select plus2(6,6); ERROR: Load of file /var/lib/pgsql/plus2.o failed: (ô@(ô@/pgsql/plus2.o: ELF file's phentsize not the expected size or, with plus2.out db=> select plus2(6,6); PQexec() -- Request was sent to backend, but backend closed the channel before responding. This probably means the backend terminated abnormally before or while processing the request. If anybody can help me, thank !!! PD: I donīt disturb you, if I donīt need it really.