You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Sander Striker <st...@apache.org> on 2002/03/31 18:25:39 UTC

APR API changes wrt buckets, WAS: RE: compiling server: mod_dav_svn/log.c:196: too few arguments?

Hi,

There were some API changes in the bucket code a few days ago.
Grap an older httpd/apr/apr-util or wait until we have patched up
mod_dav_svn.  FWIW, I can patch it up tomorrow morning.

Thanks,

Sander


> -----Original Message-----
> From: Alexis Huxley [mailto:ahuxley@gmx.net]
> Sent: 31 March 2002 19:58
> To: dev@subversion.tigris.org
> Subject: compiling server: mod_dav_svn/log.c:196: too few arguments?
> 
> 
> Hi, (Sorry if this is the wrong list: I checked FAQs and list archives and
> could find no answer to this or a better place to post).
> 
> I'm trying to compile Subversion client and server taken from SVN today. 
> The db4 and apache compiles go fine, but subversion bombs out with a
> parameter count mismatch in log.c.
> 
> I've documented - for my own feeble memory - the process I used to get as
> far as I did. Any hints as to where I went wrong much appreciated!
> 
> 1) Make a home for the build
> 
> $user SVN_BUILD_ROOT=$HOME/svn
> $user mkdir $SVN_BUILD_ROOT
> 
> 2) Get svn client binary
> 
> user$ mkdir $SVN_BUILD_ROOT/svn-client-binary
> user$ cd $SVN_BUILD_ROOT/svn-client-binary
> user$ ncftp ftp://marcus.debian.net/pub/svn/clients/linux/
> ncftp> get svn-<version>-i386.bz2
> ncftp> <CTRL-D>
> user$ bunzip2 *.bz2
> user$ chmod 755 svn*
> user$ cd ..
> 
> 3) Get latest svn souces from svn archive with svn binary
> 
> user$ mkdir $SVN_BUILD_ROOT/svn-svn
> user$ cd $SVN_BUILD_ROOT/svn-svn
> 
> Here make sure that LD_LIBRARY_PATH is unset, or this will
> fail with a cryptic error message.
> 
> user$ $SVN_BUILD_ROOT/svn-archive/svn* checkout \
> > http://svn.collab.net/repos/svn/trunk -d svn
> 
> 4) DB4
> 
> ([footnote] db4 can be compiled - but not installed - as
> part of the subversion build process. But it is also needed
> for the Apache build process, so it does need to be done
> separately.) 
> 
> Download the sources for Berkeley DB version 4 and connect
> them into the Subversion sources:
> 
> user$ mkdir $SVN_BUILD_ROOT/db4
> user$ cd $SVN_BUILD_ROOT/db4
> user$ tar xzf db*.tar.gz
> user$ cd $SVN_BUILD_ROOT/db4/db*/
> user$ cd build_unix
> user$ ../dists/configure --prefix=/usr/server/opt/db4
> user$ make
> user$ su
> password: <root_password>
> user# make install
> 
> 5) Apache
> 
> user$ mkdir $SVN_BUILD_ROOT/apache-cvs
> user$ cd $SVN_BUILD_ROOT/apache-cvs
> user$ cvs -d :pserver:anoncvs@cvs.apache.org:/home/cvspublic login
> password: anoncvs
> user$ cvs -d :pserver:anoncvs@cvs.apache.org:/home/cvspublic co httpd-2.0
> user$ cd httpd-2.0/srclib 
> user$ cvs -d :pserver:anoncvs@cvs.apache.org:/home/cvspublic co apr 
> user$ cvs -d :pserver:anoncvs@cvs.apache.org:/home/cvspublic co apr-util
> user$ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/server/opt/db4/lib
> 
> ([footnote] Although option '--with-berkeley-db' will be
> used in a moment, it fails to be correctly propogated to
> srclib/pcre, so setting LD_LIBRARY_PATH is the easiest way 
> to have it propogated.) 
> 
> user$ ./buildconf 
> user$ ./configure --enable-dav --enable-so \ 
> > --prefix=/usr/server/opt/apache2 \
> > --with-dbm=db4 --with-berkeley-db=/usr/server/opt/db4 --enable-ssl
> 
> ([footnote] There may be libraries required by Subversion
> client binaries, so this path makes the most sense (until I know
> better ;-))
> 
> user$ make depend
> user$ make
> user$ su
> password: <password>
> user# export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/server/opt/db4/lib
> user# sh /usr/server/opt/apache/bin/apachectl start
> 
> 6) Neon
> 
> user$ mkdir $SVN_BUILD_ROOT/neon
> user$ cd $SVN_BUILD_ROOT/neon
> user$ lynx -dump http://www.webdav.org/neon/neon-0.19.3.tar.gz \
> > > neon-0.19.3.tar.gz
> user$ tar xzf neo*
> 
>  ([footnote] Subversion's own build will build Neon, after we make
>  a symlink in a moment.)
> 
> 7) Subversion itself!
> 
> user$ cd $SVN_BUILD_ROOT/svn-svn
> user$ ln -s ../neon/neon-0.19.3 neon
> user$ ln -s ../apache/httpd-2.0/srclib/apr .
> user$ ln -s ../apache/httpd-2.0/srclib/apr-util .
> user$ PATH=$PATH:/usr/server/opt/apache2/bin
> 
>  ([footnote] If Apache can't be found then a client only version
>  will be built. But this is not enough!) 
> 
> user$ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/server/opt/db4/lib
> 
>  ([footnote] Without this, db4 will not be linkable to.) 
> 
> user$ sh ./autogen.sh
> 
>  ([footnote] This complained that it was not going to build
>  a server.) 
> 
> user$ ./configure --prefix=/usr/server/opt/subversion \
> > --with-apxs=/usr/server/opt/apache2/bin/apxs --with-dbm=db4 \
> > --with-berkeley-db=/usr/server/opt/db4 --enable-ssl
> 
>  ([footnote] '--enable-ssl' did not seem to make any difference;
>  a status message half way through the configure reported
>  that SSL would not be used. Additionally nor would zlib!) 
> 
> user$ make clean
> user$ make
> 
> -- This is where, about 10 minutes into the compile, it all went 
> wrong! With the following error message:
> 
> /bin/sh /home/alexis/svn/svn-svn/svn/libtool --silent --mode=compile gcc -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 
> -D_BSD_SOURCE -D_SVID_SOURCE  -g -O2 -pthread   -I/usr/server/opt/apache2/include -I./subversion/include -I.  
> -I/usr/server/opt/apache2/include   -I/home/alexis/svn/apache-cvs/httpd-2.0/srclib/apr-util/include 
> -I/usr/server/opt/db4/include -I/home/alexis/svn/apache-cvs/httpd-2.0/srclib/apr-util/xml/expat/lib 
> -I/home/alexis/svn/svn-svn/svn/neon/src -I./expat-lite -I/usr/server/opt/db4/include -o subversion/mod_dav_svn/log.lo -c 
> subversion/mod_dav_svn/log.c
> subversion/mod_dav_svn/log.c: In function `dav_svn__log_report':
> subversion/mod_dav_svn/log.c:196: too few arguments to function `apr_brigade_create'
> make: *** [subversion/mod_dav_svn/log.lo] Error 1
> leda$ 
> 
> Can anybody help please? Or point me at a Apache/SVN version combination
> which works? Many thanks!
> 
> Alexis
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: dev-help@subversion.tigris.org
> 
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org