build nightmares

Aaron Solochek aarons-samba at aberrant.org
Mon Jan 3 15:36:01 MST 2011


On 01/03/2011 05:24 PM, 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.  I'm going to remove the
> debs again and retry the build and see how that goes.
> 
> -Aaron
> 


Ok, so this is what I get if I try building the deb source as I get it:

[1905/2018] Linking default/source4/librpc/python-epmapper.so
default/librpc/gen_ndr/py_misc_57.o: In function `py_import_winreg_Data':
py_misc.c:(.text+0x1bac): undefined reference to `PyString_FromString_check_null'
py_misc.c:(.text+0x1bc8): undefined reference to `PyString_FromString_check_null'
collect2: ld returned 1 exit status
default/librpc/gen_ndr/py_epmapper_61.o: In function `py_epm_rhs_ip_get_ipaddr':
py_epmapper.c:(.text+0x335): undefined reference to `PyString_FromString_check_null'
default/librpc/gen_ndr/py_epmapper_61.o: In function `py_epm_rhs_smb_get_unc':
py_epmapper.c:(.text+0x755): undefined reference to `PyString_FromString_check_null'
default/librpc/gen_ndr/py_epmapper_61.o: In function
`py_epm_rhs_named_pipe_get_path':
py_epmapper.c:(.text+0x811): undefined reference to `PyString_FromString_check_null'
default/librpc/gen_ndr/py_epmapper_61.o: In function `py_epm_rhs_netbios_get_name':
py_epmapper.c:(.text+0x8cd): undefined reference to `PyString_FromString_check_null'
default/librpc/gen_ndr/py_epmapper_61.o: In function `py_epm_rhs_unix_ds_get_path':
py_epmapper.c:(.text+0xb6d): undefined reference to `PyString_FromString_check_null'
default/librpc/gen_ndr/py_epmapper_61.o:py_epmapper.c:(.text+0x109f): more
undefined references to `PyString_FromString_check_null' follow
collect2: ld returned 1 exit status
Waf: Leaving directory
`/usr/src/samba4-4.0.0~alpha14~bzr15953~ppa174+199~maverick/source4/bin'



If I try to build with source4 and lib pointing to the source from git,
configure fails:

Checking for system tdb >= 1.2.9                           : not found
ERROR: System library tdb of version 1.2.9 not found, and bundling disabled

If I try bundling tdb, I get this error with heimdal:

[2165/2360] Linking default/source4/libcli/security/libsecurity-session-samba4.so
default/source4/heimdal/lib/hcrypto/rand-egd_84.o: In function `connect_egd':
rand-egd.c:(.text+0x77): undefined reference to `rep_strlcpy'

So that's where I am now.  And I did understand what you meant about there being
old libraries on the system, and I do believe they've been cleaned up.

Thanks.

-Aaron


More information about the samba-technical mailing list