RE: [SQL] Having problems to compile SPI

From: "Taral" <taral(at)mail(dot)utexas(dot)edu>
To: "Jose David Martinez Cuevas" <david(at)morgana(dot)estadistica(dot)unam(dot)mx>, <pgsql-sql(at)postgreSQL(dot)org>
Subject: RE: [SQL] Having problems to compile SPI
Date: 1998-08-25 18:26:30
Message-ID: 000401bdd055$e11fd800$3b291f0a@taral
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Aren't you supposed to link SPI functions as shared libraries?

Try: gcc -shared -o cascade.so cascade.o

Taral

> -----Original Message-----
> From: owner-pgsql-sql(at)hub(dot)org [mailto:owner-pgsql-sql(at)hub(dot)org]On Behalf
> Of Jose David Martinez Cuevas
> Sent: Tuesday, August 25, 1998 1:07 PM
> To: pgsql-sql(at)postgreSQL(dot)org
> Subject: [SQL] Having problems to compile SPI
>
>
>
> Hi.
>
> I hope this is not a too much trivial question.
>
> I'm having problems when compiling a new SPI function. I've been doing it
> with :
>
> gcc -I/usr/src/postgresql-6.3.2/src/include
> -I/usr/src/postgresql-6.3.2/src/backend
> -Wall -Wmissing-prototypes
> -fpic -I/usr/src/postgresql-6.3.2/src/include
> -c cascade.c -o cascade.o
>
> but when I call de .o file from the function attached to the trigger , I
> get the next message:
>
>
> ERROR: Load of file /SAP/SQL/funcs/spi/cascade.o failed:
> /SAP/SQL/funcs/spi/cascade.o: ELF file's phentsize not the
> expected size
>
> What can I do ???
>
> _______________________________________
> David Martinez Cuevas
> Direccion General de Estadistica, UNAM - Mexico
> Tel. 622-60-80
> E-mail david(at)estadistica(dot)unam(dot)mx
> ----------------------------------------
>
>
>
>
>
>
>

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Leslie Mikesell 1998-08-25 20:52:39 Date vs. Datetime boundaries
Previous Message Jose David Martinez Cuevas 1998-08-25 18:07:11 Having problems to compile SPI