[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

gcc3 does not compile



Dariusz Marcinkiewicz writes:
 > 	I'm trying to compile gcc3.0 on openbsd2.9stable/x86.
 > During the compilation an "old"  gcc  reports that following
 > lines in /usr/include/sys/endian.h have wrong sytnax:
 > 
 > __BEGIN_DECLS
 > u_int32_t	htobe32 __P((u_int32_t));
 > [snip]

As it happens I ran into this yesterday when I installed a gcc-3.0 on
a stock 2.9/x86.  The problem is the u_int32_t, there is no definition
of it in the file you are trying to compile.  IIRC the three files
that have this problem all math related ones in libstdc++.  All I did
was stick a :- 

  #include <sys/types.h>

in those three files and gcc3.0 built without error.