Re: Compiling Subversion on AIX

2010-04-28 Thread Robert Cooper
Thanks for the help Giulio.  Using that configure statement (with gcc):
CC=gcc LDFLAGS=-L/usr/local/lib ./configure -C --disable-shared
--without-ssl \
 --without-berkeley-db
--prefix=/usr/local/svn--with-apr=/usr/local/apr
--with-apr-util=/usr/local/apr-util \
--without-apxs --without-serf --disable-nls

 helped me get to the make install but now I'm getting the following error:
/usr/svn/subversion-1.6.11/build/install-sh -c -m 644
./subversion/svnsync/svnsync.1 /usr/local/svn/share/man/man1/svnsync.1
/usr/svn/subversion-1.6.11/build/install-sh -c -m 644
./subversion/svnversion/svnversion.1
/usr/local/svn/share/man/man1/svnver
sion.1
    subversion/svnversion/svnversion . /repos/svn/trunk 
/usr/local/svn/include/subversion-1/svn-revision.txt
Could not load program
/usr/svn/subversion-1.6.11/subversion/svnversion/.libs/lt-svnversion:
Could not load module
/usr/svn/subversion-1.6.11/subversion/libsvn_subr/.libs/libsvn_subr-1.so.
    Dependent module
/usr/local/apr-util/lib/libexpat.a(libexpat.so.1) could not be loaded.
    Member libexpat.so.1 is not found in archive
Could not load module lt-svnversion.
    Dependent module
/usr/svn/subversion-1.6.11/subversion/libsvn_subr/.libs/libsvn_subr-1.so
could not be loaded.
Could not load module .
make: The error code from the last command is 255.
Stop.


Any ideas on what might be stopping the install?  expat?

Thanks,
Robert


RE: Compiling Subversion on AIX

2010-04-28 Thread Giulio Troccoli



Linedata Services (UK) Ltd
Registered Office: Bishopsgate Court, 4-12 Norton Folgate, London, E1 6DB
Registered in England and Wales No 3027851VAT Reg No 778499447

-Original Message-


 From: dig1tal.coo...@gmail.com
 [mailto:dig1tal.coo...@gmail.com] On Behalf Of Robert Cooper
 Sent: 28 April 2010 15:23
 To: Giulio Troccoli; users@subversion.apache.org
 Subject: Re: Compiling Subversion on AIX

 Thanks for the help Giulio.  Using that configure statement
 (with gcc):
 CC=gcc LDFLAGS=-L/usr/local/lib ./configure -C
 --disable-shared --without-ssl \
  --without-berkeley-db
 --prefix=/usr/local/svn--with-apr=/usr/local/apr
 --with-apr-util=/usr/local/apr-util \
 --without-apxs --without-serf --disable-nls

  helped me get to the make install but now I'm getting the
 following error:
 /usr/svn/subversion-1.6.11/build/install-sh -c -m 644
 ./subversion/svnsync/svnsync.1 /usr/local/svn/share/man/man1/svnsync.1
 /usr/svn/subversion-1.6.11/build/install-sh -c -m 644
 ./subversion/svnversion/svnversion.1
 /usr/local/svn/share/man/man1/svnver
 sion.1
 subversion/svnversion/svnversion . /repos/svn/trunk 
 /usr/local/svn/include/subversion-1/svn-revision.txt
 Could not load program
 /usr/svn/subversion-1.6.11/subversion/svnversion/.libs/lt-svnversion:
 Could not load module
 /usr/svn/subversion-1.6.11/subversion/libsvn_subr/.libs/libsvn
 _subr-1.so.
 Dependent module
 /usr/local/apr-util/lib/libexpat.a(libexpat.so.1) could not be loaded.
 Member libexpat.so.1 is not found in archive Could
 not load module lt-svnversion.
 Dependent module
 /usr/svn/subversion-1.6.11/subversion/libsvn_subr/.libs/libsvn
 _subr-1.so
 could not be loaded.
 Could not load module .
 make: The error code from the last command is 255.
 Stop.


 Any ideas on what might be stopping the install?  expat?

Did you use my exact configure? Because that was just the last part of a 
process where I built other things manually, e.g. expat that in your case make 
can't find.

I was only suggesting to use CC, CFLAGS, etc. to specify another compiler and 
options.

G


RE: Compiling Subversion on AIX

2010-04-22 Thread Giulio Troccoli




Linedata Services (UK) Ltd
Registered Office: Bishopsgate Court, 4-12 Norton Folgate, London, E1 6DB
Registered in England and Wales No 3027851VAT Reg No 778499447





From: dig1tal.coo...@gmail.com [mailto:dig1tal.coo...@gmail.com] On 
Behalf Of Robert Cooper
Sent: 22 April 2010 14:45
To: users@subversion.apache.org
Subject: Compiling Subversion on AIX


Hello,

I'm trying to compile subversion 1.6.11 source on AIX 6.1 TL3 using gcc 
4.2.0-3.
I have already compiled apache httpd 2.2.15 and have it working. (with 
ldap, dav, and authnz)

My end goal is to have subversion running on AIX with apache and LDAP 
authentication to a Tivoli Directory Server.

I have tried following these procedures with no success:
http://www.tek-tips.com/viewthread.cfm?qid=1372779page=8

Here is what I used for configure:
CC=gcc ./configure -C --prefix=/usr/local/svn 
--with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util 
--with-apache-libexecdir=/usr/local/apache2/modules

My problem is that subversion fails during the make process.

Here is the error that I get:
 /usr/local/apr/build-1/libtool --silent --mode=link gcc -Wl,-brtl 
-L/opt/IBM/ldap/V6.1/lib -rpath /usr/local/svn/lib -o libserf-0.la  
/usr/local/apr-util/lib/libaprutil-1.la -libmldapn -lexpat -liconv  
/usr/local/apr/lib/libapr-1.la -lpthread -lm  -lz -lssl -lcrypto
Usage: nm [-ACfhlprTv] [-B|-P] [-e|-g|-u] [-d|-o|-x|{-t [d|x|o]}]
[-X{32|64|32_64|d64|any}] [--] File ...
/usr/local/apr/build-1/libtool --silent --mode=compile gcc -g 
-O2 -pthread -U__STR__ -D_THREAD_SAFE -D_LARGEFILE64_SOURCE -I.  
-I/usr/local/apr/include/apr-1   -I/usr/local/apr-util/include/apr-1 
-I/opt/IBM/ldap/V6.1/include   -c -o test/serf_get.lo test/serf_get.c  touch 
test/serf_get.lo
/usr/local/apr/build-1/libtool --silent --mode=link gcc 
-Wl,-brtl -L/opt/IBM/ldap/V6.1/lib -static -o test/serf_get  
/usr/local/apr-util/lib/libaprutil-1.la -libmldapn -lexpat -liconv  
/usr/local/apr/lib/libapr-1.la -lpthread -lm  -lz -lssl -lcrypto
ld: 0711-317 ERROR: Undefined symbol: .main
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more 
information.
collect2: ld returned 8 exit status
make: The error code from the last command is 1.

Stop.
make: The error code from the last command is 1.

Stop.

I'm thinking there might be an issue with openssl but I'm not sure 
where the error is and any help or direction would be greatly appreciated.

Thanks,
Robert



I don't know if this is going to help, but I succesfully build 1.6.9 on AIX 
5.3. I did have some troubles and my final config was

CC=/usr/vac/bin/cc \
CFLAGS=-qmaxmem=-1 -O2 -qlanglvl=extended \
CPPFLAGS=-I/usr/local/include \
LDFLAGS=-L/usr/local/lib \
./configure \
--disable-shared \
--without-ssl \
--without-berkeley-db \
--with-apr=/usr/local/apr \
--with-apr-util=/usr/local/apr \
--without-apxs \
--with-neon=/usr/local \
--without-serf

Of course, change the options to configure as you desire, I only wanted to 
point out the CC, CFLAGS, etc.

Oh, please try and post in text only, no HTML :-)

Giulio