Having problems to compile SPI

Поиск
Список
Период
Сортировка
От Jose David Martinez Cuevas
Тема Having problems to compile SPI
Дата
Msg-id Pine.LNX.3.96.980825130124.5589A-100000@morgana.estadistica.unam.mx
обсуждение исходный текст
Ответ на Re: [SQL] this one's simpler  (Maarten Boekhold <maartenb@dutepp2.et.tudelft.nl>)
Ответы RE: [SQL] Having problems to compile SPI  ("Taral" <taral@mail.utexas.edu>)
Список pgsql-sql
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
----------------------------------------







В списке pgsql-sql по дате отправления:

Предыдущее
От: Brook Milligan
Дата:
Сообщение: Re: [SQL] parts of date_part()
Следующее
От: "Taral"
Дата:
Сообщение: RE: [SQL] Having problems to compile SPI