• Bug#1066137: gnupg2: -Werror=implicit-function-declaration failure test

    From Thorsten Glaser@21:1/5 to All on Wed Mar 13 00:10:01 2024
    Source: gnupg2
    Version: 2.2.40-1.1
    Severity: serious
    Justification: ftbfs
    X-Debbugs-Cc: tg@mirbsd.de

    Trying to binNMU gnupg2 to make it installable during t64 transition,
    I notice the following configury output:

    […]
    checking for library containing dn_skipname... none required
    checking whether the resolver is usable... yes
    checking whether LDAP via "-lldap" is present and sane... no
    checking whether I can make LDAP be sane with lber.h... no
    checking whether LDAP via "-lldap -llber" is present and sane... no
    checking whether I can make LDAP be sane with lber.h... no
    checking whether LDAP via "-lldap -llber -lresolv" is present and sane... no checking whether I can make LDAP be sane with lber.h... no
    checking whether LDAP via "-lwldap32" is present and sane... no
    checking whether I can make LDAP be sane with lber.h... no
    checking for ber_free in -llber... yes
    configure: WARNING:
    ***
    *** Building without LDAP support.
    *** No CRL access or X.509 certificate search available.
    ***
    checking for sendmail... no
    […]

    This matches the following failure mode at the end of the build:

    19:50⎜<cbmuser:#debian-ports> I can't build gnugpg2: 19:50⎜<cbmuser:#debian-ports> dh_install -a -O--builddirectory=build 19:50⎜<cbmuser:#debian-ports> dh_install: warning: Cannot find (any matches for)
    ⎜ "debian/tmp/usr/lib/gnupg/dirmngr_ldap" (tried in ., debian/tmp) 19:50⎜<cbmuser:#debian-ports> dh_install: warning: dirmngr missing files:
    ⎜ debian/tmp/usr/lib/gnupg/dirmngr_ldap 19:50⎜<cbmuser:#debian-ports> dh_install: error: missing files, aborting

    The cause in config.log:

    configure:11580: checking whether LDAP via "-lldap" is present and sane configure:11600: gcc -o conftest -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/tmp/buildd/gnupg2-2.2.40=. -specs=/usr/share/dpkg/pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_
    OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -specs=/usr/share/dpkg/pie-link.specs -Wl,-z,relro -Wl,-z,now conftest.c -lldap >&5
    conftest.c: In function 'main':
    conftest.c:96:1: error: implicit declaration of function 'ldap_open'; did you mean 'ldap_turn'? [-Werror=implicit-function-declaration]
    96 | ldap_open("foobar",1234);
    | ^~~~~~~~~
    | ldap_turn
    cc1: some warnings being treated as errors
    configure:11600: $? = 1
    configure: failed program was:
    […]
    | /* end confdefs.h. */
    |
    | #ifdef _WIN32
    | #include <winsock2.h>
    | #include <winldap.h>
    | #else
    | #include <ldap.h>
    | #endif
    |
    | int
    | main (void)
    | {
    | ldap_open("foobar",1234);
    | ;
    | return 0;
    | }
    configure:11608: result: no


    Prototypes are now mandatory, both for C23 and because the t64 transition
    can only work if prototypes are properly used.

    bye,
    //mirabilos

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Thorsten Glaser@21:1/5 to All on Wed Mar 13 00:20:01 2024
    clone 1066137 -1
    reassign -1 gnupg1 1.4.23-1.1
    retitle -1 gnupg1: fails to build gpgkeys_ldap, probably due to -Werror=implicit-function-declaration
    thanks

    Dixi quod…

    This matches the following failure mode at the end of the build:

    Same for gnupg1 according to the buildd page: https://buildd.debian.org/status/package.php?p=gnupg1

    Trying to binNMU gnupg2 to make it installable during t64 transition,

    Please do also reduce the B-D as Helmut noted in #980768; specifically, dropping ghostscript, imagemagick, libcurl4-gnutls-dev and transfig
    from src:gnupg2 produces identical binary packages according to his
    analysis. Perhaps some of that applies to gnupg1 as well. This will
    help tremendously.

    Thanks,
    //mirabilos
    --
    When he found out that the m68k port was in a pretty bad shape, he did
    not, like many before him, shrug and move on; instead, he took it upon
    himself to start compiling things, just so he could compile his shell.
    How's that for dedication. -- Wouter, about my Debian/m68k revival

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Debian Bug Tracking System@21:1/5 to All on Wed Mar 13 19:10:02 2024
    This is a multi-part message in MIME format...

    Your message dated Wed, 13 Mar 2024 18:06:43 +0000
    with message-id <E1rkSzz-007ZyL-Lc@fasolo.debian.org>
    and subject line Bug#1066137: fixed in gnupg2 2.2.40-2
    has caused the Debian Bug report #1066137,
    regarding gnupg2: -Werror=implicit-function-declaration failure testing for ldap_open
    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 owner@bugs.debian.org
    immediately.)


    --
    1066137: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1066137
    Debian Bug Tracking System
    Contact owner@bugs.debian.org with problems

    Received: (at submit) by bugs.debian.org; 12 Mar 2024 22:58:54 +0000 X-Spam-Checker-Version: SpamAssassin 3.4.6-bugs.debian.org_2005_01_02
    (2021-04-09) on buxtehude.debian.org
    X-Spam-Level:
    X-Spam-Status: No, score=-3.9 required=4.0 tests=BAYES_00,FOURLA,SPF_HELO_NONE,
    SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no
    version=3.4.6-bugs.debian.org_2005_01_02
    X-Spam-Bayes: score:0.0000 Tokens: new, 30; hammy, 150; neutral, 147; spammy,
    0. spammytokens: hammytokens:0.000-+--XDebbugsCc,
    0.000-+--X-Debbugs-Cc, 0.000-+--wdatetime, 0.000-+--Wdatetime,
    0.000-+--Wdate-time
    Return-path: <tg@mirbsd.de>
    Received: from herc.mirbsd.org ([2001:470:1f15:10c:202:b3ff:feb7:54e8]:42810)
    by buxtehude.debian.org with esmtps (TLS1.0:RSA__AES_256_CBC__SHA1:256)
    (Exim 4.94.2)
    (envelope-from <tg@mirbsd.de>)
    id 1rkB5C-005elU-1D
    for submit@bugs.debi
  • From Debian Bug Tracking System@21:1/5 to All on Fri Mar 15 23:30:02 2024
    This is a multi-part message in MIME format...

    Your message dated Fri, 15 Mar 2024 22:23:49 +0000
    with message-id <E1rlFxt-001xZF-MQ@fasolo.debian.org>
    and subject line Bug#1066138: fixed in gnupg1 1.4.23-2
    has caused the Debian Bug report #1066138,
    regarding gnupg1: fails to build gpgkeys_ldap, probably due to -Werror=implicit-function-declaration
    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 owner@bugs.debian.org
    immediately.)


    --
    1066138: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1066138
    Debian Bug Tracking System
    Contact owner@bugs.debian.org with problems

    Received: (at submit) by bugs.debian.org; 12 Mar 2024 22:58:54 +0000 X-Spam-Checker-Version: SpamAssassin 3.4.6-bugs.debian.org_2005_01_02
    (2021-04-09) on buxtehude.debian.org
    X-Spam-Level:
    X-Spam-Status: No, score=-3.9 required=4.0 tests=BAYES_00,FOURLA,SPF_HELO_NONE,
    SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no
    version=3.4.6-bugs.debian.org_2005_01_02
    X-Spam-Bayes: score:0.0000 Tokens: new, 30; hammy, 150; neutral, 147; spammy,
    0. spammytokens: hammytokens:0.000-+--XDebbugsCc,
    0.000-+--X-Debbugs-Cc, 0.000-+--wdatetime, 0.000-+--Wdatetime,
    0.000-+--Wdate-time
    Return-path: <tg@mirbsd.de>
    Received: from herc.mirbsd.org ([2001:470:1f15:10c:202:b3ff:feb7:54e8]:42810)
    by buxtehude.debian.org with esmtps (TLS1.0:RSA__AES_256_CBC__SHA1:256)
    (Exim 4.94.2)
    (envelope-from <tg@mirbsd.de>)
    id 1rkB5C-005elU-1D
    for submit@bugs.debi
  • From Debian Bug Tracking System@21:1/5 to All on Sat Mar 16 07:50:01 2024
    Processing control commands:

    notfound 1066137 2.4.3-2
    Bug #1066137 {Done: Andreas Metzler <ametzler@debian.org>} [src:gnupg2] gnupg2: -Werror=implicit-function-declaration failure testing for ldap_open
    Bug #1066744 {Done: Andreas Metzler <ametzler@debian.org>} [src:gnupg2] gnupg2: FTBFS: dh_install: error: missing files, aborting
    No longer marked as found in versions gnupg2/2.4.3-2.
    No longer marked as found in versions gnupg2/2.4.3-2.
    close 1066137 2.4.3-2
    Bug #1066137 {Done: Andreas Metzler <ametzler@debian.org>} [src:gnupg2] gnupg2: -Werror=implicit-function-declaration failure testing for ldap_open
    Bug #1066744 {Done: Andreas Metzler <ametzler@debian.org>} [src:gnupg2] gnupg2: FTBFS: dh_install: error: missing files, aborting
    Marked as fixed in versions gnupg2/2.4.3-2.
    Marked as fixed in versions gnupg2/2.4.3-2.
    Bug #1066137 {Done: Andreas Metzler <ametzler@debian.org>} [src:gnupg2] gnupg2: -Werror=implicit-function-declaration failure testing for ldap_open
    Bug #1066744 {Done: Andreas Metzler <ametzler@debian.org>} [src:gnupg2] gnupg2: FTBFS: dh_install: error: missing files, aborting
    Bug 1066137 is already marked as done; not doing anything.

    --
    1066137: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1066137
    1066744: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1066744
    Debian Bug Tracking System
    Contact owner@bugs.debian.org with problems

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)