[Mono-bugs] [Bug 74672][Blo] New - SVN r43310 mod_mono: runtime error with Apache 1.3.33
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Wed, 20 Apr 2005 06:29:08 -0400 (EDT)
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by flashdict@gmail.com.
http://bugzilla.ximian.com/show_bug.cgi?id=74672
--- shadow/74672 2005-04-20 06:29:08.000000000 -0400
+++ shadow/74672.tmp.9112 2005-04-20 06:29:08.000000000 -0400
@@ -0,0 +1,49 @@
+Bug#: 74672
+Product: Mono: Tools
+Version: 1.1
+OS: other
+OS Details: FreeBSD
+Status: NEW
+Resolution:
+Severity:
+Priority: Blocker
+Component: mod_mono
+AssignedTo: gonzalo@ximian.com
+ReportedBy: flashdict@gmail.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: SVN r43310 mod_mono: runtime error with Apache 1.3.33
+
+Description of Problem:
+
+Using Apache 1.3.33 with latest mod_mono SVN gives an error on httpd startup:
+
+Starting apache.
+Syntax error on line 69 of /usr/local/etc/apache/httpd.conf:
+Cannot load /usr/local/libexec/apache/mod_mono.so into server:
+/usr/local/libexec/apache/mod_mono.so: Undefined symbol "apr_table_addn"
+
+Apparantly the latest change:
+
+- apr_table_setn (r->headers_out, name, value);
++ apr_table_addn (r->headers_out, name, value);
+
+is not supported in 1.3, and needs something like this:
+
+Index: mod_mono.c
+===================================================================
+--- mod_mono.c (revision 43315)
++++ mod_mono.c (working copy)
+@@ -330,7 +330,11 @@
+ if (!strcasecmp (name,"Content-Type")) {
+ r->content_type = value;
+ } else {
++#ifdef APACHE13
++ apr_table_setn(r->headers_out, name, value);
++#else
+ apr_table_addn (r->headers_out, name, value);
++#endif
+ }
+ }