You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Drew Leske <dl...@uvic.ca> on 2004/02/05 01:49:09 UTC

SVN on AIX

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

Re: SVN on AIX

Posted by Norbert Gruener <no...@MPA-Garching.MPG.DE>.
Hi Drew,

On Wed, Jul 21 2004, Drew Leske wrote:
> Eeek, hi, sorry it took me so long to reply.  This list has so much
> traffic I had to stop watching it

no problems :-)   I do have the same problem.  I am just skimming this
list through from time to time.

> I doubt this will be of any use to you at this point but perhaps it
> will be of some use to somebody.
[snipped some lines]
> 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
> 
> Both of these assume BDB is in this same source tree.
> 
> Let me know (perhaps cc: me directly) if this is unsuccessful... It
> might jog my memory.

As soon as I come back to the "Subversion" request I will test it and I
will report my experience.

So far thank you for your help,

Norbert
-- 
Ceterum censeo          | PGP encrypted mail preferred.
Redmond esse delendam.  | PGP Key at www.MPA-Garching.MPG.de/~nog/

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

Re: SVN on AIX

Posted by Drew Leske <dl...@uvic.ca>.
Eeek, hi, sorry it took me so long to reply.  This list has so much
traffic I had to stop watching it, especially since I had to put any
Subversion plans on hold (now I'm going up against it again so I found
your note).

I doubt this will be of any use to you at this point but perhaps it
will be of some use to somebody.

Here's how I built the Apache server:

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 \
        --with-mpm=worker \
        --enable-mods-shared=most \
        --with-expat=`pwd`/srclib/apr-util/xml/expat 

And here's how I built Subversion (note the version...):

export PREFIX=/usr/pkg/subversion-0.37.0
export LIBPATH=/usr/pkg/db-4.2.52/lib
export LD_LIBRARY_PATH=/usr/pkg/db-4.2.52/lib
export CC=xlc_r
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

Both of these assume BDB is in this same source tree.

Let me know (perhaps cc: me directly) if this is unsuccessful... It
might jog my memory.

Drew.

> Hi Drew,
> 
> On Thu, Feb 05 2004, Drew Leske wrote:
> > 
> > I've been trying for quite a while to get a Subversion server running on AIX.  
> [snipped several lines of description]
> > 
> > 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]$
> 
> On Fri, Feb 06 2004, Drew Leske wrote:
> > 
> > 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.
> [snipped several lines of text]
> > 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. :)
> 
> I am getting the same error as you have described on Feb 5th 2004.  I
> am using Apache 2.0.49, Subversion 1.0.5, and AIX 4.3
> 
> Did you get a Subversion server on Apache running finally?  Was it
> enough just to repair the Makefile as you described on Feb 6th?  I
> would appreciate any information I can get  :-))
> 
> Thank you in advance,
> 
> Norbert
> -- 
> +-------------------------------------------------------------------+
> | Norbert E. Gruener           http://www.MPA-Garching.MPG.de/~nog/ |
> | Max-Planck-Institut          <no...@MPA-Garching.MPG.de>            |
> | fuer Astrophysik             PGP encrypted mail preferred         |
> | PGPprint(RSA):  66 64 C0 D0 6F 1A 16 02  C2 C6 37 83 3A 5F 88 9B  |
> | PGPprint(DH):  8B9A CB28 79DC 4C4F 5A0F  08A8 2771 2A99 A091 FBE8 |
> | PGPprint(DSS): 8900 2CB4 F3D3 124F 7ED2  F681 EA2D 11CA BE19 6642 |
> +-------------------------------------------------------------------+
				Norbert Gruener, 22-06-2004 08:02:28


----------------------------------------------------------------------------
 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

Re: SVN on AIX

Posted by Norbert Gruener <no...@MPA-Garching.MPG.DE>.
Hi Drew,

On Thu, Feb 05 2004, Drew Leske wrote:
> 
> I've been trying for quite a while to get a Subversion server running on AIX.  
[snipped several lines of description]
> 
> 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]$

On Fri, Feb 06 2004, Drew Leske wrote:
> 
> 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.
[snipped several lines of text]
> 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. :)

I am getting the same error as you have described on Feb 5th 2004.  I
am using Apache 2.0.49, Subversion 1.0.5, and AIX 4.3

Did you get a Subversion server on Apache running finally?  Was it
enough just to repair the Makefile as you described on Feb 6th?  I
would appreciate any information I can get  :-))

Thank you in advance,

Norbert
-- 
+-------------------------------------------------------------------+
| Norbert E. Gruener           http://www.MPA-Garching.MPG.de/~nog/ |
| Max-Planck-Institut          <no...@MPA-Garching.MPG.de>            |
| fuer Astrophysik             PGP encrypted mail preferred         |
| PGPprint(RSA):  66 64 C0 D0 6F 1A 16 02  C2 C6 37 83 3A 5F 88 9B  |
| PGPprint(DH):  8B9A CB28 79DC 4C4F 5A0F  08A8 2771 2A99 A091 FBE8 |
| PGPprint(DSS): 8900 2CB4 F3D3 124F 7ED2  F681 EA2D 11CA BE19 6642 |
+-------------------------------------------------------------------+

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

Re: SVN on AIX

Posted by Drew Leske <dl...@uvic.ca>.
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