no matching function

Tom Tromey tromey@redhat.com
Tue Jan 22 08:46:00 GMT 2002


>>>>> "Matthew" == Matthew Bemis <bemis@iol.unh.edu> writes:

Matthew> I updated my basic toolchain on my alpha yesterday, and whe I
Matthew> built I got the following error.  Can anyone help me with
Matthew> this error?

This code has proven to be quite problematic :-(
Sorry about that.

Matthew> no matching function for call to `_Jv_recv(int (&)(int, void*, long unsigned
Matthew>    int, int) throw (), jint&, void*&, jint&, int)'

What is the signature for `recv' on your platform?

Could you try the appended patch?  It might help.  If so, tell me and
I will check it in.

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 16:43:40
@@ -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);



More information about the Java mailing list