Hi all,
I managed to get a build of Subversion that at least lets Apache load the
mod_dav_svn and mod_authz_svn modules. I haven't had time to actually test
it out yet due to other duties but it's at least one more step to building a
proper Subversion server on Apache.
What happened was that I decided to try and build PHP as a shared object and
see if Apache could load that. Well, it could, no problems. One thing I
noticed in the PHP Makefile was a reference to the
${APACHE}/modules/httpd.exp file, which I had wondered about cos Subversion
doesn't seem to make use of it but it obviously pertains to modules. Anyway,
it's a linker flag, which I haven't tracked down yet. In PHP's Makefile:
EXTRA_LDFLAGS = -Wl,-brtl
-Wl,-bI:$(INSTALL_ROOT)/usr/pkg/httpd-2.0.48/modules/httpd.exp -avoid-version
-module
So in Subversion's edited Makefile:
LDFLAGS = -Wl,-brtl
-Wl,-bI:$(INSTALL_ROOT)/usr/pkg/httpd-2.0.48/modules/httpd.exp -avoid-version
-module -L/usr/pkg/db-4.2.52/lib
-L/usr/pkg/src/subversion-0.37.0/apr-util/xml/expat/lib $(EXTRA_LDFLAGS)
The "avoid-version" and "module" flags I added for good measure. I'm ashamed
to say I don't know what they mean but will be tracking them down when I get
a chance.
At any rate, I hope if somebody tries to build SVN on AIX, this helps them out
a bit! Thanks to Travis P for doing previous work in getting the client to
work. :)
Drew.
On Wednesday 04 February 2004 17:49, Drew Leske wrote:
> Hi,
>
> I've been trying for quite a while to get a Subversion server running on
> AIX. I have successfully built Apache and thanks to a few out-of-band
> pointers from Travis P, managed to build a Subversion client that doesn't
> barf. This all took a depressingly long time, mostly due to my
> inexperience with AIX... ;) (Why I'm trying to build it on AIX: we're
> short on hardware and an old RS/6000 is the only machine we've got for the
> pilot.)
>
> Anyway, httpd cannot load the Subversion modules, and gives absolutely no
> helpful info on why that is:
>
> [root@wit bin]$ ./apachectl start
> Syntax error on line 231 of /usr/pkg/httpd-2.0.48/conf/httpd.conf:
> Cannot load /usr/pkg/httpd-2.0.48/modules/mod_dav_svn.so into server:
> [root@wit bin]$ ls -l /usr/pkg/httpd-2.0.48/modules/mod_dav_svn.so
> -rwxr-xr-x 1 root system 546526 Feb 04 15:15
> /usr/pkg/httpd-2.0.48/modules/mod_dav_svn.so
> [root@wit bin]$
>
> Nice eh? I've searched the net on the basic error message but most people
> seem to get some specifics after the second line, like missing symbols and
> whatnot.
>
> httpd runs fine without those two modules. I had a web page up with
> dancing hamsters and everything.
>
> In case it provides any clues, here's my configure for Apache:
>
> export PREFIX=/usr/pkg/httpd-2.0.48
> LIBPATH=/usr/pkg/db-4.2.52/lib CC=xlc_r ./configure \
> --prefix=$PREFIX \
> --with-berkeley-db=/usr/pkg/db-4.2.52 \
> --with-dbm=db4 \
> --enable-layout-Apache \
> --enable-so \
> --enable-dav \
> --enable-static-support \
> --enable-maintainer-mode
>
> ...and my configure for Subversion:
>
> export LIBPATH=/usr/pkg/db-4.2.52/lib
> export LD_LIBRARY_PATH=/usr/pkg/db-4.2.52/lib
> export PREFIX=/usr/pkg/subversion-0.37.0
> CFLAGS="-qmaxmem=-1 -O -qlanglvl=extended" CC=xlc_r ./configure \
> --prefix=$PREFIX \
> --with-apxs=/usr/pkg/httpd-2.0.48/bin/apxs \
> --with-berkeley-db=/usr/pkg/db-4.2.52 \
> --enable-maintainer-mode
>
> I don't see any make errors or significant configure problems.
>
> If anybody has any ideas, I'd love to hear them. The documentation coyly
> alludes to the possibility of building static Subversion modules, but it's
> just a tease: if somebody knows what this horrible process is, please tell
> me!
>
> The frustrating thing is how easy this was to install from source on my
> home Linux box.
>
> Thanks,
> Drew.
>
----------------------------------------------------------------------------
Drew Leske half-duplex: dleske@uvic.ca
Systems Group, Computing and Systems Services full-duplex: (250) 472-5055
University of Victoria
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Feb 6 19:24:16 2004