Your message dated Thu, 11 Sep 2025 14:45:18 +0000
with message-id <[email protected]>
and subject line Bug#1111777: fixed in fastnetmon 1.2.8+git20250911-1
has caused the Debian Bug report #1111777,
regarding fastnetmon: FTBFS w/ mongo-c-driver >= 2.0
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.)
--
1111777: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1111777
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: fastnetmon
Version: 1.2.8-1
Severity: normal
Tags: patch
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Please find attached a patch that will allow fastnetmon to build with
mongo-c-driver >= 2.0 (which was recently uploaded to unstable).
Regards,
- -Roberto
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEEIYZ1DR4ae5UL01q7ldFmTdL1kUIFAmine8wACgkQldFmTdL1
kUJYVQ/7BnvkP8EoVbw1Kay6IqQOm1GofuZOsOh2q0E/vFAvJNkhqzeEmnPlFzWN
SU68ZPW2M2rUCC7RYWVoeIUypDvxvsZqIeHWMRttPjCWkNuT6OCy6Blkfx2+aAPY
GnBpJ/kwENaaioWiUy7fT+iIaqsHp/ILM0bkVO6WfzqpQtfmyFWjs+aenmcRdnY6
E48R/cMs0hYhig9+3JnNfQXyNDX0n9Lgqy324QIKClRyUTGwixUvl3VhNgZsAP+9
qekM1Hp8iJe1z/8g6VgGh7JO8ObHDEOMdxAn0seM8FzEjjJUxquiUd1UQGfHIol/
3nBSzmrzWXO2DaQ3Hl069SvfYFEKYLATuESc1pvDD3Wq8wLI4JCEPj2WVz/1ad9C
+etUkDlFbiwU7vgLW5yqGmg9nOQ98j8fBzU2M5ZwzmtitknI+c1vSzYftnNNjbqn
Odm/kTRb/toc+3BE5Zbm030krh1nt2O8DFrVXRnTqAtz51951P10BSZfuffMTZnF
7EvDUW0kcll5IlmRezTPDkDFiaOR6Mz/7RbVlS+z8ulplJBrm3r+Z8yOn9W2KPW2
/qYayz/WgOq9uB5g0NG9Pn8MwVA4RXU1VIuemMqm8t96NKnzCn+YnugxztTAON79
4rTntjXHPm86XNuwEe7nmnnkGW/rcCnwzEEczRmt63ST5DGepXg=
=ZQbF
-----END PGP SIGNATURE-----
---
src/CMakeLists.txt | 49 ++++++++++++++++++++++++++++-------------------
src/fastnetmon_logic.cpp | 5 ++++
2 files changed, 35 insertions(+), 19 deletions(-)
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -934,26 +934,37 @@
if (ENABLE_MONGODB_SUPPORT)
- ### Find mongo-c
- find_path(MONGOC_INCLUDES_FOLDER NAMES libmongoc-1.0/mongoc.h PATHS
"${MONGO_C_CUSTOM_INSTALL_PATH}/include" ${DISABLE_DEFAULT_PATH_SEARCH_VAR})
- find_library(MONGOC_LIBRARY_PATH NAMES mongoc-1.0 PATHS
"${MONGO_C_CUSTOM_INSTALL_PATH}/lib" ${DISABLE_DEFAULT_PATH_SEARCH_VAR})
-
- ### find bson
- find_path(BSON_INCLUDES_FOLDER NAMES libbson-1.0/bson.h PATHS
"${MONGO_C_CUSTOM_INSTALL_PATH}/include" ${DISABLE_DEFAULT_PATH_SEARCH_VAR})
- find_library(BSON_LIBRARY_PATH NAMES bson-1.0 PATHS
"${MONGO_C_CUSTOM_INSTALL_PATH}/lib" ${DISABLE_DEFAULT_PATH_SEARCH_VAR})
-
- if (MONGOC_INCLUDES_FOLDER AND MONGOC_LIBRARY_PATH AND
BSON_INCLUDES_FOLDER AND BSON_LIBRARY_PATH)
- message(STATUS "We found mongo-c library ${MONGOC_INCLUDES_FOLDER}
${MONGOC_LIBRARY_PATH} ${BSON_INCLUDES_FOLDER} ${BSON_LIBRARY_PATH}")
- add_definitions(-DMONGO)
-
- # We add suffix name because cmake could not detect it correctly...
- include_directories("${MONGOC_INCLUDES_FOLDER}/libmongoc-1.0")
- include_directories("${BSON_INCLUDES_FOLDER}/libbson-1.0")
+ find_package(bson QUIET)
+ find_package(mongoc QUIET)
- target_link_libraries(fastnetmon ${MONGOC_LIBRARY_PATH}
${BSON_LIBRARY_PATH})
- target_link_libraries(fastnetmon_logic ${MONGOC_LIBRARY_PATH}
${BSON_LIBRARY_PATH})
+ if (bson_FOUND AND mongoc_FOUND)
+ message(STATUS "We found mongo-c library mongoc::mongoc bson::bson")
+ add_definitions(-DMONGO -DUSING_MONGO2)
+ target_link_libraries(fastnetmon mongoc::mongoc)
+ target_link_libraries(fastnetmon_logic mongoc::mongoc)
else()
- message(FATAL_ERROR "We can't find Mongo C library")
+ ### Find mongo-c
+ find_path(MONGOC_INCLUDES_FOLDER NAMES libmongoc-1.0/mongoc.h PATHS
"${MONGO_C_CUSTOM_INSTALL_PATH}/include" ${DISABLE_DEFAULT_PATH_SEARCH_VAR})
+ find_library(MONGOC_LIBRARY_PATH NAMES mongoc-1.0 PATHS
"${MONGO_C_CUSTOM_INSTALL_PATH}/lib" ${DISABLE_DEFAULT_PATH_SEARCH_VAR})
+
+ ### find bson
+ find_path(BSON_INCLUDES_FOLDER NAMES libbson-1.0/bson.h PATHS
"${MONGO_C_CUSTOM_INSTALL_PATH}/include" ${DISABLE_DEFAULT_PATH_SEARCH_VAR})
+ find_library(BSON_LIBRARY_PATH NAMES bson-1.0 PATHS
"${MONGO_C_CUSTOM_INSTALL_PATH}/lib" ${DISABLE_DEFAULT_PATH_SEARCH_VAR})
+
+ if (MONGOC_INCLUDES_FOLDER AND MONGOC_LIBRARY_PATH AND
BSON_INCLUDES_FOLDER AND BSON_LIBRARY_PATH)
+ message(STATUS "We found mongo-c library ${MONGOC_INCLUDES_FOLDER}
${MONGOC_LIBRARY_PATH} ${BSON_INCLUDES_FOLDER} ${BSON_LIBRARY_PATH}")
+ add_definitions(-DMONGO)
+
+ # We add suffix name because cmake could not detect it correctly...
+ include_directories("${MONGOC_INCLUDES_FOLDER}/libmongoc-1.0")
+ include_directories("${BSON_INCLUDES_FOLDER}/libbson-1.0")
+
+ target_link_libraries(fastnetmon ${MONGOC_LIBRARY_PATH}
${BSON_LIBRARY_PATH})
+ target_link_libraries(fastnetmon_logic ${MONGOC_LIBRARY_PATH}
${BSON_LIBRARY_PATH})
+ else()
+ message(FATAL_ERROR "We can't find Mongo C library")
+ endif()
+
endif()
endif()
@@ -1216,4 +1227,4 @@
target_link_libraries(fastnetmon desock)
endif()
-
\ No newline at end of file
+
--- a/src/fastnetmon_logic.cpp
+++ b/src/fastnetmon_logic.cpp
@@ -56,9 +56,14 @@
#include "example_plugin/example_collector.hpp"
#ifdef MONGO
+#ifdef USING_MONGO2
+#include <bson/bson.h>
+#include <mongoc/mongoc.h>
+#elif
#include <bson.h>
#include <mongoc.h>
#endif
+#endif
#include "fastnetmon_networks.hpp"
--- End Message ---
--- Begin Message ---
Source: fastnetmon
Source-Version: 1.2.8+git20250911-1
Done: Patrick Matthäi <[email protected]>
We believe that the bug you reported is fixed in the latest version of
fastnetmon, 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.
Patrick Matthäi <[email protected]> (supplier of updated fastnetmon 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: SHA512
Format: 1.8
Date: Thu, 11 Sep 2025 15:48:36 +0200
Source: fastnetmon
Architecture: source
Version: 1.2.8+git20250911-1
Distribution: unstable
Urgency: medium
Maintainer: Patrick Matthäi <[email protected]>
Changed-By: Patrick Matthäi <[email protected]>
Closes: 1110574 1111777 1112881
Changes:
fastnetmon (1.2.8+git20250911-1) unstable; urgency=medium
.
* New upstream git snapshot.
- Fixes build with mongo-c-driver 2.0.
Closes: #1111777, #1110574, #1112881
- Remove merged patch 01-spelling-error.
* Bump Standards-Version to 4.7.2.
* Merge 1.2.4-2+deb12u1 changelog.
* Fix old-fsf-address-in-copyright-file.
Checksums-Sha1:
f6432b0bc4a241907d86dc0fa19e635f05cab8c0 2390
fastnetmon_1.2.8+git20250911-1.dsc
2ebd8f6346e90343f9148bb8918603a252ac4078 1499121
fastnetmon_1.2.8+git20250911.orig.tar.gz
01cfb95f1e951eb137a919a1c366d3fd6d039984 4804
fastnetmon_1.2.8+git20250911-1.debian.tar.xz
eb785c167b03289e1dc079d98d83e6fc9e65abc7 7351
fastnetmon_1.2.8+git20250911-1_source.buildinfo
Checksums-Sha256:
b941ff0bc43cd6eb83132b19c387f76bb1335149790cdcb0f214f785136751f1 2390
fastnetmon_1.2.8+git20250911-1.dsc
1cb1de4273e25229b898a2f7e34c4c3c14e566b31b1a34e20b4b98ec84da7f2b 1499121
fastnetmon_1.2.8+git20250911.orig.tar.gz
def3fcb5248029256f5ae4b9c3b089a3fe0523c4c0b274e08e7238db43a28b86 4804
fastnetmon_1.2.8+git20250911-1.debian.tar.xz
361241fa7728870a53534de3bb792c3cd184e68bb1181a7e8f470cb45e2326f3 7351
fastnetmon_1.2.8+git20250911-1_source.buildinfo
Files:
dc0a0077bc6a4f809dafe0c7364a3751 2390 net optional
fastnetmon_1.2.8+git20250911-1.dsc
d26690c8250b0e25d15f6cbbee88f303 1499121 net optional
fastnetmon_1.2.8+git20250911.orig.tar.gz
ec858ade35f6f87e54f7a0c660eef0b8 4804 net optional
fastnetmon_1.2.8+git20250911-1.debian.tar.xz
b674b4fdbb1f1b1f69ee526dfd490177 7351 net optional
fastnetmon_1.2.8+git20250911-1_source.buildinfo
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEEWKA9xYJCWk3IuQ4TEtmwSpDL2OQFAmjC04QACgkQEtmwSpDL
2ORNSA//TejM3STYVVcSyrK2vJW8mOKEQ4bpsmR2yx7kAQFk5D7v6i7H3OLXf7xP
uQjud1mc8dlZG9FMVrVMi/6UAaPGniJgITvFssy4IyjtxNhkb98pwB1KTxH3LdMR
x5c3fvSYsCG8oTQXzxej3daurmjcjUFO+uK3EhygxX9p6mJ6O1RrGWzQfd8BGZpJ
KRQPl8wC4oNrsBAcMAcIyNay1kBumh3RORCy5pvQXFvvmcSK7AmpMqgwK8aw6eMS
91lUSEx2r7G9y/o7gt2DOuWvw4sg4LaE3MQlaZ5AtIdSh37kFoDqx2wdsegdtrp/
Rf0FVLfykQTDM5Y/VFfyf+lsbmEcfIvLCz8ofPBt34tMSEKH46UUqqPPTmv1GxYH
v8dnmRJJDOeGxP+oWnZ2uz7bpyyOpHzUdfIxoseryKSIz6d3LAznJIMzFLm+F5Ou
vHJJVevPMh2JQJCWU2r2XGyZaiySBCV/i5D0SQgL+INfsn8HKO3SvbQH47IRpH+x
LinxwEcDVkawk9L6oRqSGqUWO953gVnsi7Xr7tzYd9/iJhQ8JqGZyFRBQ/zPtNuf
3HPBy0Ckndsv3ETrIUp/lu+znqnZmCMbd7aukZdjVY2LGlwvX2aMSUBCN2yaaZgI
Eq4y/5TGVrRjSqmGXplvQnoewf9q7mompzIqSVQ9jrHn2VdHTVk=
=8cLG
-----END PGP SIGNATURE-----
pgprEVSirYCha.pgp
Description: PGP signature
--- End Message ---