Problem building local server from source

Ask for help regarding any technical issue or report any bug or OS independent issues.
Post Reply
skwirl42
Newly Registered User
Posts: 2
Joined: 08 Jan 2017, 14:43

Problem building local server from source

Post by skwirl42 » 08 Jan 2017, 14:56

I've been working on building the server from source locally, following the directions in https://www.themanaworld.org/index.php/ ... to_Develop

However, when I get to the step at https://www.themanaworld.org/index.php/ ... cal_server I get the error below.

I've installed all the prereqs, the only difference is that I grabbed https://github.com/themanaworld/evol-all initially, rather than the gitlab one.

Code: Select all

cd ../tools/localserver/ ; ./build.sh
make[1]: Entering directory '/home/james/Repos/evol-all/server-code'
make[1]: *** No rule to make target 'clean'.  Stop.
make[1]: Leaving directory '/home/james/Repos/evol-all/server-code'
./build.sh: line 5: ./build.sh: No such file or directory
Makefile:11: recipe for target 'build' failed
make: *** [build] Error 127
server-code only contains a directory src/evol, which then contains the actual source. When I try to run ./build.sh in there, I get this (truncated) after everything that can build does:

Code: Select all

libtool: compile:  gcc -DPACKAGE_NAME=\"foobar\" -DPACKAGE_TARNAME=\"foobar\" -DPACKAGE_VERSION=\"1.0\" "-DPACKAGE_STRING=\"foobar 1.0\"" -DPACKAGE_BUGREPORT=\"me@mail.com\" -DPACKAGE_URL=\"\" -DPACKAGE=\"foobar\" -DVERSION=\"1.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -I. -I../../src -DOLD_MAX_SKILL_DB=1510 -DMAX_SKILL=1532 -DMAX_SKILL_ID=20022 -DMAX_EVOL_SKILLS=22 -DEVOL_FIRST_SKILL=20000 -DSC_MAX=657 -DSI_MAX=971 -g -O2 -flto -ffat-lto-objects -fsanitize=address -fsanitize=shift -fsanitize=integer-divide-by-zero -fsanitize=unreachable -fsanitize=vla-bound -fsanitize=null -fsanitize=return -fsanitize=signed-integer-overflow -fsanitize=bounds -fsanitize=object-size -fsanitize=float-divide-by-zero -fsanitize=float-cast-overflow -fsanitize=nonnull-attribute -fsanitize=returns-nonnull-attribute -fsanitize=bool -fsanitize=enum -fsanitize=vptr -Wempty-body -Wint-conversion -Winit-self -Wpointer-arith -Wswitch-bool -Wformat-security -Wformat -Wformat-signedness -Wformat-y2k -Wmissing-include-dirs -Wsuggest-attribute=noreturn -Wundef -Wlogical-op -Wnested-externs -Wold-style-definition -Woverlength-strings -Wredundant-decls -Wunused-but-set-parameter -Wunused-but-set-variable -Wunreachable-code -Wunused-function -Wunused-local-typedefs -Wunused-parameter -Wunused-result -Wunused-value -Wunused-variable -DHAVE_STRNLEN -O3 -pipe -ffast-math -std=c99 -Wall -Wextra -Wno-sign-compare -Wno-unused -fno-omit-frame-pointer -DPCRE_SUPPORT -I../../.. -I../../../../3rdparty -DPACKETVER=20150000 -Wno-strict-aliasing -g -O2 -flto -ffat-lto-objects -fsanitize=address -fsanitize=shift -fsanitize=integer-divide-by-zero -fsanitize=unreachable -fsanitize=vla-bound -fsanitize=null -fsanitize=return -fsanitize=signed-integer-overflow -fsanitize=bounds -fsanitize=object-size -fsanitize=float-divide-by-zero -fsanitize=float-cast-overflow -fsanitize=nonnull-attribute -fsanitize=returns-nonnull-attribute -fsanitize=bool -fsanitize=enum -fsanitize=vptr -Wempty-body -Wint-conversion -Winit-self -Wpointer-arith -Wswitch-bool -Wformat-security -Wformat -Wformat-signedness -Wformat-y2k -Wmissing-include-dirs -Wsuggest-attribute=noreturn -Wundef -Wlogical-op -Wnested-externs -Wold-style-definition -Woverlength-strings -Wredundant-decls -Wunused-but-set-parameter -Wunused-but-set-variable -Wunreachable-code -Wunused-function -Wunused-local-typedefs -Wunused-parameter -Wunused-result -Wunused-value -Wunused-variable -DHAVE_STRNLEN -MT ecommon/libevol_map_la-config.lo -MD -MP -MF ecommon/.deps/libevol_map_la-config.Tpo -c ../../src/ecommon/config.c  -fPIC -DPIC -o ecommon/.libs/libevol_map_la-config.o
../../src/ecommon/init.c:4:29: fatal error: common/hercules.h: No such file or directory
compilation terminated.
compilation terminated.
Makefile:1262: recipe for target 'ecommon/libevol_map_la-init.lo' failed
make[1]: *** [ecommon/libevol_map_la-init.lo] Error 1
make[1]: *** Waiting for unfinished jobs....
Makefile:877: recipe for target 'echar/libevol_char_la-char.lo' failed
make[1]: *** [echar/libevol_char_la-char.lo] Error 1
cc1: warning: ../../../../3rdparty: No such file or directory [-Wmissing-include-dirs]
../../src/ecommon/config.c:4:29: fatal error: common/hercules.h: No such file or directory
compilation terminated.
Makefile:1255: recipe for target 'ecommon/libevol_map_la-config.lo' failed
make[1]: *** [ecommon/libevol_map_la-config.lo] Error 1
make[1]: Leaving directory '/home/james/Repos/evol-all/server-code/src/evol/build/src'
Makefile:381: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1
/home/james/Repos/evol-all/server-code/src/evol
User avatar
gumi
Developer
Developer
Posts: 662
Joined: 19 May 2014, 19:18

Re: Problem building local server from source

Post by gumi » 08 Jan 2017, 15:23

skwirl42 wrote:server-code only contains a directory src/evol, which then contains the actual source.
See, that's your problem. You need both evol/hercules and evol/evol-hercules.


evol-all/
https://github.com/themanaworld/evol-all.git

evol-all/tools/
https://github.com/themanaworld/evol-tools.git

evol-all/server-code/
https://github.com/themanaworld/hercules.git

evol-all/server-code/src/evol/
https://github.com/themanaworld/evol-hercules.git

evol-all/server-plugin
(symlink to evol-all/server-code/src/evol/)

evol-all/server-data/
https://github.com/themanaworld/server-data.git

evol-all/client-data/
https://github.com/themanaworld/client-data.git


in bold are the required ones to build the server

feel free to join #evol-dev on Freenode if you need further assistance
skwirl42
Newly Registered User
Posts: 2
Joined: 08 Jan 2017, 14:43

Re: Problem building local server from source

Post by skwirl42 » 08 Jan 2017, 15:54

I just used the init script from evol-all. Does it not grab all these?
User avatar
gumi
Developer
Developer
Posts: 662
Joined: 19 May 2014, 19:18

Re: Problem building local server from source

Post by gumi » 08 Jan 2017, 15:58

skwirl42 wrote:I just used the init script from evol-all. Does it not grab all these?
Depends what you tell it to do.

If you want everything:

Code: Select all

./init.sh all
If you want the bare minimum:

Code: Select all

./init.sh server
Post Reply