Subject: Bug in g++ or ?
To: None <current-users@NetBSD.ORG>
From: Paul Boven <e.p.boven@student.utwente.nl>
List: current-users
Date: 11/13/1996 14:58:26
Hello everyone, 

While trying to compile "octave-1.91" on my Sparc/ELC/NetBSD-1.2 I ran
Aross the following wierd error:

cd liboctave ; gnumake all
gnumake[2]: Entering directory `/usr/home/paul/octave-1.91/liboctave'
c++ -c  -I. -I../src -I.. -I../liboctave -I../src -I../glob  -DHAVE_CONFIG_H  -fno-implicit-templates  -g -O -Wall file-ops.cc
In file included from safe-stat.h:30,
                 from file-ops.cc:47:
/usr/include/errno.h:48: conflicting types for `const char *const const sys_errlist[]'
/usr/include/errno.h:48: previous declaration as `const char * const sys_errlist[]'

Apparently somewhere between reading errno.h and rereading it later it gets
mangled a bit in that an extra "const" is inserted. 
<errno.h>:48  extern const char * const sys_errlist[];

So this looks like either a compiler bug, or the file errno.h should be
protected against multiple inclusion as per the usual #ifdef-constructions.

Happy hacking, Paul Boven.
-- 
----------------------------------------------------------------------
Paul Boven, <e.p.boven@student.utwente.nl>  PE1NUT  QRV 145.575 JO32KF
 "Read some Kerouac,  and it put me on the tracks,  to burn a little 
    brighter now"    - Torch song, Clutching at straws, Marillion.
----------------------------------------------------------------------