gmon.c compile failure building cross compiler linux->solaris2
Jim Wilson
wilson@cygnus.com
Mon Mar 30 16:51:00 GMT 1998
cp -r newlib/libc/include/ ~/cross/sparc-sun-solaris2/ ## Required??
Newlib is intended for embedded systems. It was never intended to be used
with UNIX workstations.
As such, newlib isn't a reasonable drop in replacement for the Solaris2 C
library. You will have much better luck if you use the actual Solaris2 C
library.
You would probably have better luck with GNU libc also, if it has been
ported to Solaris2.
../../gcc/config/sparc/gmon-sol2.c:187: `PATH_MAX' undeclared (first use this function)
Newlib does not define PATH_MAX because that is an OS specific value, and
there is no way for the OS independent newlib headers to know the right value.
If you use newlib with an OS, the OS has to provide the missing OS specific
values.
Jim
More information about the Gcc-bugs
mailing list