Login | Register
My pages Projects Community openCollabNet

Discussions > users > Re: "... undefined symbol: gdbm_errno"

fsvs
Discussion topic

Back to topic list

Re: "... undefined symbol: gdbm_errno"

Author pmarek
Full name P.Marek
Date 2006-03-06 08:49:39 PST
Message Am Monday 06 March 2006 11:17 schrieb Dirk Schenkewitz:
> Hi Philipp and others,
>
> short story of my problem:
> when I do './fsvs --version' in the src subdir of fsvs 1.0.3 I get:
>
> ./fsvs: symbol lookup error: /usr/lib/libaprutil-0.so.0: undefined symbol:
> gdbm_errno
>
> What's that?
> I guess /usr/lib/libaprutil-0.so.0 doesn't contain the symbol "gdbm_errno",
> but why should it?
>
> Any idea what I can do against it?
> If I should provide more information - what would be useful?
>
> Longer story:
> The first time I tried to compile it, it failed with lots of error
> messages. I discovered that /usr/include/apr-0 did not exist, searched for
> "apr-0" and found /usr/local/apr/include/apr-0. So I created a symlink from
> /usr/local/apr/include/apr-0 to /usr/include/apr-0 and then compiling
> worked. The next thing I tried './fsvs --version' and then './fsvs' but
> everything fails with:
If you have the apr-include files in /usr/local, I suppose you didn't install
a package of your distribution, but compiled it yourself.

Then I'd expect the (correct) libraries of your newer version
in /usr/local/lib - but libaprutil is found in /usr/lib, which is probably
the older version:
> ./fsvs: symbol lookup error: /usr/lib/libaprutil-0.so.0: undefined symbol:
> gdbm_errno
>
> Now what?
> Is the libaprutil-0.so.0 broken?
> Should I recompile subversion? If yes:
> Will it work with subversion 1.3? Right now I have 1.2.0 (r14790) installed
> & running, but if I must recompile everything, I'd like to install 1.3 :-)
>
> TIA for any hint and
> Special Thanks to Philipp for writing it at all :-)
Well, you could do a
    $ objdump -T /usr/lib/libaprutil-0.so.0 | grep gdbm_errno
    $ objdump -T /usr/local/lib/libap​rutil-0.so.0 | grep gdbm_errno
Or you edit /etc/ld.so.conf and put /usr/local/lib in front of all others -
esp. /usr/lib.

    $ LD_DEBUG=files ./fsvs
may help, see
    $ LD_DEBUG=help ./fsvs
for more information.


Hope that helps!
Don't hesitate to get back for more help.


Regards,

Phil

« Previous message in topic | 2 of 5 | Next message in topic »

Messages

Show all messages in topic

"... undefined symbol: gdbm_errno" dirks Dirk Schenkewitz 2006-03-06 02:17:32 PST
     Re: "... undefined symbol: gdbm_errno" pmarek P.Marek 2006-03-06 08:49:39 PST
     Re: "... undefined symbol: gdbm_errno" pmarek P.Marek 2006-03-06 09:01:38 PST
         Re: "... undefined symbol: gdbm_errno (II)" pmarek P.Marek 2006-03-07 04:01:57 PST
         Re: "... undefined symbol: gdbm_errno" dirks Dirk Schenkewitz 2006-03-07 06:14:33 PST
Messages per page: