build nightmares
Aaron Solochek
aarons-samba at aberrant.org
Mon Jan 3 15:46:06 MST 2011
On 01/03/2011 05:38 PM, Andrew Bartlett wrote:
> On Mon, 2011-01-03 at 17:24 -0500, Aaron Solochek wrote:
>> On 01/03/2011 05:08 PM, Andrew Bartlett wrote:
>>> On Mon, 2011-01-03 at 16:35 -0500, Aaron Solochek wrote:
>>>> Ok, I've spent the day on this, which is my limit before asking for help.
>>>>
>>>> I'm trying to upgrade samba4 on my ubuntu system. I saw that there were new
>>>> .debs (obviously the preferred way for me to install it) but those failed to
>>>> install. Have those ever installed cleanly for anyone? This time it was some
>>>> unresolved symbol.
>>>
>>> Have you previously installed Samba from source?
>>>
>>> Remove all traces of any previous built-from-source ldb,tdb,talloc and
>>> Samba4 from your system first. ie, remove PREFIX/lib PREFIX/bin
>>>
>>> The problem is that the system linker may choose the previous
>>> unversioned libraries instead of the new versioned libs. (symbol
>>> versions are the big change we made for this release)
>>>
>>> Andrew Bartlett
>>>
>>
>> Ok, I went through and removed everything I could find, including all the .debs.
>> Then just for fun I tried installing the debs again and I got this:
>>
>> Setting up samba4 (4.0.0~alpha14~bzr15953~ppa174+199~maverick) ...
>> Traceback (most recent call last):
>> File "/usr/share/samba/setup/upgradeprovision", line 38, in <module>
>> import samba.getopt as options
>> File "/usr/lib/python2.6/dist-packages/samba/getopt.py", line 30, in <module>
>> from samba.hostconfig import Hostconfig
>> File "/usr/lib/python2.6/dist-packages/samba/hostconfig.py", line 22, in <module>
>> from samdb import SamDB
>> File "/usr/lib/python2.6/dist-packages/samba/samdb.py", line 32, in <module>
>> from samba.dcerpc import drsblobs, misc
>> ImportError: /usr/lib/python2.6/dist-packages/samba/dcerpc/drsblobs.so:
>> undefined symbol: PyString_FromString_check_null
>>
>>
>> which was the original problem I was trying to solve.
>
> This looks like a function that we have removed, so you still have some
> old python modules etc left around.
>
> Does the mentioned drsblobs.so belong to a package? Perhaps it's a
> left-over from an old build?
>
That drsblobs.so is supplied by the package python-samba. That package version
matches the samba4 package version, which leads me to think the .debs are just
broken, and that's why I'm trying to rebuild them.
For the record, that package version is 4.0.0~alpha14~bzr15953~ppa174+199~maverick
-Aaron
More information about the samba-technical
mailing list