Subject: subversion-base doesn't build on AIX 5.3
To: None <tech-pkg@netbsd.org>
From: Louis Guillaume <lguillaume@berklee.edu>
List: tech-pkg
Date: 07/22/2006 15:03:18
After fixing up my AIX build environment like this...

USE_NATIVE_GCC=yes
CC=/opt/freeware/bin/gcc
CPP=/opt/freeware/bin/cpp
CXX=/opt/freeware/bin/g++

# Configure scripts don't always get this right
MACHINE_GNU_PLATFORM=powerpc-ibm-aix5.3.0.0

CHECK_SHLIBS=no
RENAME=
USE_GCC3=yes

PKGMAKECONF=${MAKECONF}
DEPENDS_TARGET=package

... subversion-base fails like this...

cd subversion/tests/libsvn_fs && /bin/sh
/usr/pkg/obj/devel/subversion-base/work/subversion-1.3.2/libtool
--tag=CC --silent --mode=link gcc  -O -I/usr/pkg/include -I/usr/include
  -pthread  -D_LARGEFILE64_SOURCE -DNE_LFS  -L/usr/pkg/lib
-Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib   -Wl,-brtl  -L/usr/pkg/lib
 -rpath /usr/pkg/lib -o fs-test  fs-test.o
../../../subversion/tests/libsvn_test-1.la
../../../subversion/libsvn_fs/libsvn_fs-1.la
../../../subversion/libsvn_delta/libsvn_delta-1.la
../../../subversion/libsvn_subr/libsvn_subr-1.la
/usr/pkg/lib/libaprutil-0.la -lexpat -liconv /usr/pkg/lib/libapr-0.la
-lm -lnsl  -lpthread
ld: 0711-317 ERROR: Undefined symbol: .iconv_close
ld: 0711-317 ERROR: Undefined symbol: .iconv
ld: 0711-317 ERROR: Undefined symbol: .iconv_open
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
information.
collect2: ld returned 8 exit status
*** Error code 1




On this system, /usr/bin/ld is softlinked to /usr/ccs/bin/ld

I have GNU ld in /opt/freeware/bin/gld, but if I try to use that, gcc
stops working; `cannot create executables'.



Any help getting this going would be great. Thanks!

Louis