This is the mail archive of the
newlib@sources.redhat.com
mailing list for the newlib project.
newlib and the use of fcntl by java
- From: Richard Earnshaw <rearnsha at cambridge dot arm dot com>
- To: java at gcc dot gnu dot org, newlib at sources dot redhat dot com
- Cc: Richard dot Earnshaw at arm dot com
- Date: Tue, 17 Sep 2002 14:38:39 +0100
- Subject: newlib and the use of fcntl by java
- Organization: ARM Ltd.
- Reply-to: Richard dot Earnshaw at arm dot com
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.