samhain: FTBFS on s390x
Berli Gayathri <[email protected]>
| Newsgroups | gmane.linux.debian.ports.s390 |
|---|---|
| Message-ID | <SA1PR15MB44688F4F5BD0B913DFF4BA32941C2@SA1PR15MB4468.namprd15.prod.outlook.com> |
Hello Chris,
Unfortunately, I was unable to locate the connection for Samhain's most recent upstream source when I attempted to raise a PR on Unstream.
At 471:22, x_sh_checksum.c: error: providing "sl_memset"'s second parameter results in a > | integer from the pointer without a cast [-Wint-conversion]
The error is caused by a pointer to integer without casting. I tried using memcpy instead of memset as an experiment, and the build is functioning well with no issues. Could you please check and let us know?
>>>> src/sh_checksum.c +472:
//memset(d, context->state, SHA256_DIGEST_LENGTH);
memcpy(d, context->state, SHA256_DIGEST_LENGTH);
/* bcopy(context->state, d, SHA256_DIGEST_LENGTH); */
dpkg-buildpackage --sanitize-env -us -uc -b:
dpkg-deb: building package 'samhain' in '../samhain_4.1.4-4_s390x.deb'.
dpkg-deb: building package 'samhain-dbgsym' in '../samhain-dbgsym_4.1.4-4_s390x.deb'.
dpkg-genbuildinfo --build=binary -O../samhain_4.1.4-4_s390x.buildinfo
dpkg-genchanges --build=binary -O../samhain_4.1.4-4_s390x.changes
dpkg-genchanges: info: binary-only upload (no source code included)
dpkg-source --after-build .
dpkg-source: info: using options from samhain-4.1.4/debian/source/options: --extend-diff-ignore=(^|/)(config\.sub|config\.guess|configure|Makefile)$
dpkg-buildpackage: info: binary-only upload (no source included)
Thanks,
Gayathri.