Re: C++ interface build on FreeBSD 4.2 broken? - Mailing list pgsql-hackers

From Tom Lane
Subject Re: C++ interface build on FreeBSD 4.2 broken?
Date
Msg-id 18139.979974093@sss.pgh.pa.us
Whole thread Raw
In response to C++ interface build on FreeBSD 4.2 broken?  (Tatsuo Ishii <t-ishii@sra.co.jp>)
List pgsql-hackers
Tatsuo Ishii <t-ishii@sra.co.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@hub.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


pgsql-hackers by date:

Previous
From: Ian Lance Taylor
Date:
Subject: Re: AW: AW: AW: Re: tinterval - operator problems on AIX
Next
From: ncm@zembu.com (Nathan Myers)
Date:
Subject: Re: Transaction ID wraparound: problem and proposed solution