Jump to content

My first time on Mac OS X


Recommended Posts

  • 40 years later...

Hello everyone, this is actually my first time with Mac OS X and I tried to compile MaNGOS on rev 10309 but I got these errors:

In file included from ../../../../src/shared/Database/DatabaseEnv.h:39,

from ../../../../src/shared/Database/DatabaseMysql.cpp:25:

../../../../src/shared/Database/../../shared/Database/QueryResultMysql.h:30:19: error: mysql.h: No such file or directory

In file included from ../../../../src/shared/Database/DatabaseEnv.h:39,

from ../../../../src/shared/Database/Database.cpp:19:

../../../../src/shared/Database/../../shared/Database/QueryResultMysql.h:36: error: expected `)' before ‘*’ token

../../../../src/shared/Database/../../shared/Database/QueryResultMysql.h:43: error: ‘enum_field_types’ has not been declared

../../../../src/shared/Database/../../shared/Database/QueryResultMysql.h:46: error: ISO C++ forbids declaration of ‘MYSQL_RES’ with no type

../../../../src/shared/Database/../../shared/Database/QueryResultMysql.h:46: error: expected ‘;’ before ‘*’ token

In file included from ../../../../src/shared/Database/DatabaseEnv.h:41,

from ../../../../src/shared/Database/Database.cpp:19:

../../../../src/shared/Database/../../shared/Database/DatabaseMysql.h:72: error: ISO C++ forbids declaration of ‘MYSQL’ with no type

../../../../src/shared/Database/../../shared/Database/DatabaseMysql.h:72: error: expected ‘;’ before ‘*’ token

../../../../src/shared/Database/../../shared/Database/DatabaseMysql.h:77: error: ‘MYSQL_RES’ has not been declared

../../../../src/shared/Database/../../shared/Database/DatabaseMysql.h:77: error: ‘MYSQL_FIELD’ has not been declared

../../../../src/shared/Database/../../shared/Database/DatabaseMysql.h: In member function ‘virtual DatabaseMysql::operator bool() const’:

../../../../src/shared/Database/../../shared/Database/DatabaseMysql.h:58: error: ‘mMysql’ was not declared in this scope

make[5]: *** [Database.o] Error 1

make[5]: *** Waiting for unfinished jobs....

In file included from ../../../../src/shared/Database/DatabaseEnv.h:39,

from ../../../../src/shared/Database/DatabaseMysql.cpp:25:

../../../../src/shared/Database/../../shared/Database/QueryResultMysql.h:36: error: expected `)' before ‘*’ token

../../../../src/shared/Database/../../shared/Database/QueryResultMysql.h:43: error: ‘enum_field_types’ has not been declared

../../../../src/shared/Database/../../shared/Database/QueryResultMysql.h:46: error: ISO C++ forbids declaration of ‘MYSQL_RES’ with no type

../../../../src/shared/Database/../../shared/Database/QueryResultMysql.h:46: error: expected ‘;’ before ‘*’ token

In file included from ../../../../src/shared/Database/DatabaseEnv.h:41,

from ../../../../src/shared/Database/DatabaseMysql.cpp:25:

../../../../src/shared/Database/../../shared/Database/DatabaseMysql.h:72: error: ISO C++ forbids declaration of ‘MYSQL’ with no type

../../../../src/shared/Database/../../shared/Database/DatabaseMysql.h:72: error: expected ‘;’ before ‘*’ token

../../../../src/shared/Database/../../shared/Database/DatabaseMysql.h:77: error: ‘MYSQL_RES’ has not been declared

../../../../src/shared/Database/../../shared/Database/DatabaseMysql.h:77: error: ‘MYSQL_FIELD’ has not been declared

../../../../src/shared/Database/../../shared/Database/DatabaseMysql.h: In member function ‘virtual DatabaseMysql::operator bool() const’:

../../../../src/shared/Database/../../shared/Database/DatabaseMysql.h:58: error: ‘mMysql’ was not declared in this scope

../../../../src/shared/Database/DatabaseMysql.cpp: In member function ‘virtual void DatabaseMysql::ThreadStart()’:

../../../../src/shared/Database/DatabaseMysql.cpp:32: error: ‘mysql_thread_init’ was not declared in this scope

../../../../src/shared/Database/DatabaseMysql.cpp: In member function ‘virtual void DatabaseMysql::ThreadEnd()’:

../../../../src/shared/Database/DatabaseMysql.cpp:37: error: ‘mysql_thread_end’ was not declared in this scope

../../../../src/shared/Database/DatabaseMysql.cpp: In constructor ‘DatabaseMysql::DatabaseMysql()’:

../../../../src/shared/Database/DatabaseMysql.cpp:42: error: class ‘DatabaseMysql’ does not have any field named ‘mMysql’

../../../../src/shared/Database/DatabaseMysql.cpp:48: error: ‘mysql_library_init’ was not declared in this scope

../../../../src/shared/Database/DatabaseMysql.cpp:50: error: ‘mysql_thread_safe’ was not declared in this scope

../../../../src/shared/Database/DatabaseMysql.cpp: In destructor ‘virtual DatabaseMysql::~DatabaseMysql()’:

../../../../src/shared/Database/DatabaseMysql.cpp:64: error: ‘mMysql’ was not declared in this scope

../../../../src/shared/Database/DatabaseMysql.cpp:65: error: ‘mysql_close’ was not declared in this scope

../../../../src/shared/Database/DatabaseMysql.cpp:69: error: ‘mysql_library_end’ was not declared in this scope

../../../../src/shared/Database/DatabaseMysql.cpp: In member function ‘virtual bool DatabaseMysql::Initialize(const char*)’:

../../../../src/shared/Database/DatabaseMysql.cpp:79: error: ‘MYSQL’ was not declared in this scope

../../../../src/shared/Database/DatabaseMysql.cpp:79: error: ‘mysqlInit’ was not declared in this scope

../../../../src/shared/Database/DatabaseMysql.cpp:80: error: ‘mysql_init’ was not declared in this scope

../../../../src/shared/Database/DatabaseMysql.cpp:110: error: ‘MYSQL_SET_CHARSET_NAME’ was not declared in this scope

../../../../src/shared/Database/DatabaseMysql.cpp:110: error: ‘mysql_options’ was not declared in this scope

../../../../src/shared/Database/DatabaseMysql.cpp:127: error: ‘MYSQL_PROTOCOL_SOCKET’ was not declared in this scope

../../../../src/shared/Database/DatabaseMysql.cpp:128: error: ‘MYSQL_OPT_PROTOCOL’ was not declared in this scope

../../../../src/shared/Database/DatabaseMysql.cpp:140: error: ‘mMysql’ was not declared in this scope

../../../../src/shared/Database/DatabaseMysql.cpp:141: error: ‘mysql_real_connect’ was not declared in this scope

../../../../src/shared/Database/DatabaseMysql.cpp:147: error: ‘mysql_get_client_info’ was not declared in this scope

../../../../src/shared/Database/DatabaseMysql.cpp:148: error: ‘mysql_get_server_info’ was not declared in this scope

../../../../src/shared/Database/DatabaseMysql.cpp:158: error: ‘mysql_autocommit’ was not declared in this scope

../../../../src/shared/Database/DatabaseMysql.cpp:174: error: ‘mysql_error’ was not declared in this scope

../../../../src/shared/Database/DatabaseMysql.cpp:175: error: ‘mysql_close’ was not declared in this scope

../../../../src/shared/Database/DatabaseMysql.cpp: At global scope:

../../../../src/shared/Database/DatabaseMysql.cpp:180: error: ‘MYSQL_RES’ has not been declared

../../../../src/shared/Database/DatabaseMysql.cpp:180: error: ‘MYSQL_FIELD’ has not been declared

../../../../src/shared/Database/DatabaseMysql.cpp: In member function ‘bool DatabaseMysql::_Query(const char*, int**, int**, uint64*, uint32*)’:

../../../../src/shared/Database/DatabaseMysql.cpp:182: error: ‘mMysql’ was not declared in this scope

../../../../src/shared/Database/DatabaseMysql.cpp:191: error: ‘mMysql’ was not declared in this scope

../../../../src/shared/Database/DatabaseMysql.cpp:191: error: ‘mysql_query’ was not declared in this scope

../../../../src/shared/Database/DatabaseMysql.cpp:194: error: ‘mysql_error’ was not declared in this scope

../../../../src/shared/Database/DatabaseMysql.cpp:202: error: ‘mMysql’ was not declared in this scope

../../../../src/shared/Database/DatabaseMysql.cpp:202: error: ‘mysql_store_result’ was not declared in this scope

../../../../src/shared/Database/DatabaseMysql.cpp:203: error: ‘mysql_affected_rows’ was not declared in this scope

../../../../src/shared/Database/DatabaseMysql.cpp:204: error: ‘mysql_field_count’ was not declared in this scope

../../../../src/shared/Database/DatabaseMysql.cpp:213: error: ‘mysql_free_result’ was not declared in this scope

../../../../src/shared/Database/DatabaseMysql.cpp:217: error: ‘mysql_fetch_fields’ was not declared in this scope

../../../../src/shared/Database/DatabaseMysql.cpp: In member function ‘virtual QueryResult* DatabaseMysql::Query(const char*)’:

../../../../src/shared/Database/DatabaseMysql.cpp:223: error: ‘MYSQL_RES’ was not declared in this scope

../../../../src/shared/Database/DatabaseMysql.cpp:223: error: ‘result’ was not declared in this scope

../../../../src/shared/Database/DatabaseMysql.cpp:224: error: ‘MYSQL_FIELD’ was not declared in this scope

../../../../src/shared/Database/DatabaseMysql.cpp:224: error: ‘fields’ was not declared in this scope

../../../../src/shared/Database/DatabaseMysql.cpp: In member function ‘virtual QueryNamedResult* DatabaseMysql::QueryNamed(const char*)’:

../../../../src/shared/Database/DatabaseMysql.cpp:240: error: ‘MYSQL_RES’ was not declared in this scope

../../../../src/shared/Database/DatabaseMysql.cpp:240: error: ‘result’ was not declared in this scope

../../../../src/shared/Database/DatabaseMysql.cpp:241: error: ‘MYSQL_FIELD’ was not declared in this scope

../../../../src/shared/Database/DatabaseMysql.cpp:241: error: ‘fields’ was not declared in this scope

../../../../src/shared/Database/DatabaseMysql.cpp: In member function ‘virtual bool DatabaseMysql::Execute(const char*)’:

../../../../src/shared/Database/DatabaseMysql.cpp:261: error: ‘mMysql’ was not declared in this scope

../../../../src/shared/Database/DatabaseMysql.cpp: In member function ‘virtual bool DatabaseMysql::DirectExecute(const char*)’:

../../../../src/shared/Database/DatabaseMysql.cpp:284: error: ‘mMysql’ was not declared in this scope

../../../../src/shared/Database/DatabaseMysql.cpp:293: error: ‘mMysql’ was not declared in this scope

../../../../src/shared/Database/DatabaseMysql.cpp:293: error: ‘mysql_query’ was not declared in this scope

../../../../src/shared/Database/DatabaseMysql.cpp:296: error: ‘mysql_error’ was not declared in this scope

../../../../src/shared/Database/DatabaseMysql.cpp: In member function ‘bool DatabaseMysql::_TransactionCmd(const char*)’:

../../../../src/shared/Database/DatabaseMysql.cpp:311: error: ‘mMysql’ was not declared in this scope

../../../../src/shared/Database/DatabaseMysql.cpp:311: error: ‘mysql_query’ was not declared in this scope

../../../../src/shared/Database/DatabaseMysql.cpp:314: error: ‘mysql_error’ was not declared in this scope

../../../../src/shared/Database/DatabaseMysql.cpp: In member function ‘virtual bool DatabaseMysql::BeginTransaction()’:

../../../../src/shared/Database/DatabaseMysql.cpp:326: error: ‘mMysql’ was not declared in this scope

../../../../src/shared/Database/DatabaseMysql.cpp: In member function ‘virtual bool DatabaseMysql::CommitTransaction()’:

../../../../src/shared/Database/DatabaseMysql.cpp:358: error: ‘mMysql’ was not declared in this scope

../../../../src/shared/Database/DatabaseMysql.cpp: In member function ‘virtual bool DatabaseMysql::RollbackTransaction()’:

../../../../src/shared/Database/DatabaseMysql.cpp:386: error: ‘mMysql’ was not declared in this scope

../../../../src/shared/Database/DatabaseMysql.cpp: In member function ‘virtual long unsigned int DatabaseMysql::escape_string(char*, const char*, long unsigned int)’:

../../../../src/shared/Database/DatabaseMysql.cpp:412: error: ‘mMysql’ was not declared in this scope

../../../../src/shared/Database/DatabaseMysql.cpp:415: error: ‘mMysql’ was not declared in this scope

../../../../src/shared/Database/DatabaseMysql.cpp:415: error: ‘mysql_real_escape_string’ was not declared in this scope

Please someone may help me?

Link to comment
Share on other sites

  • 2 months later...
Undefined symbols:

"_Gestalt", referenced from:

G3D::System::init() in libg3dlite.a(System.o)

G3D::System::init() in libg3dlite.a(System.o)

ld: symbol(s) not found

collect2: ld returned 1 exit status

make[3]: *** [mangos-worldd] Error 1

make[2]: *** [all-recursive] Error 1

make[1]: *** [all-recursive] Error 1

make: *** [all] Error 2

:( what to do??

please help

Link to comment
Share on other sites

diff --git a/dep/src/g3dlite/prompt.cpp b/dep/src/g3dlite/prompt.cpp
index d78f8b7..df3da50 100644
--- a/dep/src/g3dlite/prompt.cpp
+++ b/dep/src/g3dlite/prompt.cpp
@@ -21,6 +21,7 @@
#    define _getch getchar
#endif

+#undef G3D_OSX
#if 0 /* MANGOS exclude for disabled gui prompt */
#ifdef G3D_OSX

This should do it.

Link to comment
Share on other sites

  • 2 weeks later...
diff --git a/dep/src/g3dlite/prompt.cpp b/dep/src/g3dlite/prompt.cpp
index d78f8b7..df3da50 100644
--- a/dep/src/g3dlite/prompt.cpp
+++ b/dep/src/g3dlite/prompt.cpp
@@ -21,6 +21,7 @@
#    define _getch getchar
#endif

+#undef G3D_OSX
#if 0 /* MANGOS exclude for disabled gui prompt */
#ifdef G3D_OSX

This should do it.

First all thank you for help,

I tried your way but I still got errors:

../../../../dep/ACE_wrappers/ace/DLL_Manager.cpp:437: error: 'ACE_LIB_TEXT' was not declared in this scope

make[5]: *** [libACE_la-DLL_Manager.lo] Error 1

make[4]: *** [install-recursive] Error 1

make[3]: *** [install] Error 2

make[2]: *** [install-recursive] Error 1

make[1]: *** [install-recursive] Error 1

make: *** [install-recursive] Error 1

Shins-MacBookPro:objdir Shin$

Please help me, I really need to get mangos compile for my work on UDB 'cause I got only my Mac atm.. I can't test anything without mangos

Link to comment
Share on other sites

  • 2 weeks later...

I can confirm that I am receiving a similar error to the above post.

../../../../dep/ACE_wrappers/ace/DLL_Manager.cpp:437: error: 'ACE_LIB_TEXT' was not declared in this scope

make[6]: *** [libACE_la-DLL_Manager.lo] Error 1

make[6]: *** Waiting for unfinished jobs....

mv -f .deps/libACE_la-Dirent.Tpo .deps/libACE_la-Dirent.Plo

make[5]: *** [all-recursive] Error 1

make[4]: *** [all] Error 2

make[3]: *** [all-recursive] Error 1

make[2]: *** [all-recursive] Error 1

make[1]: *** [all-recursive] Error 1

make: *** [all] Error 2

Any help would be appreciated.

Link to comment
Share on other sites

  • 2 weeks later...
I can confirm that I am receiving a similar error to the above post.
../../../../dep/ACE_wrappers/ace/DLL_Manager.cpp:437: error: 'ACE_LIB_TEXT' was not declared in this scope

make[6]: *** [libACE_la-DLL_Manager.lo] Error 1

make[6]: *** Waiting for unfinished jobs....

mv -f .deps/libACE_la-Dirent.Tpo .deps/libACE_la-Dirent.Plo

make[5]: *** [all-recursive] Error 1

make[4]: *** [all] Error 2

make[3]: *** [all-recursive] Error 1

make[2]: *** [all-recursive] Error 1

make[1]: *** [all-recursive] Error 1

make: *** [all] Error 2

Any help would be appreciated.

Is that happening during the 'make install'? If so, it's a permission error. Use 'sudo make install' or make sure your destination directory has the proper ownership/permissions to be written to. A tip: if install is the problem and you do use sudo to force the issue, make sure to chown the files to the user running it (you). Running Mangos as root isn't all that safe.

Link to comment
Share on other sites

Hi,

(Glad to be back!)

I wanted to update my MaNGOS install (3 month without doing it) on my OS X.

I got the same error as Shin Darth :

/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I../../../../dep/ACE_wrappers -I.. -DACE_BUILD_DLL -D_REENTRANT -D_THREAD_SAFE -W -Wall -Wpointer-arith -g -O2 -pipe -O -MT libACE_la-DLL_Manager.lo -MD -MP -MF .deps/libACE_la-DLL_Manager.Tpo -c -o libACE_la-DLL_Manager.lo `test -f 'DLL_Manager.cpp' || echo '../../../../dep/ACE_wrappers/ace/'`DLL_Manager.cpp

libtool: compile: g++ -DHAVE_CONFIG_H -I../../../../dep/ACE_wrappers -I.. -DACE_BUILD_DLL -D_REENTRANT -D_THREAD_SAFE -W -Wall -Wpointer-arith -g -O2 -pipe -O -MT libACE_la-DLL_Manager.lo -MD -MP -MF .deps/libACE_la-DLL_Manager.Tpo -c ../../../../dep/ACE_wrappers/ace/DLL_Manager.cpp -fno-common -DPIC -o .libs/libACE_la-DLL_Manager.o

mv -f .deps/libACE_la-DLL.Tpo .deps/libACE_la-DLL.Plo

/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I../../../../dep/ACE_wrappers -I.. -DACE_BUILD_DLL -D_REENTRANT -D_THREAD_SAFE -W -Wall -Wpointer-arith -g -O2 -pipe -O -MT libACE_la-Date_Time.lo -MD -MP -MF .deps/libACE_la-Date_Time.Tpo -c -o libACE_la-Date_Time.lo `test -f 'Date_Time.cpp' || echo '../../../../dep/ACE_wrappers/ace/'`Date_Time.cpp

libtool: compile: g++ -DHAVE_CONFIG_H -I../../../../dep/ACE_wrappers -I.. -DACE_BUILD_DLL -D_REENTRANT -D_THREAD_SAFE -W -Wall -Wpointer-arith -g -O2 -pipe -O -MT libACE_la-Date_Time.lo -MD -MP -MF .deps/libACE_la-Date_Time.Tpo -c ../../../../dep/ACE_wrappers/ace/Date_Time.cpp -fno-common -DPIC -o .libs/libACE_la-Date_Time.o

../../../../dep/ACE_wrappers/ace/DLL_Manager.cpp: In member function 'void ACE_DLL_Handle::get_dll_names(const ACE_TCHAR*, ACE_Array<ACE_String_Base<char> >&)':

../../../../dep/ACE_wrappers/ace/DLL_Manager.cpp:437: error: 'ACE_LIB_TEXT' was not declared in this scope

make[6]: *** [libACE_la-DLL_Manager.lo] Error 1

Any idea?

Thanks

Link to comment
Share on other sites

  • 4 weeks later...
  • 3 weeks later...

Rev 10999:

CXX soapC.o

CXX soapServer.o

CXXLD mangos-worldd

Undefined symbols:

"_Gestalt", referenced from:

G3D::System::init() in libg3dlite.a(System.o)

G3D::System::init() in libg3dlite.a(System.o)

ld: symbol(s) not found

collect2: ld returned 1 exit status

make[3]: *** [mangos-worldd] Error 1

make[2]: *** [all-recursive] Error 1

make[1]: *** [all-recursive] Error 1

make: *** [all] Error 2

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use