Skip to content

Commit 438b594

Browse files
committed
FIX: FTBFS mrpt_xsens
1 parent bec0b60 commit 438b594

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

3rdparty/CMakeLists.txt

+8
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,15 @@ if(CMAKE_MRPT_HAS_xSENS)
187187

188188
if (MSVC)
189189
target_compile_definitions(mrpt_xsens PRIVATE XDA_STATIC_LIB)
190+
else()
191+
# Needed for <time.h> to define timegm()
192+
target_compile_definitions(mrpt_xsens PRIVATE
193+
_GNU_SOURCE
194+
_BSD_SOURCE
195+
_DEFAULT_SOURCE
196+
)
190197
endif()
198+
191199

192200
# needs to be exported, even if private, to make cmake happy since it wants
193201
# libraries to be statically-linkable:

CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,7 @@ if(CMAKE_COMPILER_IS_GNUCXX)
405405
add_compile_options(-Wall -Wno-long-long -Wno-variadic-macros -Wshadow)
406406
add_compile_options(-Wreturn-local-addr -Werror=return-local-addr)
407407
add_compile_options(-Wno-psabi)
408+
add_compile_options("$<$<COMPILE_LANGUAGE:C>:-Werror=implicit-function-declaration>")
408409

409410
# Workaround: Eigen <3.4 produces *tons* of warnings in GCC >=6. See http://eigen.tuxfamily.org/bz/show_bug.cgi?id=1221
410411
if (NOT ${CMAKE_CXX_COMPILER_VERSION} LESS "6.0" AND "${MRPT_EIGEN_VERSION}" VERSION_LESS "3.4")

doc/source/doxygen-docs/changelog.md

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
- Changes in libraries:
55
- \ref mrpt_obs_grp:
66
- mrpt::math::TBoundingBox: Mark all relevant methods with ``[nodiscard]`` to avoid mistakes.
7+
- BUG FIXES:
8+
- Fix Debian bug #1066207: FTBFS in latest sid due to undefined declarations in mrpt_xsens C library.
79

810
# Version 2.11.12: Released March 10th, 2024
911
- Changes in libraries:

0 commit comments

Comments
 (0)