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;
(/scratch/subversion/source/subversion-1.3.2/subversion/mod_dav_svn)
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;
(/scratch/subversion/source/subversion-1.3.2/subversion/mod_dav_svn)
.libs <<<see below file_revs.c lock.o mod_dav_svn.la
update.lo
activity.c file_revs.lo log.c ### mod_dav_svn.lo ###
update.o
activity.lo file_revs.o log.lo ### mod_dav_svn.o ###
util.c
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
version.
Contents of .lib
(/scratch/subversion/source/subversion-1.3.2/subversion/mod_dav_svn/.libs)
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 ->
../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
empty.
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 ->
mod_dav_svn.lo
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 ->
../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
"mod_dav_svn.so"
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/build/instdso.sh
SH_LIBTOOL='/usr/local/apache2/build/libtool
' 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
/usr/local/apache2/modules/
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
-D_LARGEFILE64_SOURCE -DNE_LFS -DSVN_DEBUG -DAP_DEBUG -Wpointer-arith
-Wwrite-strings-Wshadow -Wl,-brtl -L/usr/local/BerkeleyDB.4.2/lib
-L/usr/local/apache2/lib
-Wl:,-blibpath:/usr/local/apache2/modules:/usr/bin/../lib/gcc-lib/powerpc-ib
m-aix4.3.3.0/2.9-aix43-010216:/usr/bin/../lib/gcc-lib:/usr/bin/../lib/gcc-li
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_repos/libsvn_repos-1.la
../../subversion/libsvn_fs/libsvn_fs-1.la
../../subversion/libsvn_delta/libsvn_delta-1.la
../../subversion/libsvn_subr/libsvn_subr-1.la -lzgenerating symbol list for
`libmod_dav_svn.la'
/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
's/^.*[
]\([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
-L/scratch/subversion/source/subversion-1.3.2/subversion/libsvn_subr/.libs
-L/scratch/subversion/source/subversion-1.3.2/subversion/libsvn_delta/.libs
-L/scr
atch/subversion/source/subversion-1.3.2/subversion/libsvn_fs_base/.libs
-L/scratch/subversion/source/subversion-1.3.2/subversion/libsvn_fs_fs/.libs
-L/scratch/
subversion/source/apache-2.0.59/httpd-2.0.59/srclib/apr-util/xml/expat/lib
-L/scratch/subversion/source/subversion-1.3.2/subversion/libsvn_fs/.libs
-L/usr/local/
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
/usr/local/lib/libsvn_s
ubr-1.a -lz -lc -Wl,-brtl
-Wl,-blibpath:/usr/local/apache2/modules:/usr/bin/../lib/gcc-lib/powerpc-ibm
-aix4.3.3.0/2.9-aix43-010216:/usr/bin/../lib/gcc-lib:
/usr/bin/../lib/gcc-lib/powerpc-ibm-aix4.3.3.0/2.9-aix43-010216/../../..:/us
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:
/scratch/subversion/source/subversion-1.3.2/subversion/mod_dav_svn/.libs
-rwxr-xr-x 1 root 1000 928815 Oct 16 10:59 libmod_dav_svn.so.0
and
-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;
/scratch/subversion/source/subversion-1.3.2/subversion/mod_dav_svn/.libs
-rw-r--r-- 1 root 1000 938733 Oct 16 10:59 libmod_dav_svn.aT
and
-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:
/usr/local/apache2/modules
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
/usr/local/apache2/modules/mod_dav_svn.so:
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-
http://www.linuxjournal.com/article/4768#comment-144139
Ta!
Bren
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