-
Notifications
You must be signed in to change notification settings - Fork 39
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
compilation of nx-libs fails on OpenBSD clang compiler #1044
Comments
Hmm, we are successfully compiling using clang in GitHub actions. In what
file do see this line?
Uli
sandeep-gh ***@***.***> schrieb am Do., 24. März 2022, 07:40:
… Using OpenBSD clang version 11.1.0 compiler for Target:
aarch64-unknown-openbsd7. to compile nx-libs. It fails to compile due to
type mismatch I guess. Is there a workaround/easy fix.
if (bind(newFD, addr, addrlen) == -1)
~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~
/usr/include/c++/v1/system_error:390:1: note: candidate function not viable: no known conversion from '__bind<int &, sockaddr *&, unsigned int &>' to 'const std::__1::error_code' for 1st argument
operator==(const error_code& __x, const error_code& __y) _NOEXCEPT
^
/usr/include/c++/v1/system_error:397:1: note: candidate function not viable: no known conversion from '__bind<int &, sockaddr *&, unsigned int &>' to 'const std::__1::error_code' for 1st argument
operator==(const error_code& __x, const error_condition& __y) _NOEXCEPT
^
/usr/include/c++/v1/system_error:405:1: note: candidate function not viable: no known conversion from '__bind<int &, sockaddr *&, unsigned int &>' to 'const std::__1::error_condition' for 1st argument
operator==(const error_condition& __x, const error_code& __y) _NOEXCEPT
^
/usr/include/c++/v1/system_error:412:1: note: candidate function not viable: no known conversion from '__bind<int &, sockaddr *&, unsigned int &>' to 'const std::__1::error_condition' for 1st argument
operator==(const error_condition& __x, const error_condition& __y) _NOEXCEPT
^
/usr/include/c++/v1/utility:576:1: note: candidate template ignored: could not match 'pair' against '__bind'
operator==(const pair<_T1,_T2>& __x, const pair<_T1,_T2>& __y)```
—
Reply to this email directly, view it on GitHub
<#1044>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABQHBZB2FC36WRAZ34RH533VBQE5DANCNFSM5RQEWHIQ>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
My bad, didn't copy the file name error message. Its in nxcomp/src/Loop.cpp.
|
This problem also prevents building on macOS; here is the MacPorts bug report: https://trac.macports.org/ticket/71014 |
This answer explains the problem:
I see this here: Line 29 in b6fae31
and here: Line 41 in b6fae31
and here: Line 34 in b6fae31
These should be removed and any references to
This does work around the problem, but is not the fix I recommend: --- nxcomp/src/Loop.cpp.orig 2019-08-27 08:46:39.000000000 -0500
+++ nxcomp/src/Loop.cpp 2024-11-22 20:22:54.000000000 -0600
@@ -4221,7 +4221,7 @@
goto SetupSocketError;
}
- if (bind(newFD, addr, addrlen) == -1)
+ if (::bind(newFD, addr, addrlen) == -1)
{
nxfatal << "Loop: PANIC! Call to bind failed for " << label
<< ". Error is " << EGET() |
Using OpenBSD clang version 11.1.0 compiler for
Target: aarch64-unknown-openbsd7.
to compile nx-libs. It fails to compile due to type mismatch I guess. Is there a workaround/easy fix.The text was updated successfully, but these errors were encountered: