Bug#408888: closed by Matthias Klose <doko@debian.org> (Bug#408888: fixed in gcc-4.1 4.1.2-15)
Hi,
Again, could you please apply the attached patch? Some of the
hurd-specific fixes got merged in the latest snapshot you took of gcc.
Samuel
Index: debian/patches/libjava-hurdfix.dpatch
===================================================================
--- debian/patches/libjava-hurdfix.dpatch (révision 2466)
+++ debian/patches/libjava-hurdfix.dpatch (copie de travail)
@@ -48,34 +48,6 @@
+#endif
caseSensitive = true;
}
---- gcc-4.1.1/libjava/java/net/natVMInetAddressPosix.cc.orig 2007-01-26 15:27:19.000000000 +0000
-+++ gcc-4.1.1/libjava/java/net/natVMInetAddressPosix.cc 2007-01-26 15:45:53.000000000 +0000
-@@ -47,10 +47,25 @@
- {
- char *chars;
- #ifdef HAVE_GETHOSTNAME
-+#ifdef MAXHOSTNAMELEN
- char buffer[MAXHOSTNAMELEN];
- if (gethostname (buffer, MAXHOSTNAMELEN))
- return NULL;
- chars = buffer;
-+#else
-+ size_t size = 256;
-+ while (1) {
-+ char buffer[size];
-+ if (!gethostname (buffer, size-1))
-+ {
-+ buffer[size-1] = 0;
-+ return JvNewStringUTF (buffer);
-+ }
-+ else if (errno != ENAMETOOLONG)
-+ return NULL;
-+ size *= 2;
-+ }
-+#endif
- #elif HAVE_UNAME
- struct utsname stuff;
- if (uname (&stuff) != 0)
diff -ur gcj-4.1.1/libjava/libltdl/acinclude.m4 gcj-4.1.1/libjava/libltdl/acinclude.m4
--- gcj-4.1.1/libjava/libltdl/acinclude.m4 2006-05-12 13:35:07.000000000 +0200
+++ gcj-4.1.1/libjava/libltdl/acinclude.m4 2006-05-12 11:07:03.000000000 +0200
Reply to: