perl-modperl-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jkal...@apache.org
Subject svn commit: r1448056 - /perl/modperl/branches/httpd24/xs/ModPerl/Const/Const.xs
Date Wed, 20 Feb 2013 09:30:32 GMT
Author: jkaluza
Date: Wed Feb 20 09:30:32 2013
New Revision: 1448056

URL: http://svn.apache.org/r1448056
Log:
* xs/ModPerl/Const/Const.xs: Define perl_module to fix Const.so loading problem


Modified:
    perl/modperl/branches/httpd24/xs/ModPerl/Const/Const.xs

Modified: perl/modperl/branches/httpd24/xs/ModPerl/Const/Const.xs
URL: http://svn.apache.org/viewvc/perl/modperl/branches/httpd24/xs/ModPerl/Const/Const.xs?rev=1448056&r1=1448055&r2=1448056&view=diff
==============================================================================
--- perl/modperl/branches/httpd24/xs/ModPerl/Const/Const.xs (original)
+++ perl/modperl/branches/httpd24/xs/ModPerl/Const/Const.xs Wed Feb 20 09:30:32 2013
@@ -17,6 +17,22 @@
 #include "mod_perl.h"
 #include "modperl_const.h"
 
+
+/* FIXME: To define extern perl_module to something so Const.so can be
+ * loaded later. Without this code, loading Const.so fails with 
+ * undefined_symbol: perl_module.
+ */
+module AP_MODULE_DECLARE_DATA perl_module = {
+    STANDARD20_MODULE_STUFF,
+    NULL, /* dir config creater */
+    NULL,  /* dir merger --- default is to override */
+    NULL, /* server config */
+    NULL,  /* merge server config */
+    NULL,              /* table of config file commands       */
+    NULL,    /* register hooks */
+};
+
+
 MODULE = ModPerl::Const    PACKAGE = ModPerl::Const
 
 PROTOTYPES: disable



Mime
View raw message