map-server not being created during compile

Ask for help regarding any technical issue or report any bug or OS independent issues.
Post Reply
User avatar
Freeyorp101
Archivist Prime
Archivist Prime
Posts: 765
Joined: 04 Nov 2008, 09:17
Location: New Zealand

map-server not being created during compile

Post 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
(09:58:17) < tux9th> Freeyorp: your sig on the forums is kind of outdated
User avatar
Jaxad0127
Manasource
Manasource
Posts: 4209
Joined: 01 Nov 2007, 17:35
Location: Internet

Re: map-server not being created during compile

Post 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.
Image
Post Reply