Menu

#70 compilation on os x

closed-wont-fix
Tracker (27)
3
2010-12-09
2010-08-23
yep
No

hello,

compilation of r2072 on mac os x 10.6.4 using macports resulted in this error:

./make.sh
connection.cpp: In member function ‘void Cconnection::read(const std::string&)’:
connection.cpp:254: error: ‘MSG_NOSIGNAL’ was not declared in this scope

i then added

#ifndef MSG_NOSIGNAL
const int MSG_NOSIGNAL = 0;
#endif

to connection.cpp to get it to compile.

i don't understand at the moment why this define is undeclared but i guess it's easy to fix.

by the way, i had to change the following in make.sh for compilation on mac os x:

`mysql_config5 --libs` && strip xbt_tracker
instead of
`mysql_config --libs` && strip xbt_tracker

add macports header location:
-I/opt/local/include/mysql5/ -I/opt/local/include/

remove epoll flag:
-DEPOLL

thanks for creating this tracker!

Discussion

  • yep

    yep - 2010-08-23
    • priority: 5 --> 3
     
  • Olaf van der Spek

    You're welcome. Not sure what to do about this though.

     
  • Olaf van der Spek

    You might want to submit a report for the missing MSG_NOSIGNAL to Apple.

     
  • Olaf van der Spek

    • status: open --> closed-wont-fix
     

Log in to post a comment.

Auth0 Logo