This is the mail archive of the java-patches@gcc.gnu.org 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: Java build failure


> java/net/Inet4Address.h: No such file or directory
> /home/rearnsha/gnusrc/egcs-cross/libjava/java/net/natNetworkInterface.cc:56
>
> :35:
>
> java/net/Inet6Address.h: No such file or directory
>
>
> Where are these include files?

I've commited the attached patch. These files are not yet in CVS, only on my 
hard disc. Sorry for the trouble.


Michael
-- 
Homepage: http://www.worldforge.org/
GPG-key: http://konqueror.dyndns.org/~mkoch/michael.gpg
Index: ChangeLog
===================================================================
RCS file: /cvs/gcc/gcc/libjava/ChangeLog,v
retrieving revision 1.1442
diff -u -b -r1.1442 ChangeLog
--- ChangeLog	17 Sep 2002 06:58:39 -0000	1.1442
+++ ChangeLog	17 Sep 2002 10:56:35 -0000
@@ -1,5 +1,10 @@
 2002-09-17  Michael Koch  <konqueror@gmx.de>
 
+	* java/net/natNetworkInterface.cc:
+	Removed unneed and yet wrong includes.
+
+2002-09-17  Michael Koch  <konqueror@gmx.de>
+
 	* java/net/NetworkInterface.java: New file.
 	* java/net/natNetworkInterface.java: New file.
 	* configure.in: Added check for net/if.h.
Index: java/net/natNetworkInterface.cc
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/net/natNetworkInterface.cc,v
retrieving revision 1.1
diff -u -b -r1.1 natNetworkInterface.cc
--- java/net/natNetworkInterface.cc	17 Sep 2002 06:58:40 -0000	1.1
+++ java/net/natNetworkInterface.cc	17 Sep 2002 10:56:35 -0000
@@ -52,8 +52,7 @@
 #include <gcj/cni.h>
 #include <jvm.h>
 #include <java/net/NetworkInterface.h>
-#include <java/net/Inet4Address.h>
-#include <java/net/Inet6Address.h>
+#include <java/net/InetAddress.h>
 #include <java/net/SocketException.h>
 #include <java/util/Vector.h>
 
@@ -122,8 +121,8 @@
       jbyteArray baddr = JvNewByteArray (len);
       memcpy (elements (baddr), &(sa.sin_addr), len);
       jstring if_name = JvNewStringLatin1 (if_record->ifr_name);
-      Inet4Address* address =
-        new java::net::Inet4Address (baddr, JvNewStringLatin1 (""));
+      InetAddress* address =
+        new java::net::InetAddress (baddr, JvNewStringLatin1 (""));
       ht->add (new NetworkInterface (if_name, address));
       if_record++;
     }

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