Opened 5 years ago

Closed 4 years ago

#59517 closed defect (fixed)

mtxclient: error: no member named 'cerr' in namespace 'std'

Reported by: BobbyJackT Owned by: scarface-one (Sireesh Kodali)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: chrstphrchvz (Christopher Chavez)
Port: mtxclient

Description

I am installing Nheko with Mac Ports and when I get to the part when it is installing mtxclient it fails. I have included the log in the attachments.

Attachments (1)

main.log (1.6 MB) - added by BobbyJackT 5 years ago.

Download all attachments as: .zip

Change History (9)

Changed 5 years ago by BobbyJackT

Attachment: main.log added

comment:1 Changed 5 years ago by mf2k (Frank Schima)

In the future, please fill in the Port field with the port that actually fails to build and add the port maintainer(s) to Cc (port info --maintainers mtxclient), if any.

comment:2 Changed 5 years ago by mf2k (Frank Schima)

Owner: set to scarface-one
Port: mtxclient added
Status: newassigned

comment:3 Changed 5 years ago by mf2k (Frank Schima)

Your log file is garbled for some reason. The error appears to be:

:info:build /usr/bin/clang++   -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_mtxclient/mtxclient/work/mtxclient-2f519d2/include -isystem /opt/local/include -isystem /opt/local/include/olm  -pipe -Os -DNDEBUG -I/opt/local/include -stdlib=libc++ -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk         -Wall         -Wextra         -Werror         -pipe         -pedantic         -fsized-deallocation         -fdiagnostics-color=always         -Wunreachable-code -arch x86_64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk -mmacosx-version-min=10.14 -fPIC   -std=gnu++14 -o CMakeFiles/matrix_client.dir/lib/http/client.cpp.o -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_mtxclient/mtxclient/work/mtxclient-2f519d2/lib/http/client.cpp
:info:build In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_mtxclient/mtxclient/work/mtxclient-2f519d2/lib/http/session.cpp:1:
:info:build [1m/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_mtxclient/mtxclient/work/mtxclient-2f519d2/include/mtxclient/http/session.hpp:67:30: [0m[0;1;31merror: [0m[1mno member named 'cerr' in namespace 'std'[0m
:info:build                         std::cerr << ec.message() << "\n";
:info:build [0;1;32m                        ~~~~~^
:info:build [0m[1m/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_mtxclient/mtxclient/work/mtxclient-2f519d2/lib/http/session.cpp:61:22: [0m[0;1;31merror: [0m[1mno member named 'cout' in namespace 'std'[0m
:info:build                 std::cout << "shutdown: " << ec.message() << std::endl;
:info:build [0;1;32m                ~~~~~^
:info:build [0m2 errors generated.

comment:4 Changed 5 years ago by scarface-one (Sireesh Kodali)

Maintainer here. The thing about Nheko is that the origninal dev abandoned the project. Some others tried to revive it with "Nheko reborn", so this port will point to Nehko reborn. I'm just waiting to see how Nheko reborn shapes up. Worst case, I'll have this port switched to Nheko-reborn by the end November

comment:5 in reply to:  3 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

Summary: Cannot install Nheko with Mac Portsmtxclient: error: no member named 'cerr' in namespace 'std'

Replying to mf2k:

Your log file is garbled for some reason.

Not garbled, the build system just inadvisedly decided to output ANSI color codes. Stripping those out, the error is:

mtxclient-2f519d2/include/mtxclient/http/session.hpp:67:30: error: no member named 'cerr' in namespace 'std'
                        std::cerr << ec.message() << "\n";
                        ~~~~~^
mtxclient-2f519d2/lib/http/session.cpp:61:22: error: no member named 'cout' in namespace 'std'
                std::cout << "shutdown: " << ec.message() << std::endl;
                ~~~~~^
2 errors generated.

comment:6 Changed 4 years ago by chrstphrchvz (Christopher Chavez)

Possible fix: https://github.com/macports/macports-ports/pull/8378

Unless this port is finally getting updated in the near future…

comment:7 Changed 4 years ago by chrstphrchvz (Christopher Chavez)

Cc: chrstphrchvz added

comment:8 Changed 4 years ago by Sireesh Kodali <22617812+scarface-one@…>

Resolution: fixed
Status: assignedclosed

In 230f24954c636a0fd2e8217657a69b45547d74c6/macports-ports (master):

mtxclient: update to version 0.3.1

  • update mtxclient to version 0.3.1
  • track nheko-reborn fork, as the original is no longer maintained
  • set epoch to adjust for new versioning scheme
  • add compiler blacklist for variant header

Closes: #59517

Note: See TracTickets for help on using tickets.