Jump to content

How to compile MaNGOS on Linux ( Using GIT )


Recommended Posts

./framework/ -I../../../../src/bindings/ScriptDev2/../../game/ -I../../../../src/bindings/ScriptDev2/include/ -DENABLE_RA -DENABLE_CLI -DDO_MYSQL -g -O2 -MT boss_scorn.lo -MD -MP -MF .deps/boss_scorn.Tpo -c ../../../../src/bindings/ScriptDev2/scripts/zone/scarlet_monastery/boss_scorn.cpp -fPIC -DPIC -o .libs/boss_scorn.o

/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/bits/stl_deque.h: In member function 'void std::Deque<_Tp, _Alloc>::Pop_front() [with _Tp = unsigned int, _Alloc = std::allocator<unsigned int>]':

../../../../src/bindings/ScriptDev2/../../game/Player.h:906: instantiated from here

/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/bits/stl_deque.h:1062: internal compiler error: in tsubst_copy, at cp/pt.c:7883

Please submit a full bug report,

with preprocessed source if appropriate.

See <URL:http://gcc.gnu.org/bugs.html> for instructions.

For Debian GNU/Linux specific bug reporting instructions,

see <URL:file:///usr/share/doc/gcc-4.1/README.Bugs>.

The bug is not reproducible, so it is likely a hardware or OS problem.

make[6]: *** [boss_scorn.lo] Error 1

make[6]: Leaving directory `/server/mangos/objdir/src/bindings/ScriptDev2'

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

make[5]: Leaving directory `/server/mangos/objdir/src/bindings/ScriptDev2'

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

make[4]: Leaving directory `/server/mangos/objdir/src/bindings/ScriptDev2'

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

make[3]: Leaving directory `/server/mangos/objdir/src/bindings'

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

make[2]: Leaving directory `/server/mangos/objdir/src'

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

make[1]: Leaving directory `/server/mangos/objdir'

make: *** [all] Error 2

wow:/server/mangos/objdir#

I have this problem when I compile, someone can help-me?

Link to comment
Share on other sites

  • Replies 288
  • Created
  • Last Reply

Top Posters In This Topic

Hi everyone, I tried to read everything to solve my problem but I didn't found anything.

So, my problem is follow :

when I'am enter the following command :

#git am src/bindings/ScriptDev2/patches/MaNGOS-2008-12-22-ScriptDev2.patch

I get the following error :

previous dotest directory .dotest still exists but mbox given.

And when I try this command :

#git apply src/bindings/ScriptDev2/patches/MaNGOS-2008-12-22-ScriptDev2.patch

I get the folowing error :

error: patch failed: configure.ac:312
error: configure.ac:Patch does not apply
error: src/bindings/.gitignore: already exists in working directory
error: patch failed: src/bindings/Makefile.am:14
error: src/bindings/Makefile.am: patch does not apply
error: patch failed: src/mangosd/Makefile.am:33
error: src/mangos/mangosd/Makefile.am: patch does not apply

Anyone an idea???

Also I had a question about the following :

what does it mean

"You must enter the digit wich match with

/usr/bin/git-scm" ????

I didn't understand all. :P

If someone has an answer it will be nice.

Thanks for your tuto, it's very usefull , very nice job!!!

Link to comment
Share on other sites

Well, I'am sure I didn't forget this command, I will try if I have to make a clean install.

thanks for reply.

EDIT: I have made a new clean install and did not forget the

svn co https://scriptdev2.svn.sourceforge.net/svnroot/scriptdev2/ src/bindings/ScriptDev2

now when I try git apply, i see nothing happening and when i try git am .... the following error appears :

error: configure.ac: does not match index

error: src/bindings/.gitignore: already exists in working directory

error: src/bindings/Makefile.am: does not match index

error: src/mangosd/Makefile.am: does not match index

Patch failed at 0001.

EDIT2 : I found the way to patch MaNGOS with SD2 patch under Ubuntu :

just in place of "#git-am src/bindings/../patches/M...-ScriptDev2.patch"

use these command (you have to be in your mangos directory)

"patch -p1 < src/bindings/ScriptDev2/patches/MaNGOS-2008-12-22-ScriptDev2.patch"

patching file src/bindings/.gitignore

patching file src/bindings/Makefile.am

patching file src/mangosd/Makefile.am

OK !!

EDIT 3 :

For those who have the following error message: when launching "../mangos/bin/mangos-worldd"

Check existing of map file './maps/0004331.map': not exist!

Fix :

Edit the mangosd.conf and put at Datadir= "." the full path to your mangos directory if you have put DBC,MAPS and VMAPS folder into mangos directory.

example : Datadir="/home/wowsvr/mangos"

Link to comment
Share on other sites

"EDIT: I have made a new clean install and did not forget the

svn co https://scriptdev2.svn.sourceforge.n...ot/scriptdev2/ src/bindings/ScriptDev2 <<<<<<<<--------------- "sourceforge.n...ot"

now when I try git apply, i see nothing happening and when i try git am .... the following error appears :

error: configure.ac: does not match index

error: src/bindings/.gitignore: already exists in working directory

error: src/bindings/Makefile.am: does not match index

error: src/mangosd/Makefile.am: does not match index

Patch failed at 0001. "

git pull
svn co [url]https://scriptdev2.svn.sourceforge.net/svnroot/scriptdev2/[/url] src/bindings/ScriptDev2

Sorry, is that...

I think the link you using on svn is broken, because we cannot put here web links...

Try to use this above...

Link to comment
Share on other sites

"EDIT: I have made a new clean install and did not forget the

svn co https://scriptdev2.svn.sourceforge.n...ot/scriptdev2/ src/bindings/ScriptDev2 <<<<<<<<--------------- "sourceforge.n...ot"

now when I try git apply, i see nothing happening and when i try git am .... the following error appears :

error: configure.ac: does not match index

error: src/bindings/.gitignore: already exists in working directory

error: src/bindings/Makefile.am: does not match index

error: src/mangosd/Makefile.am: does not match index

Patch failed at 0001. "

git pull
svn co [url]https://scriptdev2.svn.sourceforge.net/svnroot/scriptdev2/[/url] src/bindings/ScriptDev2

Sorry, is that...

I think the link you using on svn is broken, because we cannot put here web links...

Try to use this above...

It was not about the link I had clearly found the right link otherwise I could not download scriptdev2.

The problem was about how to patch after download.

Using "git am" don't work , so instead I used the "patch" command and it worked, but i'am asking if this is a good method to patch scriptdev2 ??

Link to comment
Share on other sites

While compilling...

make[2]: Entering directory `/home/faces/mangos/objdir/src/game'

g++ -DHAVE_CONFIG_H -I. -I../../../src/game -I../.. -I/usr/include/mysql -I../../../dep/ACE_wrappers -I../../dep/ACE_wrappers -I../../src/shared -I../../../src/game -I../../../src/game/../../dep/include -I../../../src/game/../framework -I../../../src/game/../shared -I../../../src/game/../shared/vmap -I../../../src/game/../realmd -DSYSCONFDIR=\\"/opt/mangos/etc/\\" -DENABLE_RA -DENABLE_CLI -DDO_MYSQL -g -O2 -MT PoolHandler.o -MD -MP -MF .deps/PoolHandler.Tpo -c -o PoolHandler.o ../../../src/game/PoolHandler.cpp

../../../src/game/PoolHandler.cpp: In member function ‘void PoolHandler::LoadFromDB()’:

../../../src/game/PoolHandler.cpp:289: warning: format not a string literal and no format arguments

../../../src/game/PoolHandler.cpp: At global scope:

../../../src/game/PoolHandler.cpp:547: error: specialization of ‘void PoolHandler::PoolGroup<T>::RemoveOneRelation(uint16) [with T = PoolHandler::Pool]’ after instantiation

make[2]: *** [PoolHandler.o] Error 1

make[2]: Leaving directory `/home/faces/mangos/objdir/src/game'

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

make[1]: Leaving directory `/home/faces/mangos/objdir/src'

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

what to do?

Link to comment
Share on other sites

I am having an error while running make.

Making all in game

make[3]: Entering directory `/home/Admin/src/mangos/objdir/src/game'

g++ -DHAVE_CONFIG_H -I. -I../../../src/game -I../.. -I/usr/include/mysql -I../../../dep/ACE_wrappers -I../../dep/ACE_wrappers -I../../src/shared -I../../../src/game -I../../../src/game/../../dep/include -I../../../src/game/../framework -I../../../src/game/../shared -I../../../src/game/../shared/vmap -I../../../src/game/../realmd -DSYSCONFDIR=\\"/opt/mangos/etc/\\" -DENABLE_RA -DENABLE_CLI -DDO_MYSQL -g -O2 -MT AchievementMgr.o -MD -MP -MF .deps/AchievementMgr.Tpo -c -o AchievementMgr.o ../../../src/game/AchievementMgr.cpp

In file included from ../../../src/game/GridNotifiersImpl.h:22,

from ../../../src/game/AchievementMgr.cpp:31:

../../../src/game/GridNotifiers.h:851: error: extra qualification ‘MaNGOS::LocalizedPacketDo<Builder>::’ on member ‘LocalizedPacketDo’

../../../src/game/GridNotifiers.h:851: error: explicit specialization of ‘MaNGOS::LocalizedPacketDo<Builder>::~LocalizedPacketDo()’ must be introduced by ‘template <>’

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

make[3]: Leaving directory `/home/Admin/src/mangos/objdir/src/game'

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

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

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

make[1]: Leaving directory `/home/Admin/src/mangos/objdir'

make: *** [all] Error 2

Can someone please help me with this?

I am running openSUSE 11.1

Link to comment
Share on other sites

Ok, I must be doing something wrong.

when I try this section

I get an error about not finding the location

full error is

Cannot just copy/paste the instruction paragraph. If you take a look you will notice there are 2 periods on it, which means the length of the link was shortened probably by the forum engine.

A short fix, put the mouse over it, right click and copy the link, and add the missing stuff from the paragraph then

Link to comment
Share on other sites

This problem is about execution of mangos-worldd but i just had this on linux:

Initialize data stores...
[mangos-worldd: ../../../../src/shared/Database/dbcfile.h:73: const char* DBCFile::Record::getString(size_t) const: Assertion `stringOffset < file.stringSize' failed.

I copied the DBC folder from my Windows extract, is that a problem? Should i re-extract in linux to work? I tried also to use an older rev [7252] using git-reset --hard.

Using Ubuntu 8.10

Link to comment
Share on other sites

When i use this command, this is happening:

root@lizz-server:/home/lizz/mangos/mangos# git am src/bindings/ScriptDev2/patches/MaNGOS-2008-12-22-ScriptDev2.patch
Applying Signed-off-by: NoFantasy <[email protected]>
error: patch failed: src/mangosd/Makefile.am:33
error: src/mangosd/Makefile.am: patch does not apply
Patch failed at 0001.
When you have resolved this problem run "git-am --resolved".
If you would prefer to skip this patch, instead run "git-am --skip".
root@lizz-server:

How i can fix it ?

What should i type exactly ?

Link to comment
Share on other sites

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