Page 1 of 1

Ubunto 7 Errors while compiling while following Wiki walkthr

Posted: Thu Feb 07, 2008 9:14 am
by intodesi
Ok this is long, I followed Ubunto compilation instructions to a Q all the way down to the make command this is what i get after that.

Code: Select all

g++ -c -Wall -Wuninitialized -Wwrite-strings -Wcast-qual  -Wcomment -Wcast-align -Wno-deprecated -g -march=i686 -O -pthread -pipe -DFX -D_GNU_SOURCE -DINVERSEXY -DEQ2 -DWORLD -I/usr/include/mysql -I/usr/mysql/include ../common/timer.cpp -o ../common/timer.o
../common/timer.cpp:191:2: warning: no newline at end of file
g++ -c -Wall -Wuninitialized -Wwrite-strings -Wcast-qual  -Wcomment -Wcast-align -Wno-deprecated -g -march=i686 -O -pthread -pipe -DFX -D_GNU_SOURCE -DINVERSEXY -DEQ2 -DWORLD -I/usr/include/mysql -I/usr/mysql/include ../common/packet_dump.cpp -o ../common/packet_dump.o
../common/opcodemgr.h:48: warning: ‘class OpcodeManager::OpcodeSetStrategy’ has virtual functions but non-virtual destructor
../common/opcodemgr.h:109: warning: ‘class RegularOpcodeManager::NormalMemStrategy’ has virtual functions but non-virtual destructor
../common/../common/servertalk.h: In member function ‘std::string TableQuery::GetQueriesString()’:
../common/../common/servertalk.h:381: warning: comparison between signed and unsigned integer expressions
../common/../common/servertalk.h: In destructor ‘TableDataQuery::~TableDataQuery()’:
../common/../common/servertalk.h:460: warning: comparison between signed and unsigned integer expressions
g++ -c -Wall -Wuninitialized -Wwrite-strings -Wcast-qual  -Wcomment -Wcast-align -Wno-deprecated -g -march=i686 -O -pthread -pipe -DFX -D_GNU_SOURCE -DINVERSEXY -DEQ2 -DWORLD -I/usr/include/mysql -I/usr/mysql/include races.cpp -o races.o
g++ -c -Wall -Wuninitialized -Wwrite-strings -Wcast-qual  -Wcomment -Wcast-align -Wno-deprecated -g -march=i686 -O -pthread -pipe -DFX -D_GNU_SOURCE -DINVERSEXY -DEQ2 -DWORLD -I/usr/include/mysql -I/usr/mysql/include ../common/unix.cpp -o ../common/unix.o
g++ -c -Wall -Wuninitialized -Wwrite-strings -Wcast-qual  -Wcomment -Wcast-align -Wno-deprecated -g -march=i686 -O -pthread -pipe -DFX -D_GNU_SOURCE -DINVERSEXY -DEQ2 -DWORLD -I/usr/include/mysql -I/usr/mysql/include ../common/Mutex.cpp -o ../common/Mutex.o
g++ -c -Wall -Wuninitialized -Wwrite-strings -Wcast-qual  -Wcomment -Wcast-align -Wno-deprecated -g -march=i686 -O -pthread -pipe -DFX -D_GNU_SOURCE -DINVERSEXY -DEQ2 -DWORLD -I/usr/include/mysql -I/usr/mysql/include ../common/MiscFunctions.cpp -o ../common/MiscFunctions.o
g++ -c -Wall -Wuninitialized -Wwrite-strings -Wcast-qual  -Wcomment -Wcast-align -Wno-deprecated -g -march=i686 -O -pthread -pipe -DFX -D_GNU_SOURCE -DINVERSEXY -DEQ2 -DWORLD -I/usr/include/mysql -I/usr/mysql/include ../common/emu_opcodes.cpp -o ../common/emu_opcodes.o
g++ -c -Wall -Wuninitialized -Wwrite-strings -Wcast-qual  -Wcomment -Wcast-align -Wno-deprecated -g -march=i686 -O -pthread -pipe -DFX -D_GNU_SOURCE -DINVERSEXY -DEQ2 -DWORLD -I/usr/include/mysql -I/usr/mysql/include Commands.cpp -o Commands.o
In file included from Commands.cpp:24:
WorldDatabase.h:27:19: error: mysql.h: No such file or directory
../common/../World/SpawnLists.h: In member function ‘void SpawnCommandList::SetCommands(SpawnCommandList*)’:
../common/../World/SpawnLists.h:56: warning: cast from type ‘const char*’ to type ‘char*’ casts away constness
../common/../World/SpawnLists.h:56: warning: cast from type ‘const char*’ to type ‘char*’ casts away constness
../common/DataBuffer.h: In member function ‘void DataBuffer::AddDataCommandList(SpawnCommandList*)’:
../common/DataBuffer.h:231: warning: comparison between signed and unsigned integer expressions
../common/opcodemgr.h: At global scope:
../common/opcodemgr.h:48: warning: ‘class OpcodeManager::OpcodeSetStrategy’ has virtual functions but non-virtual destructor
../common/opcodemgr.h:109: warning: ‘class RegularOpcodeManager::NormalMemStrategy’ has virtual functions but non-virtual destructor
../common/servertalk.h: In member function ‘std::string TableQuery::GetQueriesString()’:
../common/servertalk.h:381: warning: comparison between signed and unsigned integer expressions
../common/servertalk.h: In destructor ‘TableDataQuery::~TableDataQuery()’:
../common/servertalk.h:460: warning: comparison between signed and unsigned integer expressions
../common/dbcore.h: At global scope:
../common/dbcore.h:53: error: ‘MYSQL_RES’ has not been declared
../common/dbcore.h:65: error: ‘MYSQL’ does not name a type
../common/database.h:83: error: ISO C++ forbids declaration of ‘MYSQL_RES’ with no type
../common/database.h:83: error: expected ‘;’ before ‘*’ token
../common/database.h:84: error: expected `;' before ‘MYSQL_RES’
../common/database.h:84: error: ISO C++ forbids declaration of ‘MYSQL_RES’ with no type
../common/database.h:84: error: expected ‘;’ before ‘*’ token
../common/database.h:100: error: ISO C++ forbids declaration of ‘MYSQL_RES’ with no type
../common/database.h:100: error: expected ‘;’ before ‘*’ token
../common/database.h:106: error: ‘MYSQL_ERRMSG_SIZE’ was not declared in this scope
../common/database.h:107: error: ISO C++ forbids declaration of ‘MYSQL_RES’ with no type
../common/database.h:107: error: expected ‘;’ before ‘*’ token
../common/database.h:112: error: ISO C++ forbids declaration of ‘MYSQL_ROW’ with no type
../common/database.h:112: error: expected ‘;’ before ‘*’ token
../common/database.h:113: error: ‘MYSQL’ does not name a type
../common/database.h: In constructor ‘Query::Query()’:
../common/database.h:61: error: ‘result’ was not declared in this scope
../common/database.h:65: error: ‘row’ was not declared in this scope
../common/database.h: In destructor ‘Query::~Query()’:
../common/database.h:72: error: ‘result’ was not declared in this scope
../common/database.h:73: error: ‘mysql_free_result’ was not declared in this scope
../common/database.h:74: error: ‘result’ was not declared in this scope
../common/database.h: In member function ‘char* Query::GetError()’:
../common/database.h:85: error: ‘errbuf’ was not declared in this scope
../common/database.h: In member function ‘char* Query::GetQuery()’:
../common/database.h:87: warning: cast from type ‘const char*’ to type ‘char*’ casts away constness
../common/database.h: In member function ‘char* Query::GetField(int8)’:
../common/database.h:89: error: ‘row’ was not declared in this scope
../common/database.h:89: error: ‘result’ was not declared in this scope
../common/database.h:90: error: ‘mysql_fetch_row’ was not declared in this scope
../common/database.h:91: error: ‘row’ was not declared in this scope
../common/database.h:91: error: ‘result’ was not declared in this scope
../common/database.h:91: error: ‘mysql_num_fields’ was not declared in this scope
../common/database.h: In member function ‘void Query::NextRow()’:
../common/database.h:97: error: ‘result’ was not declared in this scope
../common/database.h:98: error: ‘row’ was not declared in this scope
../common/database.h:98: error: ‘mysql_fetch_row’ was not declared in this scope
net.h: In member function ‘char* ZoneAuthRequest::GetCharacterName()’:
net.h:104: warning: cast from type ‘const char*’ to type ‘char*’ casts away constness
../common/PacketStruct.h: In member function ‘void PacketStruct::setArrayAddToPacketByName(char*, bool, int16, int16)’:
../common/PacketStruct.h:159: warning: cast from type ‘const char*’ to type ‘char*’ casts away constness
../common/PacketStruct.h: In member function ‘char* PacketStruct::GetName()’:
../common/PacketStruct.h:352: warning: cast from type ‘const char*’ to type ‘char*’ casts away constness
zoneserver.h: At global scope:
zoneserver.h:66: warning: ‘class ZoneServer’ has virtual functions but non-virtual destructor
WorldDatabase.h:116: error: ‘MYSQL_ROW’ has not been declared
Commands.cpp: In member function ‘void Commands::Process(int32, EQ2_16BitString*, Client*)’:
Commands.cpp:348: warning: cast from type ‘const char*’ to type ‘char*’ casts away constness
Commands.cpp:367: warning: deprecated conversion from string constant to ‘char*’'
Commands.cpp:369: warning: deprecated conversion from string constant to ‘char*’'
Commands.cpp:370: warning: deprecated conversion from string constant to ‘char*’'
Commands.cpp:371: warning: deprecated conversion from string constant to ‘char*’'
Commands.cpp:372: warning: deprecated conversion from string constant to ‘char*’'
Commands.cpp:381: warning: deprecated conversion from string constant to ‘char*’'
Commands.cpp:384: warning: deprecated conversion from string constant to ‘char*’'
Commands.cpp:385: warning: deprecated conversion from string constant to ‘char*’'
Commands.cpp:386: warning: deprecated conversion from string constant to ‘char*’'
Commands.cpp:427: warning: comparison between signed and unsigned integer expressions
Commands.cpp:442: warning: comparison between signed and unsigned integer expressions
Commands.cpp:466: warning: cast from type ‘const char*’ to type ‘char*’ casts away constness
Commands.cpp:473: warning: cast from type ‘const char*’ to type ‘char*’ casts away constness
Commands.cpp:481: warning: cast from type ‘const char*’ to type ‘char*’ casts away constness
Commands.cpp:488: warning: cast from type ‘const char*’ to type ‘char*’ casts away constness
Commands.cpp:496: warning: cast from type ‘const char*’ to type ‘char*’ casts away constness
Commands.cpp:503: warning: cast from type ‘const char*’ to type ‘char*’ casts away constness
Commands.cpp:732: warning: large integer implicitly truncated to unsigned type
Commands.cpp:1000: warning: large integer implicitly truncated to unsigned type
Commands.cpp:1069: warning: deprecated conversion from string constant to ‘char*’'
Commands.cpp:1071: warning: deprecated conversion from string constant to ‘char*’'
Commands.cpp:1094: warning: deprecated conversion from string constant to ‘char*’'
Commands.cpp:1095: warning: deprecated conversion from string constant to ‘char*’'
Commands.cpp:1098: warning: deprecated conversion from string constant to ‘char*’'
Commands.cpp:1138: warning: deprecated conversion from string constant to ‘char*’'
Commands.cpp:1140: warning: deprecated conversion from string constant to ‘char*’'
Commands.cpp:1156: warning: deprecated conversion from string constant to ‘char*’'
Commands.cpp:1159: warning: deprecated conversion from string constant to ‘char*’'
Commands.cpp:1161: warning: deprecated conversion from string constant to ‘char*’'
Commands.cpp:1163: warning: deprecated conversion from string constant to ‘char*’'
Spawn.h: In member function ‘void Spawn::Set(Field*, Value) [with Field = sint16, Value = float]’:
Spawn.h:241:   instantiated from ‘void Spawn::SetPos(Field*, Value, bool) [with Field = sint16, Value = float]’
Spawn.h:310:   instantiated from here
Spawn.h:230: warning: converting to ‘short int’ from ‘float’
make: *** [Commands.o] Error 1
Not sure if I messed this up, or if there is a problem, any help would be appreciated

Posted: Thu Feb 07, 2008 10:14 am
by LethalEncounter
WorldDatabase.h:27:19: error: mysql.h: No such file or directory
You dont have mysql development packages properly installed.

Posted: Thu Feb 07, 2008 11:30 am
by intodesi
ty :)

Posted: Thu Feb 07, 2008 12:22 pm
by intodesi
I did this

Code: Select all

sudo apt-get install mysql-server build-essential subversion
get this

Code: Select all

Building dependency tree       
Reading state information... Done
mysql-server is already the newest version.
build-essential is already the newest version.
subversion is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
what am I missing with it? really a noob to linux, so forgive me.
[/code]

Posted: Thu Feb 07, 2008 1:10 pm
by LethalEncounter
I've never used apt-get, but I believe the package you want to install is mysql-devel if your distro comes with it. Otherwise, just download the source from mysql.com directly.

Posted: Thu Feb 07, 2008 10:12 pm
by Andrew

Code: Select all

sudo apt-get install libmysqlclient15-dev

Posted: Fri Feb 08, 2008 12:08 am
by intodesi
Thank you Andrew, exactly what ive been looking for but unable to find.. i know, google is your friend
http://gameinfo.castus-militis.com
but all i could find were the outdated apt-gets for that lib.
Thanks again.. hope this works now

Posted: Fri Feb 08, 2008 1:39 am
by intodesi
Ok it compiled, now when i try and run it, i get the updates but at the end it tells me failed to open port 9000
its forwarded in my router on both udp and tcp and i guess stock ubuntu has no ports blocked, no firewall..
So noy sure why Port 9000 wont ope

Posted: Fri Feb 08, 2008 2:17 am
by intodesi
Scratch above question.. changed port to 9100, works fine :)
This is cool.. now i need to update my real client...
What Can someone to to contribute that isnt very adept at coding, db's, etc? been playing eq2 about three years, well someone let me know.. would like to help with this project.

Posted: Fri Feb 08, 2008 9:17 am
by Yeorwned
Quality Assurance always comes in handy. Get in your server and try to break it and report compiled error information. Packet collectors used to be very handy...

Posted: Fri Feb 08, 2008 10:53 am
by intodesi
Breakin is something I can do :P

Posted: Fri Feb 08, 2008 5:10 pm
by Andrew
intodesi wrote:What Can someone to to contribute that isnt very adept at coding, db's, etc? been playing eq2 about three years, well someone let me know.. would like to help with this project.
Documentation, Translation, Researching how EQ2 works (xp, mobs, etc)

Posted: Mon Feb 11, 2008 1:53 am
by intodesi
what does this mean

Code: Select all

sudo apt-get install libmysqlclient15-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Couldn't find package libmysqlclient15-dev
trying to install the mysql dev
it worked before but i reinstalled ubuntu and now i am getting this.