Code:
ironfist@ironfist-aorus:~/projects/tbamud_cmake_test/tbamud$ cmake -B build -S .
-- Looking for sys/wait.h
-- Looking for sys/wait.h - found
-- Looking for gettimeofday
-- Looking for gettimeofday - found
-- Looking for select
-- Looking for select - found
-- Looking for snprintf
-- Looking for snprintf - found
-- Looking for strcasecmp
-- Looking for strcasecmp - found
-- Looking for strdup
-- Looking for strdup - found
-- Looking for strerror
-- Looking for strerror - found
-- Looking for stricmp
-- Looking for stricmp - not found
-- Looking for strlcpy
-- Looking for strlcpy - found
-- Looking for strncasecmp
-- Looking for strncasecmp - found
-- Looking for strnicmp
-- Looking for strnicmp - not found
-- Looking for strstr
-- Looking for strstr - found
-- Looking for vsnprintf
-- Looking for vsnprintf - found
-- Looking for vprintf
-- Looking for vprintf - found
-- Looking for inet_addr
-- Looking for inet_addr - found
-- Looking for inet_aton
-- Looking for inet_aton - found
-- Found libcrypt: /usr/lib/x86_64-linux-gnu/libcrypt.so
-- signal() returns void.
-- accept() has a prototype, not setting NEED_ACCEPT_PROTO
-- bind() has a prototype, not setting NEED_BIND_PROTO
-- gettimeofday() has a prototype, not setting NEED_GETTIMEOFDAY_PROTO
-- atoi() has a prototype, not setting NEED_ATOI_PROTO
-- atol() has a prototype, not setting NEED_ATOL_PROTO
-- bzero() has a prototype, not setting NEED_BZERO_PROTO
-- chdir() has a prototype, not setting NEED_CHDIR_PROTO
-- close() has a prototype, not setting NEED_CLOSE_PROTO
-- fclose() has a prototype, not setting NEED_FCLOSE_PROTO
-- fcntl() has a prototype, not setting NEED_FCNTL_PROTO
-- fflush() has a prototype, not setting NEED_FFLUSH_PROTO
-- fprintf() has a prototype, not setting NEED_FPRINTF_PROTO
-- fputc() has a prototype, not setting NEED_FPUTC_PROTO
-- fread() has a prototype, not setting NEED_FREAD_PROTO
-- fscanf() has a prototype, not setting NEED_FSCANF_PROTO
-- fseek() has a prototype, not setting NEED_FSEEK_PROTO
-- fwrite() has a prototype, not setting NEED_FWRITE_PROTO
-- getpeername() has a prototype, not setting NEED_GETPEERNAME_PROTO
-- getpid() has a prototype, not setting NEED_GETPID_PROTO
-- getrlimit() has a prototype, not setting NEED_GETRLIMIT_PROTO
-- getsockname() has a prototype, not setting NEED_GETSOCKNAME_PROTO
-- htonl() has a prototype, not setting NEED_HTONL_PROTO
-- htons() has a prototype, not setting NEED_HTONS_PROTO
-- inet_addr() has a prototype, not setting NEED_INET_ADDR_PROTO
-- inet_aton() has a prototype, not setting NEED_INET_ATON_PROTO
-- inet_ntoa() has a prototype, not setting NEED_INET_NTOA_PROTO
-- listen() has a prototype, not setting NEED_LISTEN_PROTO
-- ntohl() has a prototype, not setting NEED_NTOHL_PROTO
-- perror() has a prototype, not setting NEED_PERROR_PROTO
-- printf() has a prototype, not setting NEED_PRINTF_PROTO
-- qsort() has a prototype, not setting NEED_QSORT_PROTO
-- read() has a prototype, not setting NEED_READ_PROTO
-- remove() has a prototype, not setting NEED_REMOVE_PROTO
-- rewind() has a prototype, not setting NEED_REWIND_PROTO
-- select() has a prototype, not setting NEED_SELECT_PROTO
-- setitimer() has a prototype, not setting NEED_SETITIMER_PROTO
-- setrlimit() has a prototype, not setting NEED_SETRLIMIT_PROTO
-- setsockopt() has a prototype, not setting NEED_SETSOCKOPT_PROTO
-- snprintf() has a prototype, not setting NEED_SNPRINTF_PROTO
-- sprintf() has a prototype, not setting NEED_SPRINTF_PROTO
-- sscanf() has a prototype, not setting NEED_SSCANF_PROTO
-- strcasecmp() has a prototype, not setting NEED_STRCASECMP_PROTO
-- strdup() has a prototype, not setting NEED_STRDUP_PROTO
-- strerror() has a prototype, not setting NEED_STRERROR_PROTO
-- stricmp() has no prototype, NEED_STRICMP_PROTO set!
-- strlcpy() has a prototype, not setting NEED_STRLCPY_PROTO
-- strncasecmp() has a prototype, not setting NEED_STRNCASECMP_PROTO
-- strnicmp() has no prototype, NEED_STRNICMP_PROTO set!
-- system() has a prototype, not setting NEED_SYSTEM_PROTO
-- time() has a prototype, not setting NEED_TIME_PROTO
-- unlink() has a prototype, not setting NEED_UNLINK_PROTO
-- vsnprintf() has a prototype, not setting NEED_VSNPRINTF_PROTO
-- write() has a prototype, not setting NEED_WRITE_PROTO
-- socket() has a prototype, not setting NEED_SOCKET_PROTO
-- Configuring done (1.2s)
-- Generating done (0.0s)
-- Build files have been written to: /home/ironfist/projects/tbamud_cmake_test/tbamud/build
ironfist@ironfist-aorus:~/projects/tbamud_cmake_test/tbamud$ cmake --build build --target circle
[ 1%] Building C object CMakeFiles/circle.dir/src/act.comm.c.o
[ 2%] Building C object CMakeFiles/circle.dir/src/act.informative.c.o
[ 3%] Building C object CMakeFiles/circle.dir/src/act.item.c.o
[ 4%] Building C object CMakeFiles/circle.dir/src/act.movement.c.o
[ 6%] Building C object CMakeFiles/circle.dir/src/act.offensive.c.o
[ 7%] Building C object CMakeFiles/circle.dir/src/act.other.c.o
[ 8%] Building C object CMakeFiles/circle.dir/src/act.social.c.o
[ 9%] Building C object CMakeFiles/circle.dir/src/act.wizard.c.o
/home/ironfist/projects/tbamud_cmake_test/tbamud/src/act.wizard.c: In function ‘do_wizutil’:
/home/ironfist/projects/tbamud_cmake_test/tbamud/src/act.wizard.c:2399:26: warning: the comparison will always evaluate as ‘true’ for the address of ‘affected_by’ will never be NULL [-Waddress]
2399 | if (vict->affected || AFF_FLAGS(vict)) {
| ^~
In file included from /home/ironfist/projects/tbamud_cmake_test/tbamud/src/act.wizard.c:13:
/home/ironfist/projects/tbamud_cmake_test/tbamud/src/structs.h:919:7: note: ‘affected_by’ declared here
919 | int affected_by[AF_ARRAY_MAX]; /**< Bitvector for spells/skills affected by */
| ^~~~~~~~~~~
[ 11%] Building C object CMakeFiles/circle.dir/src/aedit.c.o
[ 12%] Building C object CMakeFiles/circle.dir/src/asciimap.c.o
[ 13%] Building C object CMakeFiles/circle.dir/src/ban.c.o
[ 14%] Building C object CMakeFiles/circle.dir/src/boards.c.o
[ 16%] Building C object CMakeFiles/circle.dir/src/bsd-snprintf.c.o
[ 17%] Building C object CMakeFiles/circle.dir/src/castle.c.o
/home/ironfist/projects/tbamud_cmake_test/tbamud/src/castle.c: In function ‘king_welmar’:
/home/ironfist/projects/tbamud_cmake_test/tbamud/src/castle.c:388:12: warning: storing the address of local variable ‘throne_path’ in ‘path’ [-Wdangling-pointer=]
388 | path = throne_path;
| ~~~~~^~~~~~~~~~~~~
/home/ironfist/projects/tbamud_cmake_test/tbamud/src/castle.c:378:14: note: ‘throne_path’ declared here
378 | const char throne_path[] = "W3o3cG52211rg.";
| ^~~~~~~~~~~
/home/ironfist/projects/tbamud_cmake_test/tbamud/src/castle.c:381:22: note: ‘path’ declared here
381 | static const char *path;
| ^~~~
[ 18%] Building C object CMakeFiles/circle.dir/src/cedit.c.o
[ 19%] Building C object CMakeFiles/circle.dir/src/class.c.o
[ 20%] Building C object CMakeFiles/circle.dir/src/comm.c.o
[ 22%] Building C object CMakeFiles/circle.dir/src/config.c.o
[ 23%] Building C object CMakeFiles/circle.dir/src/constants.c.o
[ 24%] Building C object CMakeFiles/circle.dir/src/db.c.o
[ 25%] Building C object CMakeFiles/circle.dir/src/dg_comm.c.o
[ 27%] Building C object CMakeFiles/circle.dir/src/dg_db_scripts.c.o
[ 28%] Building C object CMakeFiles/circle.dir/src/dg_event.c.o
[ 29%] Building C object CMakeFiles/circle.dir/src/dg_handler.c.o
[ 30%] Building C object CMakeFiles/circle.dir/src/dg_misc.c.o
[ 32%] Building C object CMakeFiles/circle.dir/src/dg_mobcmd.c.o
[ 33%] Building C object CMakeFiles/circle.dir/src/dg_objcmd.c.o
[ 34%] Building C object CMakeFiles/circle.dir/src/dg_olc.c.o
[ 35%] Building C object CMakeFiles/circle.dir/src/dg_scripts.c.o
[ 37%] Building C object CMakeFiles/circle.dir/src/dg_triggers.c.o
[ 38%] Building C object CMakeFiles/circle.dir/src/dg_variables.c.o
[ 39%] Building C object CMakeFiles/circle.dir/src/dg_wldcmd.c.o
[ 40%] Building C object CMakeFiles/circle.dir/src/fight.c.o
[ 41%] Building C object CMakeFiles/circle.dir/src/genmob.c.o
[ 43%] Building C object CMakeFiles/circle.dir/src/genobj.c.o
[ 44%] Building C object CMakeFiles/circle.dir/src/genolc.c.o
[ 45%] Building C object CMakeFiles/circle.dir/src/genqst.c.o
[ 46%] Building C object CMakeFiles/circle.dir/src/genshp.c.o
[ 48%] Building C object CMakeFiles/circle.dir/src/genwld.c.o
[ 49%] Building C object CMakeFiles/circle.dir/src/genzon.c.o
[ 50%] Building C object CMakeFiles/circle.dir/src/graph.c.o
[ 51%] Building C object CMakeFiles/circle.dir/src/handler.c.o
[ 53%] Building C object CMakeFiles/circle.dir/src/hedit.c.o
[ 54%] Building C object CMakeFiles/circle.dir/src/house.c.o
[ 55%] Building C object CMakeFiles/circle.dir/src/ibt.c.o
[ 56%] Building C object CMakeFiles/circle.dir/src/improved-edit.c.o
/home/ironfist/projects/tbamud_cmake_test/tbamud/src/improved-edit.c: In function ‘parse_edit_action’:
/home/ironfist/projects/tbamud_cmake_test/tbamud/src/improved-edit.c:371:24: warning: ‘%4d’ directive writing between 4 and 11 bytes into a region of size 9 [-Wformat-overflow=]
371 | sprintf(buf3, "%4d: ", (i - 1));
| ^~~
/home/ironfist/projects/tbamud_cmake_test/tbamud/src/improved-edit.c:371:23: note: directive argument in the range [-2147483647, 2147483646]
371 | sprintf(buf3, "%4d: ", (i - 1));
| ^~~~~~~
/home/ironfist/projects/tbamud_cmake_test/tbamud/src/improved-edit.c:371:9: note: ‘sprintf’ output between 7 and 14 bytes into a destination of size 9
371 | sprintf(buf3, "%4d: ", (i - 1));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[ 58%] Building C object CMakeFiles/circle.dir/src/interpreter.c.o
/home/ironfist/projects/tbamud_cmake_test/tbamud/src/interpreter.c: In function ‘nanny’:
/home/ironfist/projects/tbamud_cmake_test/tbamud/src/interpreter.c:1615:7: warning: this ‘else’ clause does not guard... [-Wmisleading-indentation]
1615 | } else
| ^~~~
/home/ironfist/projects/tbamud_cmake_test/tbamud/src/interpreter.c:1618:7: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘else’
1618 | if (d->olc) {
| ^~
[ 59%] Building C object CMakeFiles/circle.dir/src/limits.c.o
[ 60%] Building C object CMakeFiles/circle.dir/src/lists.c.o
[ 61%] Building C object CMakeFiles/circle.dir/src/magic.c.o
[ 62%] Building C object CMakeFiles/circle.dir/src/mail.c.o
[ 64%] Building C object CMakeFiles/circle.dir/src/medit.c.o
[ 65%] Building C object CMakeFiles/circle.dir/src/mobact.c.o
[ 66%] Building C object CMakeFiles/circle.dir/src/modify.c.o
[ 67%] Building C object CMakeFiles/circle.dir/src/msgedit.c.o
[ 69%] Building C object CMakeFiles/circle.dir/src/mud_event.c.o
[ 70%] Building C object CMakeFiles/circle.dir/src/oasis.c.o
[ 71%] Building C object CMakeFiles/circle.dir/src/oasis_copy.c.o
[ 72%] Building C object CMakeFiles/circle.dir/src/oasis_delete.c.o
[ 74%] Building C object CMakeFiles/circle.dir/src/oasis_list.c.o
[ 75%] Building C object CMakeFiles/circle.dir/src/objsave.c.o
[ 76%] Building C object CMakeFiles/circle.dir/src/oedit.c.o
[ 77%] Building C object CMakeFiles/circle.dir/src/players.c.o
[ 79%] Building C object CMakeFiles/circle.dir/src/prefedit.c.o
[ 80%] Building C object CMakeFiles/circle.dir/src/protocol.c.o
[ 81%] Building C object CMakeFiles/circle.dir/src/qedit.c.o
[ 82%] Building C object CMakeFiles/circle.dir/src/quest.c.o
/home/ironfist/projects/tbamud_cmake_test/tbamud/src/quest.c: In function ‘do_quest’:
/home/ironfist/projects/tbamud_cmake_test/tbamud/src/quest.c:785:11: warning: ‘quest_stat’ accessing 49152 bytes in a region of size 512 [-Wstringop-overflow=]
785 | quest_stat(ch, arg2);
| ^~~~~~~~~~~~~~~~~~~~
/home/ironfist/projects/tbamud_cmake_test/tbamud/src/quest.c:785:11: note: referencing argument 2 of type ‘char[49152]’
/home/ironfist/projects/tbamud_cmake_test/tbamud/src/quest.c:651:13: note: in a call to function ‘quest_stat’
651 | static void quest_stat(struct char_data *ch, char argument[MAX_STRING_LENGTH])
| ^~~~~~~~~~
[ 83%] Building C object CMakeFiles/circle.dir/src/random.c.o
[ 85%] Building C object CMakeFiles/circle.dir/src/redit.c.o
[ 86%] Building C object CMakeFiles/circle.dir/src/sedit.c.o
[ 87%] Building C object CMakeFiles/circle.dir/src/shop.c.o
[ 88%] Building C object CMakeFiles/circle.dir/src/spec_assign.c.o
[ 90%] Building C object CMakeFiles/circle.dir/src/spec_procs.c.o
/home/ironfist/projects/tbamud_cmake_test/tbamud/src/spec_procs.c: In function ‘mayor’:
/home/ironfist/projects/tbamud_cmake_test/tbamud/src/spec_procs.c:217:12: warning: storing the address of local variable ‘open_path’ in ‘path’ [-Wdangling-pointer=]
217 | path = open_path;
| ~~~~~^~~~~~~~~~~
/home/ironfist/projects/tbamud_cmake_test/tbamud/src/spec_procs.c:205:14: note: ‘open_path’ declared here
205 | const char open_path[] =
| ^~~~~~~~~
/home/ironfist/projects/tbamud_cmake_test/tbamud/src/spec_procs.c:210:22: note: ‘path’ declared here
210 | static const char *path = NULL;
| ^~~~
[ 91%] Building C object CMakeFiles/circle.dir/src/spell_parser.c.o
[ 92%] Building C object CMakeFiles/circle.dir/src/spells.c.o
[ 93%] Building C object CMakeFiles/circle.dir/src/tedit.c.o
[ 95%] Building C object CMakeFiles/circle.dir/src/utils.c.o
[ 96%] Building C object CMakeFiles/circle.dir/src/weather.c.o
[ 97%] Building C object CMakeFiles/circle.dir/src/zedit.c.o
[ 98%] Building C object CMakeFiles/circle.dir/src/zmalloc.c.o
[100%] Linking C executable /home/ironfist/projects/tbamud_cmake_test/tbamud/bin/circle
[100%] Built target circle
ironfist@ironfist-aorus:~/projects/tbamud_cmake_test/tbamud$ ls