Opened 16 months ago

Closed 14 months ago

Last modified 13 months ago

#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)

main.log (245.9 KB) - added by ashterenli 16 months ago.
build log

Download all attachments as: .zip

Change History (9)

Changed 16 months ago by ashterenli

Attachment: main.log added

build log

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: newassigned
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 directorynxcomp @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 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 in reply to:  2 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 nxcomp

But 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 Changed 14 months ago by ryandesign (Ryan Carsten Schmidt)

In 3255e62230a15f41862fe86a1038c13ca39a5bd7/macports-ports (master):

nxcomp: Rename VERSION in post-patch not pre-build

See: #71014

comment:6 Changed 14 months ago by ryandesign (Ryan Carsten Schmidt)

comment:7 Changed 14 months ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: assignedclosed

In d6b40b768ef59722b55915447a87111cdee4f2e7/macports-ports (master):

nxcomp: Use the right bind function

Closes: #71014

comment:8 in reply to:  5 Changed 13 months ago by ryandesign (Ryan Carsten Schmidt)

Replying to ryandesign:

In 3255e62230a15f41862fe86a1038c13ca39a5bd7/macports-ports (master):

nxcomp: Rename VERSION in post-patch not pre-build

See: #71014

This turned out to be a mistake; see #71392.

Note: See TracTickets for help on using tickets.