This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

libjava does not build on arm-elf (newlib) after your patch


Tom,

When trying to build libjava for arm-elf I get this:

In file included from /home/anemet/src/clean/clean/libjava/prims.cc:12:
include/platform.h: In function `void _Jv_platform_usleep(long unsigned int)':
include/platform.h:66: error: `usleep' undeclared (first use this function)

And IMO this is patch that is causing it:

2002-12-31  Tom Tromey  <tromey@redhat.com> 
            Ranjit Mathew  <rmathew@hotmail.com> 
 
        Fix for PR libgcj/8997: 
        * java/lang/natObject.cc (spin): Use _Jv_platform_usleep. 
        Include platform.h. 
        * include/posix.h (_Jv_platform_usleep): New function. 
        * include/win32.h (_Jv_platform_usleep): New function. 

Apparently, newlib does not define usleep except for rtems and cygwin.
See newlib/libc/include/sys/unistd.h.  I guess there should be a
configure check for usleep.

Adam


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]