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

Build failure: openvpn3 #349012

Open
Naxdy opened this issue Oct 16, 2024 · 0 comments
Open

Build failure: openvpn3 #349012

Naxdy opened this issue Oct 16, 2024 · 0 comments

Comments

@Naxdy
Copy link
Contributor

Naxdy commented Oct 16, 2024

Steps To Reproduce

Steps to reproduce the behavior:

  1. nix build github:NixOS/nixpkgs-unstable#openvpn3

Build log

...
openvpn3>   CXX      src/tests/unit/platforminfo.o
openvpn3>   CXX      src/tests/unit/sessionmgr-events.o
openvpn3>   CXX      src/tests/unit/statusevent.o
openvpn3>   CXX      src/tests/unit/syslog-facility-mapping.o
openvpn3>   CXX      src/tests/unit/dns-settings-manager-test.o
openvpn3>   CXX      src/tests/unit/dns-resolver-settings.o
openvpn3>   CXX      src/tests/unit/machine-id.o
openvpn3> src/tests/unit/machine-id.cpp: In member function 'std::string unittest::ReferenceID::hash_sha256(const std::string&)':
openvpn3> src/tests/unit/machine-id.cpp:99:28: error: 'setw' is not a member of 'std'
openvpn3>    99 |             output << std::setw(2) << std::setfill('0')
openvpn3>       |                            ^~~~
openvpn3> src/tests/unit/machine-id.cpp:41:1: note: 'std::setw' is defined in header '<iomanip>'; did you forget to '#include <iomanip>'?
openvpn3>    40 | #include <openvpn/openssl/compat.hpp>
openvpn3>   +++ |+#include <iomanip>
openvpn3>    41 |
openvpn3> src/tests/unit/machine-id.cpp:99:44: error: 'setfill' is not a member of 'std'
openvpn3>    99 |             output << std::setw(2) << std::setfill('0')
openvpn3>       |                                            ^~~~~~~
openvpn3> src/tests/unit/machine-id.cpp:99:44: note: 'std::setfill' is defined in header '<iomanip>'; did you forget to '#include <iomanip>'?
openvpn3> make[2]: *** [Makefile:4252: src/tests/unit/machine-id.o] Error 1
openvpn3> make[2]: Leaving directory '/build/source'
openvpn3> make[1]: *** [Makefile:4290: all-recursive] Error 1
openvpn3> make[1]: Leaving directory '/build/source'
openvpn3> make: *** [Makefile:2602: all] Error 2

Notify maintainers

@SCOTT-HAMILTON


Add a 👍 reaction to issues you find important.

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

No branches or pull requests

1 participant