Hi Everyone,
I'm trying to set up a subversion server for my home directory as was
discussed on /. yesterday. I installed subversion from ports on my
FreeBSD 4.9 box, with one minor hitch. The first time I ran make in
the subversion ports directory it went through and built apr, db4,
expat, libiconv, and neon, before failing on the actual subversion
build with:
> cd subversion/clients/cmdline && /bin/sh
> /usr/ports/devel/subversion/work/subversion-0.32.1/libtool --silent
> --mode=link cc -O -pipe -DNEON_ZLIB -DNEON_SSL -L/usr/local/lib
> -rpath /usr/local/lib -o svn add-cmd.o blame-cmd.o cat-cmd.o
> checkout-cmd.o cleanup-cmd.o commit-cmd.o copy-cmd.o delete-cmd.o
> diff-cmd.o export-cmd.o help-cmd.o import-cmd.o info-cmd.o log-cmd.o
> ls-cmd.o main.o merge-cmd.o mkdir-cmd.o move-cmd.o notify.o prompt.o
> propdel-cmd.o propedit-cmd.o propget-cmd.o proplist-cmd.o props.o
> propset-cmd.o resolved-cmd.o revert-cmd.o status-cmd.o status.o
> switch-cmd.o update-cmd.o util.o
> ../../../subversion/libsvn_client/libsvn_client-1.la
> ../../../subversion/libsvn_wc/libsvn_wc-1.la
> ../../../subversion/libsvn_ra/libsvn_ra-1.la
> ../../../subversion/libsvn_delta/libsvn_delta-1.la
> ../../../subversion/libsvn_subr/libsvn_subr-1.la -L/usr/local/lib
> -laprutil-0 -lgdbm -ldb4 -lexpat -liconv -L/usr/local/lib -lapr-0 -lm
> -lcrypt -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib
> -L/usr/local/lib -lneon -lssl -lcrypto -lz -lexpat
> /usr/local/lib/libapr-0.so: undefined reference to
> `pthread_cond_signal'
> /usr/local/lib/libapr-0.so: undefined reference to `pthread_create'
> /usr/local/lib/libapr-0.so: undefined reference to
> `pthread_getspecific'
> /usr/local/lib/libapr-0.so: undefined reference to
> `pthread_rwlock_rdlock'
> /usr/local/lib/libapr-0.so: undefined reference to `pthread_attr_init'
> /usr/local/lib/libapr-0.so: undefined reference to
> `pthread_rwlock_init'
> /usr/local/lib/libapr-0.so: undefined reference to `pthread_exit'
> /usr/local/lib/libapr-0.so: undefined reference to `pthread_key_delete'
> /usr/local/lib/libapr-0.so: undefined reference to `pthread_equal'
> /usr/local/lib/libapr-0.so: undefined reference to
> `pthread_rwlock_destroy'
> /usr/local/lib/libapr-0.so: undefined reference to
> `pthread_rwlock_unlock'
> /usr/local/lib/libapr-0.so: undefined reference to `pthread_detach'
> /usr/local/lib/libapr-0.so: undefined reference to
> `pthread_cond_broadcast'
> /usr/local/lib/libapr-0.so: undefined reference to `pthread_once'
> /usr/local/lib/libapr-0.so: undefined reference to `pthread_key_create'
> /usr/local/lib/libapr-0.so: undefined reference to
> `pthread_rwlock_wrlock'
> /usr/local/lib/libapr-0.so: undefined reference to `pthread_sigmask'
> /usr/local/lib/libapr-0.so: undefined reference to `pthread_cond_init'
> /usr/local/lib/libapr-0.so: undefined reference to
> `pthread_attr_getdetachstate'
> /usr/local/lib/libaprutil-0.so: undefined reference to
> `pthread_mutex_unlock'
> /usr/local/lib/libapr-0.so: undefined reference to
> `pthread_rwlock_trywrlock'
> /usr/local/lib/libapr-0.so: undefined reference to
> `pthread_rwlock_tryrdlock'
> /usr/local/lib/libapr-0.so: undefined reference to `pthread_self'
> /usr/local/lib/libapr-0.so: undefined reference to
> `pthread_mutex_destroy'
> /usr/local/lib/libaprutil-0.so: undefined reference to
> `pthread_mutex_lock'
> /usr/local/lib/libapr-0.so: undefined reference to `pthread_cond_wait'
> /usr/local/lib/libapr-0.so: undefined reference to
> `pthread_mutex_trylock'
> /usr/local/lib/libapr-0.so: undefined reference to
> `pthread_cond_destroy'
> /usr/local/lib/libapr-0.so: undefined reference to `pthread_mutex_init'
> /usr/local/lib/libapr-0.so: undefined reference to
> `pthread_attr_setdetachstate'
> /usr/local/lib/libapr-0.so: undefined reference to `pthread_join'
> /usr/local/lib/libapr-0.so: undefined reference to
> `pthread_cond_timedwait'
> /usr/local/lib/libapr-0.so: undefined reference to `sigwait'
> /usr/local/lib/libapr-0.so: undefined reference to
> `pthread_setspecific'
> *** Error code 1
>
> Stop in /usr/ports/devel/subversion/work/subversion-0.32.1.
It looked to me like a problem with apr, so I went into the
/usr/ports/devel/apr director and did
make deinstall clean install
After this subversion built and installed, but now I can't create a
repository. I tried
svnadmin create ~/svn
and it makes a directory tree, but then just hangs. If I break into
the program I see this tree:
> scarlet:~ 547$ svnadmin create ~/svn
> ^C
> scarlet:~ 548$ ls -laR ~/svn
> total 11
> drwxr-xr-x 6 timothyr wheel 512 Nov 11 23:21 ./
> drwxr-xr-x 46 timothyr wheel 3584 Nov 11 23:21 ../
> -rw-r--r-- 1 timothyr wheel 376 Nov 11 23:21 README.txt
> drwxr-xr-x 2 timothyr wheel 512 Nov 11 23:21 dav/
> drwxr-xr-x 2 timothyr wheel 512 Nov 11 23:21 db/
> -rw-r--r-- 1 timothyr wheel 2 Nov 11 23:21 format
> drwxr-xr-x 2 timothyr wheel 512 Nov 11 23:21 hooks/
> drwxr-xr-x 2 timothyr wheel 512 Nov 11 23:21 locks/
>
> /home/timothyr/svn/dav:
> total 2
> drwxr-xr-x 2 timothyr wheel 512 Nov 11 23:21 ./
> drwxr-xr-x 6 timothyr wheel 512 Nov 11 23:21 ../
>
> /home/timothyr/svn/db:
> total 996
> drwxr-xr-x 2 timothyr wheel 512 Nov 11 23:21 ./
> drwxr-xr-x 6 timothyr wheel 512 Nov 11 23:21 ../
> -rw-r--r-- 1 timothyr wheel 1474 Nov 11 23:21 DB_CONFIG
> -rw-r--r-- 1 timothyr wheel 8192 Nov 11 23:21 __db.001
> -rw-r--r-- 1 timothyr wheel 270336 Nov 11 23:21 __db.002
> -rw-r--r-- 1 timothyr wheel 327680 Nov 11 23:21 __db.003
> -rw-r--r-- 1 timothyr wheel 712704 Nov 11 23:21 __db.004
> -rw-r--r-- 1 timothyr wheel 16384 Nov 11 23:21 __db.005
> -rw-r--r-- 1 timothyr wheel 16384 Nov 11 23:21 changes
> -rw-r--r-- 1 timothyr wheel 16384 Nov 11 23:21 copies
> -rw-r--r-- 1 timothyr wheel 135111 Nov 11 23:21 log.0000000001
> -rw-r--r-- 1 timothyr wheel 16384 Nov 11 23:21 nodes
> -rw-r--r-- 1 timothyr wheel 16384 Nov 11 23:21 representations
> -rw-r--r-- 1 timothyr wheel 16384 Nov 11 23:21 revisions
> -rw-r--r-- 1 timothyr wheel 16384 Nov 11 23:21 strings
> -rw-r--r-- 1 timothyr wheel 16384 Nov 11 23:21 transactions
> -rw-r--r-- 1 timothyr wheel 16384 Nov 11 23:21 uuids
>
> /home/timothyr/svn/hooks:
> total 13
> drwxr-xr-x 2 timothyr wheel 512 Nov 11 23:21 ./
> drwxr-xr-x 6 timothyr wheel 512 Nov 11 23:21 ../
> -rw-r--r-- 1 timothyr wheel 1286 Nov 11 23:21 post-commit.tmpl
> -rw-r--r-- 1 timothyr wheel 1475 Nov 11 23:21
> post-revprop-change.tmpl
> -rw-r--r-- 1 timothyr wheel 2093 Nov 11 23:21 pre-commit.tmpl
> -rw-r--r-- 1 timothyr wheel 1952 Nov 11 23:21
> pre-revprop-change.tmpl
> -rw-r--r-- 1 timothyr wheel 1377 Nov 11 23:21 start-commit.tmpl
>
> /home/timothyr/svn/locks:
> total 3
> drwxr-xr-x 2 timothyr wheel 512 Nov 11 23:21 ./
> drwxr-xr-x 6 timothyr wheel 512 Nov 11 23:21 ../
> -rw-r--r-- 1 timothyr wheel 460 Nov 11 23:21 db.lock
> scarlet:~ 549$
However, the repository is corrupt and I can't recover it. Here's the
sequence:
> svn import testtree file:///home/timothyr/prl
> svn: Couldn't open a repository.
> svn: Unable to open an ra_local session to URL
> svn: Unable to open repository 'file:///home/timothyr/prl'
> scarlet:~ 550$ svn --version
> svn, version 0.32.1 (r7497)
> compiled Nov 11 2003, 23:15:54
>
> Copyright (C) 2000-2003 CollabNet.
> Subversion is open source software, see http://subversion.tigris.org/
>
> The following repository access (RA) modules are available:
>
> * ra_dav : Module for accessing a repository via WebDAV (DeltaV)
> protocol.
> - handles 'http' schema
> - handles 'https' schema
> * ra_local : Module for accessing a repository on local disk.
> - handles 'file' schema
> * ra_svn : Module for accessing a repository using the svn network
> protocol.
> - handles 'svn' schema
>
> scarlet:~ 552$ svnadmin verify ~/svn
> svn: Filesystem is corrupt
> svn: revision 0 missing from 'revisions' table, in filesystem
> '/home/timothyr/svn/db'
> scarlet:~ 553$ svnadmin recover ~/svn
> Acquiring exclusive lock on repository db.
> Recovery is running, please stand by...
> Recovery completed.
> svn: Filesystem is corrupt
> svn: revision 0 missing from 'revisions' table, in filesystem
> '/home/timothyr/svn/db'
I'm completely stuck on this. I've rebuilt the package several times.
I would very much appreciate any suggestions about where I'm going
wrong.
Thanks,
-Tim
timothyr@timothyr.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Nov 12 17:07:48 2003