pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Taral <taral@mail.utexas.edu>
To: Jose David Martinez Cuevas <david@morgana.estadistica.unam.mx>
To: pgsql-sql@postgreSQL.org
Subject: RE: [SQL] Having problems to compile SPI
Date: Tue, 25 Aug 1998 13:26:30 -0500
Message-ID: <000401bdd055$e11fd800$3b291f0a@taral> (raw)
In-Reply-To: <Pine.LNX.3.96.980825130124.5589A-100000@morgana.estadistica.unam.mx>

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@hub.org [mailto:owner-pgsql-sql@hub.org]On Behalf
> Of Jose David Martinez Cuevas
> Sent: Tuesday, August 25, 1998 1:07 PM
> To: pgsql-sql@postgreSQL.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@estadistica.unam.mx
> ----------------------------------------
> 
> 
> 
> 
> 
> 
> 



view thread (2+ messages)

Message-ID: <000401bdd055$e11fd800$3b291f0a@taral>
Permalink:  ../000401bdd055$e11fd800$3b291f0a@taral/
Also on:    postgresql.org/message-id/000401bdd055$e11fd800$3b291f0a@taral

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: taral@mail.utexas.edu, david@morgana.estadistica.unam.mx
  Subject: Re: [SQL] Having problems to compile SPI
  In-Reply-To: <000401bdd055$e11fd800$3b291f0a@taral>
  References: <Pine.LNX.3.96.980825130124.5589A-100000@morgana.estadistica.unam.mx> <000401bdd055$e11fd800$3b291f0a@taral>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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