OpenJDK does not build on Solaris nv82

Max (Weijun) Wang Weijun.Wang at Sun.COM
Tue Feb 5 09:15:05 UTC 2008


Hi All

Just update my Solaris to nv82 and nightly build fails:

"/net/bounty.prc.sun.com/j2se-jsn/max/work/myjdk/jdk/src/solaris/hpi/ 
native_threads/src/sys_api_td.c", line 101: syntax error before or  
at: limit
"/net/bounty.prc.sun.com/j2se-jsn/max/work/myjdk/jdk/src/solaris/hpi/ 
native_threads/src/sys_api_td.c", line 101: warning: undefined or  
missing type for: limit
"/net/bounty.prc.sun.com/j2se-jsn/max/work/myjdk/jdk/src/solaris/hpi/ 
native_threads/src/sys_api_td.c", line 105: undefined symbol: limit
cc: acomp failed for /net/bounty.prc.sun.com/j2se-jsn/max/work/myjdk/ 
jdk/src/solaris/hpi/native_threads/src/sys_api_td.c
gnumake[5]: *** [/net/bounty.prc.sun.com/j2se-jsn/armory/java/re/ 
max_huge/b7open/solaris-sparc/tmp/java/hpi/native_threads/obj/ 
sys_api_td.o] Error 2
gnumake[5]: *** Waiting for unfinished jobs....
gnumake[5]: *** Waiting for unfinished jobs....
gnumake[5]: Leaving directory `/net/bounty.prc.sun.com/j2se-jsn/max/ 
work/myjdk/jdk/make/java/hpi/native'

It seems that inside the file jdk/src/solaris/hpi/native_threads/src/ 
sys_api_td.c, there's a line
      101:   int InitializeIO(rlim_t limit)
and the type rlim_t is not recognized.

I do a little search and find out that in my /usr/include/sys/stream.h:

#include <sys/isa_defs.h>
#ifdef _KERNEL
#include <sys/vnode.h>
#endif
#include <sys/poll.h>
#include <sys/strmdep.h>
#include <sys/cred.h>
#include <sys/t_lock.h>
#include <sys/model.h>

While in the old versions, the sys/vnode.h line is not surrounded in  
#ifdef.

Anyone can pass this to a Solaris guy?

Thanks
Max




More information about the build-dev mailing list