Hi, I'm trying to create a samba4.0.1-package for ubuntu12.4. It seems as if I've succeeded to resolve the dependencies and everything is compiling and linking just fine until it switches to the source4 directory. There I always get these kerberos/heimdal-related linker-errors: default/source3/libads/kerberos_57.o: In function `smb_krb5_get_ntstatus_from_krb5_error_init_creds_opt':/data4/temp/samba4/samba-4.0.1/bin/../source3/libads/kerberos.c:126: undefined reference to `krb5_get_init_creds_opt_get_error' default/source3/libads/kerberos_57.o: In function `kerberos_kinit_password_ext':/data4/temp/samba4/samba-4.0.1/bin/../source3/libads/kerberos.c:216: undefined reference to `krb5_get_init_creds_opt_set_pac_request' I've installed the newest versions of all related packeges and now I'm stuck. Any suggestions? Thanks in advance and best regards, bbb
Installing heimdal-dev instead of krb5-dev did the trick. Now the linking seems to work. Unfortunately just after telling me "'install' finished successfully (42.754s)" he exits because he can't find the file "/debian/tmp/usr/lib/x86_64-linux-gnu/samba/share/ldb.so" to remove it. Am 16.01.2013 18:13, schrieb Nils Weidinger:> Hi, > > I'm trying to create a samba4.0.1-package for ubuntu12.4. It seems > as if I've succeeded to resolve the dependencies and everything is > compiling and linking just fine until it switches to the source4 > directory. There I always get these kerberos/heimdal-related > linker-errors: > > default/source3/libads/kerberos_57.o: In function > `smb_krb5_get_ntstatus_from_krb5_error_init_creds_opt':/data4/temp/samba4/samba-4.0.1/bin/../source3/libads/kerberos.c:126: > undefined reference to `krb5_get_init_creds_opt_get_error' > default/source3/libads/kerberos_57.o: In function > `kerberos_kinit_password_ext':/data4/temp/samba4/samba-4.0.1/bin/../source3/libads/kerberos.c:216: > undefined reference to `krb5_get_init_creds_opt_set_pac_request' > > I've installed the newest versions of all related packeges and now I'm > stuck. Any suggestions? > > Thanks in advance and best regards, bbb
OK, it worked. I used the git package configuration as described at http://wiki.samba.org/index.php/Samba4/Debian but I had to make some small adjustments. It was unavoidable to use the following packages from the latest ubuntu repositories. I chose to create a local repository with only these debs to stay as close to the lts-version as possible. heimdal-dev_1.6~git20120403+dfsg1-2_amd64.deb heimdal-multidev_1.6~git20120403+dfsg1-2_amd64.deb libasn1-8-heimdal_1.6~git20120403+dfsg1-2_amd64.deb libgssapi3-heimdal_1.6~git20120403+dfsg1-2_amd64.deb libhcrypto4-heimdal_1.6~git20120403+dfsg1-2_amd64.deb libhdb9-heimdal_1.6~git20120403+dfsg1-2_amd64.deb libheimbase1-heimdal_1.6~git20120403+dfsg1-2_amd64.deb libheimntlm0-heimdal_1.6~git20120403+dfsg1-2_amd64.deb libhx509-5-heimdal_1.6~git20120403+dfsg1-2_amd64.deb libkadm5clnt7-heimdal_1.6~git20120403+dfsg1-2_amd64.deb libkadm5srv8-heimdal_1.6~git20120403+dfsg1-2_amd64.deb libkafs0-heimdal_1.6~git20120403+dfsg1-2_amd64.deb libkdc2-heimdal_1.6~git20120403+dfsg1-2_amd64.deb libkrb5-26-heimdal_1.6~git20120403+dfsg1-2_amd64.deb libldb1_1.1.13-1_amd64.deb libldb-dev_1.1.13-1_amd64.deb libtdb1_1.2.10-2_amd64.deb libtdb-dev_1.2.10-2_amd64.deb libtevent0_0.9.17-1_amd64.deb libtevent-dev_0.9.17-1_amd64.deb libwind0-heimdal_1.6~git20120403+dfsg1-2_amd64.deb python-ldb_1.1.13-1_amd64.deb python-ldb-dev_1.1.13-1_amd64.deb python-tdb_1.2.10-2_amd64.deb install dependencies: apt-get install bison docbook-xml docbook-xsl flex heimdal-dev heimdal-multidev libbsd-dev libldb-dev libparse-yapp-perl libsmbclient-dev libsubunit-dev libtalloc-dev libtdb-dev libtevent-dev libwbclient-dev python-all-dev python-ldb python-ldb-dev python-talloc-dev python-tdb python-testtools subunit xsltproc libldb1 libldb-dev libtdb-dev libtevent-dev python-ldb python-ldb-dev python-tdb git clone git://git.debian.org/pkg-samba/samba4 samba4-unstable mv samba4-unstable/debian debian rm -r samba4-unstable vi debian/winbind4.install # remove last line "usr/share/man/man1/ntlm_auth4.1" vi debian/changelog # change to: >> samba (4.0.1-0ubuntu1) unstable; urgency=low * Initial release (Closes: #nnnn) <nnnn is the bug number of your ITP> -- firstname name <email> Wed, 16 Jan 2013 16:35:18 +0100 << vi debian/control # edit line 3 change Maintainer to: >> Maintainer: Ubuntu Developers <ubuntu-devel-discuss at lists.ubuntu.com> << insert line: >> XSBC-Original-Maintainer: Samba Debian Maintainers <pkg-samba-maint at lists.alioth.debian.org> << vi debian/rules # edit line 84 orig: >> rm $(DESTDIR)/usr/lib/$(DEB_HOST_MULTIARCH)/samba/share/ldb.so << # change to: >> rm -f $(DESTDIR)/usr/lib/$(DEB_HOST_MULTIARCH)/samba/share/ldb.so << # edit line 100 orig: >> dh_install --sourcedir=$(DESTDIR) --list-missing --fail-missing << # change to: >> dh_install --sourcedir=$(DESTDIR) --list-missing << wget http://www.samba.org/samba/ftp/stable/samba-4.0.1.tar.gz cp samba-4.0.1.tar.gz samba_4.0.1.orig.tar.gz tar -xzf samba-4.0.1.tar.gz cd samba-4.0.1 cp -r ../debian . debuild > ../build.log
Hi Nils Weidinger, Thanks for helping out packaging. I did today exactly the same as you, but on Ubuntu PowerPC. Installing almost all the packages did goes well except samba4_4.0.1-0ubuntu1_powerpc.deb selfs. It's throw out an error ... Traceback (most recent call last): File "/usr/bin/samba-tool", line 33, in <module> from samba.netcmd.main import cmd_sambatool File "/usr/lib/python2.7/dist-packages/samba/__init__.py", line 27, in <module> import samba.param ImportError: /usr/lib/powerpc-linux-gnu/samba/libserver-role.so: version `SAMBA_4.0.1' not found (required by /usr/lib/python2.7/dist-packages/samba/param.so) dpkg: error processing samba4 (--configure): subprocess installed post-installation script returned error exit status 1 E: Sub-process /usr/bin/dpkg returned an error code (1) ... any idea what goes wrong here? And how to solve?