Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compile error in kis_external.cc with make_pair #547

Open
rjhornsby opened this issue Dec 17, 2024 · 1 comment
Open

compile error in kis_external.cc with make_pair #547

rjhornsby opened this issue Dec 17, 2024 · 1 comment

Comments

@rjhornsby
Copy link

rjhornsby commented Dec 17, 2024

Getting a compile error that seems a little similar to #301.

OS: Debian 12.8, ARM running in a Parallels VM
kismet version (from version.c): 2024.12.0, git commit version a5c7781.
compiler: g++ (?) 12.2.0

Sorry I don't understand c++ better to provide more useful insight. As noted in the follow up message in #301, this looks like almost a warning until the compiler bails out.

g++ -std=gnu++20 -Wall -Wno-unknown-warning-option -Wno-deprecated-declarations -Wno-format-truncation -Wno-unused-local-typedefs -Wno-unused-function -Wno-infinite-recursion -g -I. -fPIE -g -O2 -O3  -DKS_STR_ENCODING_NONE -I/usr/include/dbus-1.0 -I/usr/lib/aarch64-linux-gnu/dbus-1.0/include    -c kis_external.cc -o kis_external.cc.o
In file included from /usr/include/c++/12/bits/stl_algobase.h:64,
                 from /usr/include/c++/12/memory:63,
                 from kis_external.cc:19:
/usr/include/c++/12/bits/stl_pair.h: In instantiation of ‘constexpr std::pair<typename std::__strip_reference_wrapper<typename std::decay<_Tp>::type>::__type, typename std::__strip_reference_wrapper<typename std::decay<_Tp2>::type>::__type> std::make_pair(_T1&&, _T2&&) [with _T1 = const double&; _T2 = const double&; typename __strip_reference_wrapper<typename decay<_Tp2>::type>::__type = double; typename decay<_Tp2>::type = double; typename __strip_reference_wrapper<typename decay<_Tp>::type>::__type = double; typename decay<_Tp>::type = double]’:
trackedelement.h:1799:30:   required from ‘void tracker_element_core_pair<T1, T2, TT>::set(const T1&, const T2&) [with T1 = double; T2 = double; tracker_type TT = tracker_type::tracker_pair_double]’
trackedlocation.h:75:22:   required from here
/usr/include/c++/12/bits/stl_pair.h:741:5: note: parameter passing for argument of type ‘std::pair<double, double>’ when C++17 is enabled changed to match C++14 in GCC 10.1
  741 |     make_pair(_T1&& __x, _T2&& __y)
      |     ^~~~~~~~~
g++: fatal error: Killed signal terminated program cc1plus
compilation terminated.
make: *** [Makefile:914: kis_external.cc.o] Error 1
@rjhornsby rjhornsby changed the title compile error kis_external.cc with make_pair compile error in kis_external.cc with make_pair Dec 17, 2024
@kismetwireless
Copy link
Owner

kismetwireless commented Dec 17, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants