View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000909 | LDMud 3.6 | Compilation, Installation | public | 2023-12-23 20:22 | 2023-12-26 05:15 |
Reporter | gorgar | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | always |
Status | new | Resolution | open | ||
Product Version | 3.6.6 | ||||
Summary | 0000909: 3.6.7 make error | ||||
Description | Hi. Getting this error on making 3.6.7. See attachment for full output. ./mk-patchlevel.sh 3.6.7 bison --defines=lang.h -o lang.c lang.y lang.y:2.9-25: error: %define variable 'api.location.type' is not used %define api.location.type {code_location_t} ^^^^^^^^^^^^^^^^^ Makefile:214: recipe for target 'lang.h' failed make: *** [lang.h] Error 1 | ||||
Tags | No tags attached. | ||||
Attached Files | make.log (24,117 bytes)
$ more dragonfire-test #!/bin/sh ./configure \ --prefix=/home/dragonfiredev/testmud \ --bindir=/home/dragonfiredev/testmud/bin \ --libdir=/home/dragonfiredev/testmud/test-lib \ --libexec=/home/dragonfiredev/testmud/libexec \ --enable-access-control=no \ --enable-coroutines=yes \ --enable-use-mysql=/usr/include/mysql \ --enable-erq=no \ --enable-dynamic-costs \ --enable-use-deprecated=no \ --enable-use-pcre=yes \ --enable-use-json=yes \ --enable-use-pgsql=no \ --enable-use-mccp=yes \ --enable-use-tls=gnu \ --enable-share-variables=no \ --enable-filename-spaces=no \ --enable-use-python \ --with-read-file-max-size=200000 \ --with-max-byte-transfer=200000 \ --without-wizlist-file \ --with-master-name=secure/master \ --with-time-to-reset=900 \ --with-portno=2100 \ --with-udp-port=2101 \ --with-otable-size=8192 \ --with-htable-size=32768 \ --with-apply-cache-bits=14 \ --with-time-to-swap=0 \ --with-time-to-swap-variables=0 \ --with-max_net_connects=100 \ --with-min-malloced=0x80000 \ --with-min-small-malloced=0x80000 \ --with-hard-malloc-limit=0 \ --with-malloc=sysmalloc \ --with-heart-beat-interval=2 \ --with-alarm-time=1 \ --with-swap-file=DFDEV_SWAP \ --with-max-array-size=50000 \ --with-max-mapping-keys=50000 \ --with-max-mapping-size=100000 \ --with-max-cost=10000000 #./dragonfire-test configure: WARNING: unrecognized options: --enable-coroutines checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking whether compiler supports -fwrapv... yes checking whether compiler supports -Wall... yes checking whether compiler supports -Wparentheses... yes checking whether compiler supports -Wshadow... yes checking whether compiler supports -Wstrict-overflow=2... yes checking warning CFLAGS... -Wall -Wparentheses -Wshadow -Wstrict-overflow=2 checking for inline... inline checking for typeof syntax and keyword spelling... typeof checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for preprocessor stringizing operator... yes checking for variable-length arrays... yes checking for working volatile... yes checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking whether byte ordering is bigendian... no checking for int8_t... yes checking for int16_t... yes checking for int32_t... yes checking for int64_t... yes checking for unsigned long long int... yes checking for long long int... yes checking for intmax_t... yes checking for intptr_t... yes checking for uint8_t... yes checking for uint16_t... yes checking for uint32_t... yes checking for uint64_t... yes checking for uintmax_t... yes checking for uintptr_t... yes checking for long long int... (cached) yes checking for unsigned long long int... (cached) yes checking for long double... yes checking for long double with more range or precision than double... yes checking for ssize_t... yes checking for size_t... yes checking for off_t... yes checking for mode_t... yes checking for pid_t... yes checking size of char *... 8 checking size of int... 4 checking size of short... 2 checking size of long... 8 checking size of long long... 8 checking size of intptr_t... 8 checking size of intmax_t... 8 checking size of double... 8 checking for a BSD-compatible install... /usr/bin/install -c checking for bison... bison checking how to run the C preprocessor... gcc -E checking for stdbool.h that conforms to C99... yes checking for _Bool... yes checking sys/rusage.h usability... no checking sys/rusage.h presence... no checking for sys/rusage.h... no checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking for sys/types.h... (cached) yes checking for unistd.h... (cached) yes checking for stdlib.h... (cached) yes checking libc.h usability... no checking libc.h presence... no checking for libc.h... no checking for memory.h... (cached) yes checking for string.h... (cached) yes checking bstring.h usability... no checking bstring.h presence... no checking for bstring.h... no checking netdb.h usability... yes checking netdb.h presence... yes checking for netdb.h... yes checking crypt.h usability... yes checking crypt.h presence... yes checking for crypt.h... yes checking sys/param.h usability... yes checking sys/param.h presence... yes checking for sys/param.h... yes checking sys/termios.h usability... yes checking sys/termios.h presence... yes checking for sys/termios.h... yes checking netinet/in.h usability... yes checking netinet/in.h presence... yes checking for netinet/in.h... yes checking arpa/nameser.h usability... yes checking arpa/nameser.h presence... yes checking for arpa/nameser.h... yes checking limits.h usability... yes checking limits.h presence... yes checking for limits.h... yes checking for dirent.h that defines DIR... yes checking for library containing opendir... none required checking whether time.h and sys/time.h may both be included... yes checking for sys/time.h... (cached) yes checking for unistd.h... (cached) yes checking for alarm... yes checking for working mktime... yes checking for working alloca.h... yes checking for alloca... yes checking for fchmod... yes checking for getrusage... yes checking for memmem... yes checking for getcwd... yes checking for sysconf... yes checking for gettimeofday... yes checking for wait3... yes checking for waitpid... yes checking for fcntl... yes checking for getdomainname... yes checking for poll... yes checking for trunc... no checking for mmap... yes checking for getpagesize... yes checking for main in -lm... yes checking for main in -lsocket... no checking for main in -lnsl... yes checking for main in -lucb... no checking if -lresolv is needed... no checking for crypt... no checking for _crypt... no checking for main in -lcrypt... yes checking for crypt... yes checking for _crypt... no checking if inet_ntoa() ok... yes checking for IPv6 support... yes checking for GnuTLS support... yes checking if -lgnutls or similar is needed... yes checking for gnutls_global_init in -lgnutls... yes checking for libgcrypt... yes checking for gcry_check_version in -lgcrypt... yes checking for main in -lpcre... yes checking for PCRE usability... yes checking for iconv... yes checking if iconv takes a non-const char**... yes checking if -liconv is needed... no checking idna.h usability... no checking idna.h presence... no checking for idna.h... no checking stringprep.h usability... no checking stringprep.h presence... no checking for stringprep.h... no checking for stringprep_check_version in -lidn... no checking for mySQL... no checking for PostgresSQL... yes checking for pkg-config... /usr/bin/pkg-config checking pkg-config is at least version 0.9.0... yes checking for JSONC... yes checking for PYTHON_EMBED... no checking for PYTHON... yes checking for main in -lz... yes checking if rename handles directories... yes checking full availability of struct rusage members... yes checking struct rusage timeval members with tv_usec... yes checking if return type of free is void... yes checking if void* or char* from malloc... void * checking if CHAR_BIT == 8 or undef... yes checking nonblocking using ioctl with FIONBIO... yes checking nonblocking using fcntl with O_NDELAY... yes checking nonblocking using fcntl with FNDELAY... yes checking if fcntl with SETOWN works... yes checking if OOBINLINE works... yes checking low optimization CFLAGS... -O -g checking medium optimization CFLAGS... -O2 -g checking highest optimization CFLAGS... -O4 -fomit-frame-pointer -g checking if tail accepts the -n parameter... yes checking for a working sbrk()... yes checking malloc overhead... 8 configure: creating ./config.status config.status: creating Makefile config.status: creating config.h config.status: creating util/Makefile config.status: creating util/indent/Makefile config.status: creating util/xerq/Makefile config.status: creating util/erq/Makefile config.status: creating machine.h configure: WARNING: unrecognized options: --enable-coroutines WARNING: The following options were disabled because the system lacked the necessary support: use-mysql. # make ./mk-patchlevel.sh 3.6.7 ./mk_bytecode_gen.sh > bytecode_gen.h gcc -I/usr/include/python3.6m -I/usr/include/x86_64-linux-gnu/python3.6m -I/usr/include/json-c -I/usr/include/postgresql -fwrapv -O2 -g -Wall -Wparentheses -Wshadow -Wstrict-overflow=2 -DMUD_LIB='"/home/dragonfiredev/testmud/test-lib"' -DBINDIR='"/home/dragonfiredev/testmud/bin"' -DERQ_DIR='"/home/dragonfiredev/testmud/libexec"' -c -o access_check.o access_check.c access_check.c: In function ‘read_access_file’: access_check.c:347:17: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] fscanf(infp, "%c %1[=]", &c, c2); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ access_check.c:367:29: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] fscanf(infp, "%d %1[,:] ", &k, c2); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ access_check.c:394:9: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result] fgets(message, (int)sizeof(message)-1, infp); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ bison -o make_func.c make_func.y gcc -I/usr/include/python3.6m -I/usr/include/x86_64-linux-gnu/python3.6m -I/usr/include/json-c -I/usr/include/postgresql -fwrapv -O2 -g -Wall -Wparentheses -Wshadow -Wstrict-overflow=2 -DMUD_LIB='"/home/dragonfiredev/testmud/test-lib"' -DBINDIR='"/home/dragonfiredev/testmud/bin"' -DERQ_DIR='"/home/dragonfiredev/testmud/libexec"' -c -o mkfunc.o mkfunc.c In file included from mkfunc.c:20:0: make_func.y: In function ‘yylex1’: make_func.y:2766:13: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result] fgets(line_buffer, MAKE_FUNC_MAXLINE, fpr); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make_func.y:2801:13: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result] fgets(line_buffer, MAKE_FUNC_MAXLINE, fpr); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gcc -I/usr/include/python3.6m -I/usr/include/x86_64-linux-gnu/python3.6m -I/usr/include/json-c -I/usr/include/postgresql -fwrapv -O2 -g -Wall -Wparentheses -Wshadow -Wstrict-overflow=2 -DMUD_LIB='"/home/dragonfiredev/testmud/test-lib"' -DBINDIR='"/home/dragonfiredev/testmud/bin"' -DERQ_DIR='"/home/dragonfiredev/testmud/libexec"' -c -o hash.o hash.c gcc -O2 -g mkfunc.o hash.o -o mkfunc rm -f stdstrings.c rm -f stdstrings.h ./mkfunc strings gcc -I/usr/include/python3.6m -I/usr/include/x86_64-linux-gnu/python3.6m -I/usr/include/json-c -I/usr/include/postgresql -fwrapv -O2 -g -Wall -Wparentheses -Wshadow -Wstrict-overflow=2 -DMUD_LIB='"/home/dragonfiredev/testmud/test-lib"' -DBINDIR='"/home/dragonfiredev/testmud/bin"' -DERQ_DIR='"/home/dragonfiredev/testmud/libexec"' -c -o actions.o actions.c rm -f applied_decl.c ./mkfunc applied gcc -I/usr/include/python3.6m -I/usr/include/x86_64-linux-gnu/python3.6m -I/usr/include/json-c -I/usr/include/postgresql -fwrapv -O2 -g -Wall -Wparentheses -Wshadow -Wstrict-overflow=2 -DMUD_LIB='"/home/dragonfiredev/testmud/test-lib"' -DBINDIR='"/home/dragonfiredev/testmud/bin"' -DERQ_DIR='"/home/dragonfiredev/testmud/libexec"' -c -o applied_decl.o applied_decl.c gcc -I/usr/include/python3.6m -I/usr/include/x86_64-linux-gnu/python3.6m -I/usr/include/json-c -I/usr/include/postgresql -fwrapv -O2 -g -Wall -Wparentheses -Wshadow -Wstrict-overflow=2 -DMUD_LIB='"/home/dragonfiredev/testmud/test-lib"' -DBINDIR='"/home/dragonfiredev/testmud/bin"' -DERQ_DIR='"/home/dragonfiredev/testmud/libexec"' -c -o array.o array.c gcc -I/usr/include/python3.6m -I/usr/include/x86_64-linux-gnu/python3.6m -I/usr/include/json-c -I/usr/include/postgresql -fwrapv -O2 -g -Wall -Wparentheses -Wshadow -Wstrict-overflow=2 -DMUD_LIB='"/home/dragonfiredev/testmud/test-lib"' -DBINDIR='"/home/dragonfiredev/testmud/bin"' -DERQ_DIR='"/home/dragonfiredev/testmud/libexec"' -c -o arraylist.o arraylist.c gcc -I/usr/include/python3.6m -I/usr/include/x86_64-linux-gnu/python3.6m -I/usr/include/json-c -I/usr/include/postgresql -fwrapv -O2 -g -Wall -Wparentheses -Wshadow -Wstrict-overflow=2 -DMUD_LIB='"/home/dragonfiredev/testmud/test-lib"' -DBINDIR='"/home/dragonfiredev/testmud/bin"' -DERQ_DIR='"/home/dragonfiredev/testmud/libexec"' -c -o backend.o backend.c backend.c: In function ‘backend’: backend.c:839:19: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result] write(1, buf, strlen(buf)); ^~~~~~~~~~~~~~~~~~~~~~~~~~ backend.c:858:19: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result] write(1, buf, strlen(buf)); ^~~~~~~~~~~~~~~~~~~~~~~~~~ backend.c:877:25: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result] write(1, shut_msg, strlen(shut_msg)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ backend.c:891:25: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result] write(1, buf, strlen(buf)); ^~~~~~~~~~~~~~~~~~~~~~~~~~ gcc -I/usr/include/python3.6m -I/usr/include/x86_64-linux-gnu/python3.6m -I/usr/include/json-c -I/usr/include/postgresql -fwrapv -O2 -g -Wall -Wparentheses -Wshadow -Wstrict-overflow=2 -DMUD_LIB='"/home/dragonfiredev/testmud/test-lib"' -DBINDIR='"/home/dragonfiredev/testmud/bin"' -DERQ_DIR='"/home/dragonfiredev/testmud/libexec"' -c -o bitstrings.o bitstrings.c gcc -I/usr/include/python3.6m -I/usr/include/x86_64-linux-gnu/python3.6m -I/usr/include/json-c -I/usr/include/postgresql -fwrapv -O2 -g -Wall -Wparentheses -Wshadow -Wstrict-overflow=2 -DMUD_LIB='"/home/dragonfiredev/testmud/test-lib"' -DBINDIR='"/home/dragonfiredev/testmud/bin"' -DERQ_DIR='"/home/dragonfiredev/testmud/libexec"' -c -o call_out.o call_out.c rm -f instrs.h rm -f efun_defs.c ./mkfunc instrs Primary codes: 224 Primary efuns: 26 Tabled efuns: 170 (16 + 90 + 51 + 12 + 1) Tabled vararg efuns: 75 rm -f stdstructs.c rm -f stdstructs.h ./mkfunc structs gcc -I/usr/include/python3.6m -I/usr/include/x86_64-linux-gnu/python3.6m -I/usr/include/json-c -I/usr/include/postgresql -fwrapv -O2 -g -Wall -Wparentheses -Wshadow -Wstrict-overflow=2 -DMUD_LIB='"/home/dragonfiredev/testmud/test-lib"' -DBINDIR='"/home/dragonfiredev/testmud/bin"' -DERQ_DIR='"/home/dragonfiredev/testmud/libexec"' -c -o closure.o closure.c gcc -I/usr/include/python3.6m -I/usr/include/x86_64-linux-gnu/python3.6m -I/usr/include/json-c -I/usr/include/postgresql -fwrapv -O2 -g -Wall -Wparentheses -Wshadow -Wstrict-overflow=2 -DMUD_LIB='"/home/dragonfiredev/testmud/test-lib"' -DBINDIR='"/home/dragonfiredev/testmud/bin"' -DERQ_DIR='"/home/dragonfiredev/testmud/libexec"' -c -o comm.o comm.c comm.c: In function ‘urgent_data_handler’: comm.c:1298:9: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result] write(2, "received urgent data\n", 21); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ comm.c: In function ‘get_message’: comm.c:178:27: warning: ignoring return value of ‘read’, declared with attribute warn_unused_result [-Wunused-result] # define socket_read read ^ comm.c:2875:25: note: in expansion of macro ‘socket_read’ socket_read(ip->socket, buf, MAX_TEXT); ^~~~~~~~~~~ comm.c: In function ‘new_player’: comm.c:179:27: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result] # define socket_write write ^ comm.c:3589:9: note: in expansion of macro ‘socket_write’ socket_write(new_socket, message, strlen(message)); ^~~~~~~~~~~~ comm.c:179:27: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result] # define socket_write write ^ comm.c:3590:9: note: in expansion of macro ‘socket_write’ socket_write(new_socket, "\r\n", 2); ^~~~~~~~~~~~ comm.c:179:27: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result] # define socket_write write ^ comm.c:3609:13: note: in expansion of macro ‘socket_write’ socket_write(new_socket, get_txt(msg), mstrsize(msg)); ^~~~~~~~~~~~ comm.c:179:27: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result] # define socket_write write ^ comm.c:3614:13: note: in expansion of macro ‘socket_write’ socket_write(new_socket, message, strlen(message)); ^~~~~~~~~~~~ comm.c:179:27: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result] # define socket_write write ^ comm.c:3627:9: note: in expansion of macro ‘socket_write’ socket_write(new_socket, message, strlen(message)); ^~~~~~~~~~~~ comm.c:179:27: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result] # define socket_write write ^ comm.c:3640:9: note: in expansion of macro ‘socket_write’ socket_write(new_socket, message, strlen(message)); ^~~~~~~~~~~~ comm.c:179:27: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result] # define socket_write write ^ comm.c:3729:9: note: in expansion of macro ‘socket_write’ socket_write(new_socket, message, strlen(message)); ^~~~~~~~~~~~ gcc -I/usr/include/python3.6m -I/usr/include/x86_64-linux-gnu/python3.6m -I/usr/include/json-c -I/usr/include/postgresql -fwrapv -O2 -g -Wall -Wparentheses -Wshadow -Wstrict-overflow=2 -DMUD_LIB='"/home/dragonfiredev/testmud/test-lib"' -DBINDIR='"/home/dragonfiredev/testmud/bin"' -DERQ_DIR='"/home/dragonfiredev/testmud/libexec"' -c -o coroutine.o coroutine.c gcc -I/usr/include/python3.6m -I/usr/include/x86_64-linux-gnu/python3.6m -I/usr/include/json-c -I/usr/include/postgresql -fwrapv -O2 -g -Wall -Wparentheses -Wshadow -Wstrict-overflow=2 -DMUD_LIB='"/home/dragonfiredev/testmud/test-lib"' -DBINDIR='"/home/dragonfiredev/testmud/bin"' -DERQ_DIR='"/home/dragonfiredev/testmud/libexec"' -c -o dumpstat.o dumpstat.c gcc -I/usr/include/python3.6m -I/usr/include/x86_64-linux-gnu/python3.6m -I/usr/include/json-c -I/usr/include/postgresql -fwrapv -O2 -g -Wall -Wparentheses -Wshadow -Wstrict-overflow=2 -DMUD_LIB='"/home/dragonfiredev/testmud/test-lib"' -DBINDIR='"/home/dragonfiredev/testmud/bin"' -DERQ_DIR='"/home/dragonfiredev/testmud/libexec"' -c -o ed.o ed.c gcc -I/usr/include/python3.6m -I/usr/include/x86_64-linux-gnu/python3.6m -I/usr/include/json-c -I/usr/include/postgresql -fwrapv -O2 -g -Wall -Wparentheses -Wshadow -Wstrict-overflow=2 -DMUD_LIB='"/home/dragonfiredev/testmud/test-lib"' -DBINDIR='"/home/dragonfiredev/testmud/bin"' -DERQ_DIR='"/home/dragonfiredev/testmud/libexec"' -c -o efuns.o efuns.c gcc -I/usr/include/python3.6m -I/usr/include/x86_64-linux-gnu/python3.6m -I/usr/include/json-c -I/usr/include/postgresql -fwrapv -O2 -g -Wall -Wparentheses -Wshadow -Wstrict-overflow=2 -DMUD_LIB='"/home/dragonfiredev/testmud/test-lib"' -DBINDIR='"/home/dragonfiredev/testmud/bin"' -DERQ_DIR='"/home/dragonfiredev/testmud/libexec"' -c -o files.o files.c files.c: In function ‘f_get_dir’: files.c:250:10: warning: ignoring return value of ‘chdir’, declared with attribute warn_unused_result [-Wunused-result] (chdir(mud_lib),MY_FALSE)\ ^~~~~~~~~~~~~~ files.c:779:14: note: in expansion of macro ‘XOPENDIR’ if ( XOPENDIR(dirp, path) == 0) ^~~~~~~~ files.c:253:31: warning: ignoring return value of ‘chdir’, declared with attribute warn_unused_result [-Wunused-result] #define xclosedir(dir_ptr) (chdir(mud_lib),closedir(dir_ptr)) ^~~~~~~~~~~~~~ files.c:820:13: note: in expansion of macro ‘xclosedir’ xclosedir(dirp); ^~~~~~~~~ files.c:253:31: warning: ignoring return value of ‘chdir’, declared with attribute warn_unused_result [-Wunused-result] #define xclosedir(dir_ptr) (chdir(mud_lib),closedir(dir_ptr)) ^~~~~~~~~~~~~~ files.c:928:9: note: in expansion of macro ‘xclosedir’ xclosedir(dirp); ^~~~~~~~~ files.c: In function ‘get_dir_error_handler’: files.c:253:31: warning: ignoring return value of ‘chdir’, declared with attribute warn_unused_result [-Wunused-result] #define xclosedir(dir_ptr) (chdir(mud_lib),closedir(dir_ptr)) ^~~~~~~~~~~~~~ files.c:336:5: note: in expansion of macro ‘xclosedir’ xclosedir(ecp->dirp); ^~~~~~~~~ gcc -I/usr/include/python3.6m -I/usr/include/x86_64-linux-gnu/python3.6m -I/usr/include/json-c -I/usr/include/postgresql -fwrapv -O2 -g -Wall -Wparentheses -Wshadow -Wstrict-overflow=2 -DMUD_LIB='"/home/dragonfiredev/testmud/test-lib"' -DBINDIR='"/home/dragonfiredev/testmud/bin"' -DERQ_DIR='"/home/dragonfiredev/testmud/libexec"' -c -o gcollect.o gcollect.c gcollect.c: In function ‘cleanup_mapping_filter’: gcollect.c:327:5: warning: implicit declaration of function ‘cleanup_vector’; did you mean ‘cleanup_reset’? [-Wimplicit-function-declaration] cleanup_vector(key, 1, pData->context); ^~~~~~~~~~~~~~ cleanup_reset gcollect.c: At top level: gcollect.c:392:1: warning: conflicting types for ‘cleanup_vector’ cleanup_vector (svalue_t *svp, size_t num, cleanup_t * context) ^~~~~~~~~~~~~~ gcollect.c:327:5: note: previous implicit declaration of ‘cleanup_vector’ was here cleanup_vector(key, 1, pData->context); ^~~~~~~~~~~~~~ gcc -I/usr/include/python3.6m -I/usr/include/x86_64-linux-gnu/python3.6m -I/usr/include/json-c -I/usr/include/postgresql -fwrapv -O2 -g -Wall -Wparentheses -Wshadow -Wstrict-overflow=2 -DMUD_LIB='"/home/dragonfiredev/testmud/test-lib"' -DBINDIR='"/home/dragonfiredev/testmud/bin"' -DERQ_DIR='"/home/dragonfiredev/testmud/libexec"' -c -o heartbeat.o heartbeat.c gcc -I/usr/include/python3.6m -I/usr/include/x86_64-linux-gnu/python3.6m -I/usr/include/json-c -I/usr/include/postgresql -fwrapv -O2 -g -Wall -Wparentheses -Wshadow -Wstrict-overflow=2 -DMUD_LIB='"/home/dragonfiredev/testmud/test-lib"' -DBINDIR='"/home/dragonfiredev/testmud/bin"' -DERQ_DIR='"/home/dragonfiredev/testmud/libexec"' -c -o interpret.o interpret.c rm -f lang.y ./mkfunc lang bison --defines=lang.h -o lang.c lang.y lang.y:2.9-25: error: %define variable 'api.location.type' is not used %define api.location.type {code_location_t} ^^^^^^^^^^^^^^^^^ Makefile:214: recipe for target 'lang.h' failed make: *** [lang.h] Error 1 | ||||
|
Which Bison version are you using? It seems like api.location.type is supported starting with Bison 3.4. |
|
$ bison --version bison (GNU Bison) 3.0.4 Written by Robert Corbett and Richard Stallman. Copyright (C) 2015 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. $ cat /etc/*-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=18.04 DISTRIB_CODENAME=bionic DISTRIB_DESCRIPTION="Ubuntu 18.04.6 LTS" NAME="Ubuntu" VERSION="18.04.6 LTS (Bionic Beaver)" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 18.04.6 LTS" VERSION_ID="18.04" HOME_URL="https://www.ubuntu.com/" SUPPORT_URL="https://help.ubuntu.com/" BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/" PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy" VERSION_CODENAME=bionic UBUNTU_CODENAME=bionic |