[Mono-list] Configuring apache to run mod_mono

Øyvind Hvamstad oyvind@hvamstad.net
Tue, 19 Aug 2003 01:07:56 +0200


--=-eQ4SMNM5TB0w+kOmEHmA
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit

Hi, When starting apache with mod_mono I get:

Can't locate API module structure `mono_module' in file
/usr/local/lib/libmod_mono.so: /usr/sbin/apache: undefined symbol:
mono_module

Can anyone tell me what is wrong? I couldn't find it in the docs

Oh, by the way, a patch that removes those silly cast warnings. They
make me nervous.
-- 
Øyvind Hvamstad <oyvind@hvamstad.net>

--=-eQ4SMNM5TB0w+kOmEHmA
Content-Disposition: attachment; filename=mod_mono_unix.diff
Content-Type: text/x-patch; name=mod_mono_unix.diff; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

Index: src/mod_mono_unix.c
===================================================================
RCS file: /mono/mod_mono/src/mod_mono_unix.c,v
retrieving revision 1.2
diff -u -r1.2 mod_mono_unix.c
--- src/mod_mono_unix.c	4 Aug 2003 22:20:00 -0000	1.2
+++ src/mod_mono_unix.c	18 Aug 2003 22:33:47 -0000
@@ -209,7 +209,7 @@
 static void *
 create_modmono_server_config (apr_pool_t *p, server_rec *s)
 {
-	return apr_pcalloc (p, sizeof (modmono_server_rec));
+	return (void *) apr_pcalloc (p, sizeof (modmono_server_rec));
 }
 
 static void
@@ -288,13 +288,13 @@
 static const char *
 request_get_request_header (request_rec *r, const char *header_name)
 {
-  return apr_table_get (r->headers_in, header_name);
+  return (char *) apr_table_get (r->headers_in, header_name);
 }
 
 static const char *
 request_get_server_variable (request_rec *r, const char *name)
 {
-	return apr_table_get (r->subprocess_env, name);
+	return (char *) apr_table_get (r->subprocess_env, name);
 }
 
 static char *
@@ -364,7 +364,7 @@
 	char *buf;
 
 	read (fd, &l, sizeof (int));
-	buf = apr_pcalloc (pool, l + 1);
+	buf = (char *) apr_pcalloc (pool, l + 1);
 	read (fd, buf, l);
 	/* buf [l] = '\0'; */
 	if (ptr)
@@ -373,7 +373,7 @@
 	if (size)
 		*size = l;
 
-	return buf;
+	return (char *) buf;
 }
 
 static void
@@ -498,7 +498,7 @@
 		break;
 	case GET_CLIENT_BLOCK:
 		read_data (fd, &i, sizeof (int));
-		str = apr_pcalloc (r->pool, i);
+		str = (char *) apr_pcalloc (r->pool, i);
 		i = ap_get_client_block (r, str, i);
 		write_ok (fd);
 		write_data (fd, &i, sizeof (int));

--=-eQ4SMNM5TB0w+kOmEHmA--