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

RE: Compiling Subversion on AIX

From: Giulio Troccoli <Giulio.Troccoli_at_uk.linedata.com>
Date: Thu, 22 Apr 2010 15:44:16 +0100

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

________________________________

        From: dig1tal.cooper_at_gmail.com [mailto:dig1tal.cooper_at_gmail.com] On Behalf Of Robert Cooper
        Sent: 22 April 2010 14:45
        To: users_at_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=1372779&page=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
Received on 2010-04-22 16:44:47 CEST

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.