• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Solved Error on Linux

Sir Juninho

New Member
Joined
May 4, 2009
Messages
85
Reaction score
1
I'm trying to compile the last version (branches/0.3) on Ubuntu Server 10.04.4 LTS and I got this error:

Code:
cc1plus: warnings being treated as errors
protocolgame.cpp:1656: error: unused parameter 'msg'
protocolgame.cpp:1662: error: unused parameter 'msg'
protocolgame.cpp:3073: error: prototype for 'void ProtocolGame::sendRemoveContainerItem(uint8_t, uint8_t)' does not match any in class 'ProtocolGame'
protocolgame.h:273: error: candidate is: void ProtocolGame::sendRemoveContainerItem(uint8_t, uint8_t, const Item*)
protocolgame.cpp:3800: error: prototype for 'void ProtocolGame::RemoveContainerItem(NetworkMessage_ptr, uint8_t, uint8_t, const Item*)' does not match any in class 'ProtocolGame'
protocolgame.h:326: error: candidate is: void ProtocolGame::RemoveContainerItem(NetworkMessage_ptr, uint8_t, uint8_t)
make[1]: *** [protocolgame.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/home/server/sources'
make: *** [all] Error 2

What am I doing wrong? :p

Thanks!

Obs: I followed this tutorial - http://otland.net/f479/ubuntu-nothi...gotten-server-modernaac-mysql-lighttpd-89001/
 
It´s because you cc1plus is treating any warning as error:

Open your Makefile.am and delete -Werror and do again

Lua:
./autogen.sh
./configure --enable-mysql
make -j 2

Regards,
 
Thanks for helping me Ninja!

I did what you sayd, but now I got this:

Code:
cc1plus: warnings being treated as errors
protocolgame.cpp:1656: error: unused parameter 'msg'
protocolgame.cpp:1662: error: unused parameter 'msg'
make[1]: *** [protocolgame.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/home/server/sources'
make: *** [all] Error 2

:(

- - - Updated - - -

It´s because you cc1plus is treating any warning as error:

Open your Makefile.am and delete -Werror and do again

Lua:
./autogen.sh
./configure --enable-mysql
make -j 2

Regards,

It worked!

Thank you psychomen! :D
 
As you can see the warnings is still treating like error:

cc1plus: warnings being treated as errors

Must remove all the -Werror in the makefiles used.

Regards,
 
Back
Top