duplicity-talk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Duplicity-talk] _librsync.so: Undefined symbol "rs_file_copy_cb"


From: edgar . soldin
Subject: Re: [Duplicity-talk] _librsync.so: Undefined symbol "rs_file_copy_cb"
Date: Mon, 17 Dec 2012 16:53:33 +0100
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/17.0 Thunderbird/17.0

On 17.12.2012 15:42, huang jun wrote:
> 2012/12/17 Scott Hannahs <address@hidden>
> 
>> On Dec 17, 2012, at 08:06, huang jun <address@hidden> wrote:
>>
>>
>>
>> 2012/12/17 <address@hidden>
>>
>>> On 17.12.2012 12:44, huang jun wrote:
>>>> hi,list
>>>>   I install duplicity by sourcecode On FreeBSD v8.2
>>>>   but after executeit the binary file,here is error output:
>>>>
>>>>   $ duplicity
>>>> Traceback (most recent call last):
>>>>   File "/usr/local/bin/duplicity", line 45, in <module>
>>>>     from duplicity import collections
>>>>   File
>>> "/usr/local/lib/python2.6/site-packages/duplicity/collections.py",
>>>> line 29, in <module>
>>>>     from duplicity import path
>>>>   File "/usr/local/lib/python2.6/site-packages/duplicity/path.py", line
>>> 36,
>>>> in <module>
>>>>     from duplicity import librsync
>>>>   File "/usr/local/lib/python2.6/site-packages/duplicity/librsync.py",
>>> line
>>>> 29, in <module>
>>>>     import _librsync
>>>> ImportError:
>>> /usr/local/lib/python2.6/site-packages/duplicity/_librsync.so:
>>>> Undefined symbol "rs_file_copy_cb"
>>>>
>>>> It seems something wrong with librsync.
>>>> I googled it, and there is someone had the similar problem,but there is
>>> no
>>>> solutions to it.
>>>> BTW,i use the librsync 0.9.7 building from the sourcecode.
>>>>
>>>>
>>>
>>> there was a similar issue once on Mac OSX, where it was compiled against
>>> x64 but run x86 or the other way around. see
>>> http://pl.digipedia.org/usenet/thread/16518/1073/
>>> you might want to further dig into our mailing list.
>>>
>>> good luck.. ede/duply.net
>>>
>>> _______________________________________________
>>> Duplicity-talk mailing list
>>> address@hidden
>>> https://lists.nongnu.org/mailman/listinfo/duplicity-talk
>>>
>>
>> thanks for you reply,
>> i have found this before and at last it given no solution and i
>> reinstalled the librsync,
>> but the same error occurs .
>> Both the duplicity and librsync are installed by sourcecode on vmware8.0
>> FreeBSD.
>> which explains there is no confusing about the hardware type.
>>
>> huangjun
>>
>>
>> Actually being part of that thread, there was a resolution if you look at
>> the entire thread in the archive.
>>
>> But the problem is mixing python, gnupg, librsync and duplicity.  All must
>> either be 32 or 64bit compiled.  Use the "file" commands on the various
>> executables and libraries to make sure that they are all compatible.  What
>> are the code types for each of these?
>>
>> Make sure that PYTHONPATH is sending you to the right version of the
>> libraries and not an older incompatible version.
>>
>> -sth
>>
>>
>> _______________________________________________
>> Duplicity-talk mailing list
>> address@hidden
>> https://lists.nongnu.org/mailman/listinfo/duplicity-talk
>>
>> hi,scott
> the output of cmd 'file' belows:
> $ file /usr/local/lib/python2.6/site-packages/duplicity/_librsync.so
> /usr/local/lib/python2.6/site-packages/duplicity/_librsync.so: ELF 32-bit
> LSB shared object, Intel 80386, version 1 (FreeBSD), dynamically linked,
> not stripped
> 
> $ file /usr/local/bin/python
> /usr/local/bin/python: ELF 32-bit LSB executable, Intel 80386, version 1
> (FreeBSD), dynamically linked (uses shared libs), for FreeBSD 8.0 (800107),
> stripped
> 
> $ file /usr/local/bin/duplicity
> /usr/local/bin/duplicity: a /usr/local/bin/python script text executable
> 
> $ file /usr/local/lib/librsync.so.1
> /usr/local/lib/librsync.so.1: ELF 32-bit LSB shared object, Intel 80386,
> version 1 (FreeBSD), dynamically linked, not stripped
> 
> and the PYTHONPATH is:
> $ python
> Python 2.6.6 (r266:84292, Dec 23 2010, 15:11:37)
> [GCC 4.2.1 20070719  [FreeBSD]] on freebsd8
> Type "help", "copyright", "credits" or "license" for more information.
>>>> import sys
>>>> print sys.path
> ['', '/usr/local/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg',
> '/usr/local/lib/python2.6/site-packages/simplejson-2.1.2-py2.6-freebsd-8.2-RELEASE-i386.egg',
> '/usr/local/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg',
> '/usr/local/lib/python2.6/site-packages/setuptools_darcs-1.2.11-py2.6.egg',
> '/usr/local/lib/python2.6/site-packages/darcsver-1.7.1-py2.6.egg',
> '/usr/local/lib/python2.6/site-packages/pycryptopp-0.5.25-py2.6-freebsd-8.2-RELEASE-i386.egg',
> '/usr/local/lib/python2.6/site-packages/simplejson-2.1.2-py2.6-freebsd-8.2-RELEASE-i386.egg',
> '/usr/local/lib/python2.6/site-packages/zope.interface-3.6.1-py2.6-freebsd-8.2-RELEASE-i386.egg',
> '/usr/local/lib/python2.6/site-packages/pyutil-1.8.1-py2.6.egg',
> '/usr/local/lib/python2.6/site-packages/zbase32-1.1.3-py2.6.egg',
> '/usr/local/lib/python2.6/site-packages/Nevow-0.10.0-py2.6.egg',
> '/usr/local/lib/python2.6/site-packages/pyasn1-0.0.9a-py2.6.egg',
> '/usr/local/lib/python2.6/site-packages/foolscap-0.6.3-py2.6.egg',
> '/usr/local/lib/python2.6/site-packages/Twisted-12.2.0-py2.6-freebsd-8.2-RELEASE-i386.egg',
> '/usr/local/lib/python2.6/site-packages',
> '/usr/local/lib/python2.6/site-packages/duplicity',
> '/usr/local/lib/python26.zip', '/usr/local/lib/python2.6',
> '/usr/local/lib/python2.6/plat-freebsd8',
> '/usr/local/lib/python2.6/lib-tk', '/usr/local/lib/python2.6/lib-old',
> '/usr/local/lib/python2.6/lib-dynload']
> 
> there are anything wrong above?
> 

check if there's another version of librsync.so in your LD_LIBRARY_PATH
here some background info how native libs are found linux like systems. i guess 
freebsd counts as one.
http://tldp.org/HOWTO/Program-Library-HOWTO/shared-libraries.html

my guess would be your /usr/local/lib/librsync.so is not used but the other one 
instead because it is found first.

..ede/duply.net



reply via email to

[Prev in Thread] Current Thread [Next in Thread]