SHARE
TWEET

compile errors with old packetvers

a guest Feb 16th, 2020 83 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. user@computer ~/compiled-herc
  2. $ ./configure
  3. checking for gcc... gcc
  4. checking whether the C compiler works... yes
  5. checking for C compiler default output file name... a.exe
  6. checking for suffix of executables... .exe
  7. checking whether we are cross compiling... no
  8. checking for suffix of object files... o
  9. checking whether we are using the GNU C compiler... yes
  10. checking whether gcc accepts -g... yes
  11. checking for gcc option to accept ISO C89... none needed
  12. checking how to run the C preprocessor... gcc -E
  13. checking for grep that handles long lines and -e... /usr/bin/grep
  14. checking for egrep... /usr/bin/grep -E
  15. checking for ANSI C header files... yes
  16. checking for sys/types.h... yes
  17. checking for sys/stat.h... yes
  18. checking for stdlib.h... yes
  19. checking for string.h... yes
  20. checking for memory.h... yes
  21. checking for strings.h... yes
  22. checking for inttypes.h... yes
  23. checking for stdint.h... yes
  24. checking for unistd.h... yes
  25. checking minix/config.h usability... no
  26. checking minix/config.h presence... no
  27. checking for minix/config.h... no
  28. checking whether it is safe to define __EXTENSIONS__... yes
  29. checking whether make sets $(MAKE)... yes
  30. checking for gcc... (cached) gcc
  31. checking whether we are using the GNU C compiler... (cached) yes
  32. checking whether gcc accepts -g... (cached) yes
  33. checking for gcc option to accept ISO C89... (cached) none needed
  34. checking how to run the C preprocessor... gcc -E
  35. checking for ar... /usr/bin/ar
  36. checking whether gcc supports -std=c11... yes
  37. checking whether byte ordering is bigendian... no
  38. checking whether gcc produces 32bit code... yes
  39. checking whether gcc supports -march=i686 (and we can run it)... yes
  40. checking whether gcc supports __thread specifier (TLS)... yes
  41. checking whether gcc accepts -rdynamic... yes
  42. checking whether gcc supports -Wno-unused-parameter... yes
  43. checking whether gcc can actually use -Wno-unused-parameter... yes
  44. checking whether gcc supports -Wno-clobbered... yes
  45. checking whether gcc supports -Wempty-body... yes
  46. checking whether gcc supports -Wnewline-eof... no
  47. checking whether gcc supports -Wint-conversion... yes
  48. checking whether gcc supports -Winit-self... yes
  49. checking whether gcc supports -Wpointer-arith... yes
  50. checking whether gcc supports -Wswitch-bool... yes
  51. checking whether gcc supports -Wenum-conversion... no
  52. checking whether gcc supports -Wshorten-64-to-32... no
  53. checking whether gcc supports -Wconstant-conversion... no
  54. checking whether gcc supports -Wbool-conversion... no
  55. checking whether gcc supports -Wformat-security... yes
  56. checking whether gcc supports -Wformat... yes
  57. checking whether gcc supports -Wformat-signedness... yes
  58. checking whether gcc supports -Wformat-y2k... yes
  59. checking whether gcc supports -Wmissing-include-dirs... no
  60. checking whether gcc supports -Wsuggest-attribute=noreturn... yes
  61. checking whether gcc supports -Wundef... yes
  62. checking whether gcc supports -Wnested-externs... yes
  63. checking whether gcc supports -Wold-style-definition... yes
  64. checking whether gcc supports -Woverlength-strings... yes
  65. checking whether gcc supports -Wredundant-decls... yes
  66. checking whether gcc supports -Wcast-qual... yes
  67. checking whether gcc supports -Wmisleading-indentation... yes
  68. checking whether gcc supports -Wnull-dereference... yes
  69. checking whether gcc supports -Wvla... yes
  70. checking whether gcc supports -Wno-format-nonliteral... yes
  71. checking whether gcc supports -Wno-switch... yes
  72. checking whether gcc supports -Wno-missing-field-initializers... yes
  73. checking whether gcc supports -Wno-suggest-attribute=format... yes
  74. checking whether gcc supports -Wshadow... yes
  75. checking whether gcc can efficiently use -Wshadow... yes
  76. checking whether gcc supports -fPIC... yes
  77. checking how to make shared objects... -shared yes
  78. checking whether gcc needs -Wl,--no-undefined to check for undefined references in shared objects... no
  79. checking whether gcc supports -fno-strict-aliasing... yes
  80. checking for setrlimit... yes
  81. checking for strnlen... yes
  82. checking for uselocale... yes
  83. checking for newlocale... yes
  84. checking for freelocale... yes
  85. checking xlocale.h usability... no
  86. checking xlocale.h presence... no
  87. checking for xlocale.h... no
  88. checking whether gcc supports -fno-omit-frame-pointer... yes
  89. checking whether gcc supports -fno-var-tracking... yes
  90. checking host OS... CYGWIN_NT-6.1
  91. checking for MinGW... no
  92. checking for library containing inflateEnd... -lz
  93. checking zlib.h usability... yes
  94. checking zlib.h presence... yes
  95. checking for zlib.h... yes
  96. checking for library containing sqrt... none required
  97. checking for library containing clock_gettime... none required
  98. checking whether CLOCK_MONOTONIC is supported and works... yes
  99. checking for library containing pthread_create... none required
  100. checking for library containing pthread_sigmask... none required
  101. checking for library containing pthread_attr_init... none required
  102. checking for library containing pthread_attr_setstacksize... none required
  103. checking for library containing pthread_attr_destroy... none required
  104. checking for library containing pthread_cancel... none required
  105. checking for library containing pthread_join... none required
  106. checking execinfo.h usability... no
  107. checking execinfo.h presence... no
  108. checking for execinfo.h... no
  109. checking for mysql_config... /usr/bin/mysql_config
  110. checking for mysql_init... yes
  111. checking mysql.h usability... yes
  112. checking mysql.h presence... yes
  113. checking for mysql.h... yes
  114. checking whether my_bool is supported (MySQL)... yes
  115. checking MySQL library (required)... yes (10.3.6)
  116. checking PCRE library... checking pcre.h usability... yes
  117. checking pcre.h presence... yes
  118. checking for pcre.h... yes
  119. checking for library containing pcre_study... -lpcre
  120. checking for doxygen... no
  121. checking for perl... yes
  122. configure: creating ./config.status
  123. config.status: creating Makefile
  124. config.status: creating src/common/Makefile
  125. config.status: creating 3rdparty/mt19937ar/Makefile
  126. config.status: creating 3rdparty/libconfig/Makefile
  127. config.status: creating src/char/Makefile
  128. config.status: creating src/login/Makefile
  129. config.status: creating src/map/Makefile
  130. config.status: creating src/plugins/Makefile
  131. config.status: creating src/test/Makefile
  132. config.status: creating tools/HPMHookGen/Makefile
  133. config.status: creating tools/doxygen/Makefile
  134.  
  135. user@computer ~/compiled-herc
  136. $ ls
  137. 3rdparty         db                  mac.start.scpt  script-checker
  138. athena-start     db2sql.bat          Makefile        script-checker.bat
  139. AUTHORS          dbghelp.dll         Makefile.in     serv.bat
  140. cache            doc                 maps            sql-files
  141. CHANGELOG.md     Hercules.xcodeproj  map-server.bat  src
  142. char-server.bat  Hercules-14.sln     map-server.sh   sysinfogen.sh
  143. char-server.sh   Hercules-15.sln     mariadb.bat     tools
  144. conf             Hercules-16.sln     npc             vcproj-14
  145. config.log       libmariadb.dll      pcre3.dll       vcproj-15
  146. config.status    LICENSE             plugins         vcproj-16
  147. configure        log                 README.md       zlib1.dll
  148. configure.ac     login-server.bat    run-server.bat
  149. CONTRIBUTING.md  login-server.sh     save
  150.  
  151. user@computer ~/compiled-herc
  152. $ make sql
  153.         MAKE    mt19937ar
  154. make[1]: Entering directory '/home/user/compiled-herc/3rdparty/mt19937ar'
  155.         CC      mt19937ar.c
  156. make[1]: Leaving directory '/home/user/compiled-herc/3rdparty/mt19937ar'
  157.         MAKE    libconfig
  158. make[1]: Entering directory '/home/user/compiled-herc/3rdparty/libconfig'
  159.         CC      libconfig.c
  160.         CC      grammar.c
  161.         CC      scanctx.c
  162.         CC      scanner.c
  163.         CC      strbuf.c
  164. make[1]: Leaving directory '/home/user/compiled-herc/3rdparty/libconfig'
  165.         MAKE    common_sql
  166. make[1]: Entering directory '/home/user/compiled-herc/src/common'
  167.         MKDIR   obj_all
  168.         CC      conf.c
  169.         CC      db.c
  170.         CC      des.c
  171.         CC      ers.c
  172.         CC      grfio.c
  173.         CC      HPM.c
  174.         CC      mapindex.c
  175.         CC      md5calc.c
  176.         CC      mutex.c
  177.         CC      nullpo.c
  178.         CC      packets.c
  179.         CC      random.c
  180.         CC      showmsg.c
  181.         CC      strlib.c
  182.         CC      sysinfo.c
  183.         CC      thread.c
  184.         CC      timer.c
  185.         CC      utils.c
  186.         CC      console.c
  187.         CC      core.c
  188.         CC      memmgr.c
  189.         CC      socket.c
  190.         AR      obj_all/common.a
  191.         MKDIR   obj_sql
  192.         CC      sql.c
  193.         AR      obj_sql/common_sql.a
  194. make[1]: Leaving directory '/home/user/compiled-herc/src/common'
  195.         MAKE    login_sql
  196. make[1]: Entering directory '/home/user/compiled-herc/src/login'
  197.         MKDIR   obj_sql
  198.         CC      account.c
  199.         CC      HPMlogin.c
  200.         CC      ipban.c
  201.         CC      lclif.c
  202.         CC      login.c
  203.         CC      loginlog.c
  204.         LD      login-server.exe
  205. make[1]: Leaving directory '/home/user/compiled-herc/src/login'
  206.         MAKE    char_sql
  207. make[1]: Entering directory '/home/user/compiled-herc/src/char'
  208.         MKDIR   obj_sql
  209.         CC      char.c
  210.         CC      HPMchar.c
  211.         CC      loginif.c
  212.         CC      mapif.c
  213.         CC      geoip.c
  214.         CC      inter.c
  215.         CC      int_achievement.c
  216.         CC      int_auction.c
  217.         CC      int_clan.c
  218.         CC      int_elemental.c
  219.         CC      int_guild.c
  220.         CC      int_homun.c
  221.         CC      int_mail.c
  222.         CC      int_mercenary.c
  223.         CC      int_party.c
  224.         CC      int_pet.c
  225.         CC      int_quest.c
  226.         CC      int_rodex.c
  227.         CC      int_storage.c
  228.         CC      pincode.c
  229.         LD      char-server.exe
  230. make[1]: Leaving directory '/home/user/compiled-herc/src/char'
  231.         MAKE    map_sql
  232. make[1]: Entering directory '/home/user/compiled-herc/src/map'
  233.         MKDIR   obj_sql
  234.         CC      achievement.c
  235. In file included from ../common/hercules.h:24:0,
  236.                  from ../map/achievement.h:24,
  237.                  from achievement.c:24:
  238. ../common/packetsstatic_len.h:28:24: error: ‘PACKET_LEN_0x07e1’ undeclared here (not in a function); did you mean ‘PACKET_LEN_0x02e1’?
  239.   STATIC_ASSERT((int32)(PACKET_LEN_##id) == -1 || sizeof(struct PACKET_##name) == \
  240.                         ^
  241. ../common/cbasetypes.h:469:47: note: in definition of macro ‘STATIC_ASSERT’
  242.  #define STATIC_ASSERT(ex, msg) _Static_assert(ex, msg)
  243.                                                ^~
  244. ../map/packets_struct.h:3597:1: note: in expansion of macro ‘DEFINE_PACKET_HEADER’
  245.  DEFINE_PACKET_HEADER(ZC_SKILLINFO_UPDATE2, 0x07e1);
  246.  ^~~~~~~~~~~~~~~~~~~~
  247. ../common/packetsstatic_len.h:28:16: error: expression in static assertion is not an integer
  248.   STATIC_ASSERT((int32)(PACKET_LEN_##id) == -1 || sizeof(struct PACKET_##name) == \
  249.                 ^
  250. ../common/cbasetypes.h:469:47: note: in definition of macro ‘STATIC_ASSERT’
  251.  #define STATIC_ASSERT(ex, msg) _Static_assert(ex, msg)
  252.                                                ^~
  253. ../map/packets_struct.h:3597:1: note: in expansion of macro ‘DEFINE_PACKET_HEADER’
  254.  DEFINE_PACKET_HEADER(ZC_SKILLINFO_UPDATE2, 0x07e1);
  255.  ^~~~~~~~~~~~~~~~~~~~
  256. ../common/packetsstatic_len.h:28:24: error: ‘PACKET_LEN_0x0845’ undeclared here (not in a function); did you mean ‘PACKET_LEN_0x0345’?
  257.   STATIC_ASSERT((int32)(PACKET_LEN_##id) == -1 || sizeof(struct PACKET_##name) == \
  258.                         ^
  259. ../common/cbasetypes.h:469:47: note: in definition of macro ‘STATIC_ASSERT’
  260.  #define STATIC_ASSERT(ex, msg) _Static_assert(ex, msg)
  261.                                                ^~
  262. ../map/packets_struct.h:3788:1: note: in expansion of macro ‘DEFINE_PACKET_HEADER’
  263.  DEFINE_PACKET_HEADER(ZC_SE_CASHSHOP_OPEN, 0x0845);
  264.  ^~~~~~~~~~~~~~~~~~~~
  265. ../common/packetsstatic_len.h:28:16: error: expression in static assertion is not an integer
  266.   STATIC_ASSERT((int32)(PACKET_LEN_##id) == -1 || sizeof(struct PACKET_##name) == \
  267.                 ^
  268. ../common/cbasetypes.h:469:47: note: in definition of macro ‘STATIC_ASSERT’
  269.  #define STATIC_ASSERT(ex, msg) _Static_assert(ex, msg)
  270.                                                ^~
  271. ../map/packets_struct.h:3788:1: note: in expansion of macro ‘DEFINE_PACKET_HEADER’
  272.  DEFINE_PACKET_HEADER(ZC_SE_CASHSHOP_OPEN, 0x0845);
  273.  ^~~~~~~~~~~~~~~~~~~~
  274. make[1]: *** [Makefile:148: obj_sql/achievement.o] Error 1
  275. make[1]: Leaving directory '/home/user/compiled-herc/src/map'
  276. make: *** [Makefile:120: map_sql] Error 2
  277.  
  278. user@computer ~/compiled-herc
  279. $
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top