Here is what happens:

MM 6.03 used to create libapreq.a but not libapreq.so, libapreq.a was just a by product and never was intented to be installed. Request.so was statically linking libapreq.a into it.

Now with 6.12 it creates both libapreq.so and libapreq.so, so when Request.so is linked, it links libapreq.so dynamically, and of course it can't resolve it later when loading.

This patch fixes things for me in libapreq and works with MM 6.03 and 6.12. Steve, please confirm that it works for you and I'll commit it.

However Michael may want to do something else about it, since the two versions don't do the same thing. And other people may have similar problems.

Index: Cookie/Makefile.PL
===================================================================
RCS file: /home/cvs/httpd-apreq/Cookie/Makefile.PL,v
retrieving revision 1.5
diff -u -r1.5 Makefile.PL
--- Cookie/Makefile.PL  3 Apr 2001 19:24:08 -0000       1.5
+++ Cookie/Makefile.PL  31 Jul 2003 11:31:06 -0000
@@ -27,7 +27,7 @@
         @mm_args,
         'INC'  => "-I../c ". $src->inc,
         'TYPEMAPS'  => $src->typemaps,
-        'LIBS' => "-L$root -lapreq",
+        'OBJECT' => "Cookie.o $root/libapreq.a",
        'dynamic_lib' => {
                'OTHERLDFLAGS' => $src->otherldflags,
        },
Index: Request/Makefile.PL
===================================================================
RCS file: /home/cvs/httpd-apreq/Request/Makefile.PL,v
retrieving revision 1.5
diff -u -r1.5 Makefile.PL
--- Request/Makefile.PL 3 Apr 2001 19:24:09 -0000       1.5
+++ Request/Makefile.PL 31 Jul 2003 11:31:06 -0000
@@ -27,7 +27,7 @@
          @mm_args,
          'INC' => "-I../c ". $src->inc,
          'TYPEMAPS'  => $src->typemaps,
-          'LIBS' => "-L$root -lapreq",
+          'OBJECT' => "Request.o $root/libapreq.a",
          'dynamic_lib' => {
                'OTHERLDFLAGS' => $src->otherldflags,
          },
__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com



Reply via email to