PDA

View Full Version : World wont compile


Silent16
08-29-2006, 09:25 AM
make clean ; make
rm -f ../common/timer.o ../common/packet_dump.o ../common/races.o ../common/unix.o ../common/Mutex.o ../common/MiscFunctions.o ../common/serverinfo.o ../common/classes.o ../common/TCPConnection.o ../common/eqtime.o ../common/crc32.o client.o net.o console.o zoneserver.o LoginServer.o ../common/md5.o ../common/dbcore.o ../common/dbasync.o ../common/EMuShareMem.o ../common/EQEMuError.o ../common/misc.o .obj/debug.o .obj/database.o .obj/Item.o ../common/extprofile.o .obj/EQStream.o .obj/EQStreamFactory.o .obj/EQPacket.o ../common/CRC16.o ../common/packet_functions.o ../common/timeoutmgr.o ../common/Condition.o ../common/opcodemgr.o ../common/emu_opcodes.o ../common/SharedLibrary.o world_logsys.o ../common/logsys.o ../common/EQEmuConfig.o WorldConfig.o ../common/XMLParser.o ../common/tinyxml/tinystr.o ../common/tinyxml/tinyxml.o ../common/tinyxml/tinyxmlerror.o ../common/tinyxml/tinyxmlparser.o ../common/BasePacket.o ../common/shareddb.o worlddb.o EQW.o HTTPRequest.o EQWHTTPHandler.o EQWParser.o perl_EQW.o perl_HTTPRequest.o clientlist.o zonelist.o cliententry.o LauncherList.o LauncherLink.o ../common/EQStreamIdent.o ../common/StructStrategy.o ../common/EQStreamProxy.o ../common/patches/patches.o ../common/patches/Client62.o ../common/patches/Titanium.o ../common/patches/Live.o ../common/EQDB.o ../common/perl_EQDB.o EQLConfig.o perl_EQLConfig.o ../common/EQDBRes.o ../common/perl_EQDBRes.o ../common/EmuTCPServer.o ../common/TCPServer.o ../common/EmuTCPConnection.o ../common/SocketLib/Base64.o ../common/SocketLib/File.o ../common/SocketLib/HTTPSocket.o ../common/SocketLib/HttpdCookies.o ../common/SocketLib/HttpdForm.o ../common/SocketLib/HttpdSocket.o ../common/SocketLib/MemFile.o ../common/SocketLib/Mime.o ../common/SocketLib/Parse.o ../common/SocketLib/Utility.o ../common/guild_base.o wguild_mgr.o world
gcc -c -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wcomment -Wcast-align -Wno-deprecated -g -march=i686 -O -pthread -pipe -I../common/SocketLib -DFX -D_GNU_SOURCE -DINVERSEXY -DWORLD -DDEBUG=5 -DEQDEBUG=5 -DSHAREMEM -DCATCH_CRASH -DNO_PIDLOG -DFIELD_ITEMS -DIRC -Di386 -DAPP_OPCODE_SIZE=2 -DEMBPERL -DEMBPERL_PLUGIN -DHAS_UNION_SEMUN -I/usr/include/mysql -g -pipe -m64 -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -I/usr/lib/perl5/5.8.7/x86_64-linux/CORE ../common/timer.cpp -o ../common/timer.o
../common/timer.cpp:1: error: CPU you selected does not support x86-64 instruction set
../common/timer.cpp:1: error: CPU you selected does not support x86-64 instruction set
make: *** [../common/timer.o] Error 1

Anyone know what I can do to fix this?

Silent16
08-29-2006, 12:16 PM
And I am also getting this error.

make
gcc -c -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wcomment -Wcast-align -Wno-deprecated -g -march=nocona -O -pthread -pipe -I../common/SocketLib -DFX -D_GNU_SOURCE -DINVERSEXY -DWORLD -DDEBUG=5 -DEQDEBUG=5 -DSHAREMEM -DCATCH_CRASH -DNO_PIDLOG -DFIELD_ITEMS -DIRC -Di386 -DAPP_OPCODE_SIZE=2 -DEMBPERL -DEMBPERL_PLUGIN -DHAS_UNION_SEMUN -I/usr/include/mysql -g -pipe -m64 -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -I/usr/lib/perl5/5.8.7/x86_64-linux/CORE ../common/TCPConnection.cpp -o ../common/TCPConnection.o
../common/TCPConnection.cpp: In member function `bool TCPConnection::GetSockName(char*, uint16*)':
../common/TCPConnection.cpp:148: error: cannot convert `size_t*' to `socklen_t*' for argument `3' to `int getsockname(int, sockaddr*, socklen_t*)'

fathernitwit
08-30-2006, 03:34 PM
its because your running 64 bit linux, try building with

make -f makefile.a64

Silent16
08-31-2006, 12:29 AM
That still did not work, my server is a Xeon 2.8


When using that command, this is what I got:

gcc -c -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wcomment -Wcast-align -Wno-deprecated -g -march=athlon64 -O -pthread -pipe -DFX -D_GNU_SOURCE -DINVERSEXY -DWORLD -DDEBUG=5 -DEQDEBUG=5 -DSHAREMEM -DCATCH_CRASH -DNO_PIDLOG -DFIELD_ITEMS -DIRC -DAPP_OPCODE_SIZE=2 -I/usr/include/mysql -I/usr/mysql/include net.cpp -o net.o
In file included from ../common/patches/Client62.h:5,
from net.cpp:44:
../common/patches/../Item.h: In member function `std::string ItemInst::Serialize(sint16) const':
../common/patches/../Item.h:438: warning: cast from pointer to integer of different size
In file included from net.cpp:83:
EQWHTTPHandler.h:23:25: HttpdSocket.h: No such file or directory
EQWHTTPHandler.h:24:18: Mime.h: No such file or directory
In file included from net.cpp:83:
EQWHTTPHandler.h: At global scope:
EQWHTTPHandler.h:29: error: expected class-name before '{' token
EQWHTTPHandler.h:56: error: `Mime' does not name a type
make: *** [net.o] Error 1

Silent16
08-31-2006, 09:26 AM
I tried a new installation with the make -f makefile.a64 command and I got this again.

./common/TCPConnection.cpp: In member function `bool TCPConnection::GetSockName(char*, uint16*)':
../common/TCPConnection.cpp:148: error: cannot convert `size_t*' to `socklen_t*' for argument `3' to `int getsockname(int, sockaddr*, socklen_t*)'
make: *** [../common/TCPConnection.o] Error 1