Jump to content
  • 0
Sign in to follow this  
Kusoo

Error compiling on RPi 4

Question

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'

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 $

 

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

error show what you probably using packet version older than 2010. you really need it?

 

Share this post


Link to post
Share on other sites
  • 0
4 hours ago, 4144 said:

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

Share this post


Link to post
Share on other sites
  • 0

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.

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.