This is the mail archive of the mailing list for the Java project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: {Patch] network functions

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
> -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/ -o jni.o
> In file included from
> /home/rearnsha/gnusrc/egcs-cross/libjava/
> 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 

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.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]