You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by jean-frederic clere <jf...@fujitsu-siemens.com> on 2001/02/05 18:06:24 UTC

shlibtool problems in apache2.0

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.

Re: shlibtool problems in apache2.0 [PATCH]

Posted by Martin Kraemer <Ma...@fujitsu-siemens.com>.
On Tue, Feb 06, 2001 at 05:17:06PM +0100, jean-frederic clere wrote:
> 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.

Thanks, committed.

  Martin
-- 
<Ma...@Fujitsu-Siemens.com>    |       Fujitsu Siemens
       <ma...@apache.org>              |   81730  Munich,  Germany

Re: shlibtool problems in apache2.0 [PATCH]

Posted by jean-frederic clere <jf...@fujitsu-siemens.com>.
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.