• Bug#1071316: infinipath-psm: FTBFS: ips_proto_dump.c:142:15: error: sta

    From Jakub Wilk@21:1/5 to All on Sat Apr 5 09:30:01 2025
    Control: tags -1 + patch

    ptl_ips/ips_proto_dump.c:142:15: error: static declaration of ‘strlcat’ follows non-static declaration

    The comment says "linux doesn't have strlcat"; but strlcat() was added
    to glibc v2.38, hence the error. Removing the function from
    ips_proto_dump.c made the package build again. I didn't perform any
    further testing.

    --
    Jakub Wilk

    --- infinipath-psm-3.3+20.604758e7.orig/ptl_ips/ips_proto_dump.c
    +++ infinipath-psm-3.3+20.604758e7/ptl_ips/ips_proto_dump.c
    @@ -136,6 +136,7 @@ void ips_proto_show_header(struct ips_me
    printf("mqhdr %x\n", p_hdr->mqhdr);
    }

    +#if 0
    // linux doesn't have strlcat; this is a stripped down implementation
    // not super-efficient, but we use it rarely, and only for short strings
    // not fully standards conforming!
    @@ -152,6 +153,7 @@ static size_t strlcat(char *d, const cha
    d[dlen+slen] = '\0';
    return dlen+slen+1; // standard says to return full length, not actual
    }
    +#endif

    // decode RHF errors; only used one place now, may want more later
    void ips_proto_get_rhf_errstring(uint32_t err, char *msg, size_t len)

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Sergio Durigan Junior@21:1/5 to Santiago Vila on Sat Apr 5 23:40:01 2025
    user debian-release@lists.debian.org
    usertags 1071316 + bsp-2025-04-brazil
    thanks

    On Friday, May 17 2024, Santiago Vila wrote:

    Dear maintainer:

    During a rebuild of all packages in unstable, your package failed to build:

    I should have been more careful when checking the bug before starting to
    work on it; I missed the fact that Jakub had already proposed a fix. I
    arrived at the same fix of course, so I'm adding Jakub's name as a
    co-author in the patch.

    Preparing an NMU.

    --
    Sergio
    GPG key ID: 237A 54B1 0287 28BF 00EF 31F4 D0EB 7628 65FC 5E36
    Please send encrypted e-mail if possible
    https://sergiodj.net/

    --=-=-Content-Type: application/pgp-signature; name="signature.asc"

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

    iQIzBAEBCgAdFiEEI3pUsQKHKL8A7zH00Ot2KGX8XjYFAmfxnqQACgkQ0Ot2KGX8 XjZ10BAAm4Lk2+MM4l+oHBhvZHZBclQ29mH/9yZtZHdHaNorot1mrGJzi1tq5nsz sVnLAFJemxNxTPkUOXtsGcPC4/qpbsxuV7eUPz5eTAhpvjLgiMUWT4UZU7PeZumX EnXPUP+la7d+8czbfry18HAdH1+Dabe7QAQ4cRthYc/HBZ2xlCYIR5dZzLBukFfD WJTf75m8D3VplodbgJEPKC/7RDwGCRRJkNiWZENBh2GrtooS5KTktk7RVC4kyvyi 1INo78LAr6YooddaXFekBjq4eUlgHoorqtDX0w0PVjmMFtzyWaQG/cCdYoe4aaAj qLfg19KJI/RylV/vmPwip9rAXU4Cu79N+TX8pnv5EGVa41g9P3izzC5wAJ43e/rL 7vQUhHCEiyDf0akyX1DZLDtmCUA9fDw+AElFapUjKFjyQw5F3BloDCWvB2m8Dh2n 1awzbKCFqXd6y/Zk5+Q1zPwmVPK+Js8YqLnNGX19pJzss6MHsZz9JczrAMHXgZuh S5xTkjbapfeCd7OclJB2ijLUR6ayQARI+pfWHw7Yb4nWx+kaJ7QUJNvkkABzHtXZ nSTlgUjiNtRkV2/l5aQt7YN/4M5uGMmC5HRG+J3inBIYlc23X3+Ys8r5TumhxtGQ md7z6YJFx7OVOuGHhamBvF3K1kheYhcYIKWaykxs7VhuIwgzro