Hi, to build an ubuntu-package of samba4.1.0, I'm using a slightly modified debian package-configuration from a previous version. I created a quilt-patch (attached to this email) that sets the DISABLE_NTDB var again, to solve dependency problems. It's compiling nicely now, but I still get this linker-error: default/source3/lib/util_58.o: In function `str_checksum': /home/nils/build2/samba4/bin/../source3/lib/util.c:1310: undefined reference to `hash_any' Did this happen to anybody before? Did anybody already succeed in building a ubuntu- or debian-package of samba 4.1.0? Nice regards, bbb -------------- next part -------------- Index: samba4/wscript ==================================================================--- samba4.orig/wscript 2013-10-29 18:13:14.464962744 +0000 +++ samba4/wscript 2013-10-29 18:17:07.732967883 +0000 @@ -66,6 +66,10 @@ gr = opt.option_group('developer options') + opt.add_option('--disable-ntdb', + help=("disable ntdb"), + action="store_true", dest='disable_ntdb', default=True) + opt.tool_options('python') # options for disabling pyc or pyo compilation # enable options related to building python extensions @@ -124,7 +128,10 @@ conf.RECURSE('source4/ntvfs/sysdep') conf.RECURSE('lib/util') conf.RECURSE('lib/ccan') - conf.RECURSE('lib/ntdb') + if not Options.options.disable_ntdb: + conf.RECURSE('lib/ntdb') + else: + conf.DEFINE('DISABLE_NTDB', 1) conf.RECURSE('lib/zlib') conf.RECURSE('lib/util/charset') conf.RECURSE('source4/auth')
bugblatterbeast <samba at bugblatterbeast.de> writes:> It's compiling nicely now, but I still get this linker-error: > > default/source3/lib/util_58.o: In function `str_checksum': > /home/nils/build2/samba4/bin/../source3/lib/util.c:1310: undefined > reference to `hash_any' > > Did this happen to anybody before? Did anybody already succeed in > building a ubuntu- or debian-package of samba 4.1.0?FWIW Andrew Bartlett told me yesterday that the Debian Samba team are (understandably) currently focused on getting *any* samba4 into jessie; 4.1 isn't their priority right now. I had a quick look at the source and the missing symbol is internal to samba (ref. below); my gut feel is a missing dependency declaration somewhere in wscript such that the linker gets util where it should get both util and hash. I'd need your .dsc and .debian.tar.xz and build log to poke around more. $ git checkout samba-4.1.0 $ grep -r hash_any * lib/ccan/hash/hash.h:#define hash(p, num, base) hash_any((p), (num)*sizeof(*(p)), (base)) lib/ccan/hash/hash.h:uint32_t hash_any(const void *key, size_t length, uint32_t base); lib/ccan/hash/hash.c:uint32_t hash_any(const void *key, size_t length, uint32_t base) Useful resources: - #debian-mentors on irc.oftc.net (general Debian packaging advice & review) - https://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-samba-maint #d-mentors will definitely be happy to help you packaging 4.1, even if it's only for personal use. I'm not on pkg-maint-samba so I'm not sure how focused they are.
On 23:17:47 wrote bugblatterbeast:> Hi, > > to build an ubuntu-package of samba4.1.0, I'm using a slightly > modified debian package-configuration from a previous version. I > created a quilt-patch (attached to this email) that sets the > DISABLE_NTDB var again, to solve dependency problems. > > It's compiling nicely now, but I still get this linker-error: > > default/source3/lib/util_58.o: In function `str_checksum': > /home/nils/build2/samba4/bin/../source3/lib/util.c:1310: undefined > reference to `hash_any' > > > Did this happen to anybody before? Did anybody already succeed in > building a ubuntu- or debian-package of samba 4.1.0? > > > Nice regards, bbbI've found this patch which solved the issue with source3/lib/util.c ######