http://sablevm.org/bugs/show_bug.cgi?id=97
Summary: sablevm-classpath build fails on Mac OS X 10.2 and later
Product: SableVM
Version: unspecified
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: normal
Priority: P2
Component: default
AssignedTo: [email protected]
ReportedBy: [email protected]
QAContact: [email protected]
CC: [email protected]
Building sablevm-classpath on Mac OS X versions 10.2 and later fail due to a extra definition for
socklen_t.
These changes to configure.ac and native/target/generic/target_generic_network.h test for an existing
definition and avoid redefining if previously defined.
diff -ur sablevm-classpath-1.1.9/configure.ac sablevm-classpath-1.1.9-1/configure.ac
--- sablevm-classpath-1.1.9/configure.ac Thu Jan 20 10:25:58 2005
+++ sablevm-classpath-1.1.9-1/configure.ac Thu Feb 10 18:57:00 2005
@@ -177,12 +177,25 @@
AC_CHECK_HEADERS([sys/time.h])
dnl Check for crt_externs.h on Darwin.
AC_CHECK_HEADERS([crt_externs.h])
+ AC_CHECK_HEADERS([sys/socket.h])
AC_EGREP_HEADER(uint32_t, stdint.h, AC_DEFINE(HAVE_INT32_DEFINED, 1, [Define to 1 if you have
uint32_t]))
AC_EGREP_HEADER(uint32_t, inttypes.h, AC_DEFINE(HAVE_INT32_DEFINED, 1, [Define to 1 if you have
uint32_t]))
AC_EGREP_HEADER(u_int32_t, sys/types.h, AC_DEFINE(HAVE_BSD_INT32_DEFINED, 1, [Define to 1 if
you have BSD u_int32_t]))
AC_EGREP_HEADER(u_int32_t, sys/config.h, AC_DEFINE(HAVE_BSD_INT32_DEFINED, 1, [Define to 1 if
you have BSD u_int32_t]))
+AC_CHECK_TYPE([socklen_t],
+ AC_DEFINE(HAVE_SOCKLEN_T, 1, Define to 1 if <sys/socket.h> defines socklen_t),,[
+#include "confdefs.h" /* the header built by configure so far */
+#ifdef HAVE_SYS_TYPES_H
+#include <sys/types.h>
+#endif
+#ifdef HAVE_SYS_SOCKET_H
+#include <sys/socket.h>
+#endif])
+
+
+
AC_CHECK_FUNCS([ftruncate fsync select])
AC_CHECK_FUNCS([gethostname socket strerror fork pipe execve open close])
AC_CHECK_FUNCS([lseek fstat read write htonl memset htons connect])
diff -ur sablevm-classpath-1.1.9/native/target/generic/target_generic_network.h sablevm-classpath
-1.1.9-1/native/target/generic/target_generic_network.h
--- sablevm-classpath-1.1.9/native/target/generic/target_generic_network.h Thu Jan 20 10:24:
16 2005
+++ sablevm-classpath-1.1.9-1/native/target/generic/target_generic_network.h Thu Feb 10 18:56:
13 2005
@@ -58,9 +58,9 @@
#include <stdlib.h>
-#ifdef __APPLE__
+#ifndef HAVE_SOCKLEN_T
typedef unsigned int socklen_t;
-#endif /* __APPLE__ */
+#endif /* HAVE_SOCKLEN_T */
#include "target_native.h"
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
You are the QA contact for the bug, or are watching the QA contact.
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.