Thread: compile error in CVS HEAD

compile error in CVS HEAD

From
Neil Conway
Date:
I see the following error with the current CVS code:

make[3]: Entering directory `/home/nconway/pgsql/src/backend/commands'
[ ... ]
gcc -O2 -DLINUX_PROFILE -g -pg -Wall -Wmissing-prototypes -Wmissing-declarations

-I../../../src/include  -c -o copy.o copy.c
 
copy.c: In function `DoCopy':
copy.c:425: `errno' undeclared (first use in this function)
copy.c:425: (Each undeclared identifier is reported only once
copy.c:425: for each function it appears in.)
make[3]: *** [copy.o] Error 1

Cheers,

Neil

-- 
Neil Conway <neilc@samurai.com> || PGP Key ID: DB3C29FC



Re: compile error in CVS HEAD

From
Tom Lane
Date:
Neil Conway <neilc@samurai.com> writes:
> I see the following error with the current CVS code:

> copy.c:425: `errno' undeclared (first use in this function)

Hmm.  Needs a "#include <errno.h>" seemingly; but surely that error
has been there awhile?

(light dawns...)  I'll bet it was masked by all the bogus "extern int
errno" declarations that we had till this afternoon.  I didn't see the
failure here, because HPUX's header set seems to include <errno.h> in
some pretty basic place.  Anywhere else failing for you?
        regards, tom lane