#71014 closed defect (fixed)
nxcomp @3.5.99.22_1: error: invalid operands to binary expression ('__bind<int &, sockaddr *&, unsigned int &>' and 'int')
| Reported by: | ashterenli | Owned by: | Ionic (Mihai Moldovan) |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | |
| Keywords: | sequoia | Cc: | manfredu (Manfred Usselmann) |
| Port: | nxcomp |
Description (last modified by ryandesign (Ryan Carsten Schmidt))
rebuilding ports after the mac os update to Sequoia 15.0:
% sudo port upgrade outdated ---> Computing dependencies for nxcomp ---> Fetching archive for nxcomp ---> Attempting to fetch nxcomp-3.5.99.22_1.darwin_24.arm64.tbz2 from https://mse.uk.packages.macports.org/nxcomp ---> Attempting to fetch nxcomp-3.5.99.22_1.darwin_24.arm64.tbz2 from https://packages.macports.org/nxcomp ---> Attempting to fetch nxcomp-3.5.99.22_1.darwin_24.arm64.tbz2 from https://vie.at.packages.macports.org/nxcomp ---> Building nxcomp Error: Failed to build nxcomp: error renaming "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_nxcomp/nxcomp/work/nx-libs-3.5.99.22/nxcomp/VERSION": no such file or directory Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_nxcomp/nxcomp/main.log for details.
Attachments (1)
Change History (9)
Changed 16 months ago by ashterenli
comment:1 Changed 16 months ago by ryandesign (Ryan Carsten Schmidt)
| Description: | modified (diff) |
|---|---|
| Keywords: | sequoia added |
| Owner: | set to Ionic |
| Port: | nxcomp added |
| Status: | new → assigned |
| Summary: | darwin 24, nxcomp 3.5.99.22_1, Error: Failed to build nxcomp: error renaming "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_nxcomp/nxcomp/work/nx-libs-3.5.99.22/nxcomp/VERSION": no such file or directory → nxcomp @3.5.99.22_1: error: invalid operands to binary expression ('__bind<int &, sockaddr *&, unsigned int &>' and 'int') |
Looks like there are two problems here.
Your main.log file contains several attempts to install this port. The one that started from a clean slate has this error:
Loop.cpp:4224:34: error: invalid operands to binary expression ('__bind<int &, sockaddr *&, unsigned int &>' and 'int')
4224 | if (bind(newFD, addr, addrlen) == -1)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~
This a probably due to the new Xcode's pickier version of clang.
After that, you tried again without cleaning first, and it failed with:
Error: Failed to build nxcomp: error renaming "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_nxcomp/nxcomp/work/nx-libs-3.5.99.22/nxcomp/VERSION": no such file or directory
This is a mistake in how we worked around a previous problem in [84f6dc45a4d78fc612d817332668e396353975c4/macports-ports]. We rename the VERSION file to avoid a conflict with C++20 compilers, but it should happen before the build phase, not at the beginning of the build phase. The patch phase would be a good place to do that.
comment:2 follow-up: 3 Changed 14 months ago by manfredu (Manfred Usselmann)
If have got the same issue. It prevents me from installing x2go client. I mean the first problem. The second one can easily be worked around by
sudo port clean --all nxcomp
But how can I work around the first one?
Thank you.
comment:3 Changed 14 months ago by manfredu (Manfred Usselmann)
Replying to manfredu:
If have got the same issue. It prevents me from installing x2go client. I mean the first problem. The second one can easily be worked around by
sudo port clean --all nxcompBut how can I work around the first one?
Thank you.
I have now installed Xcode 16.1 and Command Line Tools for Xcode 16.1. The issue remains.
comment:4 Changed 14 months ago by ryandesign (Ryan Carsten Schmidt)
| Cc: | manfredu added |
|---|
Has duplicate #71375.
comment:5 follow-up: 8 Changed 14 months ago by ryandesign (Ryan Carsten Schmidt)
comment:6 Changed 14 months ago by ryandesign (Ryan Carsten Schmidt)
Here is the upstream bug report: https://github.com/ArcticaProject/nx-libs/issues/1044
comment:7 Changed 14 months ago by ryandesign (Ryan Carsten Schmidt)
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
comment:8 Changed 13 months ago by ryandesign (Ryan Carsten Schmidt)
Replying to ryandesign:
In 3255e62230a15f41862fe86a1038c13ca39a5bd7/macports-ports (master):
This turned out to be a mistake; see #71392.

build log