fuzziqersoftware / phosg

C++ helpers for some common tasks
18 stars 17 forks source link

make error on macOS HS #33

Closed mileskanda closed 9 months ago

mileskanda commented 9 months ago

Hello, fuzziqersoftware.

I'm trying to compile phosg for newserv, but get error:

MacBook-Air:phosg mileskanda$ cmake . -- The C compiler identification is AppleClang 10.0.0.10001145 -- The CXX compiler identification is AppleClang 10.0.0.10001145 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Target architecture is x86_64 -- Configuring done -- Generating done -- Build files have been written to: /Users/mileskanda/pso_serv/phosg MacBook-Air:phosg mileskanda$ make [ 2%] Building CXX object CMakeFiles/phosg.dir/src/Arguments.cc.o In file included from /Users/mileskanda/pso_serv/phosg/src/Arguments.cc:1: In file included from /Users/mileskanda/pso_serv/phosg/src/Arguments.hh:8: In file included from /Users/mileskanda/pso_serv/phosg/src/Strings.hh:14: In file included from /Users/mileskanda/pso_serv/phosg/src/Encoding.hh:9: /Users/mileskanda/pso_serv/phosg/src/Types.hh:3:10: fatal error: 'compare' file not found

include

     ^~~~~~~~~

1 error generated. make[2]: [CMakeFiles/phosg.dir/src/Arguments.cc.o] Error 1 make[1]: [CMakeFiles/phosg.dir/all] Error 2 make: *** [all] Error 2 MacBook-Air:phosg mileskanda$

I'm using MacBook Air with macOS High Sierra 10.13.6 with Core2Duo and 2G RAM, command line tools are installed, Xcode 10.2 is installed too. May this old hardware be the cause of this errors? Also tried install phosg through MacPorts, get this error:

MacBook-Air:phosg mileskanda$ sudo port install phosg Password: ---> Computing dependencies for phosg ---> Fetching archive for phosg ---> Attempting to fetch phosg-2023.03.04_0.darwin_17.x86_64.tbz2 from http://cph.dk.packages.macports.org/phosg ---> Attempting to fetch phosg-2023.03.04_0.darwin_17.x86_64.tbz2 from http://nue.de.packages.macports.org/phosg ---> Attempting to fetch phosg-2023.03.04_0.darwin_17.x86_64.tbz2 from http://fra.de.packages.macports.org/phosg ---> Building phosg Error: Failed to build phosg: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_phosg/phosg/main.log for details. Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug. Error: Processing of port phosg failed MacBook-Air:phosg mileskanda$

Log file is attached. main.log

Thank you.

mileskanda commented 9 months ago

Sorry, didn't see pull requests, that up to Catalina this doesn't work now.