Skip to content

GitLab

    • GitLab: the DevOps platform
    • Explore GitLab
    • Install GitLab
    • How GitLab compares
    • Get started
    • GitLab docs
    • GitLab Learn
  • Pricing
  • Talk to an expert
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
    • Menu
    Projects Groups Snippets
  • Sign up now
  • Login
  • Sign in / Register
  • thehub thehub
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Activity
  • Graph
  • Jobs
  • Commits
Collapse sidebar
  • Flowee
  • thehubthehub
  • Merge requests
  • !3
The source project of this merge request has been removed.

Mac build error

Merged DesWurstes requested to merge (removed):master into master Aug 07, 2018
  • Overview 3
  • Changes 2

The build failed on my Mac:

[  7%] Performing install step for 'leveldb'
cp: the -R and -r options may not be specified together.
make[2]: *** [libs/3rdparty/leveldb-prefix/src/leveldb-stamp/leveldb-install] Error 1
make[1]: *** [libs/3rdparty/CMakeFiles/leveldb.dir/all] Error 2
make: *** [all] Error 2

I looked it up online: On Linux, -R and -r do the same thing. On Mac, -R is the equivalent of them and -r is an obsolete parameter:

COMPATIBILITY
     Historic versions of the cp utility had a -r option.  This implementation supports that option; however,
     its use is strongly discouraged, as it does not correctly copy special files, symbolic links, or fifo's.

Here's another error:

[ 47%] Building CXX object libs/server/CMakeFiles/flowee_server.dir/netbase.cpp.o
/Users/mac/Downloads/thehub-master/libs/server/netbase.cpp: In function 'bool Socks5(const string&, int, const ProxyCredentials*, SOCKET&)':
/Users/mac/Downloads/thehub-master/libs/server/netbase.cpp:327:90: error: 'MSG_NOSIGNAL' was not declared in this scope
     ssize_t ret = send(hSocket, (const char*)begin_ptr(vSocks5Init), vSocks5Init.size(), MSG_NOSIGNAL);
                                                                                          ^~~~~~~~~~~~
/Users/mac/Downloads/thehub-master/libs/server/netbase.cpp:327:90: note: suggested alternative: 'SIGEV_SIGNAL'
     ssize_t ret = send(hSocket, (const char*)begin_ptr(vSocks5Init), vSocks5Init.size(), MSG_NOSIGNAL);
                                                                                          ^~~~~~~~~~~~
                                                                                          SIGEV_SIGNAL
make[2]: *** [libs/server/CMakeFiles/flowee_server.dir/netbase.cpp.o] Error 1
make[1]: *** [libs/server/CMakeFiles/flowee_server.dir/all] Error 2
make: *** [all] Error 2

Update: I found that its equivalent on Mac is SO_NOSIGPIPE and added the fix

Edited Aug 07, 2018 by DesWurstes
Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: master