Re: Missing symbol: mod_perl2-RC3

[prev] [thread] [next] [Date index for 2005/01/10]

From: Gordon Lack
Subject: Re: Missing symbol: mod_perl2-RC3
Date: 18:31 on 10 Jan 2005
> Yes, it means that irix is a special case and needs to add this option. So
> you have most of it solved. Now please take a look at
> perl_config_lddlflags in lib/Apache/Build.pm, it should probably go there
> (make a special case for IRIX). A patch would be gladly accepted.

   It's ldopts() that needs the code.

   Here is a patch.  Tested on irix.  Added option at correct place.

====================
--- Build.pm.orig   Thu Jan  6 00:46:49 2005
+++ Build.pm    Mon Jan 10 18:28:58 2005
@@ -442,6 +442,16 @@
 
     $config->{ldflags} = $ldflags; #reset
 
+# Iff we are on Irix then we need to persuade the symbols in libperl.a
+# to not be HIDDEN once we load them into mod_perl.so.  So we need to
+# add -exports immediately before -lperl.
+# This assumes we need this for all irix builds.
+#
+    if ($^O eq 'irix') {
+       warn "Failed to fix Irix symbol exporting\n" unless
+            ($ldopts =~ s/-lperl\b/-exports -lperl/);
+    }
+
     $ldopts;
 }

(message missing)

Missing symbol: mod_perl2-RC3
Lack Mr G M 16:31 on 06 Jan 2005

Re: Missing symbol: mod_perl2-RC3
Stas Bekman 16:53 on 06 Jan 2005

Re: Missing symbol: mod_perl2-RC3
Gordon Lack 18:42 on 06 Jan 2005

Bug(?) in mod_perl-2 RC3
Gordon Lack 19:16 on 06 Jan 2005

Re: Bug(?) in mod_perl-2 RC3
Stas Bekman 16:36 on 10 Jan 2005

Re: Bug(?) in mod_perl-2 RC3
Gordon Lack 18:04 on 10 Jan 2005

Re: Missing symbol: mod_perl2-RC3
Stas Bekman 16:40 on 10 Jan 2005

Re: Missing symbol: mod_perl2-RC3
Gordon Lack 18:10 on 10 Jan 2005

Re: Missing symbol: mod_perl2-RC3
Gordon Lack 18:31 on 10 Jan 2005

Re: Missing symbol: mod_perl2-RC3
Stas Bekman 21:57 on 10 Jan 2005

Re: Bug(?) in mod_perl-2 RC3
Stas Bekman 22:24 on 10 Jan 2005

Generated at 11:30 on 23 Feb 2005 by mariachi v0.52