Re: Error trying to compile a simple C trigger - Mailing list pgsql-hackers

From Peter Geoghegan
Subject Re: Error trying to compile a simple C trigger
Date
Msg-id CAEYLb_UnQUT4F7g8naMR7aDr4a2pxpztwkRX32dE-8AUo0Eo-A@mail.gmail.com
Whole thread Raw
In response to Error trying to compile a simple C trigger  (Marco Nenciarini <marco.nenciarini@2ndQuadrant.it>)
Responses Re: Error trying to compile a simple C trigger  (Marco Nenciarini <marco.nenciarini@2ndQuadrant.it>)
Re: Error trying to compile a simple C trigger  (Marco Nenciarini <marco.nenciarini@devise.it>)
List pgsql-hackers
On 20 March 2012 10:53, Marco Nenciarini
<marco.nenciarini@2ndquadrant.it> wrote:
> alert.c: In function ‘dbms_alert_defered_signal’:
> alert.c:839:33: error: dereferencing pointer to incomplete type
> make: *** [alert.o] Error 1
>
> I've also tried the example at
>
> http://www.postgresql.org/docs/devel/static/trigger-example.html
>
> and the result is exactly the same.
>
> trigtest.c: In function ‘trigf’:
> trigtest.c:44:36: error: dereferencing pointer to incomplete type
> make: *** [trigtest.o] Error 1

I'd say this is an unintended consequence of a pgrminclude run. Try adding this:

#include "access/tupdesc.h"

--
Peter Geoghegan       http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training and Services


pgsql-hackers by date:

Previous
From: Marco Nenciarini
Date:
Subject: Error trying to compile a simple C trigger
Next
From: Joachim Wieland
Date:
Subject: Re: patch for parallel pg_dump