[Pkg-samba-maint] Bug#657314: unstable: 2:3.6.1-3 fails to build due to incorrect python-ldb bindings

Dave Anglin dave.anglin at bell.net
Wed Jan 25 14:14:33 UTC 2012


Package: samba
Version: 2:3.5.11~dfsg-4
Severity: normal

Source build fails linking default/source4/lib/ldb/pyldb.so:

Waf: Entering directory `/home/dave/debian/samba/samba-3.6.1/bin'
'reconfigure' finished successfully (13.520s)
cd .. && WAF_MAKE=1 buildtools/bin/waf --targets=smbtorture
Waf: Entering directory `/home/dave/debian/samba/samba-3.6.1/bin'
[  69/2412] Generating VERSION
[2253/2412] Linking default/lib/util/libsamba-util.so
[2257/2412] Linking default/source4/lib/ldb/pyldb.so
default/source4/lib/ldb/pyldb_15.o: In function `py_ldb_dn_add_child':
(.text+0x162c): undefined reference to `PyObject_AsDn'
default/source4/lib/ldb/pyldb_15.o: In function `py_ldb_dn_add_base':
(.text+0x1724): undefined reference to `PyObject_AsDn'
default/source4/lib/ldb/pyldb_15.o: In function `py_ldb_dn_concat':
(.text+0x182c): undefined reference to `PyObject_AsDn'
default/source4/lib/ldb/pyldb_15.o: In function `py_ldb_get_root_basedn':
(.text+0x24a4): undefined reference to `PyLdbDn_FromDn'
default/source4/lib/ldb/pyldb_15.o: In function `py_ldb_get_schema_basedn':
(.text+0x2544): undefined reference to `PyLdbDn_FromDn'
default/source4/lib/ldb/pyldb_15.o: In function `py_ldb_get_config_basedn':
(.text+0x25e4): undefined reference to `PyLdbDn_FromDn'
default/source4/lib/ldb/pyldb_15.o: In function `py_ldb_get_default_basedn':
(.text+0x2684): undefined reference to `PyLdbDn_FromDn'
default/source4/lib/ldb/pyldb_15.o: In function `PyDict_AsMessage':
(.text+0x33c4): undefined reference to `PyObject_AsDn'
default/source4/lib/ldb/pyldb_15.o: In function `py_ldb_delete':
(.text+0x3d18): undefined reference to `PyObject_AsDn'
default/source4/lib/ldb/pyldb_15.o: In function `py_ldb_rename':
(.text+0x4198): undefined reference to `PyObject_AsDn'
default/source4/lib/ldb/pyldb_15.o: In function `py_ldb_rename':
(.text+0x4200): undefined reference to `PyObject_AsDn'
default/source4/lib/ldb/pyldb_15.o: In function `py_ldb_search':
(.text+0x5244): undefined reference to `PyObject_AsDn'
default/source4/lib/ldb/pyldb_15.o:(.text+0x5ab0): more undefined references to `PyObject_AsDn' follow
default/source4/lib/ldb/pyldb_15.o: In function `py_ldb_msg_getitem_helper':
(.text+0x83d8): undefined reference to `PyLdbDn_FromDn'
default/source4/lib/ldb/pyldb_15.o: In function `py_ldb_msg_items':
(.text+0x8644): undefined reference to `PyLdbDn_FromDn'
default/source4/lib/ldb/pyldb_15.o: In function `py_ldb_msg_new':
(.text+0x8d48): undefined reference to `PyObject_AsDn'
default/source4/lib/ldb/pyldb_15.o: In function `py_ldb_msg_get_dn':
(.text+0x8fa4): undefined reference to `PyLdbDn_FromDn'
default/source4/lib/ldb/pyldb_15.o: In function `py_module_search':
(.text+0x95e4): undefined reference to `PyLdbDn_FromDn'
default/source4/lib/ldb/pyldb_15.o: In function `py_module_del':
(.text+0x9ba0): undefined reference to `PyLdbDn_FromDn'
default/source4/lib/ldb/pyldb_15.o: In function `py_module_rename':
(.text+0x9ca4): undefined reference to `PyLdbDn_FromDn'
default/source4/lib/ldb/pyldb_15.o: In function `py_module_rename':
(.text+0x9cd4): undefined reference to `PyLdbDn_FromDn'
collect2: ld returned 1 exit status
Waf: Leaving directory `/home/dave/debian/samba/samba-3.6.1/bin'
Build failed:  -> task failed (err #1): 
        {task: cc_link pyldb_15.o -> pyldb.so}
make[3]: *** [bin/smbtorture4] Error 1
make[3]: Leaving directory `/home/dave/debian/samba/samba-3.6.1/source3'
make[2]: *** [bin/smbtorture4] Error 2
make[2]: Leaving directory `/home/dave/debian/samba/samba-3.6.1/source3'
dh_auto_build: make -j1 everything nsswitch returned exit code 2
make[1]: *** [override_dh_auto_build] Error 2
make[1]: Leaving directory `/home/dave/debian/samba/samba-3.6.1'
make: *** [build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2

I believe these symbols are supposed to be provided by python-ldb
but they have been removed from 1:1.1.4-1.

dave at mx3210:~/debian/samba$ dpkg -l python-ldb
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version        Description
+++-==============-==============-============================================
ii  python-ldb     1:1.1.4-1      Python bindings for LDB

In particular, the symbols are not in pyldb.h.

As side notes,
a) I had to modify debian/rules adding --disable-pie to the configure options,
b) I had to add rfc3454.txt and rfc4518.txt to the source as the build
requires these "non-free" files.

-- System Information:
Debian Release: wheezy/sid
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable'), (500, 'oldstable')
Architecture: hppa (parisc64)

Kernel: Linux 3.1.9+ (SMP w/4 CPU cores)
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages samba depends on:
ii  adduser                3.113
ii  debconf [debconf-2.0]  1.5.41
ii  libacl1                2.2.49-4
ii  libattr1               1:2.4.44-2
ii  libc6                  2.13-24
ii  libcap2                1:2.22-1
ii  libcomerr2             1.42~WIP-2011-10-01-1
ii  libcups2               1.5.0-12
ii  libgssapi-krb5-2       1.10+dfsg~alpha1-6
ii  libk5crypto3           1.10+dfsg~alpha1-6
ii  libkrb5-3              1.10+dfsg~alpha1-6
ii  libldap-2.4-2          2.4.23-7
ii  libpam-modules         1.1.3-6
ii  libpam-runtime         1.1.3-6
ii  libpam0g               1.1.3-6
ii  libpopt0               1.16-1
ii  libtalloc2             2.0.7-3
ii  libtdb1                1.2.9-4
ii  libwbclient0           2:3.5.11~dfsg-4
ii  lsb-base               3.2-28
ii  procps                 1:3.2.8-10
ii  samba-common           2:3.5.11~dfsg-4
ii  update-inetd           4.41
ii  zlib1g                 1:1.2.3.4.dfsg-3

Versions of packages samba recommends:
ii  logrotate  3.7.8-6
ii  tdb-tools  1.2.9-4

Versions of packages samba suggests:
pn  ctdb                              1.10+git20110722-1
pn  ldb-tools                         <none>
pn  openbsd-inetd [inet-superserver]  0.20080125-6
pn  smbldap-tools                     <none>

-- debconf information excluded





More information about the Pkg-samba-maint mailing list