Skip to content

Compiler errors for Sequoia 15.5 M1 Mac #19

@civictd04

Description

@civictd04

Hi, Running into these compiler issues using the xrdp-tumod homebrew formula, using latest XCode Command Line Tools or gcc@14:

Making all in ulalaca
  CXX      SocketStream.lo
  CXX      UnixSocket.lo
  CXX      XrdpStream.lo
  CXX      SystemCallException.lo
  CXX      SessionBrokerClient.lo
  CXX      XrdpTransport.lo
  CXX      IPCConnection.lo
  CXX      XrdpEvent.lo
  CXX      ProjectorClient.lo
  CXX      KeycodeMap.lo
  CXX      XrdpUlalacaPrivate.lo
  CXX      XrdpUlalacaPrivate.xrdpmodule.lo
In file included from XrdpUlalacaPrivate.cpp:7:
./XrdpUlalacaPrivate.hpp:134:26: error: no member named 'thread' in namespace 'std'; did you mean 'fread'?
  134 |     std::unique_ptr<std::thread> _updateThread;
      |                     ~~~~~^~~~~~
      |                          fread
/Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/c++/v1/cstdio:141:9: note: 'fread' declared here
  141 | using ::fread _LIBCPP_USING_IF_EXISTS;
      |         ^
In file included from XrdpUlalacaPrivate.cpp:7:
./XrdpUlalacaPrivate.hpp:134:21: error: template argument for template type parameter must be a type
  134 |     std::unique_ptr<std::thread> _updateThread;
      |                     ^~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/c++/v1/__memory/unique_ptr.h:138:17: note: template parameter is declared here
  138 | template <class _Tp, class _Dp = default_delete<_Tp> >
      |                 ^
/Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/c++/v1/__memory/unique_ptr.h:635:30: error: no matching constructor for initialization of 'ProjectorClient'
  635 |   return unique_ptr<_Tp>(new _Tp(std::forward<_Args>(__args)...));
      |                              ^   ~~~~~~~~~~~~~~~~~~~~~~~~~~~
XrdpUlalacaPrivate.cpp:65:29: note: in instantiation of function template specialization 'std::make_unique<ProjectorClient, XrdpUlalacaPrivate &, std::string &>' requested here
   65 |     _projectorClient = std::make_unique<ProjectorClient>(
      |                             ^
./ProjectorClient.hpp:23:14: note: candidate constructor not viable: no known conversion from 'XrdpUlalacaPrivate' to 'ProjectionTarget &' for 1st argument
   23 |     explicit ProjectorClient(
      |              ^
   24 |         ProjectionTarget &target,
      |         ~~~~~~~~~~~~~~~~~~~~~~~~
./ProjectorClient.hpp:27:5: note: candidate constructor not viable: requires 1 argument, but 2 were provided
   27 |     ProjectorClient(ProjectorClient &) = delete;
      |     ^               ~~~~~~~~~~~~~~~~~
  CXX      ulalaca.lo
3 errors generated.
make[2]: *** [XrdpUlalacaPrivate.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from XrdpUlalacaPrivate.xrdpmodule.cpp:3:
./XrdpUlalacaPrivate.hpp:134:26: error: no member named 'thread' in namespace 'std'; did you mean 'fread'?
  134 |     std::unique_ptr<std::thread> _updateThread;
      |                     ~~~~~^~~~~~
      |                          fread
/Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/c++/v1/cstdio:141:9: note: 'fread' declared here
  141 | using ::fread _LIBCPP_USING_IF_EXISTS;
      |         ^
In file included from XrdpUlalacaPrivate.xrdpmodule.cpp:3:
./XrdpUlalacaPrivate.hpp:134:21: error: template argument for template type parameter must be a type
  134 |     std::unique_ptr<std::thread> _updateThread;
      |                     ^~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/c++/v1/__memory/unique_ptr.h:138:17: note: template parameter is declared here
  138 | template <class _Tp, class _Dp = default_delete<_Tp> >
      |                 ^
2 errors generated.
make[2]: *** [XrdpUlalacaPrivate.xrdpmodule.lo] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

I'm on a M1 mac with Sequoia 15.5.

Any help truly appreciated.
Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions