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

libsvn_subr-1.so: undefined reference to `APR_STATUS_IS_SUCCESS'

From: Jeff Kowalczyk <jtk_at_yahoo.com>
Date: 2004-09-04 21:10:31 CEST

I'm posting this subversion question/build bug because it could possibly
have nothing to do with the Gentoo Linux it is being built on.

This is the relevant error:
../../../subversion/libsvn_subr/.libs/libsvn_subr-1.so:
undefined reference to `APR_STATUS_IS_SUCCESS'

Thanks.

http://bugs.gentoo.org/show_bug.cgi?id=62840

After emerging apr-1.0.0 ( http://bugs.gentoo.org/show_bug.cgi?id=61045 ), I can finally try to build subversion-1.1.0_rc*. Unmasked subversion-1.1.0_rc2.ebuild, copied to portage overlay, and made the following 1-line diff to handle the new apr-config locations:

--- /usr/portage/dev-util/subversion/subversion-1.1.0_rc2.ebuild 2004-09-01 07:07:08.000000000 -0400
+++ /usr/local/portage/dev-util/subversion/subversion-1.1.0_rc2.ebuild 2004-09-04 14:31:07.302491184 -0400
@@ -97,7 +97,7 @@
        use ssl || myconf="${myconf} --without-ssl"

        use apache2 && myconf="${myconf} --with-apxs=/usr/sbin/apxs2 \
- --with-apr=/usr --with-apr-util=/usr"
+ --with-apr=/usr/bin/apr-1-config --with-apr-util=/usr/bin/apu-1-config"
        use apache2 || myconf="${myconf} --without-apxs"

        use berkdb && myconf="${myconf} --with-berkeley-db"

Emerging subversion now will fail with the following error:

(...)
cd subversion/tests/libsvn_repos && /bin/sh /var/tmp/portage/subversion-1.1.0_rc2/work/subversion-1.1.0-rc2/libtool --silent --mode=link gcc -L/var/tmp/portage/subversion-1.1.0_rc2/image//usr/lib -O2 -march=athlon-xp -mcpu=i686 -pipe -fomit-frame-pointer -pthread -DNEON_ZLIB -DNEON_SSL -rpath /usr/lib -o md5args md5args.o ../../../subversion/libsvn_subr/libsvn_subr-1.la /usr/lib/libaprutil-1.la -lgdbm -ldb-4.2 -lexpat /usr/lib/libapr-1.la -lrt -lcrypt -lpthread -ldl
cd subversion/tests/libsvn_delta && /bin/sh /var/tmp/portage/subversion-1.1.0_rc2/work/subversion-1.1.0-rc2/libtool --silent --mode=link gcc -L/var/tmp/portage/subversion-1.1.0_rc2/image//usr/lib -O2 -march=athlon-xp -mcpu=i686 -pipe -fomit-frame-pointer -pthread -DNEON_ZLIB -DNEON_SSL -rpath /usr/lib -o svndiff-test svndiff-test.o ../../../subversion/libsvn_delta/libsvn_delta-1.la ../../../subversion/libsvn_subr/libsvn_subr-1.la /usr/lib/libaprutil-1.la -lgdbm -ldb-4.2 -lexpat /usr/lib/libapr-1.la -lrt -lcrypt -lpthread -ldl
../../../subversion/libsvn_subr/.libs/libsvn_subr-1.so: undefined reference to `APR_STATUS_IS_SUCCESS'
collect2: ld returned 1 exit status
make: *** [subversion/tests/libsvn_repos/md5args] Error 1
make: *** Waiting for unfinished jobs....
svndiff-test.o(.text+0x5d): In function `main':
: undefined reference to `APR_STATUS_IS_SUCCESS'
svndiff-test.o(.text+0x95): In function `main':
: undefined reference to `APR_STATUS_IS_SUCCESS'
collect2: ld returned 1 exit status
make: *** [subversion/tests/libsvn_delta/svndiff-test] Error 1

!!! ERROR: dev-util/subversion-1.1.0_rc2 failed.
!!! Function src_compile, Line 120, Exitcode 2
!!! make of subversion failed

Here is the config part of the ebuild, if this helps anyone spot the problem:

>>> emerge (1 of 1) dev-util/subversion-1.1.0_rc2 to /
>>> md5 src_uri ;-) subversion-1.1.0-rc2.tar.bz2
berkdb
apache2
 * The apache2 subversion module will be built, and libapr from the
 * apache package will be used instead of the included.
>>> Unpacking source...
>>> Unpacking subversion-1.1.0-rc2.tar.bz2 to /var/tmp/portage/subversion-1.1.0_rc2/work
 * Applying subversion-db4.patch... [ ok ] * Applying subversion-1.1.0-rc2-build.patch... [ ok ] * Patching ${S}/apr/build/ltmain.sh...
 * Applying portage-1.4.1.patch...
 * Applying relink-1.4.3.patch...
 * Applying sed-1.4.3.patch...
 * Applying tmp-1.3.5.patch...
 * Patching ${S}/neon/ltmain.sh...
 * Applying portage-1.4.1.patch...
 * Applying max_cmd_len-1.5.0.patch...
 * Patching ${S}/ac-helpers/ltmain.sh...
 * Applying portage-1.4.1.patch...
 * Applying relink-1.4.3.patch...
 * Applying sed-1.4.3.patch...
 * Applying tmp-1.3.5.patch...
 * Patching ${S}/apr-util/xml/expat/conftools/ltmain.sh...
 * Applying portage-1.4.1.patch...
 * Applying relink-1.4.3.patch...
 * Applying sed-1.4.3.patch...
 * Applying tmp-1.3.5.patch...
>>> Source unpacked.
ssl
ssl
apache2
apache2
berkdb
berkdb
python
python
configure: WARNING: If you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used.
Configuring Subversion 1.1.0
creating config.nice
checking for i686-pc-linux-gnu-gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking whether ln -s works... yes
configure: Apache Portable Runtime (APR) library configuration
checking for APR... yes
checking APR version... 1.0.0
configure: Apache Portable Runtime Utility (APRUTIL) library configuration
checking for APR-util... yes
checking APR-UTIL version... 1.0.0
configuring libtool now
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for ld used by GCC... /usr/i686-pc-linux-gnu/bin/ld
checking if the linker (/usr/i686-pc-linux-gnu/bin/ld) is GNU ld... yes
checking for /usr/i686-pc-linux-gnu/bin/ld option to reload object files... -r
checking for BSD-compatible nm... nm
checking for a sed that does not truncate output... /bin/sed
checking how to recognise dependent libraries... pass_all
checking command to parse nm output... ok
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for i686-pc-linux-gnu-ranlib... no
checking for ranlib... ranlib
checking for i686-pc-linux-gnu-strip... no
checking for strip... strip
checking for objdir... .libs
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.lo... yes
checking if gcc supports -fno-rtti -fno-exceptions... no
checking whether the linker (/usr/i686-pc-linux-gnu/bin/ld) supports shared libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking whether -lc should be explicitly linked in... no
creating libtool
checking whether libtool needs -no-undefined... no
configure: checking neon library
checking neon library version... 0.24.7
checking for static Apache module support... no
checking for Apache module support via DSO through APXS... apxs:Error: /usr/bin/apr-config not found!.
found at /usr/sbin/apxs2
checking httpd version... recent enough
apxs:Error: /usr/bin/apr-config not found!.
apxs:Error: /usr/bin/apr-config not found!.
checking for socket in -lsocket... no
checking for availability of Berkeley DB... yes
checking for msgfmt... /usr/bin/msgfmt
checking for msgmerge... /usr/bin/msgmerge
checking for xgettext... /usr/bin/xgettext
checking for library containing bindtextdomain... none required
checking for bind_textdomain_codeset... yes
checking for ANSI C header files... (cached) yes
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking for working memcmp... yes
checking for vprintf... yes
checking for _doprnt... no
checking for symlink... yes
checking for readlink... yes
configure: Disabling apache module activation
checking for python2... /usr/bin/python2
checking for Python 2.0 or newer
checking for JDK... configure: WARNING: no JNI header files found.
no
checking for perl... /usr/bin/perl
configure: Enabled swig binding: perl
configure: Enabled swig binding: python
configure: Enabled swig binding: java
checking for swig... /usr/bin/swig
checking swig version... 1.3.21
checking for swig library directory... /usr/lib/swig1.3
configure: Configuring python swig binding
checking if swig needs -L for its libraries...
checking for Python includes... -I/usr/include/python2.3
checking for compiling Python extensions... gcc -pthread -fno-strict-aliasing -DNDEBUG -fPIC
checking for linking Python extensions... gcc -pthread -shared
checking for linking Python libraries...
checking perl version... 5008005
checking for makeinfo... /usr/bin/makeinfo
configure: creating ./config.status
config.status: creating Makefile
config.status: creating svn-config
config.status: creating tools/backup/hot-backup.py
config.status: creating contrib/client-side/svn_load_dirs.pl
config.status: creating tools/hook-scripts/commit-access-control.pl
config.status: creating tools/hook-scripts/commit-email.pl
config.status: creating tools/hook-scripts/propchange-email.pl
config.status: creating subversion/bindings/swig/perl/native/Makefile.PL
config.status: creating subversion/svn_private_config.h
apache2
/bin/sh /var/tmp/portage/subversion-1.1.0_rc2/work/subversion-1.1.0-rc2/libtool --silent --mode=compile gcc -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -O2 -march=athlon-xp -mcpu=i686 -pipe -fomit-frame-pointer -pthread -DNEON_ZLIB -DNEON_SSL -I./subversion/include -I./subversion -I/usr/include/neon -I/usr/include/apr-1 -I/usr/include/apr-1 -o subversion/libsvn_delta/cancel.lo -c subversion/libsvn_delta/cancel.c
(...)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Sep 4 21:11:05 2004

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.