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

svn import fails

From: Nathan Fiedler <nfiedler_at_bluemarsh.com>
Date: 2002-04-09 21:06:39 CEST

There's a lot to explain, so I'll do my best to be as brief as possible.
I have two years of experience as a CVS admin and user, and now very
much want to adopt Subversion. I'm using Red Hat Linux 7.2 (kernel
2.4.18) with most of the usual packages installed and all of the latest
versions available via Ximian Red Carpet. I've used the following basic
steps to compile and install Subversion:

Download subversion-r1587 tarball and extract. Read the README and
INSTALL files.

Berkeley DB 4.0.14 -- compiled and installed successfully to
/usr/local/BerkeleyDB.4.0. Note that db1, db2, and db3 RPMs are also
installed. I assume this is normal.

Neon 0.19.3 -- compiled and installed in /usr/local/lib.

In Subversion directory, renamed 'neon' to 'neon_old' so it wouldn't be
compiled with Subversion.

Attempted to follow bootstrapping instructions (./configure...) and
failed with --link-libtool problem in apr-util.

Retrieved httpd-2.0 directly from cvs, compiled and installed to
/usr/local/apache2.

Back in Subversion directory, rename 'apr' and 'apr-util' with '_old'
suffix so they wouldn't be compiled with Subversion.

Invoke Subversion configure as follows:

./configure --with-apr=/usr/local/apache2 \
    --with-apr-util=/usr/local/apache2 \
    --with-berkeley-db=/usr/local/BerkeleyDB.4.0 \
    --enable-maintainer-mode \
    --disable-shared

Compile successfully. Use the svn client to get the latest Subversion
code, as per the instructions.

Go to new svn directory, run autogen.sh and invoke configure:

./configure --with-apr=/usr/local/apache2 \
    --with-apr-util=/usr/local/apache2 \
    --with-apxs=/usr/local/apache2/bin/apxs \
    --with-berkeley-db=/usr/local/BerkeleyDB.4.0 \
    --enable-maintainer-mode

Compiled, installed, and tests successfully.

Edit httpd.conf, as per Subversion INSTALL instructions.

'svnadmin create /usr/local/svnroot' creates the following:

chip (nfiedler) 585 > dir /usr/local/svnroot/
total 24
-rw-r--r-- 1 root root 285 Apr 8 23:10 README
drwxr-xr-x 2 root root 4096 Apr 8 23:10 conf/
drwxr-xr-x 2 root root 4096 Apr 8 23:10 dav/
drwxr-xr-x 2 root root 4096 Apr 8 23:10 db/
drwxr-xr-x 2 root root 4096 Apr 8 23:10 hooks/
drwxr-xr-x 2 root root 4096 Apr 8 23:10 locks/

My problem:

Invoking 'svn --version' causes a segmentation fault. I'm a gdb newbie,
so this is all I knew how to do:

(gdb) run --version
Starting program: /usr/local/bin/svn --version
[New Thread 1024 (LWP 25333)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1024 (LWP 25333)]
0x4021a254 in apr_getopt_long (os=0x8059ea0, opts=0x8050fa0,
optch=0xbffff76c,
    optarg=0xbffff768) at getopt.c:240
240 getopt.c: No such file or directory.
        in getopt.c
(gdb) bt
#0 0x4021a254 in apr_getopt_long (os=0x8059ea0, opts=0x8050fa0,
    optch=0xbffff76c, optarg=0xbffff768) at getopt.c:240
#1 0x0804c44d in main (argc=2, argv=0xbffff7f4)
    at subversion/clients/cmdline/main.c:807
#2 0x402c1306 in __libc_start_main (main=0x804c360 <main>, argc=2,
    ubp_av=0xbffff7f4, init=0x8049c70 <_init>, fini=0x8050910 <_fini>,
    rtld_fini=0x4000d2dc <_dl_fini>, stack_end=0xbffff7ec)
    at ../sysdeps/generic/libc-start.c:129

Ignoring the above problem, and invoking

'svn import file:///usr/local/svnroot . jswat-test'

fails with the following message, after leaving the popup editor:

subversion/libsvn_ra_local/ra_plugin.c:145
svn_error: #21093 : <Couldn't find a repository.>
  Unable to open an ra_local session to URL

subversion/libsvn_ra_local/split_url.c:92
svn_error: #21093 : <Couldn't find a repository.>
  svn_ra_local__split_URL: Unable to find valid repository

What did I do wrong?

nathan

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Apr 9 21:07:37 2002

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.