Error compiling on RPi 4

Kusoo

New member
Messages
44
Points
0
Hello there, I've been using this guide to set up a herc server on my RPi 4 https://herc.ws/wiki/Installation_(Debian)

Everything works until the compilation part.

I'm using DietPi

This is the output of 'make sql'

Code:
hercuser@DietPi:~/Hercules $ make sql
        MAKE    mt19937ar
make[1]: se entra en el directorio '/home/hercuser/Hercules/3rdparty/mt19937ar'
make[1]: No se hace nada para 'all'.
make[1]: se sale del directorio '/home/hercuser/Hercules/3rdparty/mt19937ar'
        MAKE    libconfig
make[1]: se entra en el directorio '/home/hercuser/Hercules/3rdparty/libconfig'
make[1]: No se hace nada para 'all'.
make[1]: se sale del directorio '/home/hercuser/Hercules/3rdparty/libconfig'
        MAKE    libbacktrace
make[1]: se entra en el directorio '/home/hercuser/Hercules/3rdparty/libbacktrace'
make[1]: No se hace nada para 'all'.
make[1]: se sale del directorio '/home/hercuser/Hercules/3rdparty/libbacktrace'
        MAKE    common_sql
make[1]: se entra en el directorio '/home/hercuser/Hercules/src/common'
make[1]: No se hace nada para 'sql'.
make[1]: se sale del directorio '/home/hercuser/Hercules/src/common'
        MAKE    login_sql
make[1]: se entra en el directorio '/home/hercuser/Hercules/src/login'
make[1]: No se hace nada para 'sql'.
make[1]: se sale del directorio '/home/hercuser/Hercules/src/login'
        MAKE    char_sql
make[1]: se entra en el directorio '/home/hercuser/Hercules/src/char'
make[1]: No se hace nada para 'all'.
make[1]: se sale del directorio '/home/hercuser/Hercules/src/char'
        MAKE    map_sql
make[1]: se entra en el directorio '/home/hercuser/Hercules/src/map'
        CC      achievement.c
Mensajes del ensamblador:
Error fatal: no se puede crear obj_sql/achievement.o: Permiso denegado
In file included from ../common/hercules.h:24,
                 from ../map/achievement.h:24,
                 from achievement.c:24:
../common/packetsstatic_len.h:28:24: error: ‘PACKET_LEN_0x02c8’ undeclared here (not in a function); did you mean ‘PACKET_LEN_0x0298’?
  STATIC_ASSERT((int32)(PACKET_LEN_##id) == -1 || sizeof(struct PACKET_##name) == \
                        ^~~~~~~~~~~
../common/cbasetypes.h:472:47: note: in definition of macro ‘STATIC_ASSERT’
 #define STATIC_ASSERT(ex, msg) _Static_assert(ex, msg)
                                               ^~
../map/packets_struct.h:3158:1: note: in expansion of macro ‘DEFINE_PACKET_HEADER’
 DEFINE_PACKET_HEADER(CZ_PARTY_CONFIG, 0x02c8);
 ^~~~~~~~~~~~~~~~~~~~
../common/packetsstatic_len.h:28:16: error: expression in static assertion is not an integer
  STATIC_ASSERT((int32)(PACKET_LEN_##id) == -1 || sizeof(struct PACKET_##name) == \
                ^
../common/cbasetypes.h:472:47: note: in definition of macro ‘STATIC_ASSERT’
 #define STATIC_ASSERT(ex, msg) _Static_assert(ex, msg)
                                               ^~
../map/packets_struct.h:3158:1: note: in expansion of macro ‘DEFINE_PACKET_HEADER’
 DEFINE_PACKET_HEADER(CZ_PARTY_CONFIG, 0x02c8);
 ^~~~~~~~~~~~~~~~~~~~
../common/packetsstatic_len.h:28:24: error: ‘PACKET_LEN_0x07e1’ undeclared here (not in a function); did you mean ‘PACKET_LEN_0x01e1’?
  STATIC_ASSERT((int32)(PACKET_LEN_##id) == -1 || sizeof(struct PACKET_##name) == \
                        ^~~~~~~~~~~
../common/cbasetypes.h:472:47: note: in definition of macro ‘STATIC_ASSERT’
 #define STATIC_ASSERT(ex, msg) _Static_assert(ex, msg)
                                               ^~
../map/packets_struct.h:3597:1: note: in expansion of macro ‘DEFINE_PACKET_HEADER’
 DEFINE_PACKET_HEADER(ZC_SKILLINFO_UPDATE2, 0x07e1);
 ^~~~~~~~~~~~~~~~~~~~
../common/packetsstatic_len.h:28:16: error: expression in static assertion is not an integer
  STATIC_ASSERT((int32)(PACKET_LEN_##id) == -1 || sizeof(struct PACKET_##name) == \
                ^
../common/cbasetypes.h:472:47: note: in definition of macro ‘STATIC_ASSERT’
 #define STATIC_ASSERT(ex, msg) _Static_assert(ex, msg)
                                               ^~
../map/packets_struct.h:3597:1: note: in expansion of macro ‘DEFINE_PACKET_HEADER’
 DEFINE_PACKET_HEADER(ZC_SKILLINFO_UPDATE2, 0x07e1);
 ^~~~~~~~~~~~~~~~~~~~
make[1]: *** [Makefile:165: obj_sql/achievement.o] Error 2
make[1]: se sale del directorio '/home/hercuser/Hercules/src/map'
make: *** [Makefile:124: map_sql] Error 2
hercuser@DietPi:~/Hercules $
 
error show what you probably using packet version older than 2010. you really need it?

 
error show what you probably using packet version older than 2010. you really need it?
You were right, I was using an old packet verssion, thank you!

One thing I had to do was give hercuser sudo permition, without it I couldnt use 'make' succesuflly

 
this is because you messed with permissions

you should clone/build/run hercules from normal user. but look like you cloned as root and want build as user, here will be errors yes.

 
Back
Top