Welcome to the Builder Academy

Question configure script uses implicit int for test app

More
22 Apr 2025 22:37 #10681 by thomas
Try the latest version :)

Please Log in or Create an account to join the conversation.

More
23 Apr 2025 00:58 #10682 by ironfist
Getting further :)

Code:
ironfist@ironfist-aorus:~/projects/tbamud_cmake_test/tbamud$ cmake -B build -S . -- The C compiler identification is GNU 14.2.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/cc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Performing Test SUPPORTS_WALL -- Performing Test SUPPORTS_WALL - Success -- Performing Test SUPPORTS_WNO_CHAR_SUBSCRIPTS -- Performing Test SUPPORTS_WNO_CHAR_SUBSCRIPTS - Success -- Looking for fcntl.h -- Looking for fcntl.h - found -- Looking for errno.h -- Looking for errno.h - found -- Looking for string.h -- Looking for string.h - found -- Looking for strings.h -- Looking for strings.h - found -- Looking for limits.h -- Looking for limits.h - found -- Looking for sys/select.h -- Looking for sys/select.h - found -- Looking for sys/types.h -- Looking for sys/types.h - found -- Looking for unistd.h -- Looking for unistd.h - found -- Looking for memory.h -- Looking for memory.h - found -- Looking for assert.h -- Looking for assert.h - found -- Looking for arpa/telnet.h -- Looking for arpa/telnet.h - found -- Looking for arpa/inet.h -- Looking for arpa/inet.h - found -- Looking for sys/stat.h -- Looking for sys/stat.h - found -- Looking for sys/socket.h -- Looking for sys/socket.h - found -- Looking for sys/resource.h -- Looking for sys/resource.h - found -- Looking for netinet/in.h -- Looking for netinet/in.h - found -- Looking for netdb.h -- Looking for netdb.h - found -- Looking for signal.h -- Looking for signal.h - found -- Looking for sys/uio.h -- Looking for sys/uio.h - found -- Looking for mcheck.h -- Looking for mcheck.h - found -- Looking for stdlib.h -- Looking for stdlib.h - found -- Looking for stdarg.h -- Looking for stdarg.h - found -- Looking for float.h -- Looking for float.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 inet_addr -- Looking for inet_addr - found -- Looking for inet_aton -- Looking for inet_aton - found -- Looking for stdint.h -- Looking for stdint.h - found -- Looking for stddef.h -- Looking for stddef.h - found -- Check size of pid_t -- Check size of pid_t - done -- Check size of size_t -- Check size of size_t - done -- Check size of ssize_t -- Check size of ssize_t - done -- Check size of socklen_t -- Check size of socklen_t - done -- Performing Test HAVE_CONST -- Performing Test HAVE_CONST - Success -- Performing Test HAVE_STRUCT_IN_ADDR -- Performing Test HAVE_STRUCT_IN_ADDR - Success -- Found libcrypt: /usr/lib/x86_64-linux-gnu/libcrypt.so -- Looking for crypt.h -- Looking for crypt.h - found -- Looking for crypt -- Looking for crypt - found -- Looking for gethostbyaddr -- Looking for gethostbyaddr - found -- Looking for socket -- Looking for socket - found -- Looking for sys/time.h -- Looking for sys/time.h - found -- Looking for sys/time.h -- Looking for sys/time.h - found -- Performing Test TIME_WITH_SYS_TIME -- Performing Test TIME_WITH_SYS_TIME - Success -- Performing Test SIGNAL_RETURNS_INT -- Performing Test SIGNAL_RETURNS_INT - Failed -- Performing Test SIGNAL_RETURNS_VOID -- Performing Test SIGNAL_RETURNS_VOID - Success -- signal() returns void. -- Performing Test NEED_ACCEPT_PROTO -- Performing Test NEED_ACCEPT_PROTO - Failed -- accept() has a prototype, not setting NEED_ACCEPT_PROTO -- Performing Test NEED_BIND_PROTO -- Performing Test NEED_BIND_PROTO - Failed -- bind() has a prototype, not setting NEED_BIND_PROTO -- Performing Test NEED_GETTIMEOFDAY_PROTO -- Performing Test NEED_GETTIMEOFDAY_PROTO - Failed -- gettimeofday() has a prototype, not setting NEED_GETTIMEOFDAY_PROTO -- Performing Test NEED_ATOI_PROTO -- Performing Test NEED_ATOI_PROTO - Failed -- atoi() has a prototype, not setting NEED_ATOI_PROTO -- Performing Test NEED_ATOL_PROTO -- Performing Test NEED_ATOL_PROTO - Failed -- atol() has a prototype, not setting NEED_ATOL_PROTO -- Performing Test NEED_BZERO_PROTO -- Performing Test NEED_BZERO_PROTO - Failed -- bzero() has a prototype, not setting NEED_BZERO_PROTO -- Performing Test NEED_CHDIR_PROTO -- Performing Test NEED_CHDIR_PROTO - Failed -- chdir() has a prototype, not setting NEED_CHDIR_PROTO -- Performing Test NEED_CLOSE_PROTO -- Performing Test NEED_CLOSE_PROTO - Failed -- close() has a prototype, not setting NEED_CLOSE_PROTO -- Performing Test NEED_FCLOSE_PROTO -- Performing Test NEED_FCLOSE_PROTO - Failed -- fclose() has a prototype, not setting NEED_FCLOSE_PROTO -- Performing Test NEED_FCNTL_PROTO -- Performing Test NEED_FCNTL_PROTO - Failed -- fcntl() has a prototype, not setting NEED_FCNTL_PROTO -- Performing Test NEED_FFLUSH_PROTO -- Performing Test NEED_FFLUSH_PROTO - Failed -- fflush() has a prototype, not setting NEED_FFLUSH_PROTO -- Performing Test NEED_FPRINTF_PROTO -- Performing Test NEED_FPRINTF_PROTO - Failed -- fprintf() has a prototype, not setting NEED_FPRINTF_PROTO -- Performing Test NEED_FPUTC_PROTO -- Performing Test NEED_FPUTC_PROTO - Failed -- fputc() has a prototype, not setting NEED_FPUTC_PROTO -- Performing Test NEED_FREAD_PROTO -- Performing Test NEED_FREAD_PROTO - Failed -- fread() has a prototype, not setting NEED_FREAD_PROTO -- Performing Test NEED_FSCANF_PROTO -- Performing Test NEED_FSCANF_PROTO - Failed -- fscanf() has a prototype, not setting NEED_FSCANF_PROTO -- Performing Test NEED_FSEEK_PROTO -- Performing Test NEED_FSEEK_PROTO - Failed -- fseek() has a prototype, not setting NEED_FSEEK_PROTO -- Performing Test NEED_FWRITE_PROTO -- Performing Test NEED_FWRITE_PROTO - Failed -- fwrite() has a prototype, not setting NEED_FWRITE_PROTO -- Performing Test NEED_GETPEERNAME_PROTO -- Performing Test NEED_GETPEERNAME_PROTO - Failed -- getpeername() has a prototype, not setting NEED_GETPEERNAME_PROTO -- Performing Test NEED_GETPID_PROTO -- Performing Test NEED_GETPID_PROTO - Failed -- getpid() has a prototype, not setting NEED_GETPID_PROTO -- Performing Test NEED_GETRLIMIT_PROTO -- Performing Test NEED_GETRLIMIT_PROTO - Failed -- getrlimit() has a prototype, not setting NEED_GETRLIMIT_PROTO -- Performing Test NEED_GETSOCKNAME_PROTO -- Performing Test NEED_GETSOCKNAME_PROTO - Failed -- getsockname() has a prototype, not setting NEED_GETSOCKNAME_PROTO -- Performing Test NEED_HTONL_PROTO -- Performing Test NEED_HTONL_PROTO - Failed -- htonl() has a prototype, not setting NEED_HTONL_PROTO -- Performing Test NEED_HTONS_PROTO -- Performing Test NEED_HTONS_PROTO - Failed -- htons() has a prototype, not setting NEED_HTONS_PROTO -- Performing Test NEED_INET_ADDR_PROTO -- Performing Test NEED_INET_ADDR_PROTO - Failed -- inet_addr() has a prototype, not setting NEED_INET_ADDR_PROTO -- Performing Test NEED_INET_ATON_PROTO -- Performing Test NEED_INET_ATON_PROTO - Failed -- inet_aton() has a prototype, not setting NEED_INET_ATON_PROTO -- Performing Test NEED_INET_NTOA_PROTO -- Performing Test NEED_INET_NTOA_PROTO - Failed -- inet_ntoa() has a prototype, not setting NEED_INET_NTOA_PROTO -- Performing Test NEED_LISTEN_PROTO -- Performing Test NEED_LISTEN_PROTO - Failed -- listen() has a prototype, not setting NEED_LISTEN_PROTO -- Performing Test NEED_NTOHL_PROTO -- Performing Test NEED_NTOHL_PROTO - Failed -- ntohl() has a prototype, not setting NEED_NTOHL_PROTO -- Performing Test NEED_PERROR_PROTO -- Performing Test NEED_PERROR_PROTO - Failed -- perror() has a prototype, not setting NEED_PERROR_PROTO -- Performing Test NEED_PRINTF_PROTO -- Performing Test NEED_PRINTF_PROTO - Failed -- printf() has a prototype, not setting NEED_PRINTF_PROTO -- Performing Test NEED_QSORT_PROTO -- Performing Test NEED_QSORT_PROTO - Failed -- qsort() has a prototype, not setting NEED_QSORT_PROTO -- Performing Test NEED_READ_PROTO -- Performing Test NEED_READ_PROTO - Failed -- read() has a prototype, not setting NEED_READ_PROTO -- Performing Test NEED_REMOVE_PROTO -- Performing Test NEED_REMOVE_PROTO - Failed -- remove() has a prototype, not setting NEED_REMOVE_PROTO -- Performing Test NEED_REWIND_PROTO -- Performing Test NEED_REWIND_PROTO - Failed -- rewind() has a prototype, not setting NEED_REWIND_PROTO -- Performing Test NEED_SELECT_PROTO -- Performing Test NEED_SELECT_PROTO - Failed -- select() has a prototype, not setting NEED_SELECT_PROTO -- Performing Test NEED_SETITIMER_PROTO -- Performing Test NEED_SETITIMER_PROTO - Failed -- setitimer() has a prototype, not setting NEED_SETITIMER_PROTO -- Performing Test NEED_SETRLIMIT_PROTO -- Performing Test NEED_SETRLIMIT_PROTO - Failed -- setrlimit() has a prototype, not setting NEED_SETRLIMIT_PROTO -- Performing Test NEED_SETSOCKOPT_PROTO -- Performing Test NEED_SETSOCKOPT_PROTO - Failed -- setsockopt() has a prototype, not setting NEED_SETSOCKOPT_PROTO -- Performing Test NEED_SNPRINTF_PROTO -- Performing Test NEED_SNPRINTF_PROTO - Failed -- snprintf() has a prototype, not setting NEED_SNPRINTF_PROTO -- Performing Test NEED_SPRINTF_PROTO -- Performing Test NEED_SPRINTF_PROTO - Failed -- sprintf() has a prototype, not setting NEED_SPRINTF_PROTO -- Performing Test NEED_SSCANF_PROTO -- Performing Test NEED_SSCANF_PROTO - Failed -- sscanf() has a prototype, not setting NEED_SSCANF_PROTO -- Performing Test NEED_STRCASECMP_PROTO -- Performing Test NEED_STRCASECMP_PROTO - Failed -- strcasecmp() has a prototype, not setting NEED_STRCASECMP_PROTO -- Performing Test NEED_STRDUP_PROTO -- Performing Test NEED_STRDUP_PROTO - Failed -- strdup() has a prototype, not setting NEED_STRDUP_PROTO -- Performing Test NEED_STRERROR_PROTO -- Performing Test NEED_STRERROR_PROTO - Failed -- strerror() has a prototype, not setting NEED_STRERROR_PROTO -- Performing Test NEED_STRICMP_PROTO -- Performing Test NEED_STRICMP_PROTO - Success -- stricmp() has no prototype, NEED_STRICMP_PROTO set! -- Performing Test NEED_STRLCPY_PROTO -- Performing Test NEED_STRLCPY_PROTO - Failed -- strlcpy() has a prototype, not setting NEED_STRLCPY_PROTO -- Performing Test NEED_STRNCASECMP_PROTO -- Performing Test NEED_STRNCASECMP_PROTO - Failed -- strncasecmp() has a prototype, not setting NEED_STRNCASECMP_PROTO -- Performing Test NEED_STRNICMP_PROTO -- Performing Test NEED_STRNICMP_PROTO - Success -- strnicmp() has no prototype, NEED_STRNICMP_PROTO set! -- Performing Test NEED_SYSTEM_PROTO -- Performing Test NEED_SYSTEM_PROTO - Failed -- system() has a prototype, not setting NEED_SYSTEM_PROTO -- Performing Test NEED_TIME_PROTO -- Performing Test NEED_TIME_PROTO - Failed -- time() has a prototype, not setting NEED_TIME_PROTO -- Performing Test NEED_UNLINK_PROTO -- Performing Test NEED_UNLINK_PROTO - Failed -- unlink() has a prototype, not setting NEED_UNLINK_PROTO -- Performing Test NEED_VSNPRINTF_PROTO -- Performing Test NEED_VSNPRINTF_PROTO - Failed -- vsnprintf() has a prototype, not setting NEED_VSNPRINTF_PROTO -- Performing Test NEED_WRITE_PROTO -- Performing Test NEED_WRITE_PROTO - Failed -- write() has a prototype, not setting NEED_WRITE_PROTO -- Performing Test NEED_SOCKET_PROTO -- Performing Test NEED_SOCKET_PROTO - Failed -- socket() has a prototype, not setting NEED_SOCKET_PROTO -- Configuring done (6.6s) -- 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 /home/ironfist/projects/tbamud_cmake_test/tbamud/src/bsd-snprintf.c: In function ‘fmtint’: /home/ironfist/projects/tbamud_cmake_test/tbamud/src/bsd-snprintf.c:478:25: error: implicit declaration of function ‘MAX’ [-Wimplicit-function-declaration]   478 |         spadlen = min - MAX (max, place) - (signvalue ? 1 : 0);       |                         ^~~ /home/ironfist/projects/tbamud_cmake_test/tbamud/src/bsd-snprintf.c: At top level: /home/ironfist/projects/tbamud_cmake_test/tbamud/src/bsd-snprintf.c:521:1: warning: conflicting types for built-in function ‘pow10’; expected ‘double(double)’ [-Wbuiltin-declaration-mismatch]   521 | pow10(int exp)       | ^~~~~ /home/ironfist/projects/tbamud_cmake_test/tbamud/src/bsd-snprintf.c:534:1: warning: conflicting types for built-in function ‘round’; expected ‘double(double)’ [-Wbuiltin-declaration-mismatch]   534 | round(long double value)       | ^~~~~ /home/ironfist/projects/tbamud_cmake_test/tbamud/src/bsd-snprintf.c:96:1: note: ‘round’ is declared in header ‘<math.h>’    95 | # include "sysdep.h"   +++ |+#include <math.h>    96 | gmake[3]: *** [CMakeFiles/circle.dir/build.make:247: CMakeFiles/circle.dir/src/bsd-snprintf.c.o] Error 1 gmake[2]: *** [CMakeFiles/Makefile2:137: CMakeFiles/circle.dir/all] Error 2 gmake[1]: *** [CMakeFiles/Makefile2:144: CMakeFiles/circle.dir/rule] Error 2 gmake: *** [Makefile:124: circle] Error 2 ironfist@ironfist-aorus:~/projects/tbamud_cmake_test/tbamud$

Please Log in or Create an account to join the conversation.

More
23 Apr 2025 20:46 #10684 by thomas
I think I got it right, now :)

Please Log in or Create an account to join the conversation.

More
23 Apr 2025 21:40 #10686 by ironfist
nice,
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

Please Log in or Create an account to join the conversation.

More
23 Apr 2025 21:51 #10687 by ironfist
Also works on: Fedora Linux 40 (Server Edition)

Please Log in or Create an account to join the conversation.

Time to create page: 0.214 seconds