From: | Yadisnel Galvez Velazquez <ygalvez(at)uci(dot)cu> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | Compilate problems |
Date: | 2009-10-04 16:51:14 |
Message-ID: | 783413885.17611254675074004.JavaMail.root@ucimail3.uci.cu |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
I am working actually in an replication project. I need a trigger function but when I compile this, the C compilator return the log message:
# cc -fpic -c main.c
In file included from /usr/include/postgresql/postgres.h:49,
from main.c:1:
/usr/include/postgresql/utils/elog.h:68:28: error: utils/errcodes.h: The file or directory does not exist
In file included from /usr/include/postgresql/8.3/server/funcapi.h:20,
from main.c:2:
/usr/include/postgresql/8.3/server/access/tupdesc.h:17:27: error: access/attnum.h: The file or directory does not exist
/usr/include/postgresql/8.3/server/access/tupdesc.h:18:34: error: catalog/pg_attribute.h: The file or directory does not exist
/usr/include/postgresql/8.3/server/access/tupdesc.h:19:27: error: nodes/pg_list.h: No existe The file or directory does not exist
In file included from /usr/include/postgresql/8.3/server/funcapi.h:20,
from main.c:2:
/usr/include/postgresql/8.3/server/access/tupdesc.h:24: error: expected specifier-qualifier-list before ‘AttrNumber’
/usr/include/postgresql/8.3/server/access/tupdesc.h:72: error: expected specifier-qualifier-list before ‘Form_pg_attribute’
/usr/include/postgresql/8.3/server/access/tupdesc.h:85: error: expected declaration specifiers or ‘...’ before ‘Form_pg_attribute’
.................
But the files exists in the indicated locations, any idea??
My plataform is Debian GNU/Linux, the headers files of postgresql-server-dev-8.3 are under /usr/include/postgresql/8.3/server/, my haders files are:
#include <postgresql/8.3/server/postgres.h>
#include <postgresql/8.3/server/executor/spi.h>
#include <postgresql/8.3/server/commands/trigger.h>
From | Date | Subject | |
---|---|---|---|
Next Message | David Fetter | 2009-10-04 16:51:21 | Re: Compilate problems |
Previous Message | Rich Shepard | 2009-10-04 16:31:02 | Re: How useful is the money datatype? |