trouble compiling eAthena

Ask for help regarding any technical issue or report any bug or OS independent issues.
Post Reply
User avatar
Nooblets
Peon
Peon
Posts: 31
Joined: 08 Jul 2009, 22:26

trouble compiling eAthena

Post by Nooblets »

Hi, I'm having trouble setting up eAthena I searched around but didn't find any solutions that worked.

Here is compile log:

Code: Select all

tyler@Biliskner:~/eathena$ make
cd src ; cd common ; make CC="gcc -m32 -pipe" CFLAGS="-g -O2 -m32 -Wall -Wno-pointer-sign -I../common  " all ; cd ..
make[1]: Entering directory `/home/tyler/eathena/src/common'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/tyler/eathena/src/common'
cd src ; cd login ; make CC="gcc -m32 -pipe" CFLAGS="-g -O2 -m32 -Wall -Wno-pointer-sign -I../common  " all ; cd ..
make[1]: Entering directory `/home/tyler/eathena/src/login'
gcc -m32 -pipe -o ../../login-server login.o md5calc.o ../common/core.o ../common/socket.o ../common/timer.o ../common/db.o ../common/lock.o ../common/malloc.o ../common/mt_rand.o
make[1]: Leaving directory `/home/tyler/eathena/src/login'
cd src ; cd char ; make CC="gcc -m32 -pipe" CFLAGS="-g -O2 -m32 -Wall -Wno-pointer-sign -I../common  " all ; cd ..
make[1]: Entering directory `/home/tyler/eathena/src/char'
gcc -m32 -pipe -o ../../char-server char.o inter.o int_party.o int_guild.o int_storage.o ../common/core.o ../common/socket.o ../common/timer.o ../common/db.o ../common/lock.o ../common/malloc.o ../common/mt_rand.o
make[1]: Leaving directory `/home/tyler/eathena/src/char'
cd src ; cd map ; make CC="gcc -m32 -pipe" CFLAGS="-g -O2 -m32 -Wall -Wno-pointer-sign -I../common  " all ; cd ..
make[1]: Entering directory `/home/tyler/eathena/src/map'
gcc -m32 -pipe -o ../../map-server obj/tmw.o obj/magic-interpreter-lexer.o obj/magic-interpreter-parser.o obj/magic-interpreter-base.o obj/magic-expr.o obj/magic-stmt.o obj/magic.o obj/map.o obj/chrif.o obj/clif.o obj/pc.o obj/npc.o obj/chat.o obj/path.o obj/itemdb.o obj/mob.o obj/script.o obj/storage.o obj/skill.o obj/atcommand.o obj/battle.o obj/intif.o obj/trade.o obj/party.o obj/guild.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 ../common/mt_rand.o -lz -lm
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.3.3/../../../libz.so when searching for -lz
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.3.3/../../../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
make[1]: Leaving directory `/home/tyler/eathena/src/map'
cd src ; cd ladmin ; make CC="gcc -m32 -pipe" CFLAGS="-g -O2 -m32 -Wall -Wno-pointer-sign -I../common  " all ; cd ..
make[1]: Entering directory `/home/tyler/eathena/src/ladmin'
gcc -m32 -pipe -o ../../ladmin ladmin.o md5calc.o ../common/core.o ../common/socket.o ../common/timer.o ../common/db.o ../common/malloc.o ../common/mt_rand.o
make[1]: Leaving directory `/home/tyler/eathena/src/ladmin'
User avatar
fate
Warrior
Warrior
Posts: 402
Joined: 20 Mar 2008, 14:34

Re: trouble compiling eAthena

Post by fate »

Nooblets,

you need the ia32 version of libz. For Debian, apt-get install lib32z1-dev.

-- fate
User avatar
Nooblets
Peon
Peon
Posts: 31
Joined: 08 Jul 2009, 22:26

Re: trouble compiling eAthena

Post by Nooblets »

works thanks :)
Post Reply