Clere Jean-Frederic FSC EP LP COM 5 wrote:
> 
> GOMEZ Henri wrote:
> >
> > >> Strange,
> > >>
> > >> I didn't have that, libtool use mod_jk.la :
> > >>
> > >> make -f Makefile.linux
> > >>
> > >> /usr/sbin/apxs2 -DUSE_APACHE_MD5 -I ../common -I
> > >/opt/IBMJava2-13/include -I
> > >> /opt/IBMJava2-13/include/linux -c -o mod_jk.la mod_jk.c
> > >
> > >mod_jk.la that why I am complaining!
> > >Should not we able to use mod_jk.so directly?
> >
> > Yes it seems there is something bad here.
> > I tried many things before using .la.
> >
> > Do you see what to fix in apxs ?
> 
> Yes, I will propose a patch soon...
> 
> >
> > >apxs of Apache-1.3 does it that way.
> >
> > Yes, so we need to fix apxs ?

Here is the patch:
+++
Index: apxs.in                                                                  
===================================================================             
RCS file: /home/cvs/apache/httpd-2.0/support/apxs.in,v                          
retrieving revision 1.20                                                        
diff -u -r1.20 apxs.in                                                          
--- apxs.in     2001/05/18 19:34:48     1.20                                    
+++ apxs.in     2001/06/11 17:11:22                                             
@@ -350,11 +350,13 @@                                                           
             $dso_file =~ s|\.[^.]+$|.la|;                                      
         }                                                                      
         else {                                                                 
-            $dso_file = "mod_unknown.so";                                      
+            $dso_file = "mod_unknown.la";                                      
         }                                                                      
     }                                                                          
     else {                                                                     
+        # libtool only knows about .la files (no .so or .dll).                 
         $dso_file = $opt_o;                                                    
+        $dso_file =~ s|\.[^.]+$|.la|;                                          
     }                                                                          
                                                                                
     #   create compilation commands                                            
+++

The apxs description programs/apxs.html needs a update:
- the outputs are from Apache-1.3 should be from Apache-2.0
- dsofile is mod_name.la not mod_name.so
- should we explain that the "real" dynamic library is located in .libs and that
it should be installed by using apxs -i mod_name.la?

Should we tell (by print for example) the apxs silently correct the object name?

Please check the patch and commit it.

Cheers

Jean-frederic

Reply via email to