Trendkill
06-24-2003, 10:18 AM
I can't get anything to compile. I jsut upgraded to GCC 3.2 and have been running MySQL 3.23 for a while now <run this same PHP based DB actually =)>
When trying to make EMu I get this:
gcc -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wbad-function-cast -Wstrict-prototypes -Wno-deprecated -Wnested-externs -Wcomment -Wcast-align -DDEBUG=1 -DSHAREMEM -DCATCH_CRASH -g -fPIC -O2 -D_GNU_SOURCE -DINVERSEXY -DFX `mysql_config --cflags` -DEMUSHAREMEM -c MMFMutex.cpp -o MMFMutex.o
gcc -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wbad-function-cast -Wstrict-prototypes -Wno-deprecated -Wnested-externs -Wcomment -Wcast-align -DDEBUG=1 -DSHAREMEM -DCATCH_CRASH -g -fPIC -O2 -D_GNU_SOURCE -DINVERSEXY -DFX `mysql_config --cflags` -DEMUSHAREMEM -c Doors.cpp -o Doors.o
gcc -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wbad-function-cast -Wstrict-prototypes -Wno-deprecated -Wnested-externs -Wcomment -Wcast-align -DDEBUG=1 -DSHAREMEM -DCATCH_CRASH -g -fPIC -O2 -D_GNU_SOURCE -DINVERSEXY -DFX `mysql_config --cflags` -DEMUSHAREMEM -c Items.cpp -o Items.o
gcc -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wbad-function-cast -Wstrict-prototypes -Wno-deprecated -Wnested-externs -Wcomment -Wcast-align -DDEBUG=1 -DSHAREMEM -DCATCH_CRASH -g -fPIC -O2 -D_GNU_SOURCE -DINVERSEXY -DFX `mysql_config --cflags` -DEMUSHAREMEM -c Spells.cpp -o Spells.o
gcc -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wbad-function-cast -Wstrict-prototypes -Wno-deprecated -Wnested-externs -Wcomment -Wcast-align -DDEBUG=1 -DSHAREMEM -DCATCH_CRASH -g -fPIC -O2 -D_GNU_SOURCE -DINVERSEXY -DFX `mysql_config --cflags` -DEMUSHAREMEM -c NPCTypes.cpp -o NPCTypes.o
gcc -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wbad-function-cast -Wstrict-prototypes -Wno-deprecated -Wnested-externs -Wcomment -Wcast-align -DDEBUG=1 -DSHAREMEM -DCATCH_CRASH -g -fPIC -O2 -D_GNU_SOURCE -DINVERSEXY -DFX `mysql_config --cflags` -DEMUSHAREMEM -c NPCFactionLists.cpp -o NPCFactionLists.o
gcc -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wbad-function-cast -Wstrict-prototypes -Wno-deprecated -Wnested-externs -Wcomment -Wcast-align -DDEBUG=1 -DSHAREMEM -DCATCH_CRASH -g -fPIC -O2 -D_GNU_SOURCE -DINVERSEXY -DFX `mysql_config --cflags` -DEMUSHAREMEM -c MMF.cpp -o MMF.o
MMF.cpp: In method `bool MMF::Open(const char *, unsigned int)':
MMF.cpp:138: warning: unused variable `int max_share'
gcc -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wbad-function-cast -Wstrict-prototypes -Wno-deprecated -Wnested-externs -Wcomment -Wcast-align -DDEBUG=1 -DSHAREMEM -DCATCH_CRASH -g -fPIC -O2 -D_GNU_SOURCE -DINVERSEXY -DFX `mysql_config --cflags` -DEMUSHAREMEM -c Loot.cpp -o Loot.o
Loot.cpp: In function `bool pDLLLoadLoot(bool (*)(), unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int)':
Loot.cpp:192: warning: cast discards qualifiers from pointer target type
Loot.cpp:193: warning: cast discards qualifiers from pointer target type
Loot.cpp: In function `const struct LootTable_Struct * pGetLootTable(unsigned int)':
Loot.cpp:202: warning: cast discards qualifiers from pointer target type
Loot.cpp: In function `const struct LootDrop_Struct * pGetLootDrop(unsigned int)':
Loot.cpp:210: warning: cast discards qualifiers from pointer target type
gcc -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wbad-function-cast -Wstrict-prototypes -Wno-deprecated -Wnested-externs -Wcomment -Wcast-align -DDEBUG=1 -DSHAREMEM -DCATCH_CRASH -g -fPIC -O2 -D_GNU_SOURCE -DINVERSEXY -DFX `mysql_config --cflags` -DEMUSHAREMEM -c ../common/timer.cpp -o ../common/timer.o
gcc -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wbad-function-cast -Wstrict-prototypes -Wno-deprecated -Wnested-externs -Wcomment -Wcast-align -DDEBUG=1 -DSHAREMEM -DCATCH_CRASH -g -fPIC -O2 -D_GNU_SOURCE -DINVERSEXY -DFX `mysql_config --cflags` -DEMUSHAREMEM -c ../common/unix.cpp -o ../common/unix.o
gcc -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wbad-function-cast -Wstrict-prototypes -Wno-deprecated -Wnested-externs -Wcomment -Wcast-align -DDEBUG=1 -DSHAREMEM -DCATCH_CRASH -g -fPIC -O2 -D_GNU_SOURCE -DINVERSEXY -DFX `mysql_config --cflags` -DEMUSHAREMEM -c ../common/EMuShareMem.cpp -o ../common/EMuShareMem.o
gcc -g -shared -Wl,-soname,libEMuShareMem.so -o libEMuShareMem.so MMFMutex.o Doors.o Items.o Spells.o NPCTypes.o NPCFactionLists.o MMF.o Loot.o ../common/timer.o ../common/unix.o ../common/EMuShareMem.o -L. -lstdc++ -lm -lz `mysql_config --libs`
/usr/bin/ld: cannot find -lz
collect2: ld returned 1 exit status
make: *** [libEMuShareMem.so] Error 1
Any ideas?
When trying to make EMu I get this:
gcc -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wbad-function-cast -Wstrict-prototypes -Wno-deprecated -Wnested-externs -Wcomment -Wcast-align -DDEBUG=1 -DSHAREMEM -DCATCH_CRASH -g -fPIC -O2 -D_GNU_SOURCE -DINVERSEXY -DFX `mysql_config --cflags` -DEMUSHAREMEM -c MMFMutex.cpp -o MMFMutex.o
gcc -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wbad-function-cast -Wstrict-prototypes -Wno-deprecated -Wnested-externs -Wcomment -Wcast-align -DDEBUG=1 -DSHAREMEM -DCATCH_CRASH -g -fPIC -O2 -D_GNU_SOURCE -DINVERSEXY -DFX `mysql_config --cflags` -DEMUSHAREMEM -c Doors.cpp -o Doors.o
gcc -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wbad-function-cast -Wstrict-prototypes -Wno-deprecated -Wnested-externs -Wcomment -Wcast-align -DDEBUG=1 -DSHAREMEM -DCATCH_CRASH -g -fPIC -O2 -D_GNU_SOURCE -DINVERSEXY -DFX `mysql_config --cflags` -DEMUSHAREMEM -c Items.cpp -o Items.o
gcc -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wbad-function-cast -Wstrict-prototypes -Wno-deprecated -Wnested-externs -Wcomment -Wcast-align -DDEBUG=1 -DSHAREMEM -DCATCH_CRASH -g -fPIC -O2 -D_GNU_SOURCE -DINVERSEXY -DFX `mysql_config --cflags` -DEMUSHAREMEM -c Spells.cpp -o Spells.o
gcc -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wbad-function-cast -Wstrict-prototypes -Wno-deprecated -Wnested-externs -Wcomment -Wcast-align -DDEBUG=1 -DSHAREMEM -DCATCH_CRASH -g -fPIC -O2 -D_GNU_SOURCE -DINVERSEXY -DFX `mysql_config --cflags` -DEMUSHAREMEM -c NPCTypes.cpp -o NPCTypes.o
gcc -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wbad-function-cast -Wstrict-prototypes -Wno-deprecated -Wnested-externs -Wcomment -Wcast-align -DDEBUG=1 -DSHAREMEM -DCATCH_CRASH -g -fPIC -O2 -D_GNU_SOURCE -DINVERSEXY -DFX `mysql_config --cflags` -DEMUSHAREMEM -c NPCFactionLists.cpp -o NPCFactionLists.o
gcc -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wbad-function-cast -Wstrict-prototypes -Wno-deprecated -Wnested-externs -Wcomment -Wcast-align -DDEBUG=1 -DSHAREMEM -DCATCH_CRASH -g -fPIC -O2 -D_GNU_SOURCE -DINVERSEXY -DFX `mysql_config --cflags` -DEMUSHAREMEM -c MMF.cpp -o MMF.o
MMF.cpp: In method `bool MMF::Open(const char *, unsigned int)':
MMF.cpp:138: warning: unused variable `int max_share'
gcc -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wbad-function-cast -Wstrict-prototypes -Wno-deprecated -Wnested-externs -Wcomment -Wcast-align -DDEBUG=1 -DSHAREMEM -DCATCH_CRASH -g -fPIC -O2 -D_GNU_SOURCE -DINVERSEXY -DFX `mysql_config --cflags` -DEMUSHAREMEM -c Loot.cpp -o Loot.o
Loot.cpp: In function `bool pDLLLoadLoot(bool (*)(), unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int)':
Loot.cpp:192: warning: cast discards qualifiers from pointer target type
Loot.cpp:193: warning: cast discards qualifiers from pointer target type
Loot.cpp: In function `const struct LootTable_Struct * pGetLootTable(unsigned int)':
Loot.cpp:202: warning: cast discards qualifiers from pointer target type
Loot.cpp: In function `const struct LootDrop_Struct * pGetLootDrop(unsigned int)':
Loot.cpp:210: warning: cast discards qualifiers from pointer target type
gcc -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wbad-function-cast -Wstrict-prototypes -Wno-deprecated -Wnested-externs -Wcomment -Wcast-align -DDEBUG=1 -DSHAREMEM -DCATCH_CRASH -g -fPIC -O2 -D_GNU_SOURCE -DINVERSEXY -DFX `mysql_config --cflags` -DEMUSHAREMEM -c ../common/timer.cpp -o ../common/timer.o
gcc -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wbad-function-cast -Wstrict-prototypes -Wno-deprecated -Wnested-externs -Wcomment -Wcast-align -DDEBUG=1 -DSHAREMEM -DCATCH_CRASH -g -fPIC -O2 -D_GNU_SOURCE -DINVERSEXY -DFX `mysql_config --cflags` -DEMUSHAREMEM -c ../common/unix.cpp -o ../common/unix.o
gcc -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wbad-function-cast -Wstrict-prototypes -Wno-deprecated -Wnested-externs -Wcomment -Wcast-align -DDEBUG=1 -DSHAREMEM -DCATCH_CRASH -g -fPIC -O2 -D_GNU_SOURCE -DINVERSEXY -DFX `mysql_config --cflags` -DEMUSHAREMEM -c ../common/EMuShareMem.cpp -o ../common/EMuShareMem.o
gcc -g -shared -Wl,-soname,libEMuShareMem.so -o libEMuShareMem.so MMFMutex.o Doors.o Items.o Spells.o NPCTypes.o NPCFactionLists.o MMF.o Loot.o ../common/timer.o ../common/unix.o ../common/EMuShareMem.o -L. -lstdc++ -lm -lz `mysql_config --libs`
/usr/bin/ld: cannot find -lz
collect2: ld returned 1 exit status
make: *** [libEMuShareMem.so] Error 1
Any ideas?