Re: RHEL8 Got error: unknown type name ‘sigjmp_buf’ while compiling C simple code after including pg_type.h

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Bonu, Miriam, Sony Music Italy" <miriam(dot)bonu(dot)sme(at)sonymusic(dot)com>
Cc: "pgsql-bugs(at)lists(dot)postgresql(dot)org" <pgsql-bugs(at)lists(dot)postgresql(dot)org>, "Marsan, Francesco, Sony Music Italy" <Francesco(dot)Marsan(at)sonymusic(dot)com>, Massimiliano Calcaterra <patesigeo(at)gmail(dot)com>, CAMPAGNOLO Mauro <mauro(dot)campagnolo(at)soprasteria(dot)com>
Subject: Re: RHEL8 Got error: unknown type name ‘sigjmp_buf’ while compiling C simple code after including pg_type.h
Date: 2023-03-24 14:50:56
Message-ID: 2229108.1679669456@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

"Bonu, Miriam, Sony Music Italy" <miriam(dot)bonu(dot)sme(at)sonymusic(dot)com> writes:
> I’m doing some practice with libpq libraries and I need your help to solve an issue that appeared after I tried to add “pg_type.h” on my source code.

Don't include pg_type.h. For client-side code, you want pg_type_d.h
instead. That won't contain references to server-internal symbols,
but it does contain the type OID macros that I assume you're after.

regards, tom lane

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Bonu, Miriam, Sony Music Italy 2023-03-24 15:01:21 R: RHEL8 Got error: unknown type name ‘sigjmp_buf’ while compiling C simple code after including pg_type.h
Previous Message Tom Lane 2023-03-24 14:41:06 Re: BUG #17867: pg_dump intermittently hangs