httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jean-frederic clere <jfrederic.cl...@fujitsu-siemens.com>
Subject Re: shlibtool problems in apache2.0 [PATCH]
Date Tue, 06 Feb 2001 16:17:06 GMT
After fighting with shlibtool I discovered that the problem was that
libtool was called instead shlibtools.

Of course it easy to fix and it fixes mod_dav and mod_dav_fs (and would
fix mod_proxy).

Find enclosed the needed patch, please commit it.

Cheers

Jean-frederic

+++
Index: acinclude.m4
===================================================================
RCS file: /home/cvs/apache/httpd-2.0/acinclude.m4,v
retrieving revision 1.63
diff -u -r1.63 acinclude.m4
--- acinclude.m4        2001/01/28 07:41:15     1.63
+++ acinclude.m4        2001/02/06 17:07:52
@@ -249,7 +249,7 @@
     else
       apache_need_shared=yes
       libname="mod_$1.la"
-      shobjects=`echo $objects | sed 's/\.lo/.slo/'`
+      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
       modpath_shared="$modpath_shared $libname"
       cat >>$modpath_current/modules.mk<<EOF
 $libname:
$shobjects                                                                               
             
++++

jean-frederic clere wrote:
> 
> Hi all,
> 
> I have tried to arrange the config.m4 of mod_dav, but I am not able to
> link.
> shlibtool handles a different way the mod_dav_fs.lo file than the other
> files.
> 
> Looking to libtool documentation and configure have not help me. Could
> someone help?
> 
> The problem is that mod_dav_fs.lo is compiled correctly:
> +++
> gcc -I. -I/home2/apache20/apache/httpd-2.0/modules/dav/fs
> -I/home2/apache20/apache/httpd-2.0/server/mpm/mpmt_pthread
> -I/home2/apache20/apache/httpd-2.0/include
> -I/home2/apache20/apache/httpd-2.0/srclib/apr/include
> -I/home2/apache20/apache/httpd-2.0/srclib/apr-util/include
> -I/home2/apache20/apache/httpd-2.0/os/unix
> -I/home2/apache20/apache/httpd-2.0/srclib/expat-lite -D_REENTRANT -g -O2
> -I../main -pthread -DNO_DBM_REWRITEMAP -pthread -c mod_dav_fs.c  -fPIC
> -DPIC -o mod_dav_fs.lo
> +++
> 
> But not the next files (for example dbm.c):
> +++
> gcc -I. -I/home2/apache20/apache/httpd-2.0/modules/dav/fs
> -I/home2/apache20/apache/httpd-2.0/server/mpm/mpmt_pthread
> -I/home2/apache20/apache/httpd-2.0/include
> -I/home2/apache20/apache/httpd-2.0/srclib/apr/include
> -I/home2/apache20/apache/httpd-2.0/srclib/apr-util/include
> -I/home2/apache20/apache/httpd-2.0/os/unix
> -I/home2/apache20/apache/httpd-2.0/srclib/expat-lite -D_REENTRANT -g -O2
> -I../main -pthread -DNO_DBM_REWRITEMAP -pthread -c dbm.c -o dbm.o
> echo timestamp >
> dbm.lo
> +++
> 
> Why the hell shlibtool changes the  way it compiles the files - Doing it
> differently for the first one?
> 
> Cheers
> 
> Jean-frederic
> 
> Note:
> 
> The modules/dav/fs does not compile but just adding CFLAGS="$CFLAGS
> -I../main" in config.m4 fixes this problem.
Mime
View raw message