Jump to content

[Compilation] Ubuntu 9.10 32 Bit Not working


Recommended Posts

Posted

This is the warnings and errors found when compiling Core 9445 with SD2 1601

../../../../dep/ACE_wrappers/ace/LSOCK.cpp: In member function ‘ssize_t ACE_LSOCK::send_handle(ACE_HANDLE) const’:

../../../../dep/ACE_wrappers/ace/LSOCK.cpp:62: warning: dereferencing type-punned pointer will break strict-aliasing rules

../../../../dep/ACE_wrappers/ace/LSOCK.cpp: In member function ‘ssize_t ACE_LSOCK::recv_handle(ACE_HANDLE&, char*, ssize_t*) const’:

../../../../dep/ACE_wrappers/ace/LSOCK.cpp:126: warning: dereferencing type-punned pointer will break strict-aliasing rules

../../../../dep/ACE_wrappers/ace/LSOCK_Stream.cpp: In member function ‘ssize_t ACE_LSOCK_Stream::send_msg(const iovec*, size_t, ACE_HANDLE)’:

../../../../dep/ACE_wrappers/ace/LSOCK_Stream.cpp:87: warning: dereferencing type-punned pointer will break strict-aliasing rules

../../../../dep/ACE_wrappers/ace/LSOCK_Stream.cpp: In member function ‘ssize_t ACE_LSOCK_Stream::recv_msg(iovec*, size_t, ACE_HANDLE&)’:

../../../../dep/ACE_wrappers/ace/LSOCK_Stream.cpp:123: warning: dereferencing type-punned pointer will break strict-aliasing rules

../../../../dep/ACE_wrappers/ace/POSIX_Proactor.cpp: In member function ‘virtual int ACE_POSIX_AIOCB_Proactor::get_result_status(ACE_POSIX_Asynch_Result*, int&, size_t&)’:

../../../../dep/ACE_wrappers/ace/POSIX_Proactor.cpp:1242: warning: null argument where non-null required (argument 1)

../../../../dep/ACE_wrappers/ace/POSIX_Proactor.cpp:1246: warning: null argument where non-null required (argument 1)

../../../../dep/ACE_wrappers/ace/POSIX_Proactor.cpp: In member function ‘virtual int ACE_POSIX_AIOCB_Proactor::start_aio_i(ACE_POSIX_Asynch_Result*)’:

../../../../dep/ACE_wrappers/ace/POSIX_Proactor.cpp:1433: warning: null argument where non-null required (argument 1)

../../../../dep/ACE_wrappers/ace/POSIX_Proactor.cpp:1437: warning: null argument where non-null required (argument 1)

CXX genrevision.o

../../../../src/tools/genrevision/genrevision.cpp: In function ‘void extractDataFromSvn(FILE*, bool, RawData&)’:

../../../../src/tools/genrevision/genrevision.cpp:41: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’, declared with attribute warn_unused_result

../../../../src/tools/genrevision/genrevision.cpp:42: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’, declared with attribute warn_unused_result

../../../../src/tools/genrevision/genrevision.cpp:43: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’, declared with attribute warn_unused_result

../../../../src/tools/genrevision/genrevision.cpp:44: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’, declared with attribute warn_unused_result

../../../../src/tools/genrevision/genrevision.cpp:45: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’, declared with attribute warn_unused_result

../../../../src/tools/genrevision/genrevision.cpp:46: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’, declared with attribute warn_unused_result

../../../../src/tools/genrevision/genrevision.cpp:47: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’, declared with attribute warn_unused_result

../../../../src/tools/genrevision/genrevision.cpp:48: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’, declared with attribute warn_unused_result

../../../../src/tools/genrevision/genrevision.cpp:49: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’, declared with attribute warn_unused_result

../../../../src/tools/genrevision/genrevision.cpp:50: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’, declared with attribute warn_unused_result

CXXLD genrevision

CXX dotconfpp.o

../../../../src/shared/Config/dotconfpp/dotconfpp.cpp: In member function ‘int DOTCONFDocument::setContent(const char*)’:

../../../../src/shared/Config/dotconfpp/dotconfpp.cpp:425: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’, declared with attribute warn_unused_result

CXX mempool.o

CXX ModelContainer.o

../../../../src/shared/vmap/ModelContainer.cpp: In member function ‘bool VMAP::ModelContainer::readFile(const char*)’:

../../../../src/shared/vmap/ModelContainer.cpp:258: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result

CXX SubModel.o

CXX VMapManager.o

../../../../src/shared/vmap/VMapManager.cpp: In member function ‘bool VMAP::VMapManager::_existsMap(const std::string&, unsigned int, int, int, bool)’:

../../../../src/shared/vmap/VMapManager.cpp:294: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result

AR libmangosvmaps.a

CXX DBCStores.o

../../../src/game/DBCStores.cpp: In function ‘bool ReadDBCBuildFileText(const std::string&, const char*, std::string&)’:

../../../src/game/DBCStores.cpp:191: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result

CXX debugcmds.o

CXX Map.o

../../../src/game/Map.cpp: In static member function ‘static bool Map::ExistMap(uint32, int, int)’:

../../../src/game/Map.cpp:84: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result

../../../src/game/Map.cpp: In member function ‘bool GridMap::loadData(char*)’:

../../../src/game/Map.cpp:1167: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result

../../../src/game/Map.cpp: In member function ‘bool GridMap::loadAreaData(FILE*, uint32, uint32)’:

../../../src/game/Map.cpp:1220: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result

../../../src/game/Map.cpp:1228: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result

../../../src/game/Map.cpp: In member function ‘bool GridMap::loadHeightData(FILE*, uint32, uint32)’:

../../../src/game/Map.cpp:1237: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result

../../../src/game/Map.cpp:1248: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result

../../../src/game/Map.cpp:1249: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result

../../../src/game/Map.cpp:1257: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result

../../../src/game/Map.cpp:1258: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result

../../../src/game/Map.cpp:1266: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result

../../../src/game/Map.cpp:1267: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result

../../../src/game/Map.cpp: In member function ‘bool GridMap::loadLiquidData(FILE*, uint32, uint32)’:

../../../src/game/Map.cpp:1280: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result

../../../src/game/Map.cpp:1294: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result

../../../src/game/Map.cpp:1299: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result

CXX MapInstanced.o

CXX MovementGenerator.o

../../../src/game/MovementGenerator.cpp: In member function ‘bool MovementGenerator::IsActive(Unit&)’:

../../../src/game/MovementGenerator.cpp:29: error: invalid use of incomplete type ‘struct Unit’

../../../src/game/MotionMaster.h:27: error: forward declaration of ‘struct Unit’

../../../src/game/MovementGenerator.cpp:29: error: invalid use of incomplete type ‘struct Unit’

../../../src/game/MotionMaster.h:27: error: forward declaration of ‘struct Unit’

make[3]: *** [MovementGenerator.o] Error 1

Posted

I do not know why "Edit Post" takes several minutes to open the post but i wil just make another reply.

the problem here is also that is NOT compiling. It just gets to the last warning here and stops there. Compilation fails.

Posted

Using 9446 Fixed ths compilation issue. Thanks Vladimir. Still all the warnings are there. A little bit of cleaning would be good (My C++ knowledge is not there yet ;) )

Posted

And this could be me only but when the server finishes loading, the mangos console does not appear and i can not type any command. I do not see the mangos> prompt to start typing.

Posted

Am still getting the console problem that i can not type anything. This are the steps am doing for a clean mangos:

# Compilation Script (Git Checkout, SVN Checkout, ScriptDev2 Patch for Mangos, Configure, Make & Install)

clear

echo "WOW Server Compiler By CYREX"

echo " "

echo "REMOVING OLD DATA FROM GIT FOLDER"

echo " "

rm -fr mangos

echo " "

echo "CHECKING OUT MANGOS GIT"

echo " "

git clone git://github.com/mangos/mangos.git

echo " "

cd ${MangosStart}

echo " "

echo "CHECKING OUT SCRIPTDEV2 SVN"

echo " "

svn checkout http://scriptdev2.svn.sourceforge.net/svnroot/scriptdev2 src/bindings/ScriptDev2

echo " "

echo "PATCHING MANGOS WITH SCRIPTDEV2..."

echo " "

git apply src/bindings/ScriptDev2/patches/MaNGOS-9439-ScriptDev2.patch

echo " "

echo "CONFIGURING MANGOS"

echo " "

autoreconf --install --force

autoconf

automake --add-missing

automake src/bindings/ScriptDev2/Makefile

rm objdir -fr

mkdir objdir

cd objdir

../configure --prefix=${MangosEnd} --sysconfdir=${MangosEnd}/etc --with-python --enable-cli --enable-ra --datadir=${MangosEnd} --with-mysql-libs=/usr/lib/mysql --with-mysql-includes=/usr/include/m$

echo " "

echo "MAKING MANGOS"

echo " "

make

echo " "

echo "CREATING BIN FILES (Executables, Libraries, Conf files, SQL Files)"

echo " "

make install

cd ..

echo " "

echo "FINISHED."

echo " "

Posted

So anybody can shed some light here. The above is the way i compile my mangos. It has always work great until about 50 revs ago. What should i change or do to make the console work again.

Posted

another

´../../../../src/shared/Database/QueryResultMysql.cpp: At global scope:

../../../../src/shared/Database/QueryResultMysql.cpp:23: error: expected `)' before '*' token

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

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

make[5]: Leaving directory `/home/admin/insiderlol/mangos/objdir/src/shared/Database'

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

make[4]: Leaving directory `/home/admin/insiderlol/mangos/objdir/src/shared'

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

make[3]: Leaving directory `/home/admin/insiderlol/mangos/objdir/src/shared'

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

make[2]: Leaving directory `/home/admin/insiderlol/mangos/objdir/src'

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

make[1]: Leaving directory `/home/admin/insiderlol/mangos/objdir'

make: *** [all] Error 2

Posted

From what I've seen and read these steps:

autoconf

automake --add-missing

automake src/bindings/ScriptDev2/Makefile

are unnecessary and will break things (though the threads discussing that had different issues than what you're describing).

Posted

oookk this is like the smallest thing i could imagine to compile and still is not working. It will not show the console.

git clone git://github.com/mangos/mangos.git

cd ${MangosStart}

autoreconf --install --force

rm objdir -fr

mkdir objdir

cd objdir

../configure --prefix=${MangosEnd} --sysconfdir=${MangosEnd}/etc --with-python --enable-cli --enable-ra --datadir=${MangosEnd}

make

make install

Posted

ok i actually deleted everything. from final mangos destination. Then i compiled again with the information above. No luck. The console is not appearing. I deleted even both, the place where mangos was suppose to go like /opt/nangos and the place where i was compiling it so there would not be anything before.

Posted

You know what, you probably are right. Am going to reinstall ubuntu again to test your idea. Will let you know how it went and what actually changed that if i find this bug again. Thanks Vladimir.

Posted

Found out what it was after formatting my server and installing ubuntu again. It appears that i can not change teh security level of GM commands cause it makes the console unusable for several minutes which afterwards work. Look here

SERVER STARTUP TIME: 0 minutes 23 seconds

Daily quests reset for all characters.

Max allowed socket connections 1024

mangos>Daily quests reset for all characters.

Daily quests reset for all characters.

Daily quests reset for all characters.

Daily quests reset for all characters.

Daily quests reset for all characters.

Daily quests reset for all characters.

Daily quests reset for all characters.

Daily quests reset for all characters.

Daily quests reset for all characters.

Daily quests reset for all characters.

Daily quests reset for all characters.

Daily quests reset for all characters.

Daily quests reset for all characters.

Daily quests reset for all characters.

Daily quests reset for all characters.

GameEvent 16 "Gurubashi Arena Booty Run" started.

Next game event check in 300 seconds.

asdas

CLI command under processing...

Table `command` overwrite for command 'additem' default security (3) by 1

Table `command` overwrite for command 'go creature' default security (1) by 3

Table `command` overwrite for command 'npc whisper' default security (1) by 3

Table `command` overwrite for command 'announce' default security (1) by 2

Table `command` overwrite for command 'aura' default security (3) by 2

Table `command` overwrite for command 'bank' default security (3) by 2

Table `command` overwrite for command 'cooldown' default security (3) by 2

Table `command` overwrite for command 'die' default security (3) by 2

Table `command` overwrite for command 'go object' default security (1) by 3

Table `command` overwrite for command 'levelup' default security (3) by 2

Table `command` overwrite for command 'modify mount' default security (1) by 3

Table `command` overwrite for command 'go zonexy' default security (1) by 3

Table `command` overwrite for command 'lookup itemset' default security (3) by 2

Table `command` overwrite for command 'lookup item' default security (3) by 1

Table `command` overwrite for command 'maxskill' default security (3) by 2

Table `command` overwrite for command 'go trigger' default security (1) by 3

Table `command` overwrite for command 'modify aspeed' default security (1) by 2

Table `command` overwrite for command 'modify bit' default security (1) by 3

Table `command` overwrite for command 'modify bwalk' default security (1) by 3

Table `command` overwrite for command 'modify energy' default security (1) by 3

Table `command` overwrite for command 'modify faction' default security (1) by 3

Table `command` overwrite for command 'modify hp' default security (1) by 3

Table `command` overwrite for command 'modify mana' default security (1) by 3

Table `command` overwrite for command 'modify rage' default security (1) by 3

Table `command` overwrite for command 'modify scale' default security (1) by 2

Table `command` overwrite for command 'modify spell' default security (1) by 3

Table `command` overwrite for command 'modify swim' default security (1) by 3

Table `command` overwrite for command 'go xyz' default security (1) by 3

Table `command` overwrite for command 'recall' default security (1) by 2

Table `command` overwrite for command 'revive' default security (3) by 1

Table `command` overwrite for command 'saveall' default security (1) by 3

Table `command` overwrite for command 'modify arena' default security (1) by 3

Table `command` overwrite for command 'go grid' default security (1) by 3

Table `command` overwrite for command 'gm visible' default security (1) by 3

Table `command` overwrite for command 'taxicheat' default security (1) by 3

Table `command` overwrite for command 'learn' default security (3) by 2

Table `command` overwrite for command 'unlearn' default security (3) by 2

Table `command` overwrite for command 'whispers' default security (1) by 3

Table `command` overwrite for command 'gm fly' default security (3) by 2

Table `command` overwrite for command 'debug play cinematic' default security (1) by 3

Table `command` overwrite for command 'debug play movie' default security (1) by 3

Table `command` overwrite for command 'go xy' default security (1) by 3

Table `command` overwrite for command 'send mail' default security (1) by 3

Table `command` overwrite for command 'notify' default security (1) by 2

Table `command` overwrite for command 'learn all_crafts' default security (2) by 3

Table `command` overwrite for command 'learn all_gm' default security (2) by 3

Table `command` overwrite for command 'learn all_lang' default security (1) by 3

Table `command` overwrite for command 'lookup tele' default security (1) by 2

Table `command` overwrite for command 'modify drunk' default security (1) by 3

Table `command` overwrite for command 'go graveyard' default security (1) by 3

Table `command` overwrite for command 'lookup area' default security (1) by 3

Table `command` overwrite for command 'groupgo' default security (1) by 2

Table `command` overwrite for command 'learn all_default' default security (1) by 3

Table `command` overwrite for command 'modify honor' default security (1) by 3

Table `command` overwrite for command 'tele group' default security (1) by 3

Table `command` overwrite for command 'gm chat' default security (1) by 3

Table `command` overwrite for command 'modify speed' default security (1) by 3

Table `command` overwrite for command 'modify runicpower' default security (1) by 3

Table `command` overwrite for command 'npc textemote' default security (1) by 3

Table `command` overwrite for command 'debug play sound' default security (1) by 3

Table `command` overwrite for command 'go taxinode' default security (1) by 3

Table `command` overwrite for command 'mute' default security (1) by 2

Table `command` overwrite for command 'namego' default security (1) by 2

Table `command` overwrite for command 'tele name' default security (1) by 3

Table `command` overwrite for command 'unmute' default security (1) by 3

Table `command` overwrite for command 'modify tp' default security (1) by 3

There is no such command

After this the console works again.

×
×
  • 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