newlib and the use of fcntl by java

Richard Earnshaw rearnsha@cambridge.arm.com
Tue Sep 17 06:39:00 GMT 2002


Hmm, it appears that java is making use of the fcntl function in newlib 
(or at least, it is trying to).  This is a problem, since most embedded 
targets don't provide this function.  The function fcntl always exists in 
newlib's libc.a, but on most targets it will call a non-existent function 
_fcntl which causes a link error.

I think there are two problems that need to be fixed here:

1) newlib shouldn't provide fcntl on configurations where _fcntl doesn't 
exist.

2) Java needs to cope with the absence of this function.

R.



More information about the Newlib mailing list