Page 1 of 1

map-server not being created during compile

Posted: 30 Dec 2008, 11:25
by Freeyorp101
I have a working tmw eAthena testing server on my old machine (running Ubuntu Hardy Heron 8.04 32-bit), and as I needed to update the server for a new function anyway, I tried compiling on my new machine (running Ubuntu Intrepid Ibex 8.10 64-bit).

After compiling, the map-server executable had not been created, although char-server and login-server had.

The problem I have seems to be a duplicate of this one, but I have both the zlib and zlib-dev packages installed.

Part of the output complains that libz.so and libz.a aren't compatible:

Code: Select all

gcc -m32 -pipe -o ../../map-server txtobj/magic-interpreter-lexer.o txtobj/magic-interpreter-parser.o txtobj/magic-interpreter-base.o txtobj/magic-expr.o txtobj/magic-stmt.o txtobj/magic.o txtobj/map.o txtobj/chrif.o txtobj/clif.o txtobj/pc.o txtobj/npc.o txtobj/chat.o txtobj/path.o txtobj/itemdb.o txtobj/mob.o txtobj/script.o txtobj/storage.o txtobj/skill.o txtobj/atcommand.o txtobj/battle.o txtobj/intif.o txtobj/trade.o txtobj/party.o txtobj/vending.o txtobj/guild.o txtobj/pet.o ../common/core.o ../common/socket.o ../common/timer.o ../common/grfio.o ../common/db.o ../common/lock.o ../common/nullpo.o ../common/malloc.o -lz -lm
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.3.2/../../../libz.so when searching for -lz
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.3.2/../../../libz.a when searching for -lz
/usr/bin/ld: skipping incompatible /usr/lib/libz.so when searching for -lz
/usr/bin/ld: skipping incompatible /usr/lib/libz.a when searching for -lz
/usr/bin/ld: cannot find -lz
collect2: ld returned 1 exit status
make[1]: *** [map-server] Error 1
Is anyone able to help? :?

---Freeyorp

Re: map-server not being created during compile

Posted: 30 Dec 2008, 15:45
by Jaxad0127
Compilation under 64bit has always been troublesome. I've gotten around it for Ubuntu by compiling under 32bit Debian and copying the executables over.