You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by nico becker <ni...@gmx.net> on 2021/05/28 10:23:13 UTC

svn from source and build problems @debian

hello,

i want to build the latest sources under debian stable.

i ve done it the following way:

 download sources

 ./get_deps-sh

cd apr -> ./buildconf -> ./configure -> make

cd apr_util -> ./buildconf ->  ./configure --with-apr=../apr/-> make



./configure --with-apr=apr/ --with-apr-util=apr-util --with-lz4=internal
--with-utf8proc=internal

  make

 sudo make install



i got the following error:

libtool: warning: relinking 'libsvn_subr-1.la'  
libtool: install: (cd
/home/user/Downloads/subversion-1.14.1/subversion/libsvn_subr; /bin/bash
"/home/user/Downloads/subversion-1.14.1/libtool"  \--tag CC --silent
--mode=relink gcc -g -O2 -g -O2 -pthread -rpath /usr/local/lib -version-info 0
-Wl,--no-undefined -o libsvn_subr-1.la adler32.lo apr_escape.lo atomic.lo
auth.lo base64.lo bit_array.lo cache-inprocess.lo cache-membuffer.lo cache-
memcache.lo cache-null.lo cache.lo cache_config.lo checksum.lo cmdline.lo
compat.lo compress_lz4.lo compress_zlib.lo config.lo config_auth.lo
config_file.lo config_win.lo crypto.lo ctype.lo date.lo debug.lo deprecated.lo
dirent_uri.lo dso.lo encode.lo eol.lo error.lo fnv1a.lo gpg_agent.lo hash.lo
io.lo iter.lo lock.lo log.lo lz4/lz4.lo macos_keychain.lo magic.lo md5.lo
mergeinfo.lo mutex.lo nls.lo object_pool.lo opt.lo packed_data.lo path.lo
pool.lo prefix_string.lo prompt.lo properties.lo quoprint.lo root_pools.lo
simple_providers.lo skel.lo sorts.lo spillbuf.lo sqlite.lo sqlite3wrapper.lo
ssl_client_cert_providers.lo ssl_client_cert_pw_providers.lo
ssl_server_trust_providers.lo stream.lo string.lo subst.lo sysinfo.lo
target.lo temp_serializer.lo time.lo token.lo types.lo user.lo
username_providers.lo utf.lo utf8proc.lo utf_validate.lo utf_width.lo
validate.lo version.lo win32_crashrpt.lo win32_crypto.lo win32_xlate.lo
x509info.lo x509parse.lo xml.lo -L/home/user/Downloads/subversion-1.14.1/apr-
util -laprutil-1 -L/home/user/Downloads/subversion-1.14.1/apr -lapr-1 -lexpat
-lz -ldl -lpthread )  
/usr/bin/ld: cannot find -laprutil-1  
collect2: error: ld returned 1 exit status  
libtool:   error: error: relink 'libsvn_subr-1.la' with the above command
before installing it  
make: *** [build-outputs.mk:1206: install-fsmod-lib] Fehler 1





some notice:

i want only the svn server module, i need no client no apache etc. is there an
shorter, easyer way to geht the svnserve?



Thanks


Re: svn from source and build problems @debian

Posted by Daniel Shahaf <d....@daniel.shahaf.name>.
Nathan Hartman wrote on Fri, 28 May 2021 15:46 +00:00:
> Then I would configure, make, and install apr; configure, make, and
> install apr-util; and finally configure, make,

Here would be a good time to run «make svnserveautocheck» (with or
without THREADS=1).

If apr/apr-util have «make test» targets, then it would be good to run
those, too (unless you install them via their *-dev packages, as Nathan
mentioned).

> and install Subversion.

Re: svn from source and build problems @debian

Posted by Nathan Hartman <ha...@gmail.com>.
On Fri, May 28, 2021 at 6:44 AM nico becker <ni...@gmx.net> wrote:

> hello,
> i want to build the latest sources under debian stable.
> i ve done it the following way:
>  download sources
>  ./get_deps-sh
> cd apr -> ./buildconf -> ./configure -> make
> cd apr_util -> ./buildconf ->  ./configure --with-apr=../apr/-> make
>
> ./configure --with-apr=apr/ --with-apr-util=apr-util --with-lz4=internal
> --with-utf8proc=internal
>   make
>  sudo make install
>

You didn't mention whether you did a 'make install' of apr and apr-util.
Generally I would `configure' apr, apr-util, and Subversion with a suitable
--prefix; they may have the same prefix or different prefixes, as long as
you provide the correct prefix for each to Subversion's configure
(--with-apr=..., --with-apr-util=...). Then I would configure, make, and
install apr; configure, make, and install apr-util; and finally configure,
make, and install Subversion.

As a side note, you mentioned building on Debian; unless there is a reason
to build apr and apr-util from sources, you could probably install them
from packages (libapr1-dev, libaprutil1-dev) and then Subversion's
`configure' will find them automatically.

Nathan

Re: svn from source and build problems @debian

Posted by Daniel Shahaf <d....@daniel.shahaf.name>.
nico becker wrote on Fri, 28 May 2021 10:23 +00:00:
> i want only the svn server module, i need no client no apache etc. is 
> there an shorter, easyer way to geht the svnserve?

You can run «make svnserve» to build just svnserve, but there isn't
a «make» incantation that'll install just that.

The make(1) targets chain is install→local-install→install-static→install-
bin, and that one installs all binaries, not just one of them.  In
theory you could invoke just the right set of make(1) targets, but
determining that set might not be entirely obvious (for instance, it
includes install-fsmod-lib because svnserve depends on libsvn_fs* via
libsvn_ra_local).

Even if you were to install just svnserve, you'd still need to install
APR first, as Nathan explained.