Bug 294263 - devel/tinycbor: Unit tests fails to build if QT6 installed
Summary: devel/tinycbor: Unit tests fails to build if QT6 installed
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Po-Chuan Hsieh
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-04-05 18:50 UTC by Daniel Engberg
Modified: 2026-04-05 18:50 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (sunpoet)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Engberg freebsd_committer freebsd_triage 2026-04-05 18:50:19 UTC
See https://github.com/intel/tinycbor/blob/v7.0/tests/CMakeLists.txt#L10

/usr/bin/c++ -DQT_CORE_LIB -DQT_NO_DEBUG -DQT_TESTCASE_BUILDDIR=\"/usr/ports/devel/tinycbor/work/.build/tests/parser\" -DQT_TESTCASE_SOURCEDIR=\"/usr/ports/devel/tinycbor/work/tinycbor-7.0/tests/parser\" -DQT_TESTLIB_LIB -I/usr/ports/devel/tinycbor/work/.build/tests/parser/tst_parser_autogen/include -I/usr/ports/devel/tinycbor/work/tinycbor-7.0/src -I/usr/ports/devel/tinycbor/work/.build -isystem /usr/local/include/qt6/QtCore -isystem /usr/local/include/qt6 -isystem /usr/local/lib/qt6/mkspecs/freebsd-clang -isystem /usr/local/include/qt6/QtTest -O2 -pipe -march=znver4 -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -march=znver4  -isystem /usr/local/include -O2 -pipe -march=znver4 -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -march=znver4  -isystem /usr/local/include  -DNDEBUG -std=gnu++20 -Wall -Wextra -pthread -MD -MT tests/parser/CMakeFiles/tst_parser.dir/tst_parser.cpp.o -MF tests/parser/CMakeFiles/tst_parser.dir/tst_parser.cpp.o.d -o tests/parser/CMakeFiles/tst_parser.dir/tst_parser.cpp.o -c /usr/ports/devel/tinycbor/work/tinycbor-7.0/tests/parser/tst_parser.cpp
/usr/ports/devel/tinycbor/work/tinycbor-7.0/tests/parser/tst_parser.cpp:181:79: error: use of undeclared identifier 'MAP_ANON'
  181 |         realdata = mmap(nullptr, alloc, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANON, -1, 0);

FreeBSD 15-STABLE
qt6-base-6.10.2_1
Version 7.0 of cbor
Comment 1 Daniel Engberg freebsd_committer freebsd_triage 2026-04-05 18:50:59 UTC
Correction, cbor --> tinycbor