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

Subversion 1.3.2 on AIX - stuck with the very last bit

From: <brendan.newport_at_barclays.com>
Date: 2006-10-16 12:22:07 CEST

I have fiddled and messed around and got to the point where I get a clean
make on a compile of subversion 1.3.2 on AIX 4.3.3 with GCC 2.9, with shared
libraries (having compiled and installed Berkeyley DB, Apache and Neon API
seperately beforehand).

However I'm stuck with the last steps - moving the Apache module into place,
using libtool and apxs.

After a "make clean" - the library build directory is clean;

root.<my server> # ls
activity.c file_revs.c log.c repos.c util.c
dav_svn.h liveprops.c merge.c static version.c
deadprops.c lock.c mod_dav_svn.c update.c

After the "make" which runs remakebly cleanly and returns rc 0, I can see
the compiled files;

.libs <<<see below file_revs.c lock.o mod_dav_svn.la
activity.c file_revs.lo log.c ### mod_dav_svn.lo ###
activity.lo file_revs.o log.lo ### mod_dav_svn.o ###
activity.o liveprops.c log.o repos.c util.lo
dav_svn.h liveprops.lo merge.c repos.lo util.o
deadprops.c liveprops.o merge.lo repos.o version.c
deadprops.lo lock.c merge.o static version.lo
deadprops.o lock.lo ### mod_dav_svn.c ### update.c

Contents of .lib

total 3688
-rw-r--r-- 1 root 1000 938677 Oct 16 10:45 libmod_dav_svn.a
-rw-r--r-- 1 root 1000 1188 Oct 16 10:45 libmod_dav_svn.exp
-rwxr-xr-x 1 root 1000 928759 Oct 16 10:45 libmod_dav_svn.so.0
lrwxrwxrwx 1 root 1000 17 Oct 16 10:45 mod_dav_svn.la ->
-rw-r--r-- 1 root 1000 1242 Oct 16 10:45 mod_dav_svn.lai

...which looks good. In addition the authorization files have been compiled
into /scratch/subversion/source/subversion-1.3.2/mod_authz_svn;

root.<my server> # ls -al mod_authz_svn
total 296
drwxr-s--- 3 1000 1000 512 Oct 16 09:04 .
drwxr-s--- 27 1000 1000 1024 Oct 12 14:22 ..
drwxr-sr-x 2 root 1000 512 Oct 16 09:04 .libs
-rw-r----- 1 1000 1000 4652 Mar 10 2004 INSTALL
-rw-r----- 1 1000 1000 17761 Sep 05 2005 mod_authz_svn.c
-rw-r--r-- 1 root 1000 2393 Oct 16 09:04 mod_authz_svn.la
-rw-r--r-- 1 root 1000 105813 Oct 16 09:04 mod_authz_svn.lo
lrwxrwxrwx 1 root 1000 16 Oct 16 09:04 mod_authz_svn.o ->
mod_authz_svn.lo <- symbolic link to above file

So everything looks as I would expect.

I perform a "make install" with the /usr/local/apache2/modules directory

This runs fine until the last part, but afterwards the
/scratch/subversion/source/subversion-1.3.2/subversion/mod_dav_sv libmod
files have been correctly renamed to the mod_dav convention;

-rw-r----- 1 1000 1000 17055 Sep 19 2005 mod_dav_svn.c
-rw-r--r-- 1 root 1000 2582 Oct 16 10:45 mod_dav_svn.la
-rw-r--r-- 1 root 1000 103325 Oct 16 10:45 mod_dav_svn.lo
lrwxrwxrwx 1 root 1000 14 Oct 16 10:45 mod_dav_svn.o ->

and in
/scratch/subversion/source/subversion-1.3.2/subversion/mod_dav_sv/.libs we
are now;

-rw-r--r-- 1 root 1000 938677 Oct 16 10:45 libmod_dav_svn.a
-rw-r--r-- 1 root 1000 938733 Oct 16 10:59 libmod_dav_svn.aT
-rw-r--r-- 1 root 1000 1188 Oct 16 10:59 libmod_dav_svn.exp
-rwxr-xr-x 1 root 1000 928815 Oct 16 10:59 libmod_dav_svn.so.0
lrwxrwxrwx 1 root 1000 17 Oct 16 10:45 mod_dav_svn.la ->
-rw-r--r-- 1 root 1000 1242 Oct 16 10:45 mod_dav_svn.lai

I scanned through the redirected output and can't see an obvious error,
until later into the last stage - configuring the Apache 2 module

cd subversion/mod_dav_svn ;
/scratch/subversion/source/subversion-1.3.2/ac-helpers/install-sh -c -d
"/usr/local/apache2/modules" ; /usr/local/apache2/bin/apxs -
i -S LIBEXECDIR="/usr/local/apache2/modules" -a -n dav_svn
' mod_dav_svn.la /usr/local/apache2/modules

rm -f /usr/local/apache2/modules/mod_dav_svn.so <- I'm guessing this is to
remove any file already there? ########

/usr/local/apache2/build/libtool --mode=install cp mod_dav_svn.la
libtool: install: warning: relinking `mod_dav_svn.la' <- Dunno if this is
normal - but libtool is re-linking ############################

cd /scratch/subversion/source/subversion-1.3.2/subversion/mod_dav_svn;
/bin/sh /scratch/subversion/source/subversion-1.3.2/libtool --mode=relink
gcc -g -g -Wall
-Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations -mthreads
-Wwrite-strings-Wshadow -Wl,-brtl -L/usr/local/BerkeleyDB.4.2/lib
b/powerpc-ibm-aix4.3.3.0/2.9-aix43-010216/../../..:/usr/lib:/lib -rpath
/usr/local/apache2/modules -avoid-version -module -o mod_dav_svn.la
activity.lo deadprops.lo file_revs.lo liveprops.lo lock.lo log.lo merge.lo
mod_dav_svn.lo repos.lo update.lo util.lo version.lo
../../subversion/libsvn_subr/libsvn_subr-1.la -lzgenerating symbol list for

/usr/linux/bin/nm -B activity.o deadprops.o file_revs.o liveprops.o lock.o
log.o merge.o mod_dav_svn.o repos.o update.o util.o version.o | sed -n -e
        ]\([ABCDGISTW][ABCDGISTW]*\)[ ][
]*\(\)\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2\3 \3/p' | sed 's/.* //' | sort |
uniq > .libs/libmod_dav_svn.exp
cc -Wl,-bM:SRE -o .libs/libmod_dav_svn.so.0 activity.o deadprops.o
file_revs.oliveprops.o lock.o log.o merge.o mod_dav_svn.o repos.o update.o
util.o version.o
BerkeleyDB.4.2/lib -L/usr/local/apache2/lib /usr/local/lib/libsvn_repos-1.a
/usr:/local/lib/libsvn_fs-1.a /usr/local/lib/libsvn_delta-1.a
ubr-1.a -lz -lc -Wl,-brtl
r/lib:/lib ${wl}-berok -Wl,-bnoentry -Wl,-bexport:.libs/libmod_dav_svn.exp

ar -crlo .libs/libmod_dav_svn.a .libs/libmod_dav_svn.so.0

(I guess these are:
-rwxr-xr-x 1 root 1000 928815 Oct 16 10:59 libmod_dav_svn.so.0
-rw-r--r-- 1 root 1000 938677 Oct 16 10:45 libmod_dav_svn.a)

cp .libs/libmod_dav_svn.aT /usr/local/apache2/modules/libmod_dav_svn.a
cp .libs/mod_dav_svn.lai /usr/local/apache2/modules/mod_dav_svn.la

Once again there are;
-rw-r--r-- 1 root 1000 938733 Oct 16 10:59 libmod_dav_svn.aT
-rw-r--r-- 1 root 1000 1242 Oct 16 10:45 mod_dav_svn.lai

However these files aren't present in /usr/local/apache2/modules followng
the make install.

Libraries have been installed in:

If you ever happen to want to link against installed libraries
...blah blah....usual libtool helper text

mv: 0653-401 Cannot rename /usr/local/apache2/modules/libmod_dav_svn.so.0 to

Guess some more processing (apxs) stuff took place before this was attempted
whch doesn't get echoed to standard output

A file or directory in the path name does not exist.
chmod 755 /usr/local/apache2/modules/mod_dav_svn.so
chmod: /usr/local/apache2/modules/mod_dav_svn.so: A file or directory in the
path name does not exist.
apxs:Error: Command failed with rc=65536.
make: *** [install-mods-shared] Error

So can anyone help with the steps to complete the install of the Apache
module manually? I have tried to replicate what steps I think are performed
with libtool and apxs but got in a right mess. However I think they could be
performed manually, it's just me not quite comprehending the install-sh and
libtool scripts right.

And then...I can document the build and svn can be said to install on AIX!

I know the problem is platform-related. I compiled and installed the same
distributions with no intervention on my OS X 10.4.3 PowerBook over the
weekend, with just a kernel flag change for Berkeley DB. I can't get a build
with HP-UX 11i and Solaris 9 (these are miles away from working yet) so the
AIX build is the nearest to completion after Apple.

If I can get these to build then it will go some way to addressing the
comments from Brian Gallew in June this year-



This e-mail and any attachments are confidential and intended solely
for the addressee and may also be privileged or exempt from disclosure
under applicable law. If you are not the addressee, or have received
this e-mail in error, please notify the sender immediately, delete it
from your system and do not copy, disclose or otherwise act upon any
part of this e-mail or its attachments..

Internet communications are not guaranteed to be secure or virus-free.
The Barclays Group does not accept responsibility for any loss arising
from unauthorised access to, or interference with, any Internet
communications by any third party, or from the transmission of any
viruses. Replies to this e-mail may be monitored by the Barclays
Group for operational or business reasons..

Any opinion or other information in this e-mail or its attachments
that does not relate to the business of the Barclays Group is personal
to the sender and is not given or endorsed by the Barclays Group.

Barclays Bank PLC.Registered in England and Wales (registered no. 1026167).
Registered Office: 1 Churchill Place, London, E14 5HP, United Kingdom.

Barclays Bank PLC is authorised and regulated by the Financial Services Authority.

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Oct 16 12:26:05 2006

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.