Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 571634 - net-fs/samba-4.2.7-r1 fails to build - "Header checksum mismatch"
Summary: net-fs/samba-4.2.7-r1 fails to build - "Header checksum mismatch"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's SAMBA Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-01-12 08:56 UTC by Rinaldus
Modified: 2016-01-14 02:20 UTC (History)
10 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge_info.txt,16.27 KB, text/plain)
2016-01-12 08:57 UTC, Rinaldus
Details
build.log.gz (build.log.gz,144.20 KB, application/gzip)
2016-01-12 09:00 UTC, Rinaldus
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rinaldus 2016-01-12 08:56:01 UTC
net-fs/samba-4.2.7-r1 fails to build. The build.log and emerge --info are below

Reproducible: Always
Comment 1 Rinaldus 2016-01-12 08:57:53 UTC
Created attachment 422640 [details]
emerge --info
Comment 2 Rinaldus 2016-01-12 09:00:42 UTC
Created attachment 422644 [details]
build.log.gz
Comment 3 Denis Lisov 2016-01-12 12:10:55 UTC
Observing the same bug. The build.log excerpt

 * --- /var/tmp/portage/net-fs/samba-4.2.7-r1/temp/.multilib_header_cksum       2016-01-12 14:45:34.539225709 +0300
 * +++ /var/tmp/portage/net-fs/samba-4.2.7-r1/temp/.multilib_header_cksum.new   2016-01-12 14:46:18.700997742 +0300
 * @@ -73,6 +73,7 @@
 *  623288999 3226 /var/tmp/portage/net-fs/samba-4.2.7-r1/image/usr/include/samba-4.0/gen_ndr/atsvc.h
 *  659449533 3325 /var/tmp/portage/net-fs/samba-4.2.7-r1/image/usr/include/samba-4.0/lookup_sid.h
 *  1974258294 3392 /var/tmp/portage/net-fs/samba-4.2.7-r1/image/usr/include/samba-4.0/util/string_wrappers.h
 * +2882851503 3412 /var/tmp/portage/net-fs/samba-4.2.7-r1/image/usr/include/samba-4.0/smb_ldap.h
 *  2495500048 3565 /var/tmp/portage/net-fs/samba-4.2.7-r1/image/usr/include/samba-4.0/util/memory.h
 *  317971214 35832 /var/tmp/portage/net-fs/samba-4.2.7-r1/image/usr/include/samba-4.0/gen_ndr/ndr_drsuapi.h
 *  1664746549 3854 /var/tmp/portage/net-fs/samba-4.2.7-r1/image/usr/include/samba-4.0/util/data_blob.h
 * @@ -95,6 +96,7 @@
 *  4005531636 5450 /var/tmp/portage/net-fs/samba-4.2.7-r1/image/usr/include/samba-4.0/share.h
 *  4092989607 55578 /var/tmp/portage/net-fs/samba-4.2.7-r1/image/usr/include/samba-4.0/wbclient.h
 *  4190247177 5564 /var/tmp/portage/net-fs/samba-4.2.7-r1/image/usr/include/samba-4.0/gen_ndr/ndr_epmapper.h
 * +3767767289 5566 /var/tmp/portage/net-fs/samba-4.2.7-r1/image/usr/include/samba-4.0/smbldap.h
 *  3329509906 56105 /var/tmp/portage/net-fs/samba-4.2.7-r1/image/usr/include/samba-4.0/gen_ndr/ndr_svcctl_c.h
 *  1259931838 5718 /var/tmp/portage/net-fs/samba-4.2.7-r1/image/usr/include/samba-4.0/ldap_message.h
 *  3691046667 64322 /var/tmp/portage/net-fs/samba-4.2.7-r1/image/usr/include/samba-4.0/smb_raw_interfaces.h
 * ERROR: net-fs/samba-4.2.7-r1::gentoo failed (install phase):
 *   Header checksum mismatch, aborting.

matches the one posted above and seems to indicate problems with smbldap.h / smb_ldap.h
Comment 4 Harris Landgarten 2016-01-12 12:19:08 UTC
same here
Comment 5 Cănărău Constantin 2016-01-12 14:07:13 UTC
Same error with version samba-4.3.3-r1. 
It is seem to be a multilib issue ?
Comment 6 Rafał Mużyło 2016-01-12 18:11:56 UTC
(In reply to Cănărău Constantin from comment #5)
> Same error with version samba-4.3.3-r1. 
> It is seem to be a multilib issue ?

That's most likely.
Would one of you mind attching the diff between two of the generated headers ?
Comment 7 Jouni Kosonen 2016-01-12 18:40:16 UTC
(In reply to Rafał Mużyło from comment #6)
> (In reply to Cănărău Constantin from comment #5)
> > Same error with version samba-4.3.3-r1. 
> > It is seem to be a multilib issue ?
> 
> That's most likely.
> Would one of you mind attching the diff between two of the generated headers
> ?

This happens with USE=ldap.

The non-native build is built with --without-ldap regardless and it doesn't contain the smbldap.h / smb_ldap.h headers at all.

Would depending on multilib net-nds/openldap help here?
Comment 8 Tamas Jantvik 2016-01-13 06:32:13 UTC
I have:

[I] net-nds/openldap
     Available versions:  [M]2.3.43-r3 [M]2.3.43-r4 2.4.38-r2 ~2.4.39 ~2.4.40 ~2.4.40-r2 ~2.4.40-r4 ~2.4.42 ~2.4.42-r1 ~2.4.43 {(+)berkdb crypt -cxx debug experimental gdbm gnutls icu iodbc ipv6 kerberos libressl minimal odbc overlays perl samba sasl selinux slp smbkrb5passwd ssl static-libs +syslog tcpd ABI_MIPS="n32 n64 o32" ABI_PPC="32 64" ABI_S390="32 64" ABI_X86="32 64 x32"}
     Installed versions:  2.4.38-r2(20:24:49 2015-05-28)(berkdb crypt cxx icu iodbc ipv6 kerberos odbc overlays perl samba sasl slp ssl syslog tcpd -debug -experimental -gnutls -minimal -selinux -smbkrb5passwd ABI_MIPS="-n32 -n64 -o32" ABI_PPC="-32 -64" ABI_S390="-32 -64" ABI_X86="32 64 -x32")
     Homepage:            http://www.OpenLDAP.org/
     Description:         LDAP suite of application and development tools

But nevertheless I get the header mismatch error.
Comment 9 Jouni Kosonen 2016-01-13 06:52:23 UTC
(In reply to Tamas Jantvik from comment #8)
Yes, the dependency would need to be used as well.

Something like this seems to work here:

--- a/samba-4.2.7-r1.ebuild
+++ b/samba-4.2.7-r1.ebuild
@@ -65,1 +65,1 @@ CDEPEND="${PYTHON_DEPS}
-	ldap? ( net-nds/openldap )
+	ldap? ( net-nds/openldap[${MULTILIB_USEDEP}] )
@@ -170,1 +170,1 @@ multilib_src_configure() {
-			--without-ldap
+			$(use_with ldap)
Comment 10 Juergen Rose 2016-01-14 00:54:27 UTC
Same issue here.
Comment 11 Víctor Ostorga (RETIRED) gentoo-dev 2016-01-14 02:20:15 UTC
Fixed in 4.2.7-r1 and 4.3.4 

Thanks for the bug report and comments