TomenetGame / tomenet

TomeNET is an online multiplayer roguelike role-playing game
https://www.tomenet.eu/
Other
70 stars 12 forks source link

Build without USE_X11 fails #14

Closed DarthGandalf closed 1 year ago

DarthGandalf commented 3 years ago

I edited the makefile, ran make.

gcc -O2 -g -pipe -Wall -DUSE_GCU -D_XOPEN_SOURCE -D_BSD_SOURCE -DMEXP=19937 -std=c99 -DSOUND_SDL `sdl-config --cflags`  -Iserver -Iserver/lua -Wl,-z,relro -Wl,-z,now -o tomenet common/z-util.o common/z-virt.o common/z-form.o common/z-rand.o common/net-unix.o common/sockbuf.o common/net-ibm.o common/common.o client/z-term.o client/c-util.o client/c-cmd.o client/c-inven.o client/c-files.o client/c-tables.o client/c-store.o client/c-init.o client/variable.o client/main-ibm.o client/main-cap.o client/main-gcu.o client/main-x11.o client/main-xaw.o client/nclient.o client/c-birth.o client/c-xtra1.o client/c-xtra2.o client/c-spell.o client/client.o client/skills.o common/files.o common/SFMT.o client/snd-sdl.o common/tables.o common/md5.o client/c-script.o client/lua_bind.o client/w_play.o client/w_util.o client/w_spells.o server/lua/lapi.o server/lua/lcode.o server/lua/ldebug.o server/lua/ldo.o server/lua/lfunc.o server/lua/lgc.o server/lua/llex.o server/lua/lmem.o server/lua/lobject.o server/lua/lparser.o server/lua/lstate.o server/lua/lstring.o server/lua/ltable.o server/lua/ltests.o server/lua/ltm.o server/lua/lundump.o server/lua/lvm.o server/lua/lzio.o server/lua/lauxlib.o server/lua/lbaselib.o server/lua/ldblib.o server/lua/liolib.o server/lua/lstrlib.o server/lua/tolua_lb.o server/lua/tolua_rg.o server/lua/tolua_tt.o server/lua/tolua_tm.o server/lua/tolua_gp.o server/lua/tolua_eh.o server/lua/tolua_bd.o server/lua/lmathlib.o -L/usr/pkg/lib -lncurses -lcrypt -lm `sdl-config --libs` -lSDL_mixer
/usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: server/lua/liolib.o: in function `io_tmpname':
/tmp/tomenet-4.7.3/src/server/lua/liolib.c:519: warning: the use of `tmpnam' is dangerous, better use `mkstemp'
/usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: client/main-gcu.o: undefined reference to symbol 'nodelay'
/usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: /lib64/libtinfo.so.6: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make: *** [makefile:467: tomenet] Error 1
CBlueGH commented 2 years ago

Are you on BSD? Please edit tomenet/src/config.h and comment out the line (116 in my current version of the file): # define USE_GETCH and see if it works then.

CBlueGH commented 1 year ago

The server no longer requires X11 to build in any way. Closing.