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

Building static AIX client

From: Justin Johnson <justinjohnson_at_gmail.com>
Date: 2006-07-14 18:09:45 CEST

Hi,

I have successfully built a subversion server and client for AIX 5.3.
I recently discovered that I need to build a statically linked version
of the client so that the dependencies do not need to be installed on
every AIX box I need the client installed on.

I have been running into problems though. Here are the steps I've
taken, followed by the error I'm receiving.

1) Install the following RPMs (as root), which can be downloaded from
http://www-03.ibm.com/servers/aix/products/aixos/linux/download.html.

gcc-4.0.0-1.aix5.3.ppc.rpm
gcc-cplusplus-4.0.0-1.aix5.3.ppc.rpm
libgcc-4.0.0-1.aix5.3.ppc.rpm
libstdcplusplus-4.0.0-1.aix5.3.ppc.rpm
libstdcplusplus-devel-4.0.0-1.aix5.3.ppc.rpm
make-3.80-1.aix5.1.ppc.rpm
readline-4.3-2.aix5.1.ppc.rpm
zlib-1.2.2-4.aix5.1.ppc.rpm

2) Download the following files and store them in a new directory
called /svn/downloads.

openldap-2.3.24.tar.gz ftp://ftp.openldap.org/pub/OpenLDAP/openldap-release/openldap-2.3.24.tgz
openssl-0.9.8b.tar.gz http://www.openssl.org/source/openssl-0.9.8b.tar.gz
subversion-1.3.2.tar.gz http://subversion.tigris.org/downloads/subversion-1.3.2.tar.gz

3) Run the attached bld-svn-client-static.sh script to build the
Subversion client.

When I run this, everything is fine up to this point. I try to
include enough text to give context as to where in the process we are.
 The error is at the end.

---------------------------------------------
Libraries have been installed in:
   /svn/client-install/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LIBPATH' environment variable
     during execution
   - use the `-Wl,-blibpath:LIBDIR:/svn/client-install/lib:/svn/client-install/usr/local/lib:/svn/client-build/subversion-1.3.2/apr-util/xml/expat/lib:/opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.0.0/pthread:/opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.0.0:/opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.0.0/../../..:/usr/lib:/lib
' linker flag

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
        /svn/client-build/subversion-1.3.2/ac-helpers/install-sh -c -d
/svn/client-install/include/subversion-1
        /svn/client-build/subversion-1.3.2/ac-helpers/install-sh -c -m
644 /svn/client-build/subversion-1.3.2/subversion/include/svn_version.h
/svn/client-install/include/subversion-1/svn_version.h
        /svn/client-build/subversion-1.3.2/ac-helpers/install-sh -c -m
644 /svn/client-build/subversion-1.3.2/subversion/include/svn_diff.h
/svn/client-install/include/subversion-1/svn_diff.h
        /svn/client-build/subversion-1.3.2/ac-helpers/install-sh -c -m
644 /svn/client-build/subversion-1.3.2/subversion/include/svn_fs.h
/svn/client-install/include/subversion-1/svn_fs.h
        /svn/client-build/subversion-1.3.2/ac-helpers/install-sh -c -m
644 /svn/client-build/subversion-1.3.2/subversion/include/svn_error_codes.h
/svn/client-install/include/subversion-1/svn_error_codes.h
        /svn/client-build/subversion-1.3.2/ac-helpers/install-sh -c -m
644 /svn/client-build/subversion-1.3.2/subversion/include/svn_sorts.h
/svn/client-install/include/subversion-1/svn_sorts.h
        /svn/client-build/subversion-1.3.2/ac-helpers/install-sh -c -m
644 /svn/client-build/subversion-1.3.2/subversion/include/svn_dav.h
/svn/client-install/include/subversion-1/svn_dav.h
        /svn/client-build/subversion-1.3.2/ac-helpers/install-sh -c -m
644 /svn/client-build/subversion-1.3.2/subversion/include/svn_base64.h
/svn/client-install/include/subversion-1/svn_base64.h
        /svn/client-build/subversion-1.3.2/ac-helpers/install-sh -c -m
644 /svn/client-build/subversion-1.3.2/subversion/include/svn_ctype.h
/svn/client-install/include/subversion-1/svn_ctype.h
        /svn/client-build/subversion-1.3.2/ac-helpers/install-sh -c -m
644 /svn/client-build/subversion-1.3.2/subversion/include/svn_ra_svn.h
/svn/client-install/include/subversion-1/svn_ra_svn.h
        /svn/client-build/subversion-1.3.2/ac-helpers/install-sh -c -m
644 /svn/client-build/subversion-1.3.2/subversion/include/svn_repos.h
/svn/client-install/include/subversion-1/svn_repos.h
        /svn/client-build/subversion-1.3.2/ac-helpers/install-sh -c -m
644 /svn/client-build/subversion-1.3.2/subversion/include/svn_delta.h
/svn/client-install/include/subversion-1/svn_delta.h
        /svn/client-build/subversion-1.3.2/ac-helpers/install-sh -c -m
644 /svn/client-build/subversion-1.3.2/subversion/include/svn_path.h
/svn/client-install/include/subversion-1/svn_path.h
        /svn/client-build/subversion-1.3.2/ac-helpers/install-sh -c -m
644 /svn/client-build/subversion-1.3.2/subversion/include/svn_subst.h
/svn/client-install/include/subversion-1/svn_subst.h
        /svn/client-build/subversion-1.3.2/ac-helpers/install-sh -c -m
644 /svn/client-build/subversion-1.3.2/subversion/include/svn_xml.h
/svn/client-install/include/subversion-1/svn_xml.h
        /svn/client-build/subversion-1.3.2/ac-helpers/install-sh -c -m
644 /svn/client-build/subversion-1.3.2/subversion/include/svn_props.h
/svn/client-install/include/subversion-1/svn_props.h
        /svn/client-build/subversion-1.3.2/ac-helpers/install-sh -c -m
644 /svn/client-build/subversion-1.3.2/subversion/include/svn_types.h
/svn/client-install/include/subversion-1/svn_types.h
        /svn/client-build/subversion-1.3.2/ac-helpers/install-sh -c -m
644 /svn/client-build/subversion-1.3.2/subversion/include/svn_config.h
/svn/client-install/include/subversion-1/svn_config.h
        /svn/client-build/subversion-1.3.2/ac-helpers/install-sh -c -m
644 /svn/client-build/subversion-1.3.2/subversion/include/svn_string.h
/svn/client-install/include/subversion-1/svn_string.h
        /svn/client-build/subversion-1.3.2/ac-helpers/install-sh -c -m
644 /svn/client-build/subversion-1.3.2/subversion/include/svn_io.h
/svn/client-install/include/subversion-1/svn_io.h
        /svn/client-build/subversion-1.3.2/ac-helpers/install-sh -c -m
644 /svn/client-build/subversion-1.3.2/subversion/include/mod_dav_svn.h
/svn/client-install/include/subversion-1/mod_dav_svn.h
        /svn/client-build/subversion-1.3.2/ac-helpers/install-sh -c -m
644 /svn/client-build/subversion-1.3.2/subversion/include/svn_wc.h
/svn/client-install/include/subversion-1/svn_wc.h
        /svn/client-build/subversion-1.3.2/ac-helpers/install-sh -c -m
644 /svn/client-build/subversion-1.3.2/subversion/include/svn_cmdline.h
/svn/client-install/include/subversion-1/svn_cmdline.h
        /svn/client-build/subversion-1.3.2/ac-helpers/install-sh -c -m
644 /svn/client-build/subversion-1.3.2/subversion/include/svn_client.h
/svn/client-install/include/subversion-1/svn_client.h
        /svn/client-build/subversion-1.3.2/ac-helpers/install-sh -c -m
644 /svn/client-build/subversion-1.3.2/subversion/include/svn_quoprint.h
/svn/client-install/include/subversion-1/svn_quoprint.h
        /svn/client-build/subversion-1.3.2/ac-helpers/install-sh -c -m
644 /svn/client-build/subversion-1.3.2/subversion/include/svn_hash.h
/svn/client-install/include/subversion-1/svn_hash.h
        /svn/client-build/subversion-1.3.2/ac-helpers/install-sh -c -m
644 /svn/client-build/subversion-1.3.2/subversion/include/svn_md5.h
/svn/client-install/include/subversion-1/svn_md5.h
        /svn/client-build/subversion-1.3.2/ac-helpers/install-sh -c -m
644 /svn/client-build/subversion-1.3.2/subversion/include/svn_error.h
/svn/client-install/include/subversion-1/svn_error.h
        /svn/client-build/subversion-1.3.2/ac-helpers/install-sh -c -m
644 /svn/client-build/subversion-1.3.2/subversion/include/svn_pools.h
/svn/client-install/include/subversion-1/svn_pools.h
        /svn/client-build/subversion-1.3.2/ac-helpers/install-sh -c -m
644 /svn/client-build/subversion-1.3.2/subversion/include/svn_nls.h
/svn/client-install/include/subversion-1/svn_nls.h
        /svn/client-build/subversion-1.3.2/ac-helpers/install-sh -c -m
644 /svn/client-build/subversion-1.3.2/subversion/include/svn_time.h
/svn/client-install/include/subversion-1/svn_time.h
        /svn/client-build/subversion-1.3.2/ac-helpers/install-sh -c -m
644 /svn/client-build/subversion-1.3.2/subversion/include/svn_utf.h
/svn/client-install/include/subversion-1/svn_utf.h
        /svn/client-build/subversion-1.3.2/ac-helpers/install-sh -c -m
644 /svn/client-build/subversion-1.3.2/subversion/include/svn_auth.h
/svn/client-install/include/subversion-1/svn_auth.h
        /svn/client-build/subversion-1.3.2/ac-helpers/install-sh -c -m
644 /svn/client-build/subversion-1.3.2/subversion/include/svn_opt.h
/svn/client-install/include/subversion-1/svn_opt.h
        /svn/client-build/subversion-1.3.2/ac-helpers/install-sh -c -m
644 /svn/client-build/subversion-1.3.2/subversion/include/svn_ra.h
/svn/client-install/include/subversion-1/svn_ra.h
        cd subversion/clients/cmdline && /bin/sh
/svn/client-build/subversion-1.3.2/libtool --tag=CC --silent
--mode=link gcc -I/svn/client-install/include
-L/svn/client-install/lib -all-static -I/svn/client-install/include
-I/svn/client-install/usr/local/include -pthread
-D_LARGEFILE64_SOURCE -DNE_LFS -L/svn/client-install/lib
-L/svn/client-install/usr/local/lib -Wl,-brtl
-L/svn/client-build/subversion-1.3.2/apr-util/xml/expat/lib -rpath
/svn/client-install/lib -o svn add-cmd.o blame-cmd.o cat-cmd.o
checkout-cmd.o cleanup-cmd.o commit-cmd.o copy-cmd.o delete-cmd.o
diff-cmd.o export-cmd.o help-cmd.o import-cmd.o info-cmd.o lock-cmd.o
log-cmd.o ls-cmd.o main.o merge-cmd.o mkdir-cmd.o move-cmd.o notify.o
prompt.o propdel-cmd.o propedit-cmd.o propget-cmd.o proplist-cmd.o
props.o propset-cmd.o resolved-cmd.o revert-cmd.o status-cmd.o
status.o switch-cmd.o unlock-cmd.o update-cmd.o util.o
../../../subversion/libsvn_client/libsvn_client-1.la
../../../subversion/libsvn_wc/libsvn_wc-1.la
../../../subversion/libsvn_ra/libsvn_ra-1.la
../../../subversion/libsvn_delta/libsvn_delta-1.la
../../../subversion/libsvn_subr/libsvn_subr-1.la
/svn/client-build/subversion-1.3.2/apr-util/libaprutil-0.la
/svn/client-build/subversion-1.3.2/apr-util/xml/expat/lib/libexpat.la
-liconv /svn/client-build/subversion-1.3.2/apr/libapr-0.la -lm -lnsl
-lpthread /svn/client-build/subversion-1.3.2/neon/src/libneon.la
ld: 0711-317 ERROR: Undefined symbol: t_open
ld: 0711-317 ERROR: Undefined symbol: t_close
ld: 0711-317 ERROR: Undefined symbol: t_getstate
ld: 0711-317 ERROR: Undefined symbol: t_unbind
ld: 0711-317 ERROR: Undefined symbol: t_sync
ld: 0711-317 ERROR: Undefined symbol: t_bind
ld: 0711-317 ERROR: Undefined symbol: t_getinfo
ld: 0711-317 ERROR: Undefined symbol: t_free
ld: 0711-317 ERROR: Undefined symbol: _terrno
ld: 0711-317 ERROR: Undefined symbol: t_sndudata
ld: 0711-317 ERROR: Undefined symbol: t_rcvudata
ld: 0711-317 ERROR: Undefined symbol: t_rcvuderr
ld: 0711-317 ERROR: Undefined symbol: t_alloc
ld: 0711-317 ERROR: Undefined symbol: t_optmgmt
ld: 0711-317 ERROR: Undefined symbol: t_connect
ld: 0711-317 ERROR: Undefined symbol: t_rcvconnect
ld: 0711-317 ERROR: Undefined symbol: t_rcv
ld: 0711-317 ERROR: Undefined symbol: t_look
ld: 0711-317 ERROR: Undefined symbol: t_rcvrel
ld: 0711-317 ERROR: Undefined symbol: t_sndrel
ld: 0711-317 ERROR: Undefined symbol: t_rcvdis
ld: 0711-317 ERROR: Undefined symbol: t_snddis
ld: 0711-317 ERROR: Undefined symbol: t_snd
ld: 0711-317 ERROR: Undefined symbol: t_errlist
ld: 0711-317 ERROR: Undefined symbol: t_nerr
ld: 0711-317 ERROR: Undefined symbol: t_listen
ld: 0711-317 ERROR: Undefined symbol: t_accept
ld: 0711-317 ERROR: Undefined symbol: crypt_r
ld: 0711-317 ERROR: Undefined symbol: max_history_size
ld: 0711-317 ERROR: Undefined symbol: encrypted_pw_passlen
ld: 0711-317 ERROR: Undefined symbol: getpass_auto
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
collect2: ld returned 8 exit status
make: 1254-004 The error code from the last command is 1.

Stop.
svnadm /svn>

Does anyone have any idea how to fix this? I found this post
(http://www.gatago.com/gnu/gcc/help/17420860.html) which seems
similar. Their suggestion is to rebuild gcc --disable-shared
specified, but I don't quite understand how to verify if my situation
is similar, and would prefer to not have to build gcc.

Thanks,
Justin

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Jul 14 18:11:30 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.