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