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: Michael Koch <konqueror at gmx dot de>
- To: java-patches at gcc dot gnu dot org
- Cc: Richard dot Earnshaw at arm dot com
- Date: Thu, 21 Nov 2002 12:52:29 +0100
- Subject: Re: {Patch] java.net network functions
- References: <200211211132.gALBWkc23274@pc960.cambridge.arm.com>
Am Donnerstag, 21. November 2002 12:32 schrieb Richard Earnshaw:
> > Hello list,
> > I have commited the attached patch to include/ and java/net/ to
> > move needed network functions to a central place.
> >
> > I decided to move them into the existing posix.h and win32.h
> > headers.
> >
> > These functions will now be used in java.nio native code too.
> >
> > In the future I plan to add some more complex functions with
> > prototypes in these headers. Should the implementations of these
> > functions be in [posic|win32].cc or somewhere else ?
>
> This has broken an arm-elf cross-build again :-(
>
>
> /work/rearnsha/gnu/egcs/gcc/xgcc -shared-libgcc
> -B/work/rearnsha/gnu/egcs/g cc/ -nostdinc++
> -L/work/rearnsha/gnu/egcs/arm-elf/thumb/libstdc++-v3/src
> -L/work/rearnsha/gnu/egcs/arm-elf/thumb/libstdc++-v3/src/.libs
> -nostdinc -B/work/rearnsha/gnu/egcs/arm-elf/thumb/newlib/ -isystem
> /work/rearnsha/gnu/egcs/arm-elf/thumb/newlib/targ-include -isystem
> /home/rearnsha/gnusrc/egcs-cross/newlib/libc/include
> -B/work/rearnsha/gnu/install/arm-elf/bin/
> -B/work/rearnsha/gnu/install/arm- elf/lib/ -isystem
> /work/rearnsha/gnu/install/arm-elf/include
> -L/work/rearnsha/gnu/egcs/ld -mthumb -DHAVE_CONFIG_H -I.
> -I/home/rearnsha/gnusrc/egcs-cross/libjava -I./include -I./gcj
> -I/home/rearnsha/gnusrc/egcs-cross/libjava -Iinclude
> -I/home/rearnsha/gnusrc/egcs-cross/libjava/include
> -I/home/rearnsha/gnusrc/egcs-cross/libjava/../boehm-gc/include
> -DSILENT=1 -DNO_SIGNALS=1 -DNO_EXECUTE_PERMISSION=1
> -DALL_INTERIOR_POINTERS=1 -DJAVA_FINALIZATION=1 -DGC_GCJ_SUPPORT=1
> -DATOMIC_UNCOLLECTABLE=1 -DNO_SIGSET=1 -DNO_DEBUGGING=1
> -I/home/rearnsha/gnusrc/egcs-cross/libjava/. /./libjava/../gcc
> -I/home/rearnsha/gnusrc/egcs-cross/libjava/../zlib -fno-rtti
> -fnon-call-exceptions -fdollars-in-identifiers -Wswitch-enum
> -I/usr/X11R6/include -W -Wall -D_GNU_SOURCE
> -DPREFIX=\"/work/rearnsha/gnu/i nstall\" -g -O2 -mthumb
> -Wp,-MD,.deps/jni.pp -c /home/rearnsha/gnusrc/egcs-
> cross/libjava/jni.cc -o jni.o
> In file included from
> /home/rearnsha/gnusrc/egcs-cross/libjava/prims.cc:12:
> include/platform.h: In function `int _Jv_socket(int, int, int)':
> include/platform.h:51: error: `::socket' undeclared (first use
> here) include/platform.h: At global scope:
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.
Michael
--
Homepage: http://www.worldforge.org/
GPG-key: http://konqueror.dyndns.org/~mkoch/michael.gpg