[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Statically linked mod_dav_svn.so?

From: Jani Averbach <jaa_at_cc.jyu.fi>
Date: 2003-11-04 18:29:29 CET

Hello!

While I did the last testing of my svntest patch, I ran to this:

If I configure subversion to build and link statically, I can not
build mod_dav_svn.so.

So my questions are:

1) Is it meaningful at all to try build statically linked
   mod_dav_svn.so, I mean, I don't know how Apache DSO modules should
   work, or which kind they should be.
   
   Regarding this document, http://httpd.apache.org/docs-2.0/dso.html,
   this isn't the smartest thing to do, is it?

2) However, make should not fail with this config.

3) How should I build/link/configure/etc httpd with statically linked
   mod_svn_dav? There is no option --with-dav-svn for httpd/configure,
   or is this just a configuration that is not formally supported?

What I have done:

configure:
#!/bin/sh

    "../svn/configure" \
    "--prefix=/data/svntest/inst/svn" \
    "--with-apr=/data/svntest/inst/apr-0.9" \
    "--with-apr-util=/data/svntest/inst/apr-util-0.9" \
    "--with-apxs=/data/svntest/inst/httpd-2.0/bin/apxs" \
    "--disable-shared" \
    "$@"

make
make install

and the result is:
...
cd subversion/mod_dav_svn ; /data/svntest/svn/ac-helpers/install-sh -c -d "/data/svntest/inst/httpd-2.0/modules" ; /data/svntest/inst/httpd-2.0/bin/apxs -i -S LIBEXECDIR="/data/svntest/inst/httpd-2.0/modules" -a -n dav_svn mod_dav_svn.la
/data/svntest/inst/httpd-2.0/build/instdso.sh SH_LIBTOOL='/data/svntest/inst/apr-0.9/build/libtool' mod_dav_svn.la /data/svntest/inst/httpd-2.0/modules
/data/svntest/inst/apr-0.9/build/libtool --mode=install cp mod_dav_svn.la /data/svntest/inst/httpd-2.0/modules/
cp .libs/mod_dav_svn.lai /data/svntest/inst/httpd-2.0/modules/mod_dav_svn.la
cd subversion/mod_dav_svn ; /data/svntest/svn/ac-helpers/install-sh -c -d "/data/svntest/inst/httpd-2.0/modules" ; /data/svntest/inst/httpd-2.0/bin/apxs -i -S LIBEXECDIR="/data/svntest/inst/httpd-2.0/modules" -a -n dav_svn mod_dav_svn.la
/data/svntest/inst/httpd-2.0/build/instdso.sh SH_LIBTOOL='/data/svntest/inst/apr-0.9/build/libtool' mod_dav_svn.la /data/svntest/inst/httpd-2.0/modules
/data/svntest/inst/apr-0.9/build/libtool --mode=install cp mod_dav_svn.la /data/svntest/inst/httpd-2.0/modules/
cp .libs/mod_dav_svn.lai /data/svntest/inst/httpd-2.0/modules/mod_dav_svn.la
cp .libs/mod_dav_svn.a /data/svntest/inst/httpd-2.0/modules/mod_dav_svn.a
ranlib /data/svntest/inst/httpd-2.0/modules/mod_dav_svn.a
chmod 644 /data/svntest/inst/httpd-2.0/modules/mod_dav_svn.a
PATH="$PATH:/sbin" ldconfig -n /data/svntest/inst/httpd-2.0/modules
----------------------------------------------------------------------
Libraries have been installed in:
   /data/svntest/inst/httpd-2.0/modules

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-Wl,--rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
Warning! dlname not found in /data/svntest/inst/httpd-2.0/modules/mod_dav_svn.la.
Assuming installing a .so rather than a libtool archive.
chmod 755 /data/svntest/inst/httpd-2.0/modules/mod_dav_svn.so
chmod: failed to get attributes of `/data/svntest/inst/httpd-2.0/modules/mod_dav_svn.so': No such file or directory
apxs:Error: Command failed with rc=65536
.
make: *** [install-mods-shared] Error 1

$ libtool --version
ltmain.sh (GNU libtool) 1.4.3 (1.922.2.111 2002/10/23 02:54:36)

BR, Jani

-- 
Jani Averbach
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Nov 4 18:30:14 2003

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.