This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: {Patch] java.net network functions
- From: Richard Earnshaw <rearnsha at arm dot com>
- To: Michael Koch <konqueror at gmx dot de>
- Cc: java-patches at gcc dot gnu dot org, Richard dot Earnshaw at arm dot com
- Date: Thu, 21 Nov 2002 17:23:03 +0000
- Subject: Re: {Patch] java.net network functions
- Organization: ARM Ltd.
- Reply-to: Richard dot Earnshaw at arm dot com
> Am Donnerstag, 21. November 2002 14:55 schrieb Richard Earnshaw:
> > > Hmm, I suppose include/platform.h is a link to include/posix.h.
> > > In posix.h sys/socket.h is included. Thats where ::socket()
> > > should be defined.
> > >
> > > I just move the code and made no real changes and I tried to get
> > > all needed #defines too. I'm currently clueless why ::socket isnt
> > > defined on arm but on my i386-linux.
> >
> > The difference is that previously we didn't depend on sys/socket.h
> > existing (which is why it's wrapped in autoconf include guards).
> > But with your change we now assume it does exist (we use a function
> > from it even if we didn't include it). A newlib libc does not
> > provide this header so we then get the error.
>
> I think I finally got your problem and commited a fix to CVS, please
> test it and tell me if it works. The problem is that I dorgot the
> #fdefs for DISABLE_JAVA_NET. newlib doesnt support network sockets,
> it seems. Now libgcj should "work" for you again.
Well that's fixed most of the errors, but this one still remains...
/home/rearnsha/gnusrc/egcs-cross/libjava/prims.cc: In function `jint
_Jv_CreateJavaVM(void*)':
/home/rearnsha/gnusrc/egcs-cross/libjava/prims.cc:932: error: `
_Jv_platform_initialize' undeclared (first use this function)
R.