Re: C++ interface build on FreeBSD 4.2 broken?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Tatsuo Ishii <t-ishii(at)sra(dot)co(dot)jp>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: C++ interface build on FreeBSD 4.2 broken?
Date: 2001-01-20 07:01:33
Message-ID: 18139.979974093@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Tatsuo Ishii <t-ishii(at)sra(dot)co(dot)jp> writes:
> It is reported that building C++ interface on FreeBSD 4.2 fails.
> Can someone comment on this?

> In file included from ../../../src/include/postgres.h:40,
> from pgconnection.h:41,
> from pgconnection.cc:18:
> ../../../src/include/c.h:997: conflicting types for `int sys_nerr'
> /usr/include/stdio.h:224: previous declaration as `const int sys_nerr'
> gmake[3]: *** [pgconnection.o] Error 1

A quick look at hub.org confirms:

> uname -a
FreeBSD hub.org 4.2-STABLE FreeBSD 4.2-STABLE #0: Tue Dec 19 07:52:31 EST 2000 root(at)hub(dot)org:/home/projects/pgsql/operating_system/obj/home/projects/pgsql/operating_system/src/sys/kernel i386

> grep sys_nerr /usr/include/*.h
/usr/include/stdio.h:extern __const int sys_nerr; /* perror(3) external variables */

Sigh. Looks like we need yet another configure test. Or maybe it's
better to just cut and run on the check for in-range errno; although
I put that in to begin with, I'm certainly starting to wonder if it's
worth the trouble. Comments anyone?

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Nathan Myers 2001-01-20 08:29:24 Re: Transaction ID wraparound: problem and proposed solution
Previous Message Ian Lance Taylor 2001-01-20 05:39:59 Re: AW: AW: AW: Re: tinterval - operator problems on AIX