This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: libjava won't build on alphaev6-unknown-linux-gnu (Red Hat Linux 7.0)
- From: Tom Tromey <tromey at redhat dot com>
- To: Alexandre Oliva <aoliva at redhat dot com>
- Cc: java at gcc dot gnu dot org
- Date: 30 Jan 2002 11:46:55 -0700
- Subject: Re: libjava won't build on alphaev6-unknown-linux-gnu (Red Hat Linux 7.0)
- References: <oru1t4cnya.fsf@free.redhat.lsd.ic.unicamp.br>
- Reply-to: tromey at redhat dot com
>>>>> "Alexandre" == Alexandre Oliva <aoliva@redhat.com> writes:
Alexandre> I thought this had been fixed last week, but the problem
Alexandre> still remains in this week's snapshot. I'll try to get a
Alexandre> chance to investigate it and fix it, but I won't mind if
Alexandre> someone beats me to it :-)
This particular piece of code has caused a lot of problems.
Could you try this patch? I'm not at all confident it will work.
Tom
Index: java/net/natPlainSocketImpl.cc
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/net/natPlainSocketImpl.cc,v
retrieving revision 1.28
diff -u -r1.28 natPlainSocketImpl.cc
--- java/net/natPlainSocketImpl.cc 2002/01/20 16:34:07 1.28
+++ java/net/natPlainSocketImpl.cc 2002/01/22 20:33:49
@@ -71,9 +71,10 @@
#endif
// A wrapper for recv so we don't have to do configure tests.
-template <typename T_fd, typename T_buf, typename T_len, typename T_flags>
+template <typename T_ret, typename T_fd, typename T_buf,
+ typename T_len, typename T_flags>
static inline ssize_t
-_Jv_recv (ssize_t (*recv_func) (T_fd s, T_buf buf, T_len len, T_flags flags),
+_Jv_recv (T_ret (*recv_func) (T_fd s, T_buf buf, T_len len, T_flags flags),
int s, void *buf, size_t len, int flags)
{
return recv_func ((T_fd) s, (T_buf) buf, (T_len) len, (T_flags) flags);