Gentoo Archives: gentoo-embedded

From: Douglas Campos <qmx2352@×××××.com>
To: gentoo-embedded@l.g.o
Subject: Re: [gentoo-embedded] Dynamic linking problem with SWIG Python bindings for Subversion
Date: Thu, 29 Dec 2005 17:41:35
Message-Id: cc04c5eb0512290939p1ea30f3p1804a075bf5341bb@mail.gmail.com
In Reply to: [gentoo-embedded] Dynamic linking problem with SWIG Python bindings for Subversion by Dan C
1 getting the same trouble with pygresql
2
3 can't resolve symbol: error_message
4
5 Any clues?
6
7 On 12/27/05, Dan C <djc@××××××.au> wrote:
8 >
9 > ... at least I think that's what I've got! Any suggestions on how to fix
10 > would be greatly appreciated.
11 >
12 > The basic symptoms are: starting with a fresh install of Subversion
13 > including SWIG Python bindings, I open a python interpreter:
14 >
15 > >>> from libsvn import _core
16 >
17 > and the interpreter dies with:
18 >
19 > python: can't resolve symbol 'apr_pool_cleanup_null'
20 >
21 > Of course ordinarily I wouldn't be importing libsvn._core (it originally
22 > started with a Trac installation in fact) but this is as far back as I
23 > have been able to trace the problem. Here my knowledge gets a bit hazy,
24 > as _core seems to be a shared object.
25 >
26 > This is what ldd says about it:
27 >
28 > # ldd /usr/lib/python2.4/site-packages/libsvn/_core.so
29 > libc.so.0 => /lib/libc.so.0 (0x4000d000)
30 > ld-uClibc.so.0 => /lib/ld-uClibc.so.0 (0x40000000)
31 > libc.so.0 => /lib/libc.so.0 (0x4000d000)
32 > ld-uClibc.so.0 => /lib/ld-uClibc.so.0 (0x40000000)
33 > libc.so.0 => /lib/libc.so.0 (0x4000d000)
34 > ld-uClibc.so.0 => /lib/ld-uClibc.so.0 (0x40000000)
35 > libc.so.0 => /lib/libc.so.0 (0x4000d000)
36 > ld-uClibc.so.0 => /lib/ld-uClibc.so.0 (0x40000000)
37 > ld-uClibc.so.0 => /lib/ld-uClibc.so.0 (0x40000000)
38 > libsvn_swig_py-1.so.0 => /usr/lib/libsvn_swig_py-1.so.0(0x00000000)
39 > libsvn_delta-1.so.0 => /usr/lib/libsvn_delta-1.so.0 (0x00000000)
40 > libsvn_diff-1.so.0 => /usr/lib/libsvn_diff-1.so.0 (0x00000000)
41 > libsvn_subr-1.so.0 => /usr/lib/libsvn_subr-1.so.0 (0x00000000)
42 > libapr-0.so.0 => /usr/lib/libapr-0.so.0 (0x00000000)
43 > libm.so.0 => /lib/libm.so.0 (0x00000000)
44 > libcrypt.so.0 => /lib/libcrypt.so.0 (0x00000000)
45 > libnsl.so.0 => /lib/libnsl.so.0 (0x00000000)
46 > libpthread.so.0 => /lib/libpthread.so.0 (0x00000000)
47 > libdl.so.0 => /lib/libdl.so.0 (0x00000000)
48 > libz.so.1 => /lib/libz.so.1 (0x00000000)
49 > libc.so.0 => /lib/libc.so.0 (0x00000000)
50 > libaprutil-0.so.0 => /usr/lib/libaprutil-0.so.0 (0x00000000)
51 > libdb-4.2.so => /usr/lib/libdb-4.2.so (0x00000000)
52 > libexpat.so.0 => /usr/lib/libexpat.so.0 (0x00000000)
53 > not a dynamic executable
54 >
55 > Is that normal? Certainly everything configured and compiled without
56 > errors.
57 >
58 > I have installed (from Portage):
59 >
60 > apr-0.9.7
61 > apr-util-0.9.7
62 > swig-1.3.25
63 > subversion-1.2.3-r2
64 >
65 > And my emerge --info:
66 >
67 > Portage 2.0.53 (uclibc/arm/2.4, gcc-3.4.4, uclibc-0.9.27-r1, 2.6.12.2
68 > armv5teb)
69 > =================================================================
70 > System uname: 2.6.12.2 armv5teb XScale-IXP42x Family rev 1 (v5b)
71 > Gentoo Base System version 1.6.13
72 > dev-lang/python: 2.3.5, 2.4.2
73 > sys-apps/sandbox: 1.2.12
74 > sys-devel/autoconf: 2.13, 2.59-r6
75 > sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
76 > sys-devel/binutils: 2.16.1
77 > sys-devel/libtool: 1.5.20
78 > virtual/os-headers: 2.4.26-r1
79 > ACCEPT_KEYWORDS="arm"
80 > AUTOCLEAN="yes"
81 > CBUILD="armeb-softfloat-linux-uclibc"
82 > CFLAGS="-Os -march=armv5te -mtune=xscale"
83 > CHOST="armeb-softfloat-linux-uclibc"
84 > CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
85 > /usr/share/config /var/qmail/control"
86 > CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
87 > CXXFLAGS="-Os -march=armv5te -mtune=xscale"
88 > DISTDIR="/usr/portage/distfiles"
89 > FEATURES="autoconfig distlocks nodoc noinfo noman sandbox sfperms
90 > strict"
91 > GENTOO_MIRRORS="http://mirror.internode.on.net/pub/gentoo/
92 > http://ftp.iinet.com.au/pub/Gentoo http://distfiles.gentoo.org
93 > http://www.ibiblio.org/pub/Linux/distributions/gentoo"
94 > PKGDIR="/usr/portage/packages"
95 > PORTAGE_TMPDIR="/var/tmp"
96 > PORTDIR="/usr/portage"
97 > SYNC="rsync://rsync.gentoo.org/gentoo-portage"
98 > USE="arm berkdb bitmap-fonts bzip2 curl expat fam fastcgi ncurses pcre
99 > perl php python readline sqlite ssl truetype-fonts type1-fonts uclibc
100 > unicode zlib userland_GNU kernel_linux elibc_uclibc"
101 > Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS,
102 > PORTDIR_OVERLAY
103 >
104 > --
105 > Dan C <djc@××××××.au>
106 > --
107 > gentoo-embedded@g.o mailing list
108 >
109 >