Your message dated Mon, 29 Apr 2024 09:19:05 +0000
with message-id <[email protected]>
and subject line Bug#1068207: fixed in libnginx-mod-http-modsecurity 1.0.3-2
has caused the Debian Bug report #1068207,
regarding Missing header from ngx_feature_test='printf("hello");'
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 [email protected]
immediately.)


-- 
1068207: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1068207
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: libnginx-mod-http-ndk-dev
Version: 1:0.3.3-1

There is a module package for Nginx, which worked as well since
this FTBFS bug:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1067364

The upstream contains this section in config:

https://github.com/owasp-modsecurity/ModSecurity-nginx/blob/master/config#L15

ngx_feature_test='printf("hello");'

The problem is when the buildpackage process starts, I got this
error:

hecking for ModSecurity library ... not found
checking for ModSecurity library in /usr/local/modsecurity ... not found
 ./configure: error: ngx_http_modsecurity_module requires the ModSecurity 
library.

see sbuild.log:

http://qa-logs.debian.net/2024/03/19/libnginx-mod-http-modsecurity_1.0.3-1_unstable.log

I investigated the root issue, and I found this message in
obj-x86_64-linux-gnu/autoconf.err:

/home/airween/src/libnginx-mod-http-modsecurity-1.0.3/obj-x86_64-linux-gnu/autotest.c:7:5:
 note: include '<stdio.h>' or provide a declaration of 'printf'
cc1: some warnings being treated as errors
----------

#include <sys/types.h>
#include <unistd.h>
#include <modsecurity/modsecurity.h>

int main(void) {
    printf("hello");;
    return 0;
}
...
checking for ModSecurity library in /usr/local/modsecurity

/home/airween/src/libnginx-mod-http-modsecurity-1.0.3/obj-x86_64-linux-gnu/autotest.c:
 In function 'main':
/home/airween/src/libnginx-mod-http-modsecurity-1.0.3/obj-x86_64-linux-gnu/autotest.c:7:5:
 error: implicit declaration of function 'printf' 
[-Werror=implicit-function-declaration]
    7 |     printf("hello");;
      |     ^~~~~~
/home/airween/src/libnginx-mod-http-modsecurity-1.0.3/obj-x86_64-linux-gnu/autotest.c:5:1:
 note: include '<stdio.h>' or provide a declaration of 'printf'
    4 | #include <modsecurity/modsecurity.h>
  +++ |+#include <stdio.h>
    5 | 
/home/airween/src/libnginx-mod-http-modsecurity-1.0.3/obj-x86_64-linux-gnu/autotest.c:7:5:
 warning: incompatible implicit declaration of built-in function 'printf' 
[-Wbuiltin-declaration-mismatch]
    7 |     printf("hello");;
      |     ^~~~~~
/home/airween/src/libnginx-mod-http-modsecurity-1.0.3/obj-x86_64-linux-gnu/autotest.c:7:5:
 note: include '<stdio.h>' or provide a declaration of 'printf'
cc1: some warnings being treated as errors
----------

#include <sys/types.h>
#include <unistd.h>
#include <modsecurity/modsecurity.h>

int main(void) {
    printf("hello");;
    return 0;
}

If I add a patch (via d/series) which adds this header correctly,
then everything is fine, the package builds as well.

The upstream isn't touched since 6 years (the mentioned file), so
I guess something is changed in libnginx-mod-http-ndk-dev (if it
is responsible to produce the test codes - I guess).

Note, that there isn't any user report in upstream regarding this
problem, actually I can reproduce this only in Debian.


Sorry if I'm wrong.


Thanks,


a.

--- End Message ---
--- Begin Message ---
Source: libnginx-mod-http-modsecurity
Source-Version: 1.0.3-2
Done: Jérémy Lal <[email protected]>

We believe that the bug you reported is fixed in the latest version of
libnginx-mod-http-modsecurity, 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 [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Jérémy Lal <[email protected]> (supplier of updated 
libnginx-mod-http-modsecurity 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 [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Tue, 08 Aug 2023 10:50:55 +0200
Source: libnginx-mod-http-modsecurity
Architecture: source
Version: 1.0.3-2
Distribution: unstable
Urgency: medium
Maintainer: Ervin Hegedus <[email protected]>
Changed-By: Jérémy Lal <[email protected]>
Closes: 1067364 1068207
Changes:
 libnginx-mod-http-modsecurity (1.0.3-2) unstable; urgency=medium
 .
   [ Ervin Hegedüs ]
   * Renamed debian/README.ModSecurity.txt to debian/README.Debian
   * Replaced new file in debian/libnginx-mod-http-modsecurity.docs
   * Fixed bug identifier format in d/changelog (added a '#')
   * Changed 'UNRELEASED' to 'unstable' in top of d/changelog entry
   * Changed 'Maintainer' field to [email protected]
   * Changed 'Uploader' field to [email protected]
   * Changed 'Vcs-Git' and 'Vcs-Browser' fields content to team repository
   * Added d/patches/stdioh.patch (Closes: #1067364, #1068207)
 .
   [ Jérémy Lal ]
   * nginx_mod autodetects libnginx-mod-http-ndk-dev
   * Use dh-sequence-nginx
   * Let dh-nginx test run
Checksums-Sha1:
 3688196226473d79ab7abf98ec91937ec1c6412e 2251 
libnginx-mod-http-modsecurity_1.0.3-2.dsc
 b376e9edb4ce2ea877e6750d94aae6df473ec1c0 11968 
libnginx-mod-http-modsecurity_1.0.3-2.debian.tar.xz
 b2a20c412a3ee964209fa204dc7b65febbc82634 10520 
libnginx-mod-http-modsecurity_1.0.3-2_amd64.buildinfo
Checksums-Sha256:
 9497a9b2304e35cf9b862a0df845f6e473f60e35b8eaf2be821de1ea104ee63c 2251 
libnginx-mod-http-modsecurity_1.0.3-2.dsc
 52f67a5de704ba309616c8e92b64f7684b538bac58da3eb4b589637647129460 11968 
libnginx-mod-http-modsecurity_1.0.3-2.debian.tar.xz
 758300ad591fb70248a4e4b0f566417b0e0befc196aae60a1da6627851384ceb 10520 
libnginx-mod-http-modsecurity_1.0.3-2_amd64.buildinfo
Files:
 07bed5b18a1f71f85478a6fb722d2d29 2251 httpd optional 
libnginx-mod-http-modsecurity_1.0.3-2.dsc
 de5db0f5dd15951e84cc0158fcc9ed86 11968 httpd optional 
libnginx-mod-http-modsecurity_1.0.3-2.debian.tar.xz
 69d71bb0362e93b22b22c98db9f78fe5 10520 httpd optional 
libnginx-mod-http-modsecurity_1.0.3-2_amd64.buildinfo

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

iQJEBAEBCAAuFiEEU0fL2D4wqetNfUvyAJszdWuaqlUFAmYvYbMQHGFnaUBpbml0
dGFiLm9yZwAKCRAAmzN1a5qqVZpwD/49I0vnk1vdSm2xGA27Yh8syuAMnActUbZF
nspdG4sxuze7HN9ydO0fBN1pL3lLKyCaEOPpG2RDLIy4Bll6hl+RaseEUQgxylnW
Us/bmJvUNEnX5u1NJjgRqvwoqkyIt9zMYS2lQ30kEFKdKZCaF1EthId0z3wojQ5u
VBmCC6FHxMy588stNyiMHgRO6PUBvlDmxgysACIBPUwa4IUEwjfD5yS/9ykXFSVf
G0sLc+kLyjNAgLJzA9umro8HleyP6fu0CIuEkNUsSh7Qg85N184SqBreDZRKa5Eg
AAexb+AwAUq+0p2dEntuPWESwC3DSujOZLXERyuks0LXtde9bseDfrqILzpKTNJf
TRwiOxst8JMK4A6bVNVSEE2+ctWQP9QyP5jq0f4rTlMnOHBv2bsOnR9l+NToonyk
di7+glwWSMXAxHTH1jjgGle2q4/d48A2pzHj++3gR7cHO/f+GBJZeWtk+rOWHZyR
+FaMTJjwVdL68Z3+5Ev50Xvx1GBUOdfBUu2MBv5LVYoWa82Y/wugCJCt8P3EKCp/
w785qpdFrb75koN/UwmHapnApRiSAokkAeQjGfghfTVm/9iP86/TeaBWtSsjStfc
fsjSbzXJiyqB5x6pd5FvgXQdDehVKT6TBEoZMJg3I9vGSIaGajG8GkYtSnxoBde4
48aEc0Z20Q==
=c2Qk
-----END PGP SIGNATURE-----

Attachment: pgp0Esyvl26h2.pgp
Description: PGP signature


--- End Message ---

Reply via email to