Linux EQEMu 4.4
Errors:
cd world make [tyrbo@elite world]$ make gcc -c -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wbad-function-cast -Wstrict-prototypes -Wnested-externs -Wcomment -Wcast-align -Winline -Wno-deprecated -g -march=i686 -O -pthread -pipe -DFX -D_GNU_SOURCE -DINVERSEXY -DWORLD -DDEBUG=1 -DSHAREMEM -DCATCH_CRASH -I/usr/include/mysql -I/usr/mysql/include ../common/packet_functions.cpp -o ../common/packet_functions.o cc1plus: warning: "-Wbad-function-cast" is valid for C/ObjC but not for C++ cc1plus: warning: "-Wnested-externs" is valid for C/ObjC but not for C++ ../common/packet_functions.cpp:22:18: zlib.h: No such file or directory ../common/packet_functions.cpp: In function `int DeflatePacket(unsigned char*, int, unsigned char*, int)': ../common/packet_functions.cpp:119: error: `z_stream' undeclared (first use this function) ../common/packet_functions.cpp:119: error: (Each undeclared identifier is reported only once for each function it appears in.) ../common/packet_functions.cpp:119: error: parse error before `;' token ../common/packet_functions.cpp:122: error: `zstream' undeclared (first use this function) ../common/packet_functions.cpp:124: error: `Z_NULL' undeclared (first use this function) ../common/packet_functions.cpp:127: error: `Z_FINISH' undeclared (first use this function) ../common/packet_functions.cpp:127: error: `deflateInit' undeclared (first use this function) ../common/packet_functions.cpp:130: error: `deflate' undeclared (first use this function) ../common/packet_functions.cpp:132: error: `Z_STREAM_END' undeclared (first use this function) ../common/packet_functions.cpp:134: error: `deflateEnd' undeclared (first use this function) ../common/packet_functions.cpp: In function `uint32 InflatePacket(uchar*, unsigned int, uchar*, unsigned int, bool)': ../common/packet_functions.cpp:147: error: parse error before `;' token ../common/packet_functions.cpp:159: error: `inflateInit2' undeclared (first use this function) ../common/packet_functions.cpp:160: error: `Z_OK' undeclared (first use this function) ../common/packet_functions.cpp:164: error: `inflate' undeclared (first use this function) ../common/packet_functions.cpp:167: error: `inflateEnd' undeclared (first use this function) make: *** [../common/packet_functions.o] Error 1 Any ideas? |
|
After zlib:
[tyrbo@elite world]$ make gcc -c -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wbad-function-cast -Wstrict-prototypes -Wnested-externs -Wcomment -Wcast-align -Winline -Wno-deprecated -g -march=i686 -O -pthread -pipe -DFX -D_GNU_SOURCE -DINVERSEXY -DWORLD -DDEBUG=1 -DSHAREMEM -DCATCH_CRASH -I/usr/include/mysql -I/usr/mysql/include ../common/packet_functions.cpp -o ../common/packet_functions.o cc1plus: warning: "-Wbad-function-cast" is valid for C/ObjC but not for C++ cc1plus: warning: "-Wnested-externs" is valid for C/ObjC but not for C++ gcc -c -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wbad-function-cast -Wstrict-prototypes -Wnested-externs -Wcomment -Wcast-align -Winline -Wno-deprecated -g -march=i686 -O -pthread -pipe -DFX -D_GNU_SOURCE -DINVERSEXY -DWORLD -DDEBUG=1 -DSHAREMEM -DCATCH_CRASH -I/usr/include/mysql -I/usr/mysql/include ../common/classes.cpp -o ../common/classes.o cc1plus: warning: "-Wbad-function-cast" is valid for C/ObjC but not for C++ cc1plus: warning: "-Wnested-externs" is valid for C/ObjC but not for C++ gcc -c -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wbad-function-cast -Wstrict-prototypes -Wnested-externs -Wcomment -Wcast-align -Winline -Wno-deprecated -g -march=i686 -O -pthread -pipe -DFX -D_GNU_SOURCE -DINVERSEXY -DWORLD -DDEBUG=1 -DSHAREMEM -DCATCH_CRASH -I/usr/include/mysql -I/usr/mysql/include ../common/TCPConnection.cpp -o ../common/TCPConnection.o cc1plus: warning: "-Wbad-function-cast" is valid for C/ObjC but not for C++ cc1plus: warning: "-Wnested-externs" is valid for C/ObjC but not for C++ ../common/TCPConnection.cpp: In static member function `static SPackSendQueue* TCPConnection::MakeOldPacket(const ServerPacket*)': ../common/TCPConnection.cpp:76: warning: cast from `const int16*' to `char*' discards qualifiers from pointer target type ../common/TCPConnection.cpp: In member function `bool TCPConnection::ProcessReceivedDataAsOldPackets(cha r*)': ../common/TCPConnection.cpp:1143: warning: comparison between signed and unsigned integer expressions gcc -c -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wbad-function-cast -Wstrict-prototypes -Wnested-externs -Wcomment -Wcast-align -Winline -Wno-deprecated -g -march=i686 -O -pthread -pipe -DFX -D_GNU_SOURCE -DINVERSEXY -DWORLD -DDEBUG=1 -DSHAREMEM -DCATCH_CRASH -I/usr/include/mysql -I/usr/mysql/include ../common/eqtime.cpp -o ../common/eqtime.o cc1plus: warning: "-Wbad-function-cast" is valid for C/ObjC but not for C++ cc1plus: warning: "-Wnested-externs" is valid for C/ObjC but not for C++ gcc -c -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wbad-function-cast -Wstrict-prototypes -Wnested-externs -Wcomment -Wcast-align -Winline -Wno-deprecated -g -march=i686 -O -pthread -pipe -DFX -D_GNU_SOURCE -DINVERSEXY -DWORLD -DDEBUG=1 -DSHAREMEM -DCATCH_CRASH -I/usr/include/mysql -I/usr/mysql/include ../common/crc32.cpp -o ../common/crc32.o cc1plus: warning: "-Wbad-function-cast" is valid for C/ObjC but not for C++ cc1plus: warning: "-Wnested-externs" is valid for C/ObjC but not for C++ ../common/crc32.cpp:78:2: warning: #warning "Comment out i386 define if your arch isn't x86" ../common/crc32.cpp: In static member function `static uint32 CRC32::Update(const int8*, unsigned int, unsigned int)': ../common/crc32.cpp:140: error: asm-specifier for variable `_crc32' conflicts with asm clobber list make: *** [../common/crc32.o] Error 1 |
You're compiler doesnt like the inline assemby for crc32
edit common/crc32.cpp , and look for the if (i386) change it to something bogus like i968 I'll rewrite that crc assembly one of these days for newer gas/nasm versions... |
nevermind
|
All times are GMT -4. The time now is 05:55 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.