Your message dated Fri, 23 Aug 2024 21:10:32 +0000
with message-id <e1shbyg-009npj...@fasolo.debian.org>
and subject line Bug#1078822: fixed in openldap 2.6.8+dfsg-1~exp4
has caused the Debian Bug report #1078822,
regarding openldap FTBFS on 32bit architectures: 
../../../../libraries/libldap/tls_g.c:951:57: error: passing argument 4 of 
'gnutls_fingerprint' from incompatible pointer type 
[-Wincompatible-pointer-types]
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
1078822: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1078822
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Source: openldap
Version: 2.5.18+dfsg-2
Severity: serious
Tags: ftbfs upstream
User: helm...@debian.org
Usertags: rebootstrap

Hi,

openldap fails to build from source on 32bit architectures. A build ends
as follows:

| /bin/bash ../../libtool  --mode=compile i686-linux-gnu-gcc -g -O2 
-Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. 
-fstack-protector-strong -Wformat -Werror=format-security -Wall 
-D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -I../../include        
-I../../../../include   -Wdate-time -D_FORTIFY_SOURCE=2   -DLDAP_LIBRARY -c 
../../../../libraries/libldap/tls_g.c
| libtool: compile:  i686-linux-gnu-gcc -g -O2 
-Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. 
-fstack-protector-strong -Wformat -Werror=format-security -Wall 
-D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -I../../include -I../../../../include 
-Wdate-time -D_FORTIFY_SOURCE=2 -DLDAP_LIBRARY -c 
../../../../libraries/libldap/tls_g.c  -fPIC -DPIC -o .libs/tls_g.o
| ../../../../libraries/libldap/tls_g.c: In function 'tlsg_session_endpoint':
| ../../../../libraries/libldap/tls_g.c:832:9: warning: enumeration value 
'GNUTLS_DIG_UNKNOWN' not handled in switch [-Wswitch]
|   832 |         switch (md) {
|       |         ^~~~~~
| ../../../../libraries/libldap/tls_g.c:832:9: warning: enumeration value 
'GNUTLS_DIG_RMD160' not handled in switch [-Wswitch]
| ../../../../libraries/libldap/tls_g.c:832:9: warning: enumeration value 
'GNUTLS_DIG_SHA256' not handled in switch [-Wswitch]
| ../../../../libraries/libldap/tls_g.c:832:9: warning: enumeration value 
'GNUTLS_DIG_SHA384' not handled in switch [-Wswitch]
| ../../../../libraries/libldap/tls_g.c:832:9: warning: enumeration value 
'GNUTLS_DIG_SHA512' not handled in switch [-Wswitch]
| ../../../../libraries/libldap/tls_g.c:832:9: warning: enumeration value 
'GNUTLS_DIG_SHA224' not handled in switch [-Wswitch]
| ../../../../libraries/libldap/tls_g.c:832:9: warning: enumeration value 
'GNUTLS_DIG_SHA3_224' not handled in switch [-Wswitch]
| ../../../../libraries/libldap/tls_g.c:832:9: warning: enumeration value 
'GNUTLS_DIG_SHA3_256' not handled in switch [-Wswitch]
| ../../../../libraries/libldap/tls_g.c:832:9: warning: enumeration value 
'GNUTLS_DIG_SHA3_384' not handled in switch [-Wswitch]
| ../../../../libraries/libldap/tls_g.c:832:9: warning: enumeration value 
'GNUTLS_DIG_SHA3_512' not handled in switch [-Wswitch]
| ../../../../libraries/libldap/tls_g.c:832:9: warning: enumeration value 
'GNUTLS_DIG_MD5_SHA1' not handled in switch [-Wswitch]
| ../../../../libraries/libldap/tls_g.c:832:9: warning: enumeration value 
'GNUTLS_DIG_GOSTR_94' not handled in switch [-Wswitch]
| ../../../../libraries/libldap/tls_g.c:832:9: warning: enumeration value 
'GNUTLS_DIG_STREEBOG_256' not handled in switch [-Wswitch]
| ../../../../libraries/libldap/tls_g.c:832:9: warning: enumeration value 
'GNUTLS_DIG_STREEBOG_512' not handled in switch [-Wswitch]
| ../../../../libraries/libldap/tls_g.c:832:9: warning: enumeration value 
'GNUTLS_DIG_SHAKE_128' not handled in switch [-Wswitch]
| ../../../../libraries/libldap/tls_g.c:832:9: warning: enumeration value 
'GNUTLS_DIG_SHAKE_256' not handled in switch [-Wswitch]
| ../../../../libraries/libldap/tls_g.c: In function 'tlsg_session_pinning':
| ../../../../libraries/libldap/tls_g.c:951:57: error: passing argument 4 of 
'gnutls_fingerprint' from incompatible pointer type 
[-Wincompatible-pointer-types]
|   951 |                                         keyhash.bv_val, 
&keyhash.bv_len ) < 0 ) {
|       |                                                         
^~~~~~~~~~~~~~~
|       |                                                         |
|       |                                                         ber_len_t * 
{aka long unsigned int *}
| In file included from ../../../../libraries/libldap/tls_g.c:44:
| /usr/include/gnutls/gnutls.h:2408:32: note: expected 'size_t *' {aka 
'unsigned int *'} but argument is of type 'ber_len_t *' {aka 'long unsigned int 
*'}
|  2408 |                        size_t *result_size);
|       |                        ~~~~~~~~^~~~~~~~~~~
| make[5]: *** [Makefile:432: tls_g.lo] Error 1
| make[5]: Leaving directory '/<<PKGBUILDDIR>>/debian/build/libraries/libldap'
| make[4]: *** [Makefile:312: all-common] Error 1
| make[4]: Leaving directory '/<<PKGBUILDDIR>>/debian/build/libraries'
| make[3]: *** [Makefile:320: all-common] Error 1
| make[3]: Leaving directory '/<<PKGBUILDDIR>>/debian/build'
| dh_auto_build: error: cd debian/build && make -j1 returned exit code 2
| make[2]: *** [debian/rules:82: override_dh_auto_build] Error 25
| make[2]: Leaving directory '/<<PKGBUILDDIR>>'
| make[1]: *** [debian/rules:54: build] Error 2
| make[1]: Leaving directory '/<<PKGBUILDDIR>>'
| make: *** [debian/rules:56: binary] Error 2
| dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 
2

ber_len_t is typedef'ed in openldap as unsigned LBER_LEN_T, which is
AC_DEFINED as long. I'm not sure what a static AC_DEFINE in configure.ac
achieves, but that's what we have. On the other side, we have size_t,
which happens to be 32bit. Bummer. I suggest passing the 4th argument as
a temporary variable of type size_t and copying it from/to the target
structure after validating that it fits. If you happen to locate a patch
fixing this, please tell as I would like to cherry-pick it into
rebootstrap.git due to the low frequency of openldap uploads.

Helmut

--- End Message ---
--- Begin Message ---
Source: openldap
Source-Version: 2.6.8+dfsg-1~exp4
Done: Ryan Tandy <r...@nardis.ca>

We believe that the bug you reported is fixed in the latest version of
openldap, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1078...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Ryan Tandy <r...@nardis.ca> (supplier of updated openldap package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Fri, 23 Aug 2024 12:15:12 -0700
Source: openldap
Architecture: source
Version: 2.6.8+dfsg-1~exp4
Distribution: experimental
Urgency: medium
Maintainer: Debian OpenLDAP Maintainers 
<pkg-openldap-de...@lists.alioth.debian.org>
Changed-By: Ryan Tandy <r...@nardis.ca>
Closes: 1078822
Changes:
 openldap (2.6.8+dfsg-1~exp4) experimental; urgency=medium
 .
   * Add a superficial autopkgtest to ensure back_perl can be loaded.
   * Fix FTBFS on 32-bit architectures. (ITS#10253) (Closes: #1078822)
Checksums-Sha1:
 340e508c60b35b66c384ef2458f2fc4bf59e320e 3315 openldap_2.6.8+dfsg-1~exp4.dsc
 386c18e160f553fd52999e751c87646aefee5dfc 171164 
openldap_2.6.8+dfsg-1~exp4.debian.tar.xz
Checksums-Sha256:
 abd3510018246295ddeea0a881516ffbf4767c409593b43951dd705c89898346 3315 
openldap_2.6.8+dfsg-1~exp4.dsc
 12e87d4f98c2fcf870b1c221bda8cef4dc1f554e84a6bd2c9f9fcd9308589d38 171164 
openldap_2.6.8+dfsg-1~exp4.debian.tar.xz
Files:
 8b5e249c3ec0c5ab9b6cbaea8f190dfc 3315 net optional 
openldap_2.6.8+dfsg-1~exp4.dsc
 b0012bf28e0fd3d5f7c6453294a1404e 171164 net optional 
openldap_2.6.8+dfsg-1~exp4.debian.tar.xz

-----BEGIN PGP SIGNATURE-----

iQJDBAEBCgAtFiEEPSfh0nqdQTd5kOFlIp/PEvXWa7YFAmbI9QwPHHJ5YW5AbmFy
ZGlzLmNhAAoJECKfzxL11mu2S70P+wYTalXJvFsAXWBUZz2xZzJxAdNSRgZNFra3
mIIXWXyH72uXbLPyiHaK7Jww4eI/baslFNgo+StasCz6gSYq+vtyrV9gORFR9baE
4UBJ6Hniqh3bTXVMkug8FAiL9xP/I/NkdSYDhIaEmgQB1sWpKlaRs6D0AgZX/R24
qyEHHSKpXGQB1WMnSjh9yVBJo1pTPEkzdmu7MpsjGzsodRZRuPlfisimGAR89kYm
3LZK6TEPqkQFwQtTAETiJ0OBtBLT9bHznmKUuXbbl/WrR8eEK94IGIIVAKK0kKUF
pEQmu5gUmi2OBrVLZJboeAI24O5YVkNRqkGHfbZnonqTYaRKUNDHm85WSkUWEjE1
EX8X06EWQdosnWAJHuPHcPzijw9yKJgKICb6UY2ImgMy3NDg5wKpk+ng3NSP97CN
jQ3akysFxpDBsDsc1VKNjPEHvGn+hi4ULOqib1s5IsSlXr3aiJUwWikGUSZbDxWe
hcysSh1VCc2UlVQi1GVax8ElpcVD60zRHQZ/gFPHJvy3Sbw+TX+y94y0lUL7Rhtk
/0PJI/yJF/jkI0vDE9iaNA9qImJs0zsWhrvzy6xbzlDAWzxUfzcPnQzxzxk0MVa3
XVrDn73o1d2GhWweUtbuQySL+PwwKKnmz2lAPkikf3kTi/wRvd4wLOosE4RHJNpD
ben5BVEm
=H86R
-----END PGP SIGNATURE-----

Attachment: pgpUwu7sip0pj.pgp
Description: PGP signature


--- End Message ---

Reply via email to