This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
4.0.2/4.1 PATCH: Don't use vsnprintf on Tru64 UNIX V4.0
- From: Rainer Orth <ro at TechFak dot Uni-Bielefeld dot DE>
- To: java-patches at gcc dot gnu dot org
- Date: Mon, 6 Jun 2005 21:15:29 +0200 (MEST)
- Subject: 4.0.2/4.1 PATCH: Don't use vsnprintf on Tru64 UNIX V4.0
I noticed that all Java execution tests failed on alpha-dec-osf4.0f:
21982:/amnt/figaro/volumes/obj-gcc/gcc/obj.alpha/gcc-4.0.0-20050113/4.0f-gcc/alpha-dec-osf4.0f/libjava/testsuite/TestParent.exe: /sbin/loader: Error: Unresolved symbol in /amnt/figaro/volumes/obj-gcc/gcc/obj.alpha/gcc-4.0.0-20050113/4.0f-gcc/alpha-dec-osf4.0f//libjava/.libs/libgcj.so.6: vsnprintf
21982:/amnt/figaro/volumes/obj-gcc/gcc/obj.alpha/gcc-4.0.0-20050113/4.0f-gcc/alpha-dec-osf4.0f/libjava/testsuite/TestParent.exe: /sbin/loader: Fatal Error: this executable has unresolvable symbols
The reference is from gzio.o, fixed by the following trivial zlib patch.
This gives somewhat reasonable testsuite results again.
Ok for mainline and 4.0 branch (once it reopens)?
Rainer
-----------------------------------------------------------------------------
Rainer Orth, Faculty of Technology, Bielefeld University
Fri Apr 22 18:22:59 2005 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
* zconf.h (NO_vsnprintf): Define on Tru64 UNIX V4.0.
Index: zconf.h
===================================================================
RCS file: /cvs/gcc/gcc/zlib/zconf.h,v
retrieving revision 1.6
diff -u -p -r1.6 zconf.h
--- zconf.h 23 Nov 2004 00:22:36 -0000 1.6
+++ zconf.h 6 Jun 2005 19:14:13 -0000
@@ -328,4 +328,12 @@ typedef uLong FAR uLongf;
#endif
#endif
+/* Tru64 UNIX V4.0 neither */
+#if defined(__alpha) && defined(__osf__)
+#include <unistd.h>
+#if _XOPEN_VERSION < 500
+#define NO_vsnprintf
+#endif
+#endif
+
#endif /* ZCONF_H */