Build of lmdb with android toolchain

The build took 00h 01m 03s and was NOT successful.

The program in this build is written in the following languages, according to sloccount:

SLOCLanguage
9,715 ansic
261 sh
75 makefile
10,051 total

The process tree of the build process is here.

Several sub-process invocations were improper; see the process tree for details. Summary:

List of Errors

Log

To avoid scrolling, you may jump to the last line of the invocation of makepkg that was used to build this package.

Removed vanilla repositories from pacman.conf and added:
# [tuscan]
# Server = file:///var/cache/pacman/pkg/

CMD: pacman -Syy --noconfirm
# :: Synchronizing package databases...
# downloading tuscan.db...

Copied permanent toolchain into container-local sysroot
# /toolchain_root/arm-linux-androideabi --> /sysroot/arm-linux-androideabi
# /toolchain_root/COPYING3.LIB --> /sysroot/COPYING3.LIB
# /toolchain_root/sysroot --> /sysroot/sysroot
# /toolchain_root/COPYING.RUNTIME --> /sysroot/COPYING.RUNTIME
# /toolchain_root/lib --> /sysroot/lib
# /toolchain_root/SOURCES --> /sysroot/SOURCES
# /toolchain_root/lib64 --> /sysroot/lib64
# /toolchain_root/share --> /sysroot/share
# /toolchain_root/bin --> /sysroot/bin
# /toolchain_root/COPYING --> /sysroot/COPYING
# /toolchain_root/COPYING3 --> /sysroot/COPYING3
# /toolchain_root/COPYING.LIB --> /sysroot/COPYING.LIB
# /toolchain_root/include --> /sysroot/include
# /toolchain_root/libexec --> /sysroot/libexec

CMD: sudo -u tuscan PATH=/sysroot/bin:/sysroot/libexec/gcc/arm-linux-androideabi/4.8:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin CC=arm-linux-androideabi-gcc CXX=arm-linux-androideabi-g++ red makepkg --noextract --syncdeps --skipinteg --skippgpcheck --skipchecksums --noconfirm --nocolor --log --noprogressbar --nocheck
# ==> Making package: lmdb 0.9.18-1 (Tue Apr 4 21:57:50 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# gcc -pthread -O2 -g -W -Wall -Wno-unused-parameter -Wbad-function-cast -Wuninitialized -c mdb.c
# gcc -pthread -O2 -g -W -Wall -Wno-unused-parameter -Wbad-function-cast -Wuninitialized -c midl.c
# gcc -pthread -O2 -g -W -Wall -Wno-unused-parameter -Wbad-function-cast -Wuninitialized -fPIC -c mdb.c -o mdb.lo
# gcc -pthread -O2 -g -W -Wall -Wno-unused-parameter -Wbad-function-cast -Wuninitialized -fPIC -c midl.c -o midl.lo
# cc1: error: no include path in which to search for stdc-predef.h
# cc1: error: no include path in which to search for stdc-predef.h
# midl.c:18:20: error: no include path in which to search for limits.h
# #include
# ^
# midl.c:19:20: error: no include path in which to search for string.h
# #include
# ^
# midl.c:20:20: error: no include path in which to search for stdlib.h
# #include
# ^
# midl.c:21:19: error: no include path in which to search for errno.h
# #include
# ^
# midl.c:22:23: error: no include path in which to search for sys/types.h
# #include
# ^
# mdb.c:60:23: error: no include path in which to search for sys/types.h
# #include
# ^
# mdb.c:61:22: error: no include path in which to search for sys/stat.h
# #include
# ^
# mdb.c:64:23: error: no include path in which to search for sys/param.h
# #include
# ^
# mdb.c:65:21: error: no include path in which to search for sys/uio.h
# #include
# ^
# In file included from midl.c:23:0:
# midl.h:29:20: error: no include path in which to search for stddef.h
# #include
# ^
# mdb.c:66:22: error: no include path in which to search for sys/mman.h
# #include
# ^
# mdb.c:70:19: error: no include path in which to search for fcntl.h
# #include
# ^
# midl.h:45:1: error: unknown type name 'size_t'
# typedef size_t MDB_ID;
# ^
# mdb.c:91:19: error: no include path in which to search for errno.h
# #include
# ^
# mdb.c:92:20: error: no include path in which to search for limits.h
# #include
# ^
# mdb.c:93:20: error: no include path in which to search for stddef.h
# #include
# ^
# mdb.c:94:22: error: no include path in which to search for inttypes.h
# #include
# ^
# mdb.c:95:19: error: no include path in which to search for stdio.h
# #include
# ^
# mdb.c:96:20: error: no include path in which to search for stdlib.h
# #include
# ^
# mdb.c:97:20: error: no include path in which to search for string.h
# #include
# ^
# mdb.c:98:18: error: no include path in which to search for time.h
# #include
# ^
# mdb.c:104:20: error: no include path in which to search for unistd.h
# #include
# ^
# mdb.c:114:24: error: no include path in which to search for netinet/in.h
# #include
# ^
# mdb.c:115:65: error: no include path in which to search for resolv.h
# #include /* defines BYTE_ORDER on HPUX and Solaris */
# ^
# mdb.c:126:21: error: no include path in which to search for pthread.h
# #include
# ^
# In file included from mdb.c:181:0:
# lmdb.h:162:23: error: no include path in which to search for sys/types.h
# #include
# ^
# lmdb.h:172:1: error: unknown type name 'mode_t'
# typedef mode_t mdb_mode_t;
# ^
# midl.c: In function 'mdb_midl_alloc':
# midl.c:105:2: warning: implicit declaration of function 'malloc' [-Wimplicit-function-declaration]
# MDB_IDL ids = malloc((num+2) * sizeof(MDB_ID));
# ^
# midl.c:105:16: warning: incompatible implicit declaration of built-in function 'malloc' [enabled by default]
# MDB_IDL ids = malloc((num+2) * sizeof(MDB_ID));
# ^
# lmdb.h:252:2: error: unknown type name 'size_t'
# size_t mv_size; /**< size of the data item */
# ^
# midl.c: In function 'mdb_midl_free':
# midl.c:116:3: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration]
# free(ids-1);
# ^
# midl.c:116:3: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
# midl.c: In function 'mdb_midl_shrink':
# midl.c:123:3: warning: implicit declaration of function 'realloc' [-Wimplicit-function-declaration]
# (ids = realloc(ids, (MDB_IDL_UM_MAX+2) * sizeof(MDB_ID))))
# ^
# midl.c:123:10: warning: incompatible implicit declaration of built-in function 'realloc' [enabled by default]
# (ids = realloc(ids, (MDB_IDL_UM_MAX+2) * sizeof(MDB_ID))))
# ^
# lmdb.h:452:2: error: unknown type name 'size_t'
# size_t ms_branch_pages; /**< Number of internal (non-leaf) pages */
# ^
# lmdb.h:453:2: error: unknown type name 'size_t'
# size_t ms_leaf_pages; /**< Number of leaf pages */
# ^
# midl.c: In function 'mdb_midl_grow':
# lmdb.h:454:2: error: unknown type name 'size_t'
# size_t ms_overflow_pages; /**< Number of overflow pages */
# ^
# midl.c:134:8: warning: incompatible implicit declaration of built-in function 'realloc' [enabled by default]
# idn = realloc(idn, (*idn + num + 2) * sizeof(MDB_ID));
# ^
# lmdb.h:455:2: error: unknown type name 'size_t'
# size_t ms_entries; /**< Number of data items */
# ^
# midl.c:136:10: error: 'ENOMEM' undeclared (first use in this function)
# return ENOMEM;
# ^
# midl.c:136:10: note: each undeclared identifier is reported only once for each function it appears in
# lmdb.h:461:2: error: unknown type name 'size_t'
# size_t me_mapsize; /**< Size of the data memory map */
# ^
# midl.c: In function 'mdb_midl_need':
# lmdb.h:462:2: error: unknown type name 'size_t'
# size_t me_last_pgno; /**< ID of the last used page */
# ^
# midl.c:146:10: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
# if (num > ids[-1]) {
# ^
# lmdb.h:463:2: error: unknown type name 'size_t'
# size_t me_last_txnid; /**< ID of the last committed transaction */
# ^
# midl.c:148:15: warning: incompatible implicit declaration of built-in function 'realloc' [enabled by default]
# if (!(ids = realloc(ids-1, num * sizeof(MDB_ID))))
# ^
# midl.c:149:11: error: 'ENOMEM' undeclared (first use in this function)
# return ENOMEM;
# ^
# midl.c: In function 'mdb_midl_append':
# midl.c:162:11: error: 'ENOMEM' undeclared (first use in this function)
# return ENOMEM;
# ^
# lmdb.h:832:40: error: unknown type name 'size_t'
# int mdb_env_set_mapsize(MDB_env *env, size_t size);
# ^
# midl.c: In function 'mdb_midl_append_list':
# midl.c:176:11: error: 'ENOMEM' undeclared (first use in this function)
# return ENOMEM;
# ^
# midl.c:179:2: warning: implicit declaration of function 'memcpy' [-Wimplicit-function-declaration]
# memcpy(&ids[ids[0]+1], &app[1], app[0] * sizeof(MDB_ID));
# ^
# midl.c:179:2: warning: incompatible implicit declaration of built-in function 'memcpy' [enabled by default]
# lmdb.h:977:1: error: unknown type name 'size_t'
# size_t mdb_txn_id(MDB_txn *txn);
# ^
# midl.c: In function 'mdb_midl_append_range':
# midl.c:188:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
# if (len + n > ids[-1]) {
# ^
# midl.c:190:11: error: 'ENOMEM' undeclared (first use in this function)
# return ENOMEM;
# ^
# midl.c: In function 'mdb_midl_sort':
# midl.c:223:25: error: 'CHAR_BIT' undeclared (first use in this function)
# int istack[sizeof(int)*CHAR_BIT * 2];
# ^
# lmdb.h:1527:43: error: unknown type name 'size_t'
# int mdb_cursor_count(MDB_cursor *cursor, size_t *countp);
# ^
# In file included from mdb.c:182:0:
# midl.h:29:20: error: no include path in which to search for stddef.h
# #include
# ^
# midl.h:45:1: error: unknown type name 'size_t'
# typedef size_t MDB_ID;
# ^
# mdb.c:185:3: error: #error "Unknown or unsupported endianness (BYTE_ORDER)"
# # error "Unknown or unsupported endianness (BYTE_ORDER)"
# ^
# midl.c:223:6: warning: unused variable 'istack' [-Wunused-variable]
# int istack[sizeof(int)*CHAR_BIT * 2];
# ^
# mdb.c:340:1: error: unknown type name 'pthread_mutex_t'
# typedef pthread_mutex_t mdb_mutex_t[1], *mdb_mutexref_t;
# ^
# midl.c: In function 'mdb_mid2l_insert':
# mdb.c:594:1: error: unknown type name 'uint16_t'
# typedef uint16_t indx_t;
# ^
# midl.c:326:9: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
# if ( x <= ids[0].mid && ids[x].mid == id->mid ) {
# ^
# mdb.c:675:2: error: unknown type name 'pid_t'
# volatile MDB_PID_T mrb_pid;
# ^
# mdb.c:677:2: error: unknown type name 'pthread_t'
# volatile MDB_THR_T mrb_tid;
# ^
# mdb.c:710:2: error: unknown type name 'uint32_t'
# uint32_t mtb_magic;
# ^
# mdb.c:712:2: error: unknown type name 'uint32_t'
# uint32_t mtb_format;
# ^
# mdb.c:380:27: error: 'pthread_mutex_t' undeclared here (not in a function)
# #define MNAME_LEN (sizeof(pthread_mutex_t))
# ^
# mdb.c:753:13: note: in expansion of macro 'MNAME_LEN'
# char pad[(MNAME_LEN+CACHELINE-1) & ~(CACHELINE-1)];
# ^
# mdb.c:777:2: error: unknown type name 'uint16_t'
# uint16_t mp_pad;
# ^
# mdb.c:793:2: error: unknown type name 'uint16_t'
# uint16_t mp_flags; /**< @ref mdb_page */
# ^
# mdb.c:802:3: error: unknown type name 'uint32_t'
# uint32_t pb_pages; /**< number of overflow pages */
# ^
# mdb.c:962:2: error: unknown type name 'uint32_t'
# uint32_t md_pad; /**< also ksize for LEAF2 pages */
# ^
# mdb.c:963:2: error: unknown type name 'uint16_t'
# uint16_t md_flags; /**< @ref mdb_dbi_open */
# ^
# mdb.c:964:2: error: unknown type name 'uint16_t'
# uint16_t md_depth; /**< depth of this tree */
# ^
# mdb.c:968:2: error: unknown type name 'size_t'
# size_t md_entries; /**< number of data items */
# ^
# mdb.c:995:2: error: unknown type name 'uint32_t'
# uint32_t mm_magic;
# ^
# mdb.c:997:2: error: unknown type name 'uint32_t'
# uint32_t mm_version;
# ^
# mdb.c:999:2: error: unknown type name 'size_t'
# size_t mm_mapsize; /**< size of mmap region */
# ^
# mdb.c:1017:3: warning: implicit declaration of function 'offsetof' [-Wimplicit-function-declaration]
# char mm_pad[PAGEHDRSZ];
# ^
# cc1: error: no include path in which to search for stdc-predef.h
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:1017:16: note: in expansion of macro 'PAGEHDRSZ'
# char mm_pad[PAGEHDRSZ];
# ^
# mdb.c:60:23: error: no include path in which to search for sys/types.h
# #include
# ^
# mdb.c:61:22: error: no include path in which to search for sys/stat.h
# #include
# ^
# mdb.c:64:23: error: no include path in which to search for sys/param.h
# #include
# ^
# mdb.c:65:21: error: no include path in which to search for sys/uio.h
# #include
# ^
# mdb.c:66:22: error: no include path in which to search for sys/mman.h
# #include
# ^
# mdb.c:70:19: error: no include path in which to search for fcntl.h
# #include
# ^
# mdb.c:1206:2: error: unknown type name 'uint32_t'
# uint32_t me_flags; /**< @ref mdb_env */
# ^
# mdb.c:91:19: error: no include path in which to search for errno.h
# #include
# ^
# mdb.c:92:20: error: no include path in which to search for limits.h
# #include
# ^
# mdb.c:93:20: error: no include path in which to search for stddef.h
# #include
# ^
# mdb.c:94:22: error: no include path in which to search for inttypes.h
# #include
# ^
# mdb.c:95:19: error: no include path in which to search for stdio.h
# #include
# ^
# mdb.c:1214:2: error: unknown type name 'pid_t'
# MDB_PID_T me_pid; /**< process ID of this env */
# ^
# mdb.c:96:20: error: no include path in which to search for stdlib.h
# #include
# ^
# mdb.c:97:20: error: no include path in which to search for string.h
# #include
# ^
# mdb.c:98:18: error: no include path in which to search for time.h
# #include
# ^
# mdb.c:104:20: error: no include path in which to search for unistd.h
# #include
# ^
# mdb.c:114:24: error: no include path in which to search for netinet/in.h
# #include
# ^
# mdb.c:1222:2: error: unknown type name 'size_t'
# size_t me_mapsize; /**< size of the data memory map */
# ^
# mdb.c:115:65: error: no include path in which to search for resolv.h
# #include /* defines BYTE_ORDER on HPUX and Solaris */
# ^
# mdb.c:126:21: error: no include path in which to search for pthread.h
# #include
# ^
# mdb.c:1223:2: error: unknown type name 'off_t'
# off_t me_size; /**< current file size */
# ^
# mdb.c:1226:2: error: unknown type name 'uint16_t'
# uint16_t *me_dbflags; /**< array of flags from MDB_db.md_flags */
# ^
# In file included from mdb.c:181:0:
# lmdb.h:162:23: error: no include path in which to search for sys/types.h
# #include
# ^
# make: *** [Makefile:85: midl.o] Error 1
# lmdb.h:172:1: error: unknown type name 'mode_t'
# typedef mode_t mdb_mode_t;
# ^
# make: *** Waiting for unfinished jobs....
# mdb.c:1228:2: error: unknown type name 'pthread_key_t'
# pthread_key_t me_txkey; /**< thread-key for readers */
# ^
# lmdb.h:252:2: error: unknown type name 'size_t'
# size_t mv_size; /**< size of the data item */
# ^
# mdb.c:1285:42: error: unknown type name 'uint32_t'
# static int mdb_page_new(MDB_cursor *mc, uint32_t flags, int num, MDB_page **mp);
# ^
# lmdb.h:452:2: error: unknown type name 'size_t'
# size_t ms_branch_pages; /**< Number of internal (non-leaf) pages */
# ^
# lmdb.h:453:2: error: unknown type name 'size_t'
# size_t ms_leaf_pages; /**< Number of leaf pages */
# ^
# mdb.c:1331:1: error: unknown type name 'size_t'
# static size_t mdb_leaf_size(MDB_env *env, MDB_val *key, MDB_val *data);
# ^
# lmdb.h:454:2: error: unknown type name 'size_t'
# size_t ms_overflow_pages; /**< Number of overflow pages */
# ^
# lmdb.h:455:2: error: unknown type name 'size_t'
# size_t ms_entries; /**< Number of data items */
# ^
# mdb.c:1332:1: error: unknown type name 'size_t'
# static size_t mdb_branch_size(MDB_env *env, MDB_val *key);
# ^
# lmdb.h:461:2: error: unknown type name 'size_t'
# size_t me_mapsize; /**< Size of the data memory map */
# ^
# lmdb.h:462:2: error: unknown type name 'size_t'
# size_t me_last_pgno; /**< ID of the last used page */
# ^
# lmdb.h:463:2: error: unknown type name 'size_t'
# size_t me_last_txnid; /**< ID of the last committed transaction */
# ^
# mdb.c: In function 'mdb_strerror':
# mdb.c:1456:2: warning: implicit declaration of function 'strerror' [-Wimplicit-function-declaration]
# return strerror(err);
# ^
# lmdb.h:832:40: error: unknown type name 'size_t'
# int mdb_env_set_mapsize(MDB_env *env, size_t size);
# ^
# mdb.c:1456:2: warning: return makes pointer from integer without a cast [enabled by default]
# mdb.c: In function 'mdb_assert_fail':
# mdb.c:1476:2: warning: implicit declaration of function 'sprintf' [-Wimplicit-function-declaration]
# sprintf(buf, "%.100s:%d: Assertion '%.200s' failed in %.40s()",
# ^
# mdb.c:1476:2: warning: incompatible implicit declaration of built-in function 'sprintf' [enabled by default]
# lmdb.h:977:1: error: unknown type name 'size_t'
# size_t mdb_txn_id(MDB_txn *txn);
# ^
# mdb.c:1480:2: warning: implicit declaration of function 'fprintf' [-Wimplicit-function-declaration]
# fprintf(stderr, "%s\n", buf);
# ^
# mdb.c:1480:2: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# mdb.c:1480:10: error: 'stderr' undeclared (first use in this function)
# fprintf(stderr, "%s\n", buf);
# ^
# mdb.c:1480:10: note: each undeclared identifier is reported only once for each function it appears in
# mdb.c:1481:2: warning: implicit declaration of function 'abort' [-Wimplicit-function-declaration]
# abort();
# ^
# mdb.c:1481:2: warning: incompatible implicit declaration of built-in function 'abort' [enabled by default]
# lmdb.h:1527:43: error: unknown type name 'size_t'
# int mdb_cursor_count(MDB_cursor *cursor, size_t *countp);
# ^
# In file included from mdb.c:182:0:
# midl.h:29:20: error: no include path in which to search for stddef.h
# #include
# ^
# mdb.c: In function 'mdb_page_malloc':
# midl.h:45:1: error: unknown type name 'size_t'
# typedef size_t MDB_ID;
# ^
# mdb.c:1709:2: error: unknown type name 'size_t'
# size_t psize = env->me_psize, sz = psize, off;
# ^
# cc1: error: no include path in which to search for stdc-predef.h
# mdb.c:185:3: error: #error "Unknown or unsupported endianness (BYTE_ORDER)"
# # error "Unknown or unsupported endianness (BYTE_ORDER)"
# ^
# midl.c:18:20: error: no include path in which to search for limits.h
# #include
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:1722:18: note: in expansion of macro 'PAGEHDRSZ'
# psize -= off = PAGEHDRSZ;
# ^
# midl.c:19:20: error: no include path in which to search for string.h
# #include
# ^
# midl.c:20:20: error: no include path in which to search for stdlib.h
# #include
# ^
# midl.c:21:19: error: no include path in which to search for errno.h
# #include
# ^
# mdb.c:340:1: error: unknown type name 'pthread_mutex_t'
# typedef pthread_mutex_t mdb_mutex_t[1], *mdb_mutexref_t;
# ^
# midl.c:22:23: error: no include path in which to search for sys/types.h
# #include
# ^
# In file included from midl.c:23:0:
# midl.h:29:20: error: no include path in which to search for stddef.h
# #include
# ^
# mdb.c:1727:2: warning: implicit declaration of function 'malloc' [-Wimplicit-function-declaration]
# if ((ret = malloc(sz)) != NULL) {
# ^
# midl.h:45:1: error: unknown type name 'size_t'
# typedef size_t MDB_ID;
# ^
# mdb.c:1727:13: warning: incompatible implicit declaration of built-in function 'malloc' [enabled by default]
# if ((ret = malloc(sz)) != NULL) {
# ^
# mdb.c:594:1: error: unknown type name 'uint16_t'
# typedef uint16_t indx_t;
# ^
# mdb.c:675:2: error: unknown type name 'pid_t'
# volatile MDB_PID_T mrb_pid;
# ^
# mdb.c:1727:28: error: 'NULL' undeclared (first use in this function)
# if ((ret = malloc(sz)) != NULL) {
# ^
# mdb.c:677:2: error: unknown type name 'pthread_t'
# volatile MDB_THR_T mrb_tid;
# ^
# mdb.c:1730:4: warning: implicit declaration of function 'memset' [-Wimplicit-function-declaration]
# memset((char *)ret + off, 0, psize);
# ^
# mdb.c:1730:4: warning: incompatible implicit declaration of built-in function 'memset' [enabled by default]
# midl.c: In function 'mdb_midl_alloc':
# mdb.c:710:2: error: unknown type name 'uint32_t'
# uint32_t mtb_magic;
# ^
# midl.c:105:2: warning: implicit declaration of function 'malloc' [-Wimplicit-function-declaration]
# MDB_IDL ids = malloc((num+2) * sizeof(MDB_ID));
# ^
# midl.c:105:16: warning: incompatible implicit declaration of built-in function 'malloc' [enabled by default]
# MDB_IDL ids = malloc((num+2) * sizeof(MDB_ID));
# ^
# mdb.c: In function 'mdb_dpage_free':
# mdb.c:712:2: error: unknown type name 'uint32_t'
# uint32_t mtb_format;
# ^
# midl.c: In function 'mdb_midl_free':
# midl.c:116:3: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration]
# free(ids-1);
# ^
# midl.c:116:3: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
# mdb.c:1759:3: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration]
# free(dp);
# ^
# mdb.c:1759:3: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
# midl.c: In function 'mdb_midl_shrink':
# midl.c:123:3: warning: implicit declaration of function 'realloc' [-Wimplicit-function-declaration]
# (ids = realloc(ids, (MDB_IDL_UM_MAX+2) * sizeof(MDB_ID))))
# ^
# mdb.c:380:27: error: 'pthread_mutex_t' undeclared here (not in a function)
# #define MNAME_LEN (sizeof(pthread_mutex_t))
# ^
# mdb.c:753:13: note: in expansion of macro 'MNAME_LEN'
# char pad[(MNAME_LEN+CACHELINE-1) & ~(CACHELINE-1)];
# ^
# midl.c:123:10: warning: incompatible implicit declaration of built-in function 'realloc' [enabled by default]
# (ids = realloc(ids, (MDB_IDL_UM_MAX+2) * sizeof(MDB_ID))))
# ^
# mdb.c: In function 'mdb_page_loose':
# midl.c: In function 'mdb_midl_grow':
# mdb.c:777:2: error: unknown type name 'uint16_t'
# uint16_t mp_pad;
# ^
# mdb.c:1802:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
# if (x <= dl[0].mid && dl[x].mid == pgno) {
# ^
# midl.c:134:8: warning: incompatible implicit declaration of built-in function 'realloc' [enabled by default]
# idn = realloc(idn, (*idn + num + 2) * sizeof(MDB_ID));
# ^
# midl.c:136:10: error: 'ENOMEM' undeclared (first use in this function)
# return ENOMEM;
# ^
# midl.c:136:10: note: each undeclared identifier is reported only once for each function it appears in
# mdb.c:793:2: error: unknown type name 'uint16_t'
# uint16_t mp_flags; /**< @ref mdb_page */
# ^
# midl.c: In function 'mdb_midl_need':
# mdb.c: In function 'mdb_pages_xkeep':
# midl.c:146:10: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
# if (num > ids[-1]) {
# ^
# mdb.c:802:3: error: unknown type name 'uint32_t'
# uint32_t pb_pages; /**< number of overflow pages */
# ^
# midl.c:148:15: warning: incompatible implicit declaration of built-in function 'realloc' [enabled by default]
# if (!(ids = realloc(ids-1, num * sizeof(MDB_ID))))
# ^
# mdb.c:1854:8: error: 'NULL' undeclared (first use in this function)
# mc = NULL; /* will find mc in mt_cursors */
# ^
# midl.c:149:11: error: 'ENOMEM' undeclared (first use in this function)
# return ENOMEM;
# ^
# midl.c: In function 'mdb_midl_append':
# midl.c:162:11: error: 'ENOMEM' undeclared (first use in this function)
# return ENOMEM;
# ^
# mdb.c:962:2: error: unknown type name 'uint32_t'
# uint32_t md_pad; /**< also ksize for LEAF2 pages */
# ^
# midl.c: In function 'mdb_midl_append_list':
# midl.c:176:11: error: 'ENOMEM' undeclared (first use in this function)
# return ENOMEM;
# ^
# mdb.c:963:2: error: unknown type name 'uint16_t'
# uint16_t md_flags; /**< @ref mdb_dbi_open */
# ^
# midl.c:179:2: warning: implicit declaration of function 'memcpy' [-Wimplicit-function-declaration]
# memcpy(&ids[ids[0]+1], &app[1], app[0] * sizeof(MDB_ID));
# ^
# midl.c:179:2: warning: incompatible implicit declaration of built-in function 'memcpy' [enabled by default]
# mdb.c:964:2: error: unknown type name 'uint16_t'
# uint16_t md_depth; /**< depth of this tree */
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:1872:12: note: in expansion of macro 'NODEPTR'
# leaf = NODEPTR(mp, m3->mc_ki[j-1]);
# ^
# midl.c: In function 'mdb_midl_append_range':
# mdb.c:968:2: error: unknown type name 'size_t'
# size_t md_entries; /**< number of data items */
# ^
# midl.c:188:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
# if (len + n > ids[-1]) {
# ^
# midl.c:190:11: error: 'ENOMEM' undeclared (first use in this function)
# return ENOMEM;
# ^
# mdb.c: In function 'mdb_page_spill':
# mdb.c:995:2: error: unknown type name 'uint32_t'
# uint32_t mm_magic;
# ^
# mdb.c:997:2: error: unknown type name 'uint32_t'
# uint32_t mm_version;
# ^
# midl.c: In function 'mdb_midl_sort':
# midl.c:223:25: error: 'CHAR_BIT' undeclared (first use in this function)
# int istack[sizeof(int)*CHAR_BIT * 2];
# ^
# mdb.c:999:2: error: unknown type name 'size_t'
# size_t mm_mapsize; /**< size of mmap region */
# ^
# mdb.c:882:28: error: expected expression before 'MDB_node'
# #define NODESIZE offsetof(MDB_node, mn_data)
# ^
# mdb.c:895:26: note: in expansion of macro 'NODESIZE'
# #define LEAFSIZE(k, d) (NODESIZE + (k)->mv_size + (d)->mv_size)
# ^
# mdb.c:1952:9: note: in expansion of macro 'LEAFSIZE'
# i += (LEAFSIZE(key, data) + txn->mt_env->me_psize) / txn->mt_env->me_psize;
# ^
# mdb.c:1017:3: warning: implicit declaration of function 'offsetof' [-Wimplicit-function-declaration]
# char mm_pad[PAGEHDRSZ];
# ^
# mdb.c:1962:11: error: 'ENOMEM' undeclared (first use in this function)
# return ENOMEM;
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:1017:16: note: in expansion of macro 'PAGEHDRSZ'
# char mm_pad[PAGEHDRSZ];
# ^
# mdb.c:2004:12: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
# if (j <= tx2->mt_spill_pgs[0] && tx2->mt_spill_pgs[j] == pn) {
# ^
# midl.c:223:6: warning: unused variable 'istack' [-Wunused-variable]
# int istack[sizeof(int)*CHAR_BIT * 2];
# ^
# mdb.c:1206:2: error: unknown type name 'uint32_t'
# uint32_t me_flags; /**< @ref mdb_env */
# ^
# mdb.c: In function 'mdb_page_alloc':
# mdb.c:1214:2: error: unknown type name 'pid_t'
# MDB_PID_T me_pid; /**< process ID of this env */
# ^
# midl.c: In function 'mdb_mid2l_insert':
# mdb.c:2096:37: error: 'INT_MAX' undeclared (first use in this function)
# enum { Paranoid = 0, Max_retries = INT_MAX /*infinite*/ };
# ^
# midl.c:326:9: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
# if ( x <= ids[0].mid && ids[x].mid == id->mid ) {
# ^
# mdb.c:1222:2: error: unknown type name 'size_t'
# size_t me_mapsize; /**< size of the data memory map */
# ^
# mdb.c:1223:2: error: unknown type name 'off_t'
# off_t me_size; /**< current file size */
# ^
# mdb.c:2120:8: error: 'NULL' undeclared (first use in this function)
# *mp = NULL;
# ^
# mdb.c:1226:2: error: unknown type name 'uint16_t'
# uint16_t *me_dbflags; /**< array of flags from MDB_db.md_flags */
# ^
# mdb.c:2140:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
# if (mop[i-n2] == pgno+n2)
# ^
# mdb.c:1228:2: error: unknown type name 'pthread_key_t'
# pthread_key_t me_txkey; /**< thread-key for readers */
# ^
# mdb.c:1285:42: error: unknown type name 'uint32_t'
# static int mdb_page_new(MDB_cursor *mc, uint32_t flags, int num, MDB_page **mp);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:2191:10: note: in expansion of macro 'NODEPTR'
# leaf = NODEPTR(np, m2.mc_ki[m2.mc_top]);
# ^
# mdb.c:1331:1: error: unknown type name 'size_t'
# static size_t mdb_leaf_size(MDB_env *env, MDB_val *key, MDB_val *data);
# ^
# mdb.c:2199:10: error: 'ENOMEM' undeclared (first use in this function)
# rc = ENOMEM;
# ^
# mdb.c:1332:1: error: unknown type name 'size_t'
# static size_t mdb_branch_size(MDB_env *env, MDB_val *key);
# ^
# mdb.c: In function 'mdb_page_copy':
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:2271:20: note: in expansion of macro 'PAGEBASE'
# upper = (upper + PAGEBASE) & -Align;
# ^
# mdb.c: In function 'mdb_strerror':
# mdb.c:2272:3: warning: implicit declaration of function 'memcpy' [-Wimplicit-function-declaration]
# memcpy(dst, src, (lower + PAGEBASE + (Align-1)) & -Align);
# ^
# mdb.c:2272:3: warning: incompatible implicit declaration of built-in function 'memcpy' [enabled by default]
# mdb.c:1456:2: warning: implicit declaration of function 'strerror' [-Wimplicit-function-declaration]
# return strerror(err);
# ^
# mdb.c:1456:2: warning: return makes pointer from integer without a cast [enabled by default]
# mdb.c: In function 'mdb_assert_fail':
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:2272:29: note: in expansion of macro 'PAGEBASE'
# memcpy(dst, src, (lower + PAGEBASE + (Align-1)) & -Align);
# ^
# mdb.c:1476:2: warning: implicit declaration of function 'sprintf' [-Wimplicit-function-declaration]
# sprintf(buf, "%.100s:%d: Assertion '%.200s' failed in %.40s()",
# ^
# mdb.c:1476:2: warning: incompatible implicit declaration of built-in function 'sprintf' [enabled by default]
# mdb.c:2276:3: warning: incompatible implicit declaration of built-in function 'memcpy' [enabled by default]
# memcpy(dst, src, psize - unused);
# ^
# mdb.c: In function 'mdb_page_unspill':
# mdb.c:1480:2: warning: implicit declaration of function 'fprintf' [-Wimplicit-function-declaration]
# fprintf(stderr, "%s\n", buf);
# ^
# mdb.c:1480:2: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# mdb.c:2300:9: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
# if (x <= tx2->mt_spill_pgs[0] && tx2->mt_spill_pgs[x] == pn) {
# ^
# mdb.c:1480:10: error: 'stderr' undeclared (first use in this function)
# fprintf(stderr, "%s\n", buf);
# ^
# mdb.c:1480:10: note: each undeclared identifier is reported only once for each function it appears in
# mdb.c:1481:2: warning: implicit declaration of function 'abort' [-Wimplicit-function-declaration]
# abort();
# ^
# mdb.c:1481:2: warning: incompatible implicit declaration of built-in function 'abort' [enabled by default]
# mdb.c:2314:13: error: 'ENOMEM' undeclared (first use in this function)
# return ENOMEM;
# ^
# mdb.c:2316:6: warning: incompatible implicit declaration of built-in function 'memcpy' [enabled by default]
# memcpy(np, mp, num * env->me_psize);
# ^
# mdb.c: In function 'mdb_page_malloc':
# mdb.c:2325:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
# if (x == txn->mt_spill_pgs[0])
# ^
# mdb.c:1709:2: error: unknown type name 'size_t'
# size_t psize = env->me_psize, sz = psize, off;
# ^
# mdb.c: In function 'mdb_page_touch':
# mdb.c:2357:9: error: 'NULL' undeclared (first use in this function)
# np = NULL;
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:1722:18: note: in expansion of macro 'PAGEHDRSZ'
# psize -= off = PAGEHDRSZ;
# ^
# mdb.c:1727:2: warning: implicit declaration of function 'malloc' [-Wimplicit-function-declaration]
# if ((ret = malloc(sz)) != NULL) {
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:2375:21: note: in expansion of macro 'NODEPTR'
# MDB_node *node = NODEPTR(parent, mc->mc_ki[mc->mc_top-1]);
# ^
# mdb.c:1727:13: warning: incompatible implicit declaration of built-in function 'malloc' [enabled by default]
# if ((ret = malloc(sz)) != NULL) {
# ^
# make: *** [Makefile:91: midl.lo] Error 1
# mdb.c:1727:28: error: 'NULL' undeclared (first use in this function)
# if ((ret = malloc(sz)) != NULL) {
# ^
# mdb.c:885:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
# #define PGNO_TOPWORD ((pgno_t)-1 > 0xffffffffu ? 32 : 0)
# ^
# mdb.c:913:6: note: in expansion of macro 'PGNO_TOPWORD'
# if (PGNO_TOPWORD) (node)->mn_flags = (pgno) >> PGNO_TOPWORD; } while(0)
# ^
# mdb.c:2376:4: note: in expansion of macro 'SETPGNO'
# SETPGNO(node, pgno);
# ^
# mdb.c:1730:4: warning: implicit declaration of function 'memset' [-Wimplicit-function-declaration]
# memset((char *)ret + off, 0, psize);
# ^
# mdb.c:1730:4: warning: incompatible implicit declaration of built-in function 'memset' [enabled by default]
# mdb.c: In function 'mdb_dpage_free':
# mdb.c:885:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
# #define PGNO_TOPWORD ((pgno_t)-1 > 0xffffffffu ? 32 : 0)
# ^
# mdb.c:913:49: note: in expansion of macro 'PGNO_TOPWORD'
# if (PGNO_TOPWORD) (node)->mn_flags = (pgno) >> PGNO_TOPWORD; } while(0)
# ^
# mdb.c:2376:4: note: in expansion of macro 'SETPGNO'
# SETPGNO(node, pgno);
# ^
# mdb.c:1759:3: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration]
# free(dp);
# ^
# mdb.c:1759:3: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
# mdb.c:2388:10: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
# if (x <= dl[0].mid && dl[x].mid == pgno) {
# ^
# mdb.c: In function 'mdb_page_loose':
# mdb.c:2401:11: error: 'ENOMEM' undeclared (first use in this function)
# return ENOMEM;
# ^
# mdb.c:1802:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
# if (x <= dl[0].mid && dl[x].mid == pgno) {
# ^
# mdb.c: In function 'mdb_pages_xkeep':
# mdb.c:1854:8: error: 'NULL' undeclared (first use in this function)
# mc = NULL; /* will find mc in mt_cursors */
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:2435:23: note: in expansion of macro 'NODEPTR'
# MDB_node *leaf = NODEPTR(np, m2->mc_ki[mc->mc_top]);
# ^
# mdb.c: In function 'mdb_env_sync':
# mdb.c:2454:10: error: 'EACCES' undeclared (first use in this function)
# return EACCES;
# ^
# mdb.c:2459:4: warning: implicit declaration of function 'msync' [-Wimplicit-function-declaration]
# if (MDB_MSYNC(env->me_map, env->me_mapsize, flags))
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:1872:12: note: in expansion of macro 'NODEPTR'
# leaf = NODEPTR(mp, m3->mc_ki[j-1]);
# ^
# mdb.c:356:19: error: 'errno' undeclared (first use in this function)
# #define ErrCode() errno
# ^
# mdb.c:2460:10: note: in expansion of macro 'ErrCode'
# rc = ErrCode();
# ^
# mdb.c: In function 'mdb_page_spill':
# mdb.c:2468:5: warning: implicit declaration of function 'fsync' [-Wimplicit-function-declaration]
# if (fsync(env->me_fd))
# ^
# mdb.c:2472:4: warning: implicit declaration of function 'fdatasync' [-Wimplicit-function-declaration]
# if (MDB_FDATASYNC(env->me_fd))
# ^
# mdb.c: In function 'mdb_cursor_shadow':
# mdb.c:882:28: error: expected expression before 'MDB_node'
# #define NODESIZE offsetof(MDB_node, mn_data)
# ^
# mdb.c:895:26: note: in expansion of macro 'NODESIZE'
# #define LEAFSIZE(k, d) (NODESIZE + (k)->mv_size + (d)->mv_size)
# ^
# mdb.c:1952:9: note: in expansion of macro 'LEAFSIZE'
# i += (LEAFSIZE(key, data) + txn->mt_env->me_psize) / txn->mt_env->me_psize;
# ^
# mdb.c:2485:2: error: unknown type name 'size_t'
# size_t size;
# ^
# mdb.c:2489:36: error: 'NULL' undeclared (first use in this function)
# if ((mc = src->mt_cursors[i]) != NULL) {
# ^
# mdb.c:1962:11: error: 'ENOMEM' undeclared (first use in this function)
# return ENOMEM;
# ^
# mdb.c:2494:10: warning: incompatible implicit declaration of built-in function 'malloc' [enabled by default]
# bk = malloc(size);
# ^
# mdb.c:2496:13: error: 'ENOMEM' undeclared (first use in this function)
# return ENOMEM;
# ^
# mdb.c: In function 'mdb_cursors_close':
# mdb.c:2004:12: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
# if (j <= tx2->mt_spill_pgs[0] && tx2->mt_spill_pgs[j] == pn) {
# ^
# mdb.c:2533:32: error: 'NULL' undeclared (first use in this function)
# if ((bk = mc->mc_backup) != NULL) {
# ^
# mdb.c:2552:4: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
# free(mc);
# ^
# mdb.c: At top level:
# mdb.c: In function 'mdb_page_alloc':
# mdb.c:2564:11: error: 'F_SETLK' undeclared here (not in a function)
# Pidset = F_SETLK, Pidcheck = F_GETLK
# ^
# mdb.c:2096:37: error: 'INT_MAX' undeclared (first use in this function)
# enum { Paranoid = 0, Max_retries = INT_MAX /*infinite*/ };
# ^
# mdb.c:2564:31: error: 'F_GETLK' undeclared here (not in a function)
# Pidset = F_SETLK, Pidcheck = F_GETLK
# ^
# mdb.c:62:19: error: unknown type name 'pid_t'
# #define MDB_PID_T pid_t
# ^
# mdb.c:2577:50: note: in expansion of macro 'MDB_PID_T'
# mdb_reader_pid(MDB_env *env, enum Pidlock_op op, MDB_PID_T pid)
# ^
# mdb.c: In function 'mdb_txn_renew0':
# mdb.c:2120:8: error: 'NULL' undeclared (first use in this function)
# *mp = NULL;
# ^
# mdb.c:2623:2: error: unknown type name 'uint16_t'
# uint16_t x;
# ^
# mdb.c:2140:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
# if (mop[i-n2] == pgno+n2)
# ^
# mdb.c:2630:23: error: 'NULL' undeclared (first use in this function)
# txn->mt_u.reader = NULL;
# ^
# mdb.c:2633:5: warning: implicit declaration of function 'pthread_getspecific' [-Wimplicit-function-declaration]
# pthread_getspecific(env->me_txkey);
# ^
# mdb.c:2632:67: warning: pointer/integer type mismatch in conditional expression [enabled by default]
# MDB_reader *r = (env->me_flags & MDB_NOTLS) ? txn->mt_u.reader :
# ^
# mdb.c:62:19: error: unknown type name 'pid_t'
# #define MDB_PID_T pid_t
# ^
# mdb.c:2638:5: note: in expansion of macro 'MDB_PID_T'
# MDB_PID_T pid = env->me_pid;
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:2191:10: note: in expansion of macro 'NODEPTR'
# leaf = NODEPTR(np, m2.mc_ki[m2.mc_top]);
# ^
# mdb.c:63:19: error: unknown type name 'pthread_t'
# #define MDB_THR_T pthread_t
# ^
# mdb.c:2639:5: note: in expansion of macro 'MDB_THR_T'
# MDB_THR_T tid = pthread_self();
# ^
# mdb.c:2639:5: warning: implicit declaration of function 'pthread_self' [-Wimplicit-function-declaration]
# mdb.c:2199:10: error: 'ENOMEM' undeclared (first use in this function)
# rc = ENOMEM;
# ^
# mdb.c:2643:6: warning: implicit declaration of function 'mdb_reader_pid' [-Wimplicit-function-declaration]
# rc = mdb_reader_pid(env, Pidset, pid);
# ^
# mdb.c:2649:5: warning: implicit declaration of function 'pthread_mutex_lock' [-Wimplicit-function-declaration]
# if (LOCK_MUTEX(rc, env, rmutex))
# ^
# mdb.c: In function 'mdb_page_copy':
# mdb.c:2656:6: warning: implicit declaration of function 'pthread_mutex_unlock' [-Wimplicit-function-declaration]
# UNLOCK_MUTEX(rmutex);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:2271:20: note: in expansion of macro 'PAGEBASE'
# upper = (upper + PAGEBASE) & -Align;
# ^
# mdb.c:2676:5: warning: implicit declaration of function 'pthread_setspecific' [-Wimplicit-function-declaration]
# if (!new_notls && (rc=pthread_setspecific(env->me_txkey, r))) {
# ^
# mdb.c:2272:3: warning: implicit declaration of function 'memcpy' [-Wimplicit-function-declaration]
# memcpy(dst, src, (lower + PAGEBASE + (Align-1)) & -Align);
# ^
# mdb.c:2272:3: warning: incompatible implicit declaration of built-in function 'memcpy' [enabled by default]
# mdb.c:2715:3: warning: incompatible implicit declaration of built-in function 'memcpy' [enabled by default]
# memcpy(txn->mt_dbiseqs, env->me_dbiseqs, env->me_maxdbs * sizeof(unsigned int));
# ^
# mdb.c:2719:2: warning: incompatible implicit declaration of built-in function 'memcpy' [enabled by default]
# memcpy(txn->mt_dbs, meta->mm_dbs, CORE_DBS * sizeof(MDB_db));
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:2272:29: note: in expansion of macro 'PAGEBASE'
# memcpy(dst, src, (lower + PAGEBASE + (Align-1)) & -Align);
# ^
# mdb.c: In function 'mdb_txn_renew':
# mdb.c:2276:3: warning: incompatible implicit declaration of built-in function 'memcpy' [enabled by default]
# memcpy(dst, src, psize - unused);
# ^
# mdb.c:2754:10: error: 'EINVAL' undeclared (first use in this function)
# return EINVAL;
# ^
# mdb.c: In function 'mdb_txn_begin':
# mdb.c: In function 'mdb_page_unspill':
# mdb.c:2776:10: error: 'EACCES' undeclared (first use in this function)
# return EACCES;
# ^
# mdb.c:2300:9: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
# if (x <= tx2->mt_spill_pgs[0] && tx2->mt_spill_pgs[x] == pn) {
# ^
# mdb.c:2782:49: error: 'EINVAL' undeclared (first use in this function)
# return (parent->mt_flags & MDB_TXN_RDONLY) ? EINVAL : MDB_BAD_TXN;
# ^
# mdb.c:2314:13: error: 'ENOMEM' undeclared (first use in this function)
# return ENOMEM;
# ^
# mdb.c:2797:2: warning: implicit declaration of function 'calloc' [-Wimplicit-function-declaration]
# if ((txn = calloc(1, size)) == NULL) {
# ^
# mdb.c:2797:13: warning: incompatible implicit declaration of built-in function 'calloc' [enabled by default]
# if ((txn = calloc(1, size)) == NULL) {
# ^
# mdb.c:2316:6: warning: incompatible implicit declaration of built-in function 'memcpy' [enabled by default]
# memcpy(np, mp, num * env->me_psize);
# ^
# mdb.c:2797:33: error: 'NULL' undeclared (first use in this function)
# if ((txn = calloc(1, size)) == NULL) {
# ^
# mdb.c:2325:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
# if (x == txn->mt_spill_pgs[0])
# ^
# mdb.c:2799:10: error: 'ENOMEM' undeclared (first use in this function)
# return ENOMEM;
# ^
# mdb.c: In function 'mdb_page_touch':
# mdb.c:2811:26: warning: incompatible implicit declaration of built-in function 'malloc' [enabled by default]
# txn->mt_u.dirty_list = malloc(sizeof(MDB_ID2)*MDB_IDL_UM_SIZE);
# ^
# mdb.c:2357:9: error: 'NULL' undeclared (first use in this function)
# np = NULL;
# ^
# mdb.c:2815:4: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
# free(txn->mt_u.dirty_list);
# ^
# mdb.c:2828:3: warning: incompatible implicit declaration of built-in function 'memcpy' [enabled by default]
# memcpy(txn->mt_dbs, parent->mt_dbs, txn->mt_numdbs * sizeof(MDB_db));
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:2375:21: note: in expansion of macro 'NODEPTR'
# MDB_node *node = NODEPTR(parent, mc->mc_ki[mc->mc_top-1]);
# ^
# mdb.c:2854:4: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
# free(txn);
# ^
# mdb.c: In function 'mdb_txn_env':
# mdb.c:2869:18: error: 'NULL' undeclared (first use in this function)
# if(!txn) return NULL;
# ^
# mdb.c: At top level:
# mdb.c:885:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
# #define PGNO_TOPWORD ((pgno_t)-1 > 0xffffffffu ? 32 : 0)
# ^
# mdb.c:913:6: note: in expansion of macro 'PGNO_TOPWORD'
# if (PGNO_TOPWORD) (node)->mn_flags = (pgno) >> PGNO_TOPWORD; } while(0)
# ^
# mdb.c:2376:4: note: in expansion of macro 'SETPGNO'
# SETPGNO(node, pgno);
# ^
# mdb.c:2873:1: error: unknown type name 'size_t'
# size_t
# ^
# mdb.c: In function 'mdb_dbis_update':
# mdb.c:2896:40: error: 'NULL' undeclared (first use in this function)
# env->me_dbxs[i].md_name.mv_data = NULL;
# ^
# mdb.c:885:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
# #define PGNO_TOPWORD ((pgno_t)-1 > 0xffffffffu ? 32 : 0)
# ^
# mdb.c:913:49: note: in expansion of macro 'PGNO_TOPWORD'
# if (PGNO_TOPWORD) (node)->mn_flags = (pgno) >> PGNO_TOPWORD; } while(0)
# ^
# mdb.c:2376:4: note: in expansion of macro 'SETPGNO'
# SETPGNO(node, pgno);
# ^
# mdb.c:2900:6: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
# free(ptr);
# ^
# mdb.c: In function 'mdb_txn_end':
# mdb.c:2388:10: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
# if (x <= dl[0].mid && dl[x].mid == pgno) {
# ^
# mdb.c:2934:24: error: 'NULL' undeclared (first use in this function)
# txn->mt_u.reader = NULL; /* txn does not own reader */
# ^
# mdb.c:2401:11: error: 'ENOMEM' undeclared (first use in this function)
# return ENOMEM;
# ^
# mdb.c:2974:4: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
# free(txn->mt_u.dirty_list);
# ^
# mdb.c:2981:3: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
# free(txn);
# ^
# mdb.c: In function 'mdb_txn_reset':
# mdb.c:2987:13: error: 'NULL' undeclared (first use in this function)
# if (txn == NULL)
# ^
# mdb.c: In function 'mdb_txn_abort':
# mdb.c:3000:13: error: 'NULL' undeclared (first use in this function)
# if (txn == NULL)
# ^
# mdb.c: In function 'mdb_freelist_save':
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:2435:23: note: in expansion of macro 'NODEPTR'
# MDB_node *leaf = NODEPTR(np, m2->mc_ki[mc->mc_top]);
# ^
# mdb.c:3024:2: error: unknown type name 'ssize_t'
# ssize_t head_room = 0, total_room = 0, mop_len, clean_limit;
# ^
# mdb.c: In function 'mdb_env_sync':
# mdb.c:3026:38: error: 'NULL' undeclared (first use in this function)
# mdb_cursor_init(&mc, txn, FREE_DBI, NULL);
# ^
# mdb.c:2454:10: error: 'EACCES' undeclared (first use in this function)
# return EACCES;
# ^
# mdb.c:3050:5: error: 'SSIZE_MAX' undeclared (first use in this function)
# ? SSIZE_MAX : maxfree_1pg;
# ^
# mdb.c:2459:4: warning: implicit declaration of function 'msync' [-Wimplicit-function-declaration]
# if (MDB_MSYNC(env->me_map, env->me_mapsize, flags))
# ^
# mdb.c:3056:3: error: unknown type name 'ssize_t'
# ssize_t j;
# ^
# mdb.c:356:19: error: 'errno' undeclared (first use in this function)
# #define ErrCode() errno
# ^
# mdb.c:2460:10: note: in expansion of macro 'ErrCode'
# rc = ErrCode();
# ^
# mdb.c:3095:4: warning: incompatible implicit declaration of built-in function 'memcpy' [enabled by default]
# memcpy(data.mv_data, free_pgs, data.mv_size);
# ^
# mdb.c:2468:5: warning: implicit declaration of function 'fsync' [-Wimplicit-function-declaration]
# if (fsync(env->me_fd))
# ^
# mdb.c:2472:4: warning: implicit declaration of function 'fdatasync' [-Wimplicit-function-declaration]
# if (MDB_FDATASYNC(env->me_fd))
# ^
# mdb.c: In function 'mdb_cursor_shadow':
# mdb.c:3180:4: error: unknown type name 'ssize_t'
# ssize_t len = (ssize_t)(data.mv_size / sizeof(MDB_ID)) - 1;
# ^
# mdb.c:2485:2: error: unknown type name 'size_t'
# size_t size;
# ^
# mdb.c:3180:19: error: 'ssize_t' undeclared (first use in this function)
# ssize_t len = (ssize_t)(data.mv_size / sizeof(MDB_ID)) - 1;
# ^
# mdb.c: In function 'mdb_page_flush':
# mdb.c:2489:36: error: 'NULL' undeclared (first use in this function)
# if ((mc = src->mt_cursors[i]) != NULL) {
# ^
# mdb.c:3213:2: error: unknown type name 'size_t'
# size_t size = 0, pos = 0;
# ^
# mdb.c:2494:10: warning: incompatible implicit declaration of built-in function 'malloc' [enabled by default]
# bk = malloc(size);
# ^
# mdb.c:3215:17: error: 'NULL' undeclared (first use in this function)
# MDB_page *dp = NULL;
# ^
# mdb.c:2496:13: error: 'ENOMEM' undeclared (first use in this function)
# return ENOMEM;
# ^
# mdb.c:3219:15: error: array type has incomplete element type
# struct iovec iov[MDB_COMMIT_PAGES];
# ^
# mdb.c: In function 'mdb_cursors_close':
# mdb.c:3220:2: error: unknown type name 'ssize_t'
# ssize_t wpos = 0, wsize = 0, wres;
# ^
# mdb.c:2533:32: error: 'NULL' undeclared (first use in this function)
# if ((bk = mc->mc_backup) != NULL) {
# ^
# mdb.c:3221:2: error: unknown type name 'size_t'
# size_t next_pos = 1; /* impossible pos, so pos != next_pos */
# ^
# mdb.c:2552:4: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
# free(mc);
# ^
# mdb.c: At top level:
# mdb.c:2564:11: error: 'F_SETLK' undeclared here (not in a function)
# Pidset = F_SETLK, Pidcheck = F_GETLK
# ^
# mdb.c:1274:44: error: 'ssize_t' undeclared (first use in this function)
# #define MAX_WRITE (0x40000000U >> (sizeof(ssize_t) == 4))
# ^
# mdb.c:3280:58: note: in expansion of macro 'MAX_WRITE'
# if (pos!=next_pos || n==MDB_COMMIT_PAGES || wsize+size>MAX_WRITE) {
# ^
# mdb.c:2564:31: error: 'F_GETLK' undeclared here (not in a function)
# Pidset = F_SETLK, Pidcheck = F_GETLK
# ^
# mdb.c:3288:6: warning: implicit declaration of function 'pwrite' [-Wimplicit-function-declaration]
# wres = pwrite(env->me_fd, iov[0].iov_base, wsize, wpos);
# ^
# mdb.c:3291:6: warning: implicit declaration of function 'lseek' [-Wimplicit-function-declaration]
# if (lseek(env->me_fd, wpos, SEEK_SET) == -1) {
# ^
# mdb.c:62:19: error: unknown type name 'pid_t'
# #define MDB_PID_T pid_t
# ^
# mdb.c:2577:50: note: in expansion of macro 'MDB_PID_T'
# mdb_reader_pid(MDB_env *env, enum Pidlock_op op, MDB_PID_T pid)
# ^
# mdb.c: In function 'mdb_txn_renew0':
# mdb.c:3291:34: error: 'SEEK_SET' undeclared (first use in this function)
# if (lseek(env->me_fd, wpos, SEEK_SET) == -1) {
# ^
# mdb.c:2623:2: error: unknown type name 'uint16_t'
# uint16_t x;
# ^
# mdb.c:356:19: error: 'errno' undeclared (first use in this function)
# #define ErrCode() errno
# ^
# mdb.c:3292:12: note: in expansion of macro 'ErrCode'
# rc = ErrCode();
# ^
# mdb.c:3293:17: error: 'EINTR' undeclared (first use in this function)
# if (rc == EINTR)
# ^
# mdb.c:2630:23: error: 'NULL' undeclared (first use in this function)
# txn->mt_u.reader = NULL;
# ^
# mdb.c:3298:6: warning: implicit declaration of function 'writev' [-Wimplicit-function-declaration]
# wres = writev(env->me_fd, iov, n);
# ^
# mdb.c:2633:5: warning: implicit declaration of function 'pthread_getspecific' [-Wimplicit-function-declaration]
# pthread_getspecific(env->me_txkey);
# ^
# mdb.c:3308:12: error: 'EIO' undeclared (first use in this function)
# rc = EIO; /* TODO: Use which error code? */
# ^
# mdb.c:2632:67: warning: pointer/integer type mismatch in conditional expression [enabled by default]
# MDB_reader *r = (env->me_flags & MDB_NOTLS) ? txn->mt_u.reader :
# ^
# mdb.c:3219:15: warning: unused variable 'iov' [-Wunused-variable]
# struct iovec iov[MDB_COMMIT_PAGES];
# ^
# mdb.c: In function 'mdb_txn_commit':
# mdb.c:62:19: error: unknown type name 'pid_t'
# #define MDB_PID_T pid_t
# ^
# mdb.c:2638:5: note: in expansion of macro 'MDB_PID_T'
# MDB_PID_T pid = env->me_pid;
# ^
# mdb.c:3360:13: error: 'NULL' undeclared (first use in this function)
# if (txn == NULL)
# ^
# mdb.c:63:19: error: unknown type name 'pthread_t'
# #define MDB_THR_T pthread_t
# ^
# mdb.c:2639:5: note: in expansion of macro 'MDB_THR_T'
# MDB_THR_T tid = pthread_self();
# ^
# mdb.c:2639:5: warning: implicit declaration of function 'pthread_self' [-Wimplicit-function-declaration]
# mdb.c:3361:10: error: 'EINVAL' undeclared (first use in this function)
# return EINVAL;
# ^
# mdb.c:2643:6: warning: implicit declaration of function 'mdb_reader_pid' [-Wimplicit-function-declaration]
# rc = mdb_reader_pid(env, Pidset, pid);
# ^
# mdb.c:3409:3: warning: incompatible implicit declaration of built-in function 'memcpy' [enabled by default]
# memcpy(parent->mt_dbs, txn->mt_dbs, txn->mt_numdbs * sizeof(MDB_db));
# ^
# mdb.c:2649:5: warning: implicit declaration of function 'pthread_mutex_lock' [-Wimplicit-function-declaration]
# if (LOCK_MUTEX(rc, env, rmutex))
# ^
# mdb.c:3444:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
# for (i=1; i<=txn->mt_spill_pgs[0]; i++) {
# ^
# mdb.c:2656:6: warning: implicit declaration of function 'pthread_mutex_unlock' [-Wimplicit-function-declaration]
# UNLOCK_MUTEX(rmutex);
# ^
# mdb.c:3450:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
# if (y <= dst[0].mid && dst[y].mid == pn) {
# ^
# mdb.c:2676:5: warning: implicit declaration of function 'pthread_setspecific' [-Wimplicit-function-declaration]
# if (!new_notls && (rc=pthread_setspecific(env->me_txkey, r))) {
# ^
# mdb.c:3451:6: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
# free(dst[y].mptr);
# ^
# mdb.c:3452:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
# while (y < dst[0].mid) {
# ^
# mdb.c:2715:3: warning: incompatible implicit declaration of built-in function 'memcpy' [enabled by default]
# memcpy(txn->mt_dbiseqs, env->me_dbiseqs, env->me_maxdbs * sizeof(unsigned int));
# ^
# mdb.c:3486:5: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
# free(dst[x--].mptr);
# ^
# mdb.c:2719:2: warning: incompatible implicit declaration of built-in function 'memcpy' [enabled by default]
# memcpy(txn->mt_dbs, meta->mm_dbs, CORE_DBS * sizeof(MDB_db));
# ^
# mdb.c:3490:3: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
# free(txn->mt_u.dirty_list);
# ^
# mdb.c: In function 'mdb_txn_renew':
# mdb.c: In function 'mdb_env_read_header':
# mdb.c:2754:10: error: 'EINVAL' undeclared (first use in this function)
# return EINVAL;
# ^
# mdb.c: In function 'mdb_txn_begin':
# mdb.c:3611:3: warning: implicit declaration of function 'pread' [-Wimplicit-function-declaration]
# rc = pread(env->me_fd, &pbuf, Size, off);
# ^
# mdb.c:2776:10: error: 'EACCES' undeclared (first use in this function)
# return EACCES;
# ^
# mdb.c:3615:12: error: 'ENOENT' undeclared (first use in this function)
# return ENOENT;
# ^
# mdb.c:2782:49: error: 'EINVAL' undeclared (first use in this function)
# return (parent->mt_flags & MDB_TXN_RDONLY) ? EINVAL : MDB_BAD_TXN;
# ^
# mdb.c:356:19: error: 'errno' undeclared (first use in this function)
# #define ErrCode() errno
# ^
# mdb.c:3616:24: note: in expansion of macro 'ErrCode'
# rc = rc < 0 ? (int) ErrCode() : MDB_INVALID;
# ^
# mdb.c:2797:2: warning: implicit declaration of function 'calloc' [-Wimplicit-function-declaration]
# if ((txn = calloc(1, size)) == NULL) {
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:811:46: note: in expansion of macro 'PAGEHDRSZ'
# #define METADATA(p) ((void *)((char *)(p) + PAGEHDRSZ))
# ^
# mdb.c:3628:7: note: in expansion of macro 'METADATA'
# m = METADATA(p);
# ^
# mdb.c:2797:13: warning: incompatible implicit declaration of built-in function 'calloc' [enabled by default]
# if ((txn = calloc(1, size)) == NULL) {
# ^
# mdb.c:3629:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
# if (m->mm_magic != MDB_MAGIC) {
# ^
# mdb.c: In function 'mdb_env_init_meta':
# mdb.c:2797:33: error: 'NULL' undeclared (first use in this function)
# if ((txn = calloc(1, size)) == NULL) {
# ^
# mdb.c:3691:6: warning: incompatible implicit declaration of built-in function 'calloc' [enabled by default]
# p = calloc(NUM_METAS, psize);
# ^
# mdb.c:2799:10: error: 'ENOMEM' undeclared (first use in this function)
# return ENOMEM;
# ^
# mdb.c:3693:10: error: 'ENOMEM' undeclared (first use in this function)
# return ENOMEM;
# ^
# mdb.c:2811:26: warning: incompatible implicit declaration of built-in function 'malloc' [enabled by default]
# txn->mt_u.dirty_list = malloc(sizeof(MDB_ID2)*MDB_IDL_UM_SIZE);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:811:46: note: in expansion of macro 'PAGEHDRSZ'
# #define METADATA(p) ((void *)((char *)(p) + PAGEHDRSZ))
# ^
# mdb.c:3697:15: note: in expansion of macro 'METADATA'
# *(MDB_meta *)METADATA(p) = *meta;
# ^
# mdb.c:2815:4: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
# free(txn->mt_u.dirty_list);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:811:46: note: in expansion of macro 'PAGEHDRSZ'
# #define METADATA(p) ((void *)((char *)(p) + PAGEHDRSZ))
# ^
# mdb.c:3702:15: note: in expansion of macro 'METADATA'
# *(MDB_meta *)METADATA(q) = *meta;
# ^
# mdb.c:2828:3: warning: incompatible implicit declaration of built-in function 'memcpy' [enabled by default]
# memcpy(txn->mt_dbs, parent->mt_dbs, txn->mt_numdbs * sizeof(MDB_db));
# ^
# mdb.c:356:19: error: 'errno' undeclared (first use in this function)
# #define ErrCode() errno
# ^
# mdb.c:3683:19: note: in expansion of macro 'ErrCode'
# if (len == -1 && ErrCode() == EINTR) continue; \
# ^
# mdb.c:3704:2: note: in expansion of macro 'DO_PWRITE'
# DO_PWRITE(rc, env->me_fd, p, psize * NUM_METAS, len, 0);
# ^
# mdb.c:2854:4: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
# free(txn);
# ^
# mdb.c: In function 'mdb_txn_env':
# mdb.c:2869:18: error: 'NULL' undeclared (first use in this function)
# if(!txn) return NULL;
# ^
# mdb.c: At top level:
# mdb.c:3683:32: error: 'EINTR' undeclared (first use in this function)
# if (len == -1 && ErrCode() == EINTR) continue; \
# ^
# mdb.c:3704:2: note: in expansion of macro 'DO_PWRITE'
# DO_PWRITE(rc, env->me_fd, p, psize * NUM_METAS, len, 0);
# ^
# mdb.c:2873:1: error: unknown type name 'size_t'
# size_t
# ^
# mdb.c:3710:8: error: 'ENOSPC' undeclared (first use in this function)
# rc = ENOSPC;
# ^
# mdb.c: In function 'mdb_dbis_update':
# mdb.c:3711:2: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
# free(p);
# ^
# mdb.c: In function 'mdb_env_write_meta':
# mdb.c:2896:40: error: 'NULL' undeclared (first use in this function)
# env->me_dbxs[i].md_name.mv_data = NULL;
# ^
# mdb.c:3725:2: error: unknown type name 'size_t'
# size_t mapsize;
# ^
# mdb.c:2900:6: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
# free(ptr);
# ^
# mdb.c:3726:2: error: unknown type name 'off_t'
# off_t off;
# ^
# mdb.c: In function 'mdb_txn_end':
# mdb.c:2934:24: error: 'NULL' undeclared (first use in this function)
# txn->mt_u.reader = NULL; /* txn does not own reader */
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:3762:23: note: in expansion of macro 'PAGEHDRSZ'
# ptr = (char *)mp - PAGEHDRSZ;
# ^
# mdb.c:356:19: error: 'errno' undeclared (first use in this function)
# #define ErrCode() errno
# ^
# mdb.c:3769:10: note: in expansion of macro 'ErrCode'
# rc = ErrCode();
# ^
# mdb.c:2974:4: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
# free(txn->mt_u.dirty_list);
# ^
# mdb.c:3784:17: error: expected expression before 'MDB_meta'
# off = offsetof(MDB_meta, mm_mapsize);
# ^
# mdb.c:2981:3: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
# free(txn);
# ^
# mdb.c: In function 'mdb_txn_reset':
# mdb.c:3803:29: error: 'EIO' undeclared (first use in this function)
# rc = rc < 0 ? ErrCode() : EIO;
# ^
# mdb.c:2987:13: error: 'NULL' undeclared (first use in this function)
# if (txn == NULL)
# ^
# mdb.c:3805:13: error: 'EINTR' undeclared (first use in this function)
# if (rc == EINTR)
# ^
# mdb.c: In function 'mdb_txn_abort':
# mdb.c: In function 'mdb_env_create':
# mdb.c:3000:13: error: 'NULL' undeclared (first use in this function)
# if (txn == NULL)
# ^
# mdb.c: In function 'mdb_freelist_save':
# mdb.c:3858:6: warning: incompatible implicit declaration of built-in function 'calloc' [enabled by default]
# e = calloc(1, sizeof(MDB_env));
# ^
# mdb.c:3860:10: error: 'ENOMEM' undeclared (first use in this function)
# return ENOMEM;
# ^
# mdb.c:3024:2: error: unknown type name 'ssize_t'
# ssize_t head_room = 0, total_room = 0, mop_len, clean_limit;
# ^
# mdb.c:3871:2: warning: implicit declaration of function 'getpid' [-Wimplicit-function-declaration]
# e->me_pid = getpid();
# ^
# mdb.c:3026:38: error: 'NULL' undeclared (first use in this function)
# mdb_cursor_init(&mc, txn, FREE_DBI, NULL);
# ^
# mdb.c:3872:2: warning: implicit declaration of function 'sysconf' [-Wimplicit-function-declaration]
# GET_PAGESIZE(e->me_os_psize);
# ^
# mdb.c:3050:5: error: 'SSIZE_MAX' undeclared (first use in this function)
# ? SSIZE_MAX : maxfree_1pg;
# ^
# mdb.c:374:40: error: '_SC_PAGE_SIZE' undeclared (first use in this function)
# #define GET_PAGESIZE(x) ((x) = sysconf(_SC_PAGE_SIZE))
# ^
# mdb.c:3872:2: note: in expansion of macro 'GET_PAGESIZE'
# GET_PAGESIZE(e->me_os_psize);
# ^
# mdb.c: In function 'mdb_env_map':
# mdb.c:3056:3: error: unknown type name 'ssize_t'
# ssize_t j;
# ^
# mdb.c:3922:13: error: 'PROT_READ' undeclared (first use in this function)
# int prot = PROT_READ;
# ^
# mdb.c:3924:11: error: 'PROT_WRITE' undeclared (first use in this function)
# prot |= PROT_WRITE;
# ^
# mdb.c:3095:4: warning: incompatible implicit declaration of built-in function 'memcpy' [enabled by default]
# memcpy(data.mv_data, free_pgs, data.mv_size);
# ^
# mdb.c:3925:3: warning: implicit declaration of function 'ftruncate' [-Wimplicit-function-declaration]
# if (ftruncate(env->me_fd, env->me_mapsize) < 0)
# ^
# mdb.c:356:19: error: 'errno' undeclared (first use in this function)
# #define ErrCode() errno
# ^
# mdb.c:3926:11: note: in expansion of macro 'ErrCode'
# return ErrCode();
# ^
# mdb.c:3928:2: warning: implicit declaration of function 'mmap' [-Wimplicit-function-declaration]
# env->me_map = mmap(addr, env->me_mapsize, prot, MAP_SHARED,
# ^
# mdb.c:3180:4: error: unknown type name 'ssize_t'
# ssize_t len = (ssize_t)(data.mv_size / sizeof(MDB_ID)) - 1;
# ^
# mdb.c:3928:50: error: 'MAP_SHARED' undeclared (first use in this function)
# env->me_map = mmap(addr, env->me_mapsize, prot, MAP_SHARED,
# ^
# mdb.c:3180:19: error: 'ssize_t' undeclared (first use in this function)
# ssize_t len = (ssize_t)(data.mv_size / sizeof(MDB_ID)) - 1;
# ^
# mdb.c:3930:21: error: 'MAP_FAILED' undeclared (first use in this function)
# if (env->me_map == MAP_FAILED) {
# ^
# mdb.c: In function 'mdb_page_flush':
# mdb.c:3931:17: error: 'NULL' undeclared (first use in this function)
# env->me_map = NULL;
# ^
# mdb.c:3213:2: error: unknown type name 'size_t'
# size_t size = 0, pos = 0;
# ^
# mdb.c:3953:10: error: 'EBUSY' undeclared (first use in this function)
# return EBUSY; /* TODO: Make a new MDB_* error code? */
# ^
# mdb.c:3215:17: error: 'NULL' undeclared (first use in this function)
# MDB_page *dp = NULL;
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:811:46: note: in expansion of macro 'PAGEHDRSZ'
# #define METADATA(p) ((void *)((char *)(p) + PAGEHDRSZ))
# ^
# mdb.c:3956:21: note: in expansion of macro 'METADATA'
# env->me_metas[0] = METADATA(p);
# ^
# mdb.c: At top level:
# mdb.c:3219:15: error: array type has incomplete element type
# struct iovec iov[MDB_COMMIT_PAGES];
# ^
# mdb.c:3963:35: error: unknown type name 'size_t'
# mdb_env_set_mapsize(MDB_env *env, size_t size)
# ^
# mdb.c: In function 'mdb_env_set_maxdbs':
# mdb.c:3220:2: error: unknown type name 'ssize_t'
# ssize_t wpos = 0, wsize = 0, wres;
# ^
# mdb.c:4000:10: error: 'EINVAL' undeclared (first use in this function)
# return EINVAL;
# ^
# mdb.c: In function 'mdb_env_set_maxreaders':
# mdb.c:3221:2: error: unknown type name 'size_t'
# size_t next_pos = 1; /* impossible pos, so pos != next_pos */
# ^
# mdb.c:4009:10: error: 'EINVAL' undeclared (first use in this function)
# return EINVAL;
# ^
# mdb.c: In function 'mdb_env_get_maxreaders':
# mdb.c:4018:10: error: 'EINVAL' undeclared (first use in this function)
# return EINVAL;
# ^
# mdb.c: At top level:
# mdb.c:4024:22: error: unknown type name 'size_t'
# mdb_fsize(HANDLE fd, size_t *size)
# ^
# mdb.c:1274:44: error: 'ssize_t' undeclared (first use in this function)
# #define MAX_WRITE (0x40000000U >> (sizeof(ssize_t) == 4))
# ^
# mdb.c:3280:58: note: in expansion of macro 'MAX_WRITE'
# if (pos!=next_pos || n==MDB_COMMIT_PAGES || wsize+size>MAX_WRITE) {
# ^
# mdb.c:4045:25: error: no include path in which to search for sys/utsname.h
# #include
# ^
# mdb.c:3288:6: warning: implicit declaration of function 'pwrite' [-Wimplicit-function-declaration]
# wres = pwrite(env->me_fd, iov[0].iov_base, wsize, wpos);
# ^
# mdb.c:4046:21: error: no include path in which to search for sys/vfs.h
# #include
# ^
# mdb.c: In function 'mdb_env_open2':
# mdb.c:3291:6: warning: implicit declaration of function 'lseek' [-Wimplicit-function-declaration]
# if (lseek(env->me_fd, wpos, SEEK_SET) == -1) {
# ^
# mdb.c:4077:17: error: storage size of 'st' isn't known
# struct statfs st;
# ^
# mdb.c:3291:34: error: 'SEEK_SET' undeclared (first use in this function)
# if (lseek(env->me_fd, wpos, SEEK_SET) == -1) {
# ^
# mdb.c:4078:3: warning: implicit declaration of function 'fstatfs' [-Wimplicit-function-declaration]
# fstatfs(env->me_fd, &st);
# ^
# mdb.c:4080:19: error: storage size of 'uts' isn't known
# struct utsname uts;
# ^
# mdb.c:356:19: error: 'errno' undeclared (first use in this function)
# #define ErrCode() errno
# ^
# mdb.c:3292:12: note: in expansion of macro 'ErrCode'
# rc = ErrCode();
# ^
# mdb.c:4082:4: warning: implicit declaration of function 'uname' [-Wimplicit-function-declaration]
# uname(&uts);
# ^
# mdb.c:3293:17: error: 'EINTR' undeclared (first use in this function)
# if (rc == EINTR)
# ^
# mdb.c:4084:5: warning: implicit declaration of function 'strncmp' [-Wimplicit-function-declaration]
# if (!strncmp(uts.release, "2.6.32.", 7)) {
# ^
# mdb.c:3298:6: warning: implicit declaration of function 'writev' [-Wimplicit-function-declaration]
# wres = writev(env->me_fd, iov, n);
# ^
# mdb.c:4085:6: warning: implicit declaration of function 'atoi' [-Wimplicit-function-declaration]
# i = atoi(uts.release+7);
# ^
# mdb.c:3308:12: error: 'EIO' undeclared (first use in this function)
# rc = EIO; /* TODO: Use which error code? */
# ^
# mdb.c:4080:19: warning: unused variable 'uts' [-Wunused-variable]
# struct utsname uts;
# ^
# mdb.c:4077:17: warning: unused variable 'st' [-Wunused-variable]
# struct statfs st;
# ^
# mdb.c:3219:15: warning: unused variable 'iov' [-Wunused-variable]
# struct iovec iov[MDB_COMMIT_PAGES];
# ^
# mdb.c: In function 'mdb_txn_commit':
# mdb.c:4116:12: error: 'ENOENT' undeclared (first use in this function)
# if (i != ENOENT)
# ^
# mdb.c:3360:13: error: 'NULL' undeclared (first use in this function)
# if (txn == NULL)
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:499:24: note: in expansion of macro 'PAGEBASE'
# #define MAX_PAGESIZE (PAGEBASE ? 0x10000 : 0x8000)
# ^
# mdb.c:4121:23: note: in expansion of macro 'MAX_PAGESIZE'
# if (env->me_psize > MAX_PAGESIZE)
# ^
# mdb.c:3361:10: error: 'EINVAL' undeclared (first use in this function)
# return EINVAL;
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:499:24: note: in expansion of macro 'PAGEBASE'
# #define MAX_PAGESIZE (PAGEBASE ? 0x10000 : 0x8000)
# ^
# mdb.c:4122:20: note: in expansion of macro 'MAX_PAGESIZE'
# env->me_psize = MAX_PAGESIZE;
# ^
# mdb.c:3409:3: warning: incompatible implicit declaration of built-in function 'memcpy' [enabled by default]
# memcpy(parent->mt_dbs, txn->mt_dbs, txn->mt_numdbs * sizeof(MDB_db));
# ^
# mdb.c:4123:3: warning: incompatible implicit declaration of built-in function 'memset' [enabled by default]
# memset(&meta, 0, sizeof(meta));
# ^
# mdb.c:4138:3: error: unknown type name 'size_t'
# size_t minsize = (meta.mm_last_pg + 1) * meta.mm_psize;
# ^
# mdb.c:3444:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
# for (i=1; i<=txn->mt_spill_pgs[0]; i++) {
# ^
# mdb.c:4158:67: error: 'NULL' undeclared (first use in this function)
# rc = mdb_env_map(env, (flags & MDB_FIXEDMAP) ? meta.mm_address : NULL);
# ^
# mdb.c:3450:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
# if (y <= dst[0].mid && dst[y].mid == pn) {
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:4171:41: note: in expansion of macro 'PAGEHDRSZ'
# env->me_maxfree_1pg = (env->me_psize - PAGEHDRSZ) / sizeof(pgno_t) - 1;
# ^
# mdb.c:3451:6: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
# free(dst[y].mptr);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:4172:39: note: in expansion of macro 'PAGEHDRSZ'
# env->me_nodemax = (((env->me_psize - PAGEHDRSZ) / MDB_MINKEYS) & -2)
# ^
# mdb.c:3452:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
# while (y < dst[0].mid) {
# ^
# mdb.c: In function 'mdb_env_share_locks':
# mdb.c:4294:16: error: storage size of 'lock_info' isn't known
# struct flock lock_info;
# ^
# mdb.c:3486:5: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
# free(dst[x--].mptr);
# ^
# mdb.c:4296:3: warning: incompatible implicit declaration of built-in function 'memset' [enabled by default]
# memset((void *)&lock_info, 0, sizeof(lock_info));
# ^
# mdb.c:4297:22: error: 'F_RDLCK' undeclared (first use in this function)
# lock_info.l_type = F_RDLCK;
# ^
# mdb.c:3490:3: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
# free(txn->mt_u.dirty_list);
# ^
# mdb.c:4298:24: error: 'SEEK_SET' undeclared (first use in this function)
# lock_info.l_whence = SEEK_SET;
# ^
# mdb.c:4301:3: warning: implicit declaration of function 'fcntl' [-Wimplicit-function-declaration]
# while ((rc = fcntl(env->me_lfd, F_SETLK, &lock_info)) &&
# ^
# mdb.c: In function 'mdb_env_read_header':
# mdb.c:356:19: error: 'errno' undeclared (first use in this function)
# #define ErrCode() errno
# ^
# mdb.c:4302:11: note: in expansion of macro 'ErrCode'
# (rc = ErrCode()) == EINTR) ;
# ^
# mdb.c:3611:3: warning: implicit declaration of function 'pread' [-Wimplicit-function-declaration]
# rc = pread(env->me_fd, &pbuf, Size, off);
# ^
# mdb.c:4302:25: error: 'EINTR' undeclared (first use in this function)
# (rc = ErrCode()) == EINTR) ;
# ^
# mdb.c:3615:12: error: 'ENOENT' undeclared (first use in this function)
# return ENOENT;
# ^
# mdb.c:4294:16: warning: unused variable 'lock_info' [-Wunused-variable]
# struct flock lock_info;
# ^
# mdb.c: In function 'mdb_env_excl_lock':
# mdb.c:356:19: error: 'errno' undeclared (first use in this function)
# #define ErrCode() errno
# ^
# mdb.c:3616:24: note: in expansion of macro 'ErrCode'
# rc = rc < 0 ? (int) ErrCode() : MDB_INVALID;
# ^
# mdb.c:4330:15: error: storage size of 'lock_info' isn't known
# struct flock lock_info;
# ^
# mdb.c:4331:2: warning: incompatible implicit declaration of built-in function 'memset' [enabled by default]
# memset((void *)&lock_info, 0, sizeof(lock_info));
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:811:46: note: in expansion of macro 'PAGEHDRSZ'
# #define METADATA(p) ((void *)((char *)(p) + PAGEHDRSZ))
# ^
# mdb.c:3628:7: note: in expansion of macro 'METADATA'
# m = METADATA(p);
# ^
# mdb.c:4332:21: error: 'F_WRLCK' undeclared (first use in this function)
# lock_info.l_type = F_WRLCK;
# ^
# mdb.c:4333:23: error: 'SEEK_SET' undeclared (first use in this function)
# lock_info.l_whence = SEEK_SET;
# ^
# mdb.c:3629:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
# if (m->mm_magic != MDB_MAGIC) {
# ^
# mdb.c:356:19: error: 'errno' undeclared (first use in this function)
# #define ErrCode() errno
# ^
# mdb.c:4337:10: note: in expansion of macro 'ErrCode'
# (rc = ErrCode()) == EINTR) ;
# ^
# mdb.c: In function 'mdb_env_init_meta':
# mdb.c:4337:24: error: 'EINTR' undeclared (first use in this function)
# (rc = ErrCode()) == EINTR) ;
# ^
# mdb.c:3691:6: warning: incompatible implicit declaration of built-in function 'calloc' [enabled by default]
# p = calloc(NUM_METAS, psize);
# ^
# mdb.c:4345:22: error: 'F_RDLCK' undeclared (first use in this function)
# lock_info.l_type = F_RDLCK;
# ^
# mdb.c:3693:10: error: 'ENOMEM' undeclared (first use in this function)
# return ENOMEM;
# ^
# mdb.c:4346:35: error: 'F_SETLKW' undeclared (first use in this function)
# while ((rc = fcntl(env->me_lfd, F_SETLKW, &lock_info)) &&
# ^
# mdb.c:4330:15: warning: unused variable 'lock_info' [-Wunused-variable]
# struct flock lock_info;
# ^
# mdb.c: In function 'mdb_env_setup_locks':
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:811:46: note: in expansion of macro 'PAGEHDRSZ'
# #define METADATA(p) ((void *)((char *)(p) + PAGEHDRSZ))
# ^
# mdb.c:3697:15: note: in expansion of macro 'METADATA'
# *(MDB_meta *)METADATA(p) = *meta;
# ^
# mdb.c:4469:2: error: unknown type name 'off_t'
# off_t size, rsize;
# ^
# mdb.c:4481:2: warning: implicit declaration of function 'open' [-Wimplicit-function-declaration]
# env->me_lfd = open(lpath, O_RDWR|O_CREAT|MDB_CLOEXEC, mode);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:811:46: note: in expansion of macro 'PAGEHDRSZ'
# #define METADATA(p) ((void *)((char *)(p) + PAGEHDRSZ))
# ^
# mdb.c:3702:15: note: in expansion of macro 'METADATA'
# *(MDB_meta *)METADATA(q) = *meta;
# ^
# mdb.c:4481:28: error: 'O_RDWR' undeclared (first use in this function)
# env->me_lfd = open(lpath, O_RDWR|O_CREAT|MDB_CLOEXEC, mode);
# ^
# mdb.c:356:19: error: 'errno' undeclared (first use in this function)
# #define ErrCode() errno
# ^
# mdb.c:3683:19: note: in expansion of macro 'ErrCode'
# if (len == -1 && ErrCode() == EINTR) continue; \
# ^
# mdb.c:3704:2: note: in expansion of macro 'DO_PWRITE'
# DO_PWRITE(rc, env->me_fd, p, psize * NUM_METAS, len, 0);
# ^
# mdb.c:4481:35: error: 'O_CREAT' undeclared (first use in this function)
# env->me_lfd = open(lpath, O_RDWR|O_CREAT|MDB_CLOEXEC, mode);
# ^
# mdb.c:356:19: error: 'errno' undeclared (first use in this function)
# #define ErrCode() errno
# ^
# mdb.c:4484:8: note: in expansion of macro 'ErrCode'
# rc = ErrCode();
# ^
# mdb.c:3683:32: error: 'EINTR' undeclared (first use in this function)
# if (len == -1 && ErrCode() == EINTR) continue; \
# ^
# mdb.c:3704:2: note: in expansion of macro 'DO_PWRITE'
# DO_PWRITE(rc, env->me_fd, p, psize * NUM_METAS, len, 0);
# ^
# mdb.c:3710:8: error: 'ENOSPC' undeclared (first use in this function)
# rc = ENOSPC;
# ^
# mdb.c:3711:2: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
# free(p);
# ^
# mdb.c:4460:27: error: 'EROFS' undeclared (first use in this function)
# # define MDB_ERRCODE_ROFS EROFS
# ^
# mdb.c:4485:13: note: in expansion of macro 'MDB_ERRCODE_ROFS'
# if (rc == MDB_ERRCODE_ROFS && (env->me_flags & MDB_RDONLY)) {
# ^
# mdb.c: In function 'mdb_env_write_meta':
# mdb.c:3725:2: error: unknown type name 'size_t'
# size_t mapsize;
# ^
# mdb.c:4492:36: error: 'F_GETFD' undeclared (first use in this function)
# if ((fdflags = fcntl(env->me_lfd, F_GETFD) | FD_CLOEXEC) >= 0)
# ^
# mdb.c:3726:2: error: unknown type name 'off_t'
# off_t off;
# ^
# mdb.c:4492:47: error: 'FD_CLOEXEC' undeclared (first use in this function)
# if ((fdflags = fcntl(env->me_lfd, F_GETFD) | FD_CLOEXEC) >= 0)
# ^
# mdb.c:4493:23: error: 'F_SETFD' undeclared (first use in this function)
# fcntl(env->me_lfd, F_SETFD, fdflags);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:3762:23: note: in expansion of macro 'PAGEHDRSZ'
# ptr = (char *)mp - PAGEHDRSZ;
# ^
# mdb.c:356:19: error: 'errno' undeclared (first use in this function)
# #define ErrCode() errno
# ^
# mdb.c:3769:10: note: in expansion of macro 'ErrCode'
# rc = ErrCode();
# ^
# mdb.c:4497:3: warning: implicit declaration of function 'pthread_key_create' [-Wimplicit-function-declaration]
# rc = pthread_key_create(&env->me_txkey, mdb_env_reader_dest);
# ^
# mdb.c:3784:17: error: expected expression before 'MDB_meta'
# off = offsetof(MDB_meta, mm_mapsize);
# ^
# mdb.c:4519:31: error: 'SEEK_END' undeclared (first use in this function)
# size = lseek(env->me_lfd, 0, SEEK_END);
# ^
# mdb.c:3803:29: error: 'EIO' undeclared (first use in this function)
# rc = rc < 0 ? ErrCode() : EIO;
# ^
# mdb.c:4546:18: error: 'NULL' undeclared (first use in this function)
# void *m = mmap(NULL, rsize, PROT_READ|PROT_WRITE, MAP_SHARED,
# ^
# mdb.c:3805:13: error: 'EINTR' undeclared (first use in this function)
# if (rc == EINTR)
# ^
# mdb.c: In function 'mdb_env_create':
# mdb.c:4546:31: error: 'PROT_READ' undeclared (first use in this function)
# void *m = mmap(NULL, rsize, PROT_READ|PROT_WRITE, MAP_SHARED,
# ^
# mdb.c:3858:6: warning: incompatible implicit declaration of built-in function 'calloc' [enabled by default]
# e = calloc(1, sizeof(MDB_env));
# ^
# mdb.c:4546:41: error: 'PROT_WRITE' undeclared (first use in this function)
# void *m = mmap(NULL, rsize, PROT_READ|PROT_WRITE, MAP_SHARED,
# ^
# mdb.c:3860:10: error: 'ENOMEM' undeclared (first use in this function)
# return ENOMEM;
# ^
# mdb.c:4546:53: error: 'MAP_SHARED' undeclared (first use in this function)
# void *m = mmap(NULL, rsize, PROT_READ|PROT_WRITE, MAP_SHARED,
# ^
# mdb.c:3871:2: warning: implicit declaration of function 'getpid' [-Wimplicit-function-declaration]
# e->me_pid = getpid();
# ^
# mdb.c:4548:12: error: 'MAP_FAILED' undeclared (first use in this function)
# if (m == MAP_FAILED) goto fail_errno;
# ^
# mdb.c:3872:2: warning: implicit declaration of function 'sysconf' [-Wimplicit-function-declaration]
# GET_PAGESIZE(e->me_os_psize);
# ^
# mdb.c:374:40: error: '_SC_PAGE_SIZE' undeclared (first use in this function)
# #define GET_PAGESIZE(x) ((x) = sysconf(_SC_PAGE_SIZE))
# ^
# mdb.c:3872:2: note: in expansion of macro 'GET_PAGESIZE'
# GET_PAGESIZE(e->me_os_psize);
# ^
# mdb.c:4620:3: error: unknown type name 'pthread_mutexattr_t'
# pthread_mutexattr_t mattr;
# ^
# mdb.c: In function 'mdb_env_map':
# mdb.c:4622:3: warning: implicit declaration of function 'pthread_mutexattr_init' [-Wimplicit-function-declaration]
# if ((rc = pthread_mutexattr_init(&mattr))
# ^
# mdb.c:3922:13: error: 'PROT_READ' undeclared (first use in this function)
# int prot = PROT_READ;
# ^
# mdb.c:4623:4: warning: implicit declaration of function 'pthread_mutexattr_setpshared' [-Wimplicit-function-declaration]
# || (rc = pthread_mutexattr_setpshared(&mattr, PTHREAD_PROCESS_SHARED))
# ^
# mdb.c:3924:11: error: 'PROT_WRITE' undeclared (first use in this function)
# prot |= PROT_WRITE;
# ^
# mdb.c:4623:50: error: 'PTHREAD_PROCESS_SHARED' undeclared (first use in this function)
# || (rc = pthread_mutexattr_setpshared(&mattr, PTHREAD_PROCESS_SHARED))
# ^
# mdb.c:4627:4: warning: implicit declaration of function 'pthread_mutex_init' [-Wimplicit-function-declaration]
# || (rc = pthread_mutex_init(env->me_txns->mti_rmutex, &mattr))
# ^
# mdb.c:3925:3: warning: implicit declaration of function 'ftruncate' [-Wimplicit-function-declaration]
# if (ftruncate(env->me_fd, env->me_mapsize) < 0)
# ^
# mdb.c:4630:3: warning: implicit declaration of function 'pthread_mutexattr_destroy' [-Wimplicit-function-declaration]
# pthread_mutexattr_destroy(&mattr);
# ^
# mdb.c:356:19: error: 'errno' undeclared (first use in this function)
# #define ErrCode() errno
# ^
# mdb.c:3926:11: note: in expansion of macro 'ErrCode'
# return ErrCode();
# ^
# mdb.c:760:4: error: 'uint32_t' undeclared (first use in this function)
# ((uint32_t) \
# ^
# mdb.c:4634:30: note: in expansion of macro 'MDB_LOCK_FORMAT'
# env->me_txns->mti_format = MDB_LOCK_FORMAT;
# ^
# mdb.c:3928:2: warning: implicit declaration of function 'mmap' [-Wimplicit-function-declaration]
# env->me_map = mmap(addr, env->me_mapsize, prot, MAP_SHARED,
# ^
# mdb.c:4639:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
# if (env->me_txns->mti_magic != MDB_MAGIC) {
# ^
# mdb.c:3928:50: error: 'MAP_SHARED' undeclared (first use in this function)
# env->me_map = mmap(addr, env->me_mapsize, prot, MAP_SHARED,
# ^
# mdb.c:4651:19: error: 'EACCES' undeclared (first use in this function)
# if (rc && rc != EACCES && rc != EAGAIN) {
# ^
# mdb.c:3930:21: error: 'MAP_FAILED' undeclared (first use in this function)
# if (env->me_map == MAP_FAILED) {
# ^
# mdb.c:4651:35: error: 'EAGAIN' undeclared (first use in this function)
# if (rc && rc != EACCES && rc != EAGAIN) {
# ^
# mdb.c: In function 'mdb_env_open':
# mdb.c:3931:17: error: 'NULL' undeclared (first use in this function)
# env->me_map = NULL;
# ^
# mdb.c:4702:10: error: 'EINVAL' undeclared (first use in this function)
# return EINVAL;
# ^
# mdb.c:3953:10: error: 'EBUSY' undeclared (first use in this function)
# return EBUSY; /* TODO: Make a new MDB_* error code? */
# ^
# mdb.c:4704:2: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
# len = strlen(path);
# ^
# mdb.c:4704:8: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
# len = strlen(path);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:811:46: note: in expansion of macro 'PAGEHDRSZ'
# #define METADATA(p) ((void *)((char *)(p) + PAGEHDRSZ))
# ^
# mdb.c:3956:21: note: in expansion of macro 'METADATA'
# env->me_metas[0] = METADATA(p);
# ^
# mdb.c: At top level:
# mdb.c:4710:10: warning: incompatible implicit declaration of built-in function 'malloc' [enabled by default]
# lpath = malloc(rc);
# ^
# mdb.c:3963:35: error: unknown type name 'size_t'
# mdb_env_set_mapsize(MDB_env *env, size_t size)
# ^
# mdb.c:4712:10: error: 'ENOMEM' undeclared (first use in this function)
# return ENOMEM;
# ^
# mdb.c: In function 'mdb_env_set_maxdbs':
# mdb.c:4715:3: warning: incompatible implicit declaration of built-in function 'sprintf' [enabled by default]
# sprintf(lpath, "%s" LOCKSUFF, path);
# ^
# mdb.c:4000:10: error: 'EINVAL' undeclared (first use in this function)
# return EINVAL;
# ^
# mdb.c: In function 'mdb_env_set_maxreaders':
# mdb.c:4716:3: warning: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration]
# strcpy(dpath, path);
# ^
# mdb.c:4716:3: warning: incompatible implicit declaration of built-in function 'strcpy' [enabled by default]
# mdb.c:4009:10: error: 'EINVAL' undeclared (first use in this function)
# return EINVAL;
# ^
# mdb.c: In function 'mdb_env_get_maxreaders':
# mdb.c:4719:3: warning: incompatible implicit declaration of built-in function 'sprintf' [enabled by default]
# sprintf(lpath, "%s" LOCKNAME, path);
# ^
# mdb.c:4018:10: error: 'EINVAL' undeclared (first use in this function)
# return EINVAL;
# ^
# mdb.c: At top level:
# mdb.c:4730:28: warning: incompatible implicit declaration of built-in function 'calloc' [enabled by default]
# (env->me_dirty_list = calloc(MDB_IDL_UM_SIZE, sizeof(MDB_ID2)))))
# ^
# mdb.c:4024:22: error: unknown type name 'size_t'
# mdb_fsize(HANDLE fd, size_t *size)
# ^
# mdb.c:4737:2: warning: implicit declaration of function 'strdup' [-Wimplicit-function-declaration]
# env->me_path = strdup(path);
# ^
# mdb.c:4045:25: error: no include path in which to search for sys/utsname.h
# #include
# ^
# mdb.c:4737:17: warning: incompatible implicit declaration of built-in function 'strdup' [enabled by default]
# env->me_path = strdup(path);
# ^
# mdb.c:4738:17: warning: incompatible implicit declaration of built-in function 'calloc' [enabled by default]
# env->me_dbxs = calloc(env->me_maxdbs, sizeof(MDB_dbx));
# ^
# mdb.c:4046:21: error: no include path in which to search for sys/vfs.h
# #include
# ^
# mdb.c: In function 'mdb_env_open2':
# mdb.c:4739:50: error: 'uint16_t' undeclared (first use in this function)
# env->me_dbflags = calloc(env->me_maxdbs, sizeof(uint16_t));
# ^
# mdb.c:4077:17: error: storage size of 'st' isn't known
# struct statfs st;
# ^
# mdb.c:4771:12: error: 'O_RDONLY' undeclared (first use in this function)
# oflags = O_RDONLY;
# ^
# mdb.c:4078:3: warning: implicit declaration of function 'fstatfs' [-Wimplicit-function-declaration]
# fstatfs(env->me_fd, &st);
# ^
# mdb.c:4773:12: error: 'O_RDWR' undeclared (first use in this function)
# oflags = O_RDWR | O_CREAT;
# ^
# mdb.c:4080:19: error: storage size of 'uts' isn't known
# struct utsname uts;
# ^
# mdb.c:4773:21: error: 'O_CREAT' undeclared (first use in this function)
# oflags = O_RDWR | O_CREAT;
# ^
# mdb.c:4082:4: warning: implicit declaration of function 'uname' [-Wimplicit-function-declaration]
# uname(&uts);
# ^
# mdb.c:356:19: error: 'errno' undeclared (first use in this function)
# #define ErrCode() errno
# ^
# mdb.c:4778:8: note: in expansion of macro 'ErrCode'
# rc = ErrCode();
# ^
# mdb.c:4084:5: warning: implicit declaration of function 'strncmp' [-Wimplicit-function-declaration]
# if (!strncmp(uts.release, "2.6.32.", 7)) {
# ^
# mdb.c:411:20: error: 'O_SYNC' undeclared (first use in this function)
# # define MDB_DSYNC O_SYNC
# ^
# mdb.c:4806:39: note: in expansion of macro 'MDB_DSYNC'
# env->me_mfd = open(dpath, oflags | MDB_DSYNC, mode);
# ^
# mdb.c:4085:6: warning: implicit declaration of function 'atoi' [-Wimplicit-function-declaration]
# i = atoi(uts.release+7);
# ^
# mdb.c:4844:2: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
# free(lpath);
# ^
# mdb.c: In function 'mdb_env_close1':
# mdb.c:4080:19: warning: unused variable 'uts' [-Wunused-variable]
# struct utsname uts;
# ^
# mdb.c:4860:4: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
# free(env->me_dbxs[i].md_name.mv_data);
# ^
# mdb.c:4077:17: warning: unused variable 'st' [-Wunused-variable]
# struct statfs st;
# ^
# mdb.c:4864:2: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
# free(env->me_pbuf);
# ^
# mdb.c:4116:12: error: 'ENOENT' undeclared (first use in this function)
# if (i != ENOENT)
# ^
# mdb.c:4873:3: warning: implicit declaration of function 'pthread_key_delete' [-Wimplicit-function-declaration]
# pthread_key_delete(env->me_txkey);
# ^
# mdb.c:4886:3: warning: implicit declaration of function 'munmap' [-Wimplicit-function-declaration]
# munmap(env->me_map, env->me_mapsize);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:499:24: note: in expansion of macro 'PAGEBASE'
# #define MAX_PAGESIZE (PAGEBASE ? 0x10000 : 0x8000)
# ^
# mdb.c:4121:23: note: in expansion of macro 'MAX_PAGESIZE'
# if (env->me_psize > MAX_PAGESIZE)
# ^
# mdb.c:4889:3: warning: implicit declaration of function 'close' [-Wimplicit-function-declaration]
# (void) close(env->me_mfd);
# ^
# mdb.c:62:19: error: unknown type name 'pid_t'
# #define MDB_PID_T pid_t
# ^
# mdb.c:4893:3: note: in expansion of macro 'MDB_PID_T'
# MDB_PID_T pid = env->me_pid;
# ^
# mdb.c: In function 'mdb_env_close':
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:499:24: note: in expansion of macro 'PAGEBASE'
# #define MAX_PAGESIZE (PAGEBASE ? 0x10000 : 0x8000)
# ^
# mdb.c:4122:20: note: in expansion of macro 'MAX_PAGESIZE'
# env->me_psize = MAX_PAGESIZE;
# ^
# mdb.c:4950:13: error: 'NULL' undeclared (first use in this function)
# if (env == NULL)
# ^
# mdb.c:4123:3: warning: incompatible implicit declaration of built-in function 'memset' [enabled by default]
# memset(&meta, 0, sizeof(meta));
# ^
# mdb.c:4957:3: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
# free(dp);
# ^
# mdb.c:4961:2: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
# free(env);
# ^
# mdb.c: In function 'mdb_cmp_long':
# mdb.c:4138:3: error: unknown type name 'size_t'
# size_t minsize = (meta.mm_last_pg + 1) * meta.mm_psize;
# ^
# mdb.c:4968:12: error: 'size_t' undeclared (first use in this function)
# return (*(size_t *)a->mv_data < *(size_t *)b->mv_data) ? -1 :
# ^
# mdb.c:4968:20: error: expected expression before ')' token
# return (*(size_t *)a->mv_data < *(size_t *)b->mv_data) ? -1 :
# ^
# mdb.c:4158:67: error: 'NULL' undeclared (first use in this function)
# rc = mdb_env_map(env, (flags & MDB_FIXEDMAP) ? meta.mm_address : NULL);
# ^
# mdb.c:4969:13: error: expected expression before ')' token
# *(size_t *)a->mv_data > *(size_t *)b->mv_data;
# ^
# mdb.c: In function 'mdb_cmp_memn':
# mdb.c:5019:2: error: unknown type name 'ssize_t'
# ssize_t len_diff;
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:4171:41: note: in expansion of macro 'PAGEHDRSZ'
# env->me_maxfree_1pg = (env->me_psize - PAGEHDRSZ) / sizeof(pgno_t) - 1;
# ^
# mdb.c:5023:14: error: 'ssize_t' undeclared (first use in this function)
# len_diff = (ssize_t) a->mv_size - (ssize_t) b->mv_size;
# ^
# mdb.c:5023:23: error: expected ';' before 'a'
# len_diff = (ssize_t) a->mv_size - (ssize_t) b->mv_size;
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:4172:39: note: in expansion of macro 'PAGEHDRSZ'
# env->me_nodemax = (((env->me_psize - PAGEHDRSZ) / MDB_MINKEYS) & -2)
# ^
# mdb.c:5029:2: warning: implicit declaration of function 'memcmp' [-Wimplicit-function-declaration]
# diff = memcmp(a->mv_data, b->mv_data, len);
# ^
# mdb.c: In function 'mdb_cmp_memnr':
# mdb.c: In function 'mdb_env_share_locks':
# mdb.c:5038:2: error: unknown type name 'ssize_t'
# ssize_t len_diff;
# ^
# mdb.c:5045:14: error: 'ssize_t' undeclared (first use in this function)
# len_diff = (ssize_t) a->mv_size - (ssize_t) b->mv_size;
# ^
# mdb.c:4294:16: error: storage size of 'lock_info' isn't known
# struct flock lock_info;
# ^
# mdb.c:5045:23: error: expected ';' before 'a'
# len_diff = (ssize_t) a->mv_size - (ssize_t) b->mv_size;
# ^
# mdb.c: In function 'mdb_node_search':
# mdb.c:4296:3: warning: incompatible implicit declaration of built-in function 'memset' [enabled by default]
# memset((void *)&lock_info, 0, sizeof(lock_info));
# ^
# mdb.c:5073:19: error: 'NULL' undeclared (first use in this function)
# MDB_node *node = NULL;
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:817:40: note: in expansion of macro 'PAGEHDRSZ'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:5078:10: note: in expansion of macro 'NUMKEYS'
# nkeys = NUMKEYS(mp);
# ^
# mdb.c:4297:22: error: 'F_RDLCK' undeclared (first use in this function)
# lock_info.l_type = F_RDLCK;
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:817:50: note: in expansion of macro 'PAGEBASE'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:5078:10: note: in expansion of macro 'NUMKEYS'
# nkeys = NUMKEYS(mp);
# ^
# mdb.c:4298:24: error: 'SEEK_SET' undeclared (first use in this function)
# lock_info.l_whence = SEEK_SET;
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:5092:7: note: in expansion of macro 'NODEPTR'
# if (NODEPTR(mp, 1)->mn_ksize == sizeof(size_t))
# ^
# mdb.c:4301:3: warning: implicit declaration of function 'fcntl' [-Wimplicit-function-declaration]
# while ((rc = fcntl(env->me_lfd, F_SETLK, &lock_info)) &&
# ^
# mdb.c:5092:42: error: 'size_t' undeclared (first use in this function)
# if (NODEPTR(mp, 1)->mn_ksize == sizeof(size_t))
# ^
# mdb.c:356:19: error: 'errno' undeclared (first use in this function)
# #define ErrCode() errno
# ^
# mdb.c:4302:11: note: in expansion of macro 'ErrCode'
# (rc = ErrCode()) == EINTR) ;
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:5100:10: note: in expansion of macro 'NODEPTR'
# node = NODEPTR(mp, 0); /* fake */
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:951:43: note: in expansion of macro 'PAGEHDRSZ'
# #define LEAF2KEY(p, i, ks) ((char *)(p) + PAGEHDRSZ + ((i)*(ks)))
# ^
# mdb.c:5103:22: note: in expansion of macro 'LEAF2KEY'
# nodekey.mv_data = LEAF2KEY(mp, i, nodekey.mv_size);
# ^
# mdb.c:4302:25: error: 'EINTR' undeclared (first use in this function)
# (rc = ErrCode()) == EINTR) ;
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:5118:11: note: in expansion of macro 'NODEPTR'
# node = NODEPTR(mp, i);
# ^
# mdb.c:4294:16: warning: unused variable 'lock_info' [-Wunused-variable]
# struct flock lock_info;
# ^
# mdb.c: In function 'mdb_env_excl_lock':
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:5143:11: note: in expansion of macro 'NODEPTR'
# node = NODEPTR(mp, i);
# ^
# mdb.c: In function 'mdb_page_get':
# mdb.c:4330:15: error: storage size of 'lock_info' isn't known
# struct flock lock_info;
# ^
# mdb.c:5218:16: error: 'NULL' undeclared (first use in this function)
# MDB_page *p = NULL;
# ^
# mdb.c:4331:2: warning: incompatible implicit declaration of built-in function 'memset' [enabled by default]
# memset((void *)&lock_info, 0, sizeof(lock_info));
# ^
# mdb.c:5235:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
# if (x <= tx2->mt_spill_pgs[0] && tx2->mt_spill_pgs[x] == pn) {
# ^
# mdb.c:5242:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
# if (x <= dl[0].mid && dl[x].mid == pgno) {
# ^
# mdb.c:4332:21: error: 'F_WRLCK' undeclared (first use in this function)
# lock_info.l_type = F_WRLCK;
# ^
# mdb.c: In function 'mdb_page_search_root':
# mdb.c:4333:23: error: 'SEEK_SET' undeclared (first use in this function)
# lock_info.l_whence = SEEK_SET;
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:1468:45: note: in definition of macro 'mdb_assert0'
# # define mdb_assert0(env, expr, expr_txt) ((expr) ? (void)0 : \
# ^
# mdb.c:5286:3: note: in expansion of macro 'mdb_cassert'
# mdb_cassert(mc, !mc->mc_dbi || NUMKEYS(mp) > 1);
# ^
# mdb.c:817:40: note: in expansion of macro 'PAGEHDRSZ'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:5286:34: note: in expansion of macro 'NUMKEYS'
# mdb_cassert(mc, !mc->mc_dbi || NUMKEYS(mp) > 1);
# ^
# mdb.c:356:19: error: 'errno' undeclared (first use in this function)
# #define ErrCode() errno
# ^
# mdb.c:4337:10: note: in expansion of macro 'ErrCode'
# (rc = ErrCode()) == EINTR) ;
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:1468:45: note: in definition of macro 'mdb_assert0'
# # define mdb_assert0(env, expr, expr_txt) ((expr) ? (void)0 : \
# ^
# mdb.c:5286:3: note: in expansion of macro 'mdb_cassert'
# mdb_cassert(mc, !mc->mc_dbi || NUMKEYS(mp) > 1);
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:817:50: note: in expansion of macro 'PAGEBASE'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:5286:34: note: in expansion of macro 'NUMKEYS'
# mdb_cassert(mc, !mc->mc_dbi || NUMKEYS(mp) > 1);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:817:40: note: in expansion of macro 'PAGEHDRSZ'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:5292:9: note: in expansion of macro 'NUMKEYS'
# i = NUMKEYS(mp) - 1;
# ^
# mdb.c:4337:24: error: 'EINTR' undeclared (first use in this function)
# (rc = ErrCode()) == EINTR) ;
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:817:50: note: in expansion of macro 'PAGEBASE'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:5292:9: note: in expansion of macro 'NUMKEYS'
# i = NUMKEYS(mp) - 1;
# ^
# mdb.c:5296:16: error: 'NULL' undeclared (first use in this function)
# if (node == NULL)
# ^
# mdb.c:4345:22: error: 'F_RDLCK' undeclared (first use in this function)
# lock_info.l_type = F_RDLCK;
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:817:40: note: in expansion of macro 'PAGEHDRSZ'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:5297:9: note: in expansion of macro 'NUMKEYS'
# i = NUMKEYS(mp) - 1;
# ^
# mdb.c:4346:35: error: 'F_SETLKW' undeclared (first use in this function)
# while ((rc = fcntl(env->me_lfd, F_SETLKW, &lock_info)) &&
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:817:50: note: in expansion of macro 'PAGEBASE'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:5297:9: note: in expansion of macro 'NUMKEYS'
# i = NUMKEYS(mp) - 1;
# ^
# mdb.c:4330:15: warning: unused variable 'lock_info' [-Wunused-variable]
# struct flock lock_info;
# ^
# mdb.c: In function 'mdb_env_setup_locks':
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:1468:45: note: in definition of macro 'mdb_assert0'
# # define mdb_assert0(env, expr, expr_txt) ((expr) ? (void)0 : \
# ^
# mdb.c:5308:3: note: in expansion of macro 'mdb_cassert'
# mdb_cassert(mc, i < NUMKEYS(mp));
# ^
# mdb.c:817:40: note: in expansion of macro 'PAGEHDRSZ'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:5308:23: note: in expansion of macro 'NUMKEYS'
# mdb_cassert(mc, i < NUMKEYS(mp));
# ^
# mdb.c:4469:2: error: unknown type name 'off_t'
# off_t size, rsize;
# ^
# mdb.c:4481:2: warning: implicit declaration of function 'open' [-Wimplicit-function-declaration]
# env->me_lfd = open(lpath, O_RDWR|O_CREAT|MDB_CLOEXEC, mode);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:1468:45: note: in definition of macro 'mdb_assert0'
# # define mdb_assert0(env, expr, expr_txt) ((expr) ? (void)0 : \
# ^
# mdb.c:5308:3: note: in expansion of macro 'mdb_cassert'
# mdb_cassert(mc, i < NUMKEYS(mp));
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:817:50: note: in expansion of macro 'PAGEBASE'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:5308:23: note: in expansion of macro 'NUMKEYS'
# mdb_cassert(mc, i < NUMKEYS(mp));
# ^
# mdb.c:4481:28: error: 'O_RDWR' undeclared (first use in this function)
# env->me_lfd = open(lpath, O_RDWR|O_CREAT|MDB_CLOEXEC, mode);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:5309:10: note: in expansion of macro 'NODEPTR'
# node = NODEPTR(mp, i);
# ^
# mdb.c:4481:35: error: 'O_CREAT' undeclared (first use in this function)
# env->me_lfd = open(lpath, O_RDWR|O_CREAT|MDB_CLOEXEC, mode);
# ^
# mdb.c:885:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
# #define PGNO_TOPWORD ((pgno_t)-1 > 0xffffffffu ? 32 : 0)
# ^
# mdb.c:909:4: note: in expansion of macro 'PGNO_TOPWORD'
# (PGNO_TOPWORD ? ((pgno_t) (node)->mn_flags << PGNO_TOPWORD) : 0))
# ^
# mdb.c:5311:38: note: in expansion of macro 'NODEPGNO'
# if ((rc = mdb_page_get(mc->mc_txn, NODEPGNO(node), &mp, NULL)) != 0)
# ^
# mdb.c: In function 'mdb_page_search_lowest':
# mdb.c:356:19: error: 'errno' undeclared (first use in this function)
# #define ErrCode() errno
# ^
# mdb.c:4484:8: note: in expansion of macro 'ErrCode'
# rc = ErrCode();
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:5350:19: note: in expansion of macro 'NODEPTR'
# MDB_node *node = NODEPTR(mp, 0);
# ^
# mdb.c:885:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
# #define PGNO_TOPWORD ((pgno_t)-1 > 0xffffffffu ? 32 : 0)
# ^
# mdb.c:909:4: note: in expansion of macro 'PGNO_TOPWORD'
# (PGNO_TOPWORD ? ((pgno_t) (node)->mn_flags << PGNO_TOPWORD) : 0))
# ^
# mdb.c:5353:37: note: in expansion of macro 'NODEPGNO'
# if ((rc = mdb_page_get(mc->mc_txn, NODEPGNO(node), &mp, NULL)) != 0)
# ^
# mdb.c:5353:58: error: 'NULL' undeclared (first use in this function)
# if ((rc = mdb_page_get(mc->mc_txn, NODEPGNO(node), &mp, NULL)) != 0)
# ^
# mdb.c:4460:27: error: 'EROFS' undeclared (first use in this function)
# # define MDB_ERRCODE_ROFS EROFS
# ^
# mdb.c:4485:13: note: in expansion of macro 'MDB_ERRCODE_ROFS'
# if (rc == MDB_ERRCODE_ROFS && (env->me_flags & MDB_RDONLY)) {
# ^
# mdb.c: In function 'mdb_page_search':
# mdb.c:5391:49: error: 'NULL' undeclared (first use in this function)
# mdb_cursor_init(&mc2, mc->mc_txn, MAIN_DBI, NULL);
# ^
# mdb.c:4492:36: error: 'F_GETFD' undeclared (first use in this function)
# if ((fdflags = fcntl(env->me_lfd, F_GETFD) | FD_CLOEXEC) >= 0)
# ^
# mdb.c:5398:6: error: unknown type name 'uint16_t'
# uint16_t flags;
# ^
# mdb.c:4492:47: error: 'FD_CLOEXEC' undeclared (first use in this function)
# if ((fdflags = fcntl(env->me_lfd, F_GETFD) | FD_CLOEXEC) >= 0)
# ^
# mdb.c:5408:6: warning: incompatible implicit declaration of built-in function 'memcpy' [enabled by default]
# memcpy(&flags, ((char *) data.mv_data + offsetof(MDB_db, md_flags)),
# ^
# mdb.c:5408:55: error: expected expression before 'MDB_db'
# memcpy(&flags, ((char *) data.mv_data + offsetof(MDB_db, md_flags)),
# ^
# mdb.c:4493:23: error: 'F_SETFD' undeclared (first use in this function)
# fcntl(env->me_lfd, F_SETFD, fdflags);
# ^
# mdb.c:5409:14: error: 'uint16_t' undeclared (first use in this function)
# sizeof(uint16_t));
# ^
# mdb.c: In function 'mdb_ovpage_free':
# mdb.c:4497:3: warning: implicit declaration of function 'pthread_key_create' [-Wimplicit-function-declaration]
# rc = pthread_key_create(&env->me_txkey, mdb_env_reader_dest);
# ^
# mdb.c:5472:41: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
# (sl && (x = mdb_midl_search(sl, pn)) <= sl[0] && sl[x] == pn)))
# ^
# mdb.c:4519:31: error: 'SEEK_END' undeclared (first use in this function)
# size = lseek(env->me_lfd, 0, SEEK_END);
# ^
# mdb.c:5482:10: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
# if (x == sl[0])
# ^
# mdb.c: In function 'mdb_node_read':
# mdb.c:4546:18: error: 'NULL' undeclared (first use in this function)
# void *m = mmap(NULL, rsize, PROT_READ|PROT_WRITE, MAP_SHARED,
# ^
# mdb.c:5547:2: warning: incompatible implicit declaration of built-in function 'memcpy' [enabled by default]
# memcpy(&pgno, NODEDATA(leaf), sizeof(pgno));
# ^
# mdb.c:4546:31: error: 'PROT_READ' undeclared (first use in this function)
# void *m = mmap(NULL, rsize, PROT_READ|PROT_WRITE, MAP_SHARED,
# ^
# mdb.c:5548:42: error: 'NULL' undeclared (first use in this function)
# if ((rc = mdb_page_get(txn, pgno, &omp, NULL)) != 0) {
# ^
# mdb.c:4546:41: error: 'PROT_WRITE' undeclared (first use in this function)
# void *m = mmap(NULL, rsize, PROT_READ|PROT_WRITE, MAP_SHARED,
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:811:46: note: in expansion of macro 'PAGEHDRSZ'
# #define METADATA(p) ((void *)((char *)(p) + PAGEHDRSZ))
# ^
# mdb.c:5552:18: note: in expansion of macro 'METADATA'
# data->mv_data = METADATA(omp);
# ^
# mdb.c: In function 'mdb_get':
# mdb.c:5569:10: error: 'EINVAL' undeclared (first use in this function)
# return EINVAL;
# ^
# mdb.c:4546:53: error: 'MAP_SHARED' undeclared (first use in this function)
# void *m = mmap(NULL, rsize, PROT_READ|PROT_WRITE, MAP_SHARED,
# ^
# mdb.c: In function 'mdb_cursor_sibling':
# mdb.c:4548:12: error: 'MAP_FAILED' undeclared (first use in this function)
# if (m == MAP_FAILED) goto fail_errno;
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:817:40: note: in expansion of macro 'PAGEHDRSZ'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:5601:50: note: in expansion of macro 'NUMKEYS'
# if (move_right ? (mc->mc_ki[mc->mc_top] + 1u >= NUMKEYS(mc->mc_pg[mc->mc_top]))
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:817:50: note: in expansion of macro 'PAGEBASE'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:5601:50: note: in expansion of macro 'NUMKEYS'
# if (move_right ? (mc->mc_ki[mc->mc_top] + 1u >= NUMKEYS(mc->mc_pg[mc->mc_top]))
# ^
# mdb.c:4620:3: error: unknown type name 'pthread_mutexattr_t'
# pthread_mutexattr_t mattr;
# ^
# mdb.c:4622:3: warning: implicit declaration of function 'pthread_mutexattr_init' [-Wimplicit-function-declaration]
# if ((rc = pthread_mutexattr_init(&mattr))
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:5621:9: note: in expansion of macro 'NODEPTR'
# indx = NODEPTR(mc->mc_pg[mc->mc_top], mc->mc_ki[mc->mc_top]);
# ^
# mdb.c:4623:4: warning: implicit declaration of function 'pthread_mutexattr_setpshared' [-Wimplicit-function-declaration]
# || (rc = pthread_mutexattr_setpshared(&mattr, PTHREAD_PROCESS_SHARED))
# ^
# mdb.c:885:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
# #define PGNO_TOPWORD ((pgno_t)-1 > 0xffffffffu ? 32 : 0)
# ^
# mdb.c:909:4: note: in expansion of macro 'PGNO_TOPWORD'
# (PGNO_TOPWORD ? ((pgno_t) (node)->mn_flags << PGNO_TOPWORD) : 0))
# ^
# mdb.c:5622:37: note: in expansion of macro 'NODEPGNO'
# if ((rc = mdb_page_get(mc->mc_txn, NODEPGNO(indx), &mp, NULL)) != 0) {
# ^
# mdb.c:5622:58: error: 'NULL' undeclared (first use in this function)
# if ((rc = mdb_page_get(mc->mc_txn, NODEPGNO(indx), &mp, NULL)) != 0) {
# ^
# mdb.c:4623:50: error: 'PTHREAD_PROCESS_SHARED' undeclared (first use in this function)
# || (rc = pthread_mutexattr_setpshared(&mattr, PTHREAD_PROCESS_SHARED))
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:817:40: note: in expansion of macro 'PAGEHDRSZ'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:5630:27: note: in expansion of macro 'NUMKEYS'
# mc->mc_ki[mc->mc_top] = NUMKEYS(mp)-1;
# ^
# mdb.c:4627:4: warning: implicit declaration of function 'pthread_mutex_init' [-Wimplicit-function-declaration]
# || (rc = pthread_mutex_init(env->me_txns->mti_rmutex, &mattr))
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:817:50: note: in expansion of macro 'PAGEBASE'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:5630:27: note: in expansion of macro 'NUMKEYS'
# mc->mc_ki[mc->mc_top] = NUMKEYS(mp)-1;
# ^
# mdb.c: In function 'mdb_cursor_next':
# mdb.c:4630:3: warning: implicit declaration of function 'pthread_mutexattr_destroy' [-Wimplicit-function-declaration]
# pthread_mutexattr_destroy(&mattr);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:5652:10: note: in expansion of macro 'NODEPTR'
# leaf = NODEPTR(mp, mc->mc_ki[mc->mc_top]);
# ^
# mdb.c:760:4: error: 'uint32_t' undeclared (first use in this function)
# ((uint32_t) \
# ^
# mdb.c:4634:30: note: in expansion of macro 'MDB_LOCK_FORMAT'
# env->me_txns->mti_format = MDB_LOCK_FORMAT;
# ^
# mdb.c:5655:60: error: 'NULL' undeclared (first use in this function)
# rc = mdb_cursor_next(&mc->mc_xcursor->mx_cursor, data, NULL, MDB_NEXT);
# ^
# mdb.c:4639:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
# if (env->me_txns->mti_magic != MDB_MAGIC) {
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:817:40: note: in expansion of macro 'PAGEHDRSZ'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:5676:36: note: in expansion of macro 'NUMKEYS'
# if (mc->mc_ki[mc->mc_top] + 1u >= NUMKEYS(mp)) {
# ^
# mdb.c:4651:19: error: 'EACCES' undeclared (first use in this function)
# if (rc && rc != EACCES && rc != EAGAIN) {
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:817:50: note: in expansion of macro 'PAGEBASE'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:5676:36: note: in expansion of macro 'NUMKEYS'
# if (mc->mc_ki[mc->mc_top] + 1u >= NUMKEYS(mp)) {
# ^
# mdb.c:4651:35: error: 'EAGAIN' undeclared (first use in this function)
# if (rc && rc != EACCES && rc != EAGAIN) {
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:951:43: note: in expansion of macro 'PAGEHDRSZ'
# #define LEAF2KEY(p, i, ks) ((char *)(p) + PAGEHDRSZ + ((i)*(ks)))
# ^
# mdb.c:5693:18: note: in expansion of macro 'LEAF2KEY'
# key->mv_data = LEAF2KEY(mp, mc->mc_ki[mc->mc_top], key->mv_size);
# ^
# mdb.c: In function 'mdb_env_open':
# mdb.c:4702:10: error: 'EINVAL' undeclared (first use in this function)
# return EINVAL;
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:5698:9: note: in expansion of macro 'NODEPTR'
# leaf = NODEPTR(mp, mc->mc_ki[mc->mc_top]);
# ^
# mdb.c: In function 'mdb_cursor_prev':
# mdb.c:4704:2: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
# len = strlen(path);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:5731:10: note: in expansion of macro 'NODEPTR'
# leaf = NODEPTR(mp, mc->mc_ki[mc->mc_top]);
# ^
# mdb.c:4704:8: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
# len = strlen(path);
# ^
# mdb.c:5734:60: error: 'NULL' undeclared (first use in this function)
# rc = mdb_cursor_prev(&mc->mc_xcursor->mx_cursor, data, NULL, MDB_PREV);
# ^
# mdb.c:4710:10: warning: incompatible implicit declaration of built-in function 'malloc' [enabled by default]
# lpath = malloc(rc);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:817:40: note: in expansion of macro 'PAGEHDRSZ'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:5761:27: note: in expansion of macro 'NUMKEYS'
# mc->mc_ki[mc->mc_top] = NUMKEYS(mp) - 1;
# ^
# mdb.c:4712:10: error: 'ENOMEM' undeclared (first use in this function)
# return ENOMEM;
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:817:50: note: in expansion of macro 'PAGEBASE'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:5761:27: note: in expansion of macro 'NUMKEYS'
# mc->mc_ki[mc->mc_top] = NUMKEYS(mp) - 1;
# ^
# mdb.c:4715:3: warning: incompatible implicit declaration of built-in function 'sprintf' [enabled by default]
# sprintf(lpath, "%s" LOCKSUFF, path);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:951:43: note: in expansion of macro 'PAGEHDRSZ'
# #define LEAF2KEY(p, i, ks) ((char *)(p) + PAGEHDRSZ + ((i)*(ks)))
# ^
# mdb.c:5771:18: note: in expansion of macro 'LEAF2KEY'
# key->mv_data = LEAF2KEY(mp, mc->mc_ki[mc->mc_top], key->mv_size);
# ^
# mdb.c:4716:3: warning: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration]
# strcpy(dpath, path);
# ^
# mdb.c:4716:3: warning: incompatible implicit declaration of built-in function 'strcpy' [enabled by default]
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:5776:9: note: in expansion of macro 'NODEPTR'
# leaf = NODEPTR(mp, mc->mc_ki[mc->mc_top]);
# ^
# mdb.c: In function 'mdb_cursor_set':
# mdb.c:4719:3: warning: incompatible implicit declaration of built-in function 'sprintf' [enabled by default]
# sprintf(lpath, "%s" LOCKNAME, path);
# ^
# mdb.c:5803:19: error: 'NULL' undeclared (first use in this function)
# MDB_node *leaf = NULL;
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:817:40: note: in expansion of macro 'PAGEHDRSZ'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:5817:8: note: in expansion of macro 'NUMKEYS'
# if (!NUMKEYS(mp)) {
# ^
# mdb.c:4730:28: warning: incompatible implicit declaration of built-in function 'calloc' [enabled by default]
# (env->me_dirty_list = calloc(MDB_IDL_UM_SIZE, sizeof(MDB_ID2)))))
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:817:50: note: in expansion of macro 'PAGEBASE'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:5817:8: note: in expansion of macro 'NUMKEYS'
# if (!NUMKEYS(mp)) {
# ^
# mdb.c:4737:2: warning: implicit declaration of function 'strdup' [-Wimplicit-function-declaration]
# env->me_path = strdup(path);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:951:43: note: in expansion of macro 'PAGEHDRSZ'
# #define LEAF2KEY(p, i, ks) ((char *)(p) + PAGEHDRSZ + ((i)*(ks)))
# ^
# mdb.c:5823:22: note: in expansion of macro 'LEAF2KEY'
# nodekey.mv_data = LEAF2KEY(mp, 0, nodekey.mv_size);
# ^
# mdb.c:4737:17: warning: incompatible implicit declaration of built-in function 'strdup' [enabled by default]
# env->me_path = strdup(path);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:5825:11: note: in expansion of macro 'NODEPTR'
# leaf = NODEPTR(mp, 0);
# ^
# mdb.c:4738:17: warning: incompatible implicit declaration of built-in function 'calloc' [enabled by default]
# env->me_dbxs = calloc(env->me_maxdbs, sizeof(MDB_dbx));
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:817:40: note: in expansion of macro 'PAGEHDRSZ'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:5840:25: note: in expansion of macro 'NUMKEYS'
# unsigned int nkeys = NUMKEYS(mp);
# ^
# mdb.c:4739:50: error: 'uint16_t' undeclared (first use in this function)
# env->me_dbflags = calloc(env->me_maxdbs, sizeof(uint16_t));
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:817:50: note: in expansion of macro 'PAGEBASE'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:5840:25: note: in expansion of macro 'NUMKEYS'
# unsigned int nkeys = NUMKEYS(mp);
# ^
# mdb.c:4771:12: error: 'O_RDONLY' undeclared (first use in this function)
# oflags = O_RDONLY;
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:951:43: note: in expansion of macro 'PAGEHDRSZ'
# #define LEAF2KEY(p, i, ks) ((char *)(p) + PAGEHDRSZ + ((i)*(ks)))
# ^
# mdb.c:5843:24: note: in expansion of macro 'LEAF2KEY'
# nodekey.mv_data = LEAF2KEY(mp,
# ^
# mdb.c:4773:12: error: 'O_RDWR' undeclared (first use in this function)
# oflags = O_RDWR | O_CREAT;
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:5846:13: note: in expansion of macro 'NODEPTR'
# leaf = NODEPTR(mp, nkeys-1);
# ^
# mdb.c:4773:21: error: 'O_CREAT' undeclared (first use in this function)
# oflags = O_RDWR | O_CREAT;
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:817:40: note: in expansion of macro 'PAGEHDRSZ'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:5858:34: note: in expansion of macro 'NUMKEYS'
# if (mc->mc_ki[mc->mc_top] < NUMKEYS(mp)) {
# ^
# mdb.c:356:19: error: 'errno' undeclared (first use in this function)
# #define ErrCode() errno
# ^
# mdb.c:4778:8: note: in expansion of macro 'ErrCode'
# rc = ErrCode();
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:817:50: note: in expansion of macro 'PAGEBASE'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:5858:34: note: in expansion of macro 'NUMKEYS'
# if (mc->mc_ki[mc->mc_top] < NUMKEYS(mp)) {
# ^
# mdb.c:411:20: error: 'O_SYNC' undeclared (first use in this function)
# # define MDB_DSYNC O_SYNC
# ^
# mdb.c:4806:39: note: in expansion of macro 'MDB_DSYNC'
# env->me_mfd = open(dpath, oflags | MDB_DSYNC, mode);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:951:43: note: in expansion of macro 'PAGEHDRSZ'
# #define LEAF2KEY(p, i, ks) ((char *)(p) + PAGEHDRSZ + ((i)*(ks)))
# ^
# mdb.c:5861:26: note: in expansion of macro 'LEAF2KEY'
# nodekey.mv_data = LEAF2KEY(mp,
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:5864:15: note: in expansion of macro 'NODEPTR'
# leaf = NODEPTR(mp, mc->mc_ki[mc->mc_top]);
# ^
# mdb.c:4844:2: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
# free(lpath);
# ^
# mdb.c: In function 'mdb_env_close1':
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:817:40: note: in expansion of macro 'PAGEHDRSZ'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:5884:6: note: in expansion of macro 'NUMKEYS'
# NUMKEYS(mc->mc_pg[i])-1)
# ^
# mdb.c:4860:4: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
# free(env->me_dbxs[i].md_name.mv_data);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:817:50: note: in expansion of macro 'PAGEBASE'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:5884:6: note: in expansion of macro 'NUMKEYS'
# NUMKEYS(mc->mc_pg[i])-1)
# ^
# mdb.c:4864:2: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
# free(env->me_pbuf);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:5927:10: note: in expansion of macro 'NODEPTR'
# leaf = NODEPTR(mp, 0);
# ^
# mdb.c:4873:3: warning: implicit declaration of function 'pthread_key_delete' [-Wimplicit-function-declaration]
# pthread_key_delete(env->me_txkey);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:951:43: note: in expansion of macro 'PAGEHDRSZ'
# #define LEAF2KEY(p, i, ks) ((char *)(p) + PAGEHDRSZ + ((i)*(ks)))
# ^
# mdb.c:5937:19: note: in expansion of macro 'LEAF2KEY'
# key->mv_data = LEAF2KEY(mp, mc->mc_ki[mc->mc_top], key->mv_size);
# ^
# mdb.c:4886:3: warning: implicit declaration of function 'munmap' [-Wimplicit-function-declaration]
# munmap(env->me_map, env->me_mapsize);
# ^
# mdb.c: In function 'mdb_cursor_first':
# mdb.c:6006:28: error: 'NULL' undeclared (first use in this function)
# rc = mdb_page_search(mc, NULL, MDB_PS_FIRST);
# ^
# mdb.c:4889:3: warning: implicit declaration of function 'close' [-Wimplicit-function-declaration]
# (void) close(env->me_mfd);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:6012:9: note: in expansion of macro 'NODEPTR'
# leaf = NODEPTR(mc->mc_pg[mc->mc_top], 0);
# ^
# mdb.c:62:19: error: unknown type name 'pid_t'
# #define MDB_PID_T pid_t
# ^
# mdb.c:4893:3: note: in expansion of macro 'MDB_PID_T'
# MDB_PID_T pid = env->me_pid;
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:951:43: note: in expansion of macro 'PAGEHDRSZ'
# #define LEAF2KEY(p, i, ks) ((char *)(p) + PAGEHDRSZ + ((i)*(ks)))
# ^
# mdb.c:6020:18: note: in expansion of macro 'LEAF2KEY'
# key->mv_data = LEAF2KEY(mc->mc_pg[mc->mc_top], 0, key->mv_size);
# ^
# mdb.c: In function 'mdb_cursor_last':
# mdb.c: In function 'mdb_env_close':
# mdb.c:6052:29: error: 'NULL' undeclared (first use in this function)
# rc = mdb_page_search(mc, NULL, MDB_PS_LAST);
# ^
# mdb.c:4950:13: error: 'NULL' undeclared (first use in this function)
# if (env == NULL)
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:817:40: note: in expansion of macro 'PAGEHDRSZ'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:6059:26: note: in expansion of macro 'NUMKEYS'
# mc->mc_ki[mc->mc_top] = NUMKEYS(mc->mc_pg[mc->mc_top]) - 1;
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:817:50: note: in expansion of macro 'PAGEBASE'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:6059:26: note: in expansion of macro 'NUMKEYS'
# mc->mc_ki[mc->mc_top] = NUMKEYS(mc->mc_pg[mc->mc_top]) - 1;
# ^
# mdb.c:4957:3: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
# free(dp);
# ^
# mdb.c:4961:2: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
# free(env);
# ^
# mdb.c: In function 'mdb_cmp_long':
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:6061:9: note: in expansion of macro 'NODEPTR'
# leaf = NODEPTR(mc->mc_pg[mc->mc_top], mc->mc_ki[mc->mc_top]);
# ^
# mdb.c:4968:12: error: 'size_t' undeclared (first use in this function)
# return (*(size_t *)a->mv_data < *(size_t *)b->mv_data) ? -1 :
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:951:43: note: in expansion of macro 'PAGEHDRSZ'
# #define LEAF2KEY(p, i, ks) ((char *)(p) + PAGEHDRSZ + ((i)*(ks)))
# ^
# mdb.c:6065:18: note: in expansion of macro 'LEAF2KEY'
# key->mv_data = LEAF2KEY(mc->mc_pg[mc->mc_top], mc->mc_ki[mc->mc_top], key->mv_size);
# ^
# mdb.c: In function 'mdb_cursor_get':
# mdb.c:4968:20: error: expected expression before ')' token
# return (*(size_t *)a->mv_data < *(size_t *)b->mv_data) ? -1 :
# ^
# mdb.c:6093:12: error: 'NULL' undeclared (first use in this function)
# if (mc == NULL)
# ^
# mdb.c:4969:13: error: expected expression before ')' token
# *(size_t *)a->mv_data > *(size_t *)b->mv_data;
# ^
# mdb.c:6094:10: error: 'EINVAL' undeclared (first use in this function)
# return EINVAL;
# ^
# mdb.c: In function 'mdb_cmp_memn':
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:817:40: note: in expansion of macro 'PAGEHDRSZ'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:6105:16: note: in expansion of macro 'NUMKEYS'
# int nkeys = NUMKEYS(mp);
# ^
# mdb.c:5019:2: error: unknown type name 'ssize_t'
# ssize_t len_diff;
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:817:50: note: in expansion of macro 'PAGEBASE'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:6105:16: note: in expansion of macro 'NUMKEYS'
# int nkeys = NUMKEYS(mp);
# ^
# mdb.c:5023:14: error: 'ssize_t' undeclared (first use in this function)
# len_diff = (ssize_t) a->mv_size - (ssize_t) b->mv_size;
# ^
# mdb.c:5023:23: error: expected ';' before 'a'
# len_diff = (ssize_t) a->mv_size - (ssize_t) b->mv_size;
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:951:43: note: in expansion of macro 'PAGEHDRSZ'
# #define LEAF2KEY(p, i, ks) ((char *)(p) + PAGEHDRSZ + ((i)*(ks)))
# ^
# mdb.c:6114:20: note: in expansion of macro 'LEAF2KEY'
# key->mv_data = LEAF2KEY(mp, mc->mc_ki[mc->mc_top], key->mv_size);
# ^
# mdb.c:5029:2: warning: implicit declaration of function 'memcmp' [-Wimplicit-function-declaration]
# diff = memcmp(a->mv_data, b->mv_data, len);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:6116:22: note: in expansion of macro 'NODEPTR'
# MDB_node *leaf = NODEPTR(mp, mc->mc_ki[mc->mc_top]);
# ^
# mdb.c: In function 'mdb_cmp_memnr':
# mdb.c:5038:2: error: unknown type name 'ssize_t'
# ssize_t len_diff;
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:817:40: note: in expansion of macro 'PAGEHDRSZ'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:6181:21: note: in expansion of macro 'NUMKEYS'
# data->mv_size = NUMKEYS(mx->mc_pg[mx->mc_top]) *
# ^
# mdb.c:5045:14: error: 'ssize_t' undeclared (first use in this function)
# len_diff = (ssize_t) a->mv_size - (ssize_t) b->mv_size;
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:817:50: note: in expansion of macro 'PAGEBASE'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:6181:21: note: in expansion of macro 'NUMKEYS'
# data->mv_size = NUMKEYS(mx->mc_pg[mx->mc_top]) *
# ^
# mdb.c:5045:23: error: expected ';' before 'a'
# len_diff = (ssize_t) a->mv_size - (ssize_t) b->mv_size;
# ^
# mdb.c: In function 'mdb_node_search':
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:811:46: note: in expansion of macro 'PAGEHDRSZ'
# #define METADATA(p) ((void *)((char *)(p) + PAGEHDRSZ))
# ^
# mdb.c:6183:21: note: in expansion of macro 'METADATA'
# data->mv_data = METADATA(mx->mc_pg[mx->mc_top]);
# ^
# mdb.c:5073:19: error: 'NULL' undeclared (first use in this function)
# MDB_node *node = NULL;
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:817:40: note: in expansion of macro 'PAGEHDRSZ'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:6184:29: note: in expansion of macro 'NUMKEYS'
# mx->mc_ki[mx->mc_top] = NUMKEYS(mx->mc_pg[mx->mc_top])-1;
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:817:40: note: in expansion of macro 'PAGEHDRSZ'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:5078:10: note: in expansion of macro 'NUMKEYS'
# nkeys = NUMKEYS(mp);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:817:50: note: in expansion of macro 'PAGEBASE'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:6184:29: note: in expansion of macro 'NUMKEYS'
# mx->mc_ki[mx->mc_top] = NUMKEYS(mx->mc_pg[mx->mc_top])-1;
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:817:50: note: in expansion of macro 'PAGEBASE'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:5078:10: note: in expansion of macro 'NUMKEYS'
# nkeys = NUMKEYS(mp);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:6225:21: note: in expansion of macro 'NODEPTR'
# MDB_node *leaf = NODEPTR(mc->mc_pg[mc->mc_top], mc->mc_ki[mc->mc_top]);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:5092:7: note: in expansion of macro 'NODEPTR'
# if (NODEPTR(mp, 1)->mn_ksize == sizeof(size_t))
# ^
# mdb.c: In function 'mdb_cursor_put':
# mdb.c:5092:42: error: 'size_t' undeclared (first use in this function)
# if (NODEPTR(mp, 1)->mn_ksize == sizeof(size_t))
# ^
# mdb.c:6294:19: error: 'NULL' undeclared (first use in this function)
# MDB_node *leaf = NULL;
# ^
# mdb.c:6296:2: error: unknown type name 'uint16_t'
# uint16_t fp_flags;
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:5100:10: note: in expansion of macro 'NODEPTR'
# node = NODEPTR(mp, 0); /* fake */
# ^
# mdb.c:6301:2: error: unknown type name 'size_t'
# size_t nsize;
# ^
# mdb.c:6307:10: error: 'EINVAL' undeclared (first use in this function)
# return EINVAL;
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:951:43: note: in expansion of macro 'PAGEHDRSZ'
# #define LEAF2KEY(p, i, ks) ((char *)(p) + PAGEHDRSZ + ((i)*(ks)))
# ^
# mdb.c:5103:22: note: in expansion of macro 'LEAF2KEY'
# nodekey.mv_data = LEAF2KEY(mp, i, nodekey.mv_size);
# ^
# mdb.c:6325:52: error: 'EACCES' undeclared (first use in this function)
# return (mc->mc_txn->mt_flags & MDB_TXN_RDONLY) ? EACCES : MDB_BAD_TXN;
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:5118:11: note: in expansion of macro 'NODEPTR'
# node = NODEPTR(mp, i);
# ^
# mdb.c:6400:3: warning: implicit declaration of function 'mdb_page_new' [-Wimplicit-function-declaration]
# if ((rc2 = mdb_page_new(mc, P_LEAF, 1, &np))) {
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:5143:11: note: in expansion of macro 'NODEPTR'
# node = NODEPTR(mp, i);
# ^
# mdb.c: In function 'mdb_page_get':
# mdb.c:882:28: error: expected expression before 'MDB_node'
# #define NODESIZE offsetof(MDB_node, mn_data)
# ^
# mdb.c:895:26: note: in expansion of macro 'NODESIZE'
# #define LEAFSIZE(k, d) (NODESIZE + (k)->mv_size + (d)->mv_size)
# ^
# mdb.c:6423:4: note: in expansion of macro 'LEAFSIZE'
# LEAFSIZE(key, data) > env->me_nodemax)
# ^
# mdb.c:5218:16: error: 'NULL' undeclared (first use in this function)
# MDB_page *p = NULL;
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:6431:35: note: in expansion of macro 'PAGEHDRSZ'
# fp->mp_lower = fp->mp_upper = (PAGEHDRSZ-PAGEBASE);
# ^
# mdb.c:5235:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
# if (x <= tx2->mt_spill_pgs[0] && tx2->mt_spill_pgs[x] == pn) {
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:6431:45: note: in expansion of macro 'PAGEBASE'
# fp->mp_lower = fp->mp_upper = (PAGEHDRSZ-PAGEBASE);
# ^
# mdb.c:5242:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
# if (x <= dl[0].mid && dl[x].mid == pgno) {
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:6432:22: note: in expansion of macro 'PAGEHDRSZ'
# olddata.mv_size = PAGEHDRSZ;
# ^
# mdb.c: In function 'mdb_page_search_root':
# mdb.c:6440:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
# if (key->mv_size != ksize)
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:951:43: note: in expansion of macro 'PAGEHDRSZ'
# #define LEAF2KEY(p, i, ks) ((char *)(p) + PAGEHDRSZ + ((i)*(ks)))
# ^
# mdb.c:6442:10: note: in expansion of macro 'LEAF2KEY'
# ptr = LEAF2KEY(mc->mc_pg[mc->mc_top], mc->mc_ki[mc->mc_top], ksize);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:1468:45: note: in definition of macro 'mdb_assert0'
# # define mdb_assert0(env, expr, expr_txt) ((expr) ? (void)0 : \
# ^
# mdb.c:5286:3: note: in expansion of macro 'mdb_cassert'
# mdb_cassert(mc, !mc->mc_dbi || NUMKEYS(mp) > 1);
# ^
# mdb.c:817:40: note: in expansion of macro 'PAGEHDRSZ'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:5286:34: note: in expansion of macro 'NUMKEYS'
# mdb_cassert(mc, !mc->mc_dbi || NUMKEYS(mp) > 1);
# ^
# mdb.c:6443:4: warning: incompatible implicit declaration of built-in function 'memcpy' [enabled by default]
# memcpy(ptr, key->mv_data, ksize);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:6468:10: note: in expansion of macro 'NODEPTR'
# leaf = NODEPTR(mc->mc_pg[mc->mc_top], mc->mc_ki[mc->mc_top]);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:1468:45: note: in definition of macro 'mdb_assert0'
# # define mdb_assert0(env, expr, expr_txt) ((expr) ? (void)0 : \
# ^
# mdb.c:5286:3: note: in expansion of macro 'mdb_cassert'
# mdb_cassert(mc, !mc->mc_dbi || NUMKEYS(mp) > 1);
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:817:50: note: in expansion of macro 'PAGEBASE'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:5286:34: note: in expansion of macro 'NUMKEYS'
# mdb_cassert(mc, !mc->mc_dbi || NUMKEYS(mp) > 1);
# ^
# mdb.c:6504:20: warning: incompatible implicit declaration of built-in function 'memcpy' [enabled by default]
# dkey.mv_data = memcpy(fp+1, olddata.mv_data, olddata.mv_size);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:817:40: note: in expansion of macro 'PAGEHDRSZ'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:5292:9: note: in expansion of macro 'NUMKEYS'
# i = NUMKEYS(mp) - 1;
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:6508:21: note: in expansion of macro 'PAGEHDRSZ'
# fp->mp_lower = (PAGEHDRSZ-PAGEBASE);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:6508:31: note: in expansion of macro 'PAGEBASE'
# fp->mp_lower = (PAGEHDRSZ-PAGEBASE);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:817:50: note: in expansion of macro 'PAGEBASE'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:5292:9: note: in expansion of macro 'NUMKEYS'
# i = NUMKEYS(mp) - 1;
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:6509:21: note: in expansion of macro 'PAGEHDRSZ'
# xdata.mv_size = PAGEHDRSZ + dkey.mv_size + data->mv_size;
# ^
# mdb.c:5296:16: error: 'NULL' undeclared (first use in this function)
# if (node == NULL)
# ^
# mdb.c:882:28: error: expected expression before 'MDB_node'
# #define NODESIZE offsetof(MDB_node, mn_data)
# ^
# mdb.c:6515:45: note: in expansion of macro 'NODESIZE'
# xdata.mv_size += 2 * (sizeof(indx_t) + NODESIZE) +
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:817:40: note: in expansion of macro 'PAGEHDRSZ'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:5297:9: note: in expansion of macro 'NUMKEYS'
# i = NUMKEYS(mp) - 1;
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:817:50: note: in expansion of macro 'PAGEBASE'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:5297:9: note: in expansion of macro 'NUMKEYS'
# i = NUMKEYS(mp) - 1;
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:6518:36: note: in expansion of macro 'PAGEBASE'
# fp->mp_upper = xdata.mv_size - PAGEBASE;
# ^
# mdb.c:882:28: error: expected expression before 'MDB_node'
# #define NODESIZE offsetof(MDB_node, mn_data)
# ^
# mdb.c:588:21: note: in definition of macro 'EVEN'
# #define EVEN(n) (((n) + 1U) & -2) /* sign-extending -2 to match n+1U */
# ^
# mdb.c:6530:21: note: in expansion of macro 'NODESIZE'
# offset = EVEN(NODESIZE + sizeof(indx_t) +
# ^
# mdb.c:6535:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
# if (SIZELEFT(fp) < offset) {
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:1468:45: note: in definition of macro 'mdb_assert0'
# # define mdb_assert0(env, expr, expr_txt) ((expr) ? (void)0 : \
# ^
# mdb.c:5308:3: note: in expansion of macro 'mdb_cassert'
# mdb_cassert(mc, i < NUMKEYS(mp));
# ^
# mdb.c:817:40: note: in expansion of macro 'PAGEHDRSZ'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:5308:23: note: in expansion of macro 'NUMKEYS'
# mdb_cassert(mc, i < NUMKEYS(mp));
# ^
# mdb.c:882:28: error: expected expression before 'MDB_node'
# #define NODESIZE offsetof(MDB_node, mn_data)
# ^
# mdb.c:6551:8: note: in expansion of macro 'NODESIZE'
# if (NODESIZE + NODEKSZ(leaf) + xdata.mv_size > env->me_nodemax) {
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:817:40: note: in expansion of macro 'PAGEHDRSZ'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:6569:25: note: in expansion of macro 'NUMKEYS'
# dummy.md_entries = NUMKEYS(fp);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:1468:45: note: in definition of macro 'mdb_assert0'
# # define mdb_assert0(env, expr, expr_txt) ((expr) ? (void)0 : \
# ^
# mdb.c:5308:3: note: in expansion of macro 'mdb_cassert'
# mdb_cassert(mc, i < NUMKEYS(mp));
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:817:50: note: in expansion of macro 'PAGEBASE'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:5308:23: note: in expansion of macro 'NUMKEYS'
# mdb_cassert(mc, i < NUMKEYS(mp));
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:817:50: note: in expansion of macro 'PAGEBASE'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:6569:25: note: in expansion of macro 'NUMKEYS'
# dummy.md_entries = NUMKEYS(fp);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:5309:10: note: in expansion of macro 'NODEPTR'
# node = NODEPTR(mp, i);
# ^
# mdb.c:6585:6: warning: incompatible implicit declaration of built-in function 'memcpy' [enabled by default]
# memcpy(METADATA(mp), METADATA(fp), NUMKEYS(fp) * fp->mp_pad);
# ^
# mdb.c:885:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
# #define PGNO_TOPWORD ((pgno_t)-1 > 0xffffffffu ? 32 : 0)
# ^
# mdb.c:909:4: note: in expansion of macro 'PGNO_TOPWORD'
# (PGNO_TOPWORD ? ((pgno_t) (node)->mn_flags << PGNO_TOPWORD) : 0))
# ^
# mdb.c:5311:38: note: in expansion of macro 'NODEPGNO'
# if ((rc = mdb_page_get(mc->mc_txn, NODEPGNO(node), &mp, NULL)) != 0)
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:811:46: note: in expansion of macro 'PAGEHDRSZ'
# #define METADATA(p) ((void *)((char *)(p) + PAGEHDRSZ))
# ^
# mdb.c:6585:13: note: in expansion of macro 'METADATA'
# memcpy(METADATA(mp), METADATA(fp), NUMKEYS(fp) * fp->mp_pad);
# ^
# mdb.c: In function 'mdb_page_search_lowest':
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:811:46: note: in expansion of macro 'PAGEHDRSZ'
# #define METADATA(p) ((void *)((char *)(p) + PAGEHDRSZ))
# ^
# mdb.c:6585:27: note: in expansion of macro 'METADATA'
# memcpy(METADATA(mp), METADATA(fp), NUMKEYS(fp) * fp->mp_pad);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:5350:19: note: in expansion of macro 'NODEPTR'
# MDB_node *node = NODEPTR(mp, 0);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:817:40: note: in expansion of macro 'PAGEHDRSZ'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:6585:41: note: in expansion of macro 'NUMKEYS'
# memcpy(METADATA(mp), METADATA(fp), NUMKEYS(fp) * fp->mp_pad);
# ^
# mdb.c:885:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
# #define PGNO_TOPWORD ((pgno_t)-1 > 0xffffffffu ? 32 : 0)
# ^
# mdb.c:909:4: note: in expansion of macro 'PGNO_TOPWORD'
# (PGNO_TOPWORD ? ((pgno_t) (node)->mn_flags << PGNO_TOPWORD) : 0))
# ^
# mdb.c:5353:37: note: in expansion of macro 'NODEPGNO'
# if ((rc = mdb_page_get(mc->mc_txn, NODEPGNO(node), &mp, NULL)) != 0)
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:817:50: note: in expansion of macro 'PAGEBASE'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:6585:41: note: in expansion of macro 'NUMKEYS'
# memcpy(METADATA(mp), METADATA(fp), NUMKEYS(fp) * fp->mp_pad);
# ^
# mdb.c:5353:58: error: 'NULL' undeclared (first use in this function)
# if ((rc = mdb_page_get(mc->mc_txn, NODEPGNO(node), &mp, NULL)) != 0)
# ^
# mdb.c: In function 'mdb_page_search':
# mdb.c:6587:6: warning: incompatible implicit declaration of built-in function 'memcpy' [enabled by default]
# memcpy((char *)mp + mp->mp_upper + PAGEBASE, (char *)fp + fp->mp_upper + PAGEBASE,
# ^
# mdb.c:5391:49: error: 'NULL' undeclared (first use in this function)
# mdb_cursor_init(&mc2, mc->mc_txn, MAIN_DBI, NULL);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:6587:41: note: in expansion of macro 'PAGEBASE'
# memcpy((char *)mp + mp->mp_upper + PAGEBASE, (char *)fp + fp->mp_upper + PAGEBASE,
# ^
# mdb.c:5398:6: error: unknown type name 'uint16_t'
# uint16_t flags;
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:6587:79: note: in expansion of macro 'PAGEBASE'
# memcpy((char *)mp + mp->mp_upper + PAGEBASE, (char *)fp + fp->mp_upper + PAGEBASE,
# ^
# mdb.c:5408:6: warning: incompatible implicit declaration of built-in function 'memcpy' [enabled by default]
# memcpy(&flags, ((char *) data.mv_data + offsetof(MDB_db, md_flags)),
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:6588:40: note: in expansion of macro 'PAGEBASE'
# olddata.mv_size - fp->mp_upper - PAGEBASE);
# ^
# mdb.c:5408:55: error: expected expression before 'MDB_db'
# memcpy(&flags, ((char *) data.mv_data + offsetof(MDB_db, md_flags)),
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:817:40: note: in expansion of macro 'PAGEHDRSZ'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:6589:18: note: in expansion of macro 'NUMKEYS'
# for (i=0; i
# ^
# mdb.c:5409:14: error: 'uint16_t' undeclared (first use in this function)
# sizeof(uint16_t));
# ^
# mdb.c: In function 'mdb_ovpage_free':
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:817:50: note: in expansion of macro 'PAGEBASE'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:6589:18: note: in expansion of macro 'NUMKEYS'
# for (i=0; i
# ^
# mdb.c:5472:41: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
# (sl && (x = mdb_midl_search(sl, pn)) <= sl[0] && sl[x] == pn)))
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:842:32: note: in expansion of macro 'PAGEHDRSZ'
# #define OVPAGES(size, psize) ((PAGEHDRSZ-1 + (size)) / (psize) + 1)
# ^
# mdb.c:6609:33: note: in expansion of macro 'OVPAGES'
# int level, ovpages, dpages = OVPAGES(data->mv_size, env->me_psize);
# ^
# mdb.c:5482:10: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
# if (x == sl[0])
# ^
# mdb.c:6611:4: warning: incompatible implicit declaration of built-in function 'memcpy' [enabled by default]
# memcpy(&pg, olddata.mv_data, sizeof(pg));
# ^
# mdb.c: In function 'mdb_node_read':
# mdb.c:6634:6: error: unknown type name 'size_t'
# size_t sz = (size_t) env->me_psize * ovpages, off;
# ^
# mdb.c:5547:2: warning: incompatible implicit declaration of built-in function 'memcpy' [enabled by default]
# memcpy(&pgno, NODEDATA(leaf), sizeof(pgno));
# ^
# mdb.c:6634:19: error: 'size_t' undeclared (first use in this function)
# size_t sz = (size_t) env->me_psize * ovpages, off;
# ^
# mdb.c:5548:42: error: 'NULL' undeclared (first use in this function)
# if ((rc = mdb_page_get(txn, pgno, &omp, NULL)) != 0) {
# ^
# mdb.c:6634:27: error: expected ',' or ';' before 'env'
# size_t sz = (size_t) env->me_psize * ovpages, off;
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:811:46: note: in expansion of macro 'PAGEHDRSZ'
# #define METADATA(p) ((void *)((char *)(p) + PAGEHDRSZ))
# ^
# mdb.c:5552:18: note: in expansion of macro 'METADATA'
# data->mv_data = METADATA(omp);
# ^
# mdb.c:6638:14: error: 'ENOMEM' undeclared (first use in this function)
# return ENOMEM;
# ^
# mdb.c: In function 'mdb_get':
# mdb.c:5569:10: error: 'EINVAL' undeclared (first use in this function)
# return EINVAL;
# ^
# mdb.c:6648:7: error: 'off' undeclared (first use in this function)
# off = (PAGEHDRSZ + data->mv_size) & -sizeof(size_t);
# ^
# mdb.c: In function 'mdb_cursor_sibling':
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:6648:14: note: in expansion of macro 'PAGEHDRSZ'
# off = (PAGEHDRSZ + data->mv_size) & -sizeof(size_t);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:817:40: note: in expansion of macro 'PAGEHDRSZ'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:5601:50: note: in expansion of macro 'NUMKEYS'
# if (move_right ? (mc->mc_ki[mc->mc_top] + 1u >= NUMKEYS(mc->mc_pg[mc->mc_top]))
# ^
# mdb.c:6649:23: error: expected expression before ')' token
# memcpy((size_t *)((char *)np + off),
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:817:50: note: in expansion of macro 'PAGEBASE'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:5601:50: note: in expansion of macro 'NUMKEYS'
# if (move_right ? (mc->mc_ki[mc->mc_top] + 1u >= NUMKEYS(mc->mc_pg[mc->mc_top]))
# ^
# mdb.c:6650:17: error: expected expression before ')' token
# (size_t *)((char *)omp + off), sz - off);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:6651:12: note: in expansion of macro 'PAGEHDRSZ'
# sz = PAGEHDRSZ;
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:5621:9: note: in expansion of macro 'NODEPTR'
# indx = NODEPTR(mc->mc_pg[mc->mc_top], mc->mc_ki[mc->mc_top]);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:811:46: note: in expansion of macro 'PAGEHDRSZ'
# #define METADATA(p) ((void *)((char *)(p) + PAGEHDRSZ))
# ^
# mdb.c:6658:22: note: in expansion of macro 'METADATA'
# data->mv_data = METADATA(omp);
# ^
# mdb.c:885:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
# #define PGNO_TOPWORD ((pgno_t)-1 > 0xffffffffu ? 32 : 0)
# ^
# mdb.c:909:4: note: in expansion of macro 'PGNO_TOPWORD'
# (PGNO_TOPWORD ? ((pgno_t) (node)->mn_flags << PGNO_TOPWORD) : 0))
# ^
# mdb.c:5622:37: note: in expansion of macro 'NODEPGNO'
# if ((rc = mdb_page_get(mc->mc_txn, NODEPGNO(indx), &mp, NULL)) != 0) {
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:811:46: note: in expansion of macro 'PAGEHDRSZ'
# #define METADATA(p) ((void *)((char *)(p) + PAGEHDRSZ))
# ^
# mdb.c:6660:13: note: in expansion of macro 'METADATA'
# memcpy(METADATA(omp), data->mv_data, data->mv_size);
# ^
# mdb.c:5622:58: error: 'NULL' undeclared (first use in this function)
# if ((rc = mdb_page_get(mc->mc_txn, NODEPGNO(indx), &mp, NULL)) != 0) {
# ^
# mdb.c:6674:5: warning: incompatible implicit declaration of built-in function 'memcpy' [enabled by default]
# memcpy(olddata.mv_data, data->mv_data, data->mv_size);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:817:40: note: in expansion of macro 'PAGEHDRSZ'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:5630:27: note: in expansion of macro 'NUMKEYS'
# mc->mc_ki[mc->mc_top] = NUMKEYS(mp)-1;
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:6715:21: note: in expansion of macro 'NODEPTR'
# MDB_node *n2 = NODEPTR(mp, m3->mc_ki[i]);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:817:50: note: in expansion of macro 'PAGEBASE'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:5630:27: note: in expansion of macro 'NUMKEYS'
# mc->mc_ki[mc->mc_top] = NUMKEYS(mp)-1;
# ^
# mdb.c: In function 'mdb_cursor_next':
# mdb.c:6731:11: error: expected ';' before 'ecount'
# size_t ecount;
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:6735:11: note: in expansion of macro 'NODEPTR'
# leaf = NODEPTR(mc->mc_pg[mc->mc_top], mc->mc_ki[mc->mc_top]);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:5652:10: note: in expansion of macro 'NODEPTR'
# leaf = NODEPTR(mp, mc->mc_ki[mc->mc_top]);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:817:40: note: in expansion of macro 'PAGEHDRSZ'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:6760:17: note: in expansion of macro 'NUMKEYS'
# int nkeys = NUMKEYS(mp);
# ^
# mdb.c:5655:60: error: 'NULL' undeclared (first use in this function)
# rc = mdb_cursor_next(&mc->mc_xcursor->mx_cursor, data, NULL, MDB_NEXT);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:817:50: note: in expansion of macro 'PAGEBASE'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:6760:17: note: in expansion of macro 'NUMKEYS'
# int nkeys = NUMKEYS(mp);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:817:40: note: in expansion of macro 'PAGEHDRSZ'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:5676:36: note: in expansion of macro 'NUMKEYS'
# if (mc->mc_ki[mc->mc_top] + 1u >= NUMKEYS(mp)) {
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:6769:23: note: in expansion of macro 'NODEPTR'
# MDB_node *n2 = NODEPTR(mp, m2->mc_ki[i]);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:817:50: note: in expansion of macro 'PAGEBASE'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:5676:36: note: in expansion of macro 'NUMKEYS'
# if (mc->mc_ki[mc->mc_top] + 1u >= NUMKEYS(mp)) {
# ^
# mdb.c:6776:4: error: 'ecount' undeclared (first use in this function)
# ecount = mc->mc_xcursor->mx_db.md_entries;
# ^
# mdb.c:6782:5: warning: incompatible implicit declaration of built-in function 'memcpy' [enabled by default]
# memcpy(db, &mc->mc_xcursor->mx_db, sizeof(MDB_db));
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:951:43: note: in expansion of macro 'PAGEHDRSZ'
# #define LEAF2KEY(p, i, ks) ((char *)(p) + PAGEHDRSZ + ((i)*(ks)))
# ^
# mdb.c:5693:18: note: in expansion of macro 'LEAF2KEY'
# key->mv_data = LEAF2KEY(mp, mc->mc_ki[mc->mc_top], key->mv_size);
# ^
# mdb.c: In function 'mdb_cursor_del':
# mdb.c:6827:52: error: 'EACCES' undeclared (first use in this function)
# return (mc->mc_txn->mt_flags & MDB_TXN_RDONLY) ? EACCES : MDB_BAD_TXN;
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:5698:9: note: in expansion of macro 'NODEPTR'
# leaf = NODEPTR(mp, mc->mc_ki[mc->mc_top]);
# ^
# mdb.c:6830:10: error: 'EINVAL' undeclared (first use in this function)
# return EINVAL;
# ^
# mdb.c: In function 'mdb_cursor_prev':
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:817:40: note: in expansion of macro 'PAGEHDRSZ'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:6832:31: note: in expansion of macro 'NUMKEYS'
# if (mc->mc_ki[mc->mc_top] >= NUMKEYS(mc->mc_pg[mc->mc_top]))
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:5731:10: note: in expansion of macro 'NODEPTR'
# leaf = NODEPTR(mp, mc->mc_ki[mc->mc_top]);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:817:50: note: in expansion of macro 'PAGEBASE'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:6832:31: note: in expansion of macro 'NUMKEYS'
# if (mc->mc_ki[mc->mc_top] >= NUMKEYS(mc->mc_pg[mc->mc_top]))
# ^
# mdb.c:6835:57: error: 'NULL' undeclared (first use in this function)
# if (!(flags & MDB_NOSPILL) && (rc = mdb_page_spill(mc, NULL, NULL)))
# ^
# mdb.c:5734:60: error: 'NULL' undeclared (first use in this function)
# rc = mdb_cursor_prev(&mc->mc_xcursor->mx_cursor, data, NULL, MDB_PREV);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:6845:9: note: in expansion of macro 'NODEPTR'
# leaf = NODEPTR(mp, mc->mc_ki[mc->mc_top]);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:817:40: note: in expansion of macro 'PAGEHDRSZ'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:5761:27: note: in expansion of macro 'NUMKEYS'
# mc->mc_ki[mc->mc_top] = NUMKEYS(mp) - 1;
# ^
# mdb.c:6864:6: warning: incompatible implicit declaration of built-in function 'memcpy' [enabled by default]
# memcpy(db, &mc->mc_xcursor->mx_db, sizeof(MDB_db));
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:817:50: note: in expansion of macro 'PAGEBASE'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:5761:27: note: in expansion of macro 'NUMKEYS'
# mc->mc_ki[mc->mc_top] = NUMKEYS(mp) - 1;
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:6869:13: note: in expansion of macro 'NODEPTR'
# leaf = NODEPTR(mp, mc->mc_ki[mc->mc_top]);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:951:43: note: in expansion of macro 'PAGEHDRSZ'
# #define LEAF2KEY(p, i, ks) ((char *)(p) + PAGEHDRSZ + ((i)*(ks)))
# ^
# mdb.c:5771:18: note: in expansion of macro 'LEAF2KEY'
# key->mv_data = LEAF2KEY(mp, mc->mc_ki[mc->mc_top], key->mv_size);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:5776:9: note: in expansion of macro 'NODEPTR'
# leaf = NODEPTR(mp, mc->mc_ki[mc->mc_top]);
# ^
# mdb.c: In function 'mdb_cursor_set':
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:6879:24: note: in expansion of macro 'NODEPTR'
# MDB_node *n2 = NODEPTR(mp, m2->mc_ki[mc->mc_top]);
# ^
# mdb.c:5803:19: error: 'NULL' undeclared (first use in this function)
# MDB_node *leaf = NULL;
# ^
# mdb.c:6912:3: warning: incompatible implicit declaration of built-in function 'memcpy' [enabled by default]
# memcpy(&pg, NODEDATA(leaf), sizeof(pg));
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:817:40: note: in expansion of macro 'PAGEHDRSZ'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:5817:8: note: in expansion of macro 'NUMKEYS'
# if (!NUMKEYS(mp)) {
# ^
# mdb.c: At top level:
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:817:50: note: in expansion of macro 'PAGEBASE'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:5817:8: note: in expansion of macro 'NUMKEYS'
# if (!NUMKEYS(mp)) {
# ^
# mdb.c:6935:30: error: unknown type name 'uint32_t'
# mdb_page_new(MDB_cursor *mc, uint32_t flags, int num, MDB_page **mp)
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:951:43: note: in expansion of macro 'PAGEHDRSZ'
# #define LEAF2KEY(p, i, ks) ((char *)(p) + PAGEHDRSZ + ((i)*(ks)))
# ^
# mdb.c:5823:22: note: in expansion of macro 'LEAF2KEY'
# nodekey.mv_data = LEAF2KEY(mp, 0, nodekey.mv_size);
# ^
# mdb.c:6973:1: error: unknown type name 'size_t'
# mdb_leaf_size(MDB_env *env, MDB_val *key, MDB_val *data)
# ^
# mdb.c: In function 'mdb_leaf_size':
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:5825:11: note: in expansion of macro 'NODEPTR'
# leaf = NODEPTR(mp, 0);
# ^
# mdb.c:6975:2: error: unknown type name 'size_t'
# size_t sz;
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:817:40: note: in expansion of macro 'PAGEHDRSZ'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:5840:25: note: in expansion of macro 'NUMKEYS'
# unsigned int nkeys = NUMKEYS(mp);
# ^
# mdb.c:882:28: error: expected expression before 'MDB_node'
# #define NODESIZE offsetof(MDB_node, mn_data)
# ^
# mdb.c:895:26: note: in expansion of macro 'NODESIZE'
# #define LEAFSIZE(k, d) (NODESIZE + (k)->mv_size + (d)->mv_size)
# ^
# mdb.c:6977:7: note: in expansion of macro 'LEAFSIZE'
# sz = LEAFSIZE(key, data);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:817:50: note: in expansion of macro 'PAGEBASE'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:5840:25: note: in expansion of macro 'NUMKEYS'
# unsigned int nkeys = NUMKEYS(mp);
# ^
# mdb.c:6978:9: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
# if (sz > env->me_nodemax) {
# ^
# mdb.c: At top level:
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:951:43: note: in expansion of macro 'PAGEHDRSZ'
# #define LEAF2KEY(p, i, ks) ((char *)(p) + PAGEHDRSZ + ((i)*(ks)))
# ^
# mdb.c:5843:24: note: in expansion of macro 'LEAF2KEY'
# nodekey.mv_data = LEAF2KEY(mp,
# ^
# mdb.c:6997:1: error: unknown type name 'size_t'
# mdb_branch_size(MDB_env *env, MDB_val *key)
# ^
# mdb.c: In function 'mdb_branch_size':
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:5846:13: note: in expansion of macro 'NODEPTR'
# leaf = NODEPTR(mp, nkeys-1);
# ^
# mdb.c:6999:2: error: unknown type name 'size_t'
# size_t sz;
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:817:40: note: in expansion of macro 'PAGEHDRSZ'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:5858:34: note: in expansion of macro 'NUMKEYS'
# if (mc->mc_ki[mc->mc_top] < NUMKEYS(mp)) {
# ^
# mdb.c:882:28: error: expected expression before 'MDB_node'
# #define NODESIZE offsetof(MDB_node, mn_data)
# ^
# mdb.c:890:23: note: in expansion of macro 'NODESIZE'
# #define INDXSIZE(k) (NODESIZE + ((k) == NULL ? 0 : (k)->mv_size))
# ^
# mdb.c:7001:7: note: in expansion of macro 'INDXSIZE'
# sz = INDXSIZE(key);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:817:50: note: in expansion of macro 'PAGEBASE'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:5858:34: note: in expansion of macro 'NUMKEYS'
# if (mc->mc_ki[mc->mc_top] < NUMKEYS(mp)) {
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:951:43: note: in expansion of macro 'PAGEHDRSZ'
# #define LEAF2KEY(p, i, ks) ((char *)(p) + PAGEHDRSZ + ((i)*(ks)))
# ^
# mdb.c:5861:26: note: in expansion of macro 'LEAF2KEY'
# nodekey.mv_data = LEAF2KEY(mp,
# ^
# mdb.c:890:42: error: 'NULL' undeclared (first use in this function)
# #define INDXSIZE(k) (NODESIZE + ((k) == NULL ? 0 : (k)->mv_size))
# ^
# mdb.c:7001:7: note: in expansion of macro 'INDXSIZE'
# sz = INDXSIZE(key);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:5864:15: note: in expansion of macro 'NODEPTR'
# leaf = NODEPTR(mp, mc->mc_ki[mc->mc_top]);
# ^
# mdb.c:7002:9: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
# if (sz > env->me_nodemax) {
# ^
# mdb.c: In function 'mdb_node_add':
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:817:40: note: in expansion of macro 'PAGEHDRSZ'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:5884:6: note: in expansion of macro 'NUMKEYS'
# NUMKEYS(mc->mc_pg[i])-1)
# ^
# mdb.c:7031:2: error: unknown type name 'size_t'
# size_t node_size = NODESIZE;
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:817:50: note: in expansion of macro 'PAGEBASE'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:5884:6: note: in expansion of macro 'NUMKEYS'
# NUMKEYS(mc->mc_pg[i])-1)
# ^
# mdb.c:882:28: error: expected expression before 'MDB_node'
# #define NODESIZE offsetof(MDB_node, mn_data)
# ^
# mdb.c:7031:23: note: in expansion of macro 'NODESIZE'
# size_t node_size = NODESIZE;
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:5927:10: note: in expansion of macro 'NODEPTR'
# leaf = NODEPTR(mp, 0);
# ^
# mdb.c:7032:2: error: unknown type name 'ssize_t'
# ssize_t room;
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:951:43: note: in expansion of macro 'PAGEHDRSZ'
# #define LEAF2KEY(p, i, ks) ((char *)(p) + PAGEHDRSZ + ((i)*(ks)))
# ^
# mdb.c:5937:19: note: in expansion of macro 'LEAF2KEY'
# key->mv_data = LEAF2KEY(mp, mc->mc_ki[mc->mc_top], key->mv_size);
# ^
# mdb.c:7036:18: error: 'NULL' undeclared (first use in this function)
# MDB_page *ofp = NULL; /* overflow page */
# ^
# mdb.c: In function 'mdb_cursor_first':
# mdb.c:6006:28: error: 'NULL' undeclared (first use in this function)
# rc = mdb_page_search(mc, NULL, MDB_PS_FIRST);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:951:43: note: in expansion of macro 'PAGEHDRSZ'
# #define LEAF2KEY(p, i, ks) ((char *)(p) + PAGEHDRSZ + ((i)*(ks)))
# ^
# mdb.c:7051:15: note: in expansion of macro 'LEAF2KEY'
# char *ptr = LEAF2KEY(mp, indx, ksize);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:6012:9: note: in expansion of macro 'NODEPTR'
# leaf = NODEPTR(mc->mc_pg[mc->mc_top], 0);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:817:40: note: in expansion of macro 'PAGEHDRSZ'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:7052:9: note: in expansion of macro 'NUMKEYS'
# dif = NUMKEYS(mp) - indx;
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:951:43: note: in expansion of macro 'PAGEHDRSZ'
# #define LEAF2KEY(p, i, ks) ((char *)(p) + PAGEHDRSZ + ((i)*(ks)))
# ^
# mdb.c:6020:18: note: in expansion of macro 'LEAF2KEY'
# key->mv_data = LEAF2KEY(mc->mc_pg[mc->mc_top], 0, key->mv_size);
# ^
# mdb.c: In function 'mdb_cursor_last':
# mdb.c:6052:29: error: 'NULL' undeclared (first use in this function)
# rc = mdb_page_search(mc, NULL, MDB_PS_LAST);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:817:50: note: in expansion of macro 'PAGEBASE'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:7052:9: note: in expansion of macro 'NUMKEYS'
# dif = NUMKEYS(mp) - indx;
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:817:40: note: in expansion of macro 'PAGEHDRSZ'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:6059:26: note: in expansion of macro 'NUMKEYS'
# mc->mc_ki[mc->mc_top] = NUMKEYS(mc->mc_pg[mc->mc_top]) - 1;
# ^
# mdb.c:7054:4: warning: implicit declaration of function 'memmove' [-Wimplicit-function-declaration]
# memmove(ptr+ksize, ptr, dif*ksize);
# ^
# mdb.c:7054:4: warning: incompatible implicit declaration of built-in function 'memmove' [enabled by default]
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:817:50: note: in expansion of macro 'PAGEBASE'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:6059:26: note: in expansion of macro 'NUMKEYS'
# mc->mc_ki[mc->mc_top] = NUMKEYS(mc->mc_pg[mc->mc_top]) - 1;
# ^
# mdb.c:7056:3: warning: incompatible implicit declaration of built-in function 'memcpy' [enabled by default]
# memcpy(ptr, key->mv_data, ksize);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:6061:9: note: in expansion of macro 'NODEPTR'
# leaf = NODEPTR(mc->mc_pg[mc->mc_top], mc->mc_ki[mc->mc_top]);
# ^
# mdb.c:7064:10: error: 'ssize_t' undeclared (first use in this function)
# room = (ssize_t)SIZELEFT(mp) - (ssize_t)sizeof(indx_t);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:951:43: note: in expansion of macro 'PAGEHDRSZ'
# #define LEAF2KEY(p, i, ks) ((char *)(p) + PAGEHDRSZ + ((i)*(ks)))
# ^
# mdb.c:6065:18: note: in expansion of macro 'LEAF2KEY'
# key->mv_data = LEAF2KEY(mc->mc_pg[mc->mc_top], mc->mc_ki[mc->mc_top], key->mv_size);
# ^
# mdb.c: In function 'mdb_cursor_get':
# mdb.c:6093:12: error: 'NULL' undeclared (first use in this function)
# if (mc == NULL)
# ^
# mdb.c:820:23: error: expected expression before 'indx_t'
# #define SIZELEFT(p) (indx_t)((p)->mp_upper - (p)->mp_lower)
# ^
# mdb.c:7064:18: note: in expansion of macro 'SIZELEFT'
# room = (ssize_t)SIZELEFT(mp) - (ssize_t)sizeof(indx_t);
# ^
# mdb.c:6094:10: error: 'EINVAL' undeclared (first use in this function)
# return EINVAL;
# ^
# mdb.c:7064:42: error: expected ';' before 'sizeof'
# room = (ssize_t)SIZELEFT(mp) - (ssize_t)sizeof(indx_t);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:817:40: note: in expansion of macro 'PAGEHDRSZ'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:6105:16: note: in expansion of macro 'NUMKEYS'
# int nkeys = NUMKEYS(mp);
# ^
# mdb.c:7072:40: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
# } else if (node_size + data->mv_size > mc->mc_txn->mt_env->me_nodemax) {
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:817:50: note: in expansion of macro 'PAGEBASE'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:6105:16: note: in expansion of macro 'NUMKEYS'
# int nkeys = NUMKEYS(mp);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:842:32: note: in expansion of macro 'PAGEHDRSZ'
# #define OVPAGES(size, psize) ((PAGEHDRSZ-1 + (size)) / (psize) + 1)
# ^
# mdb.c:7073:18: note: in expansion of macro 'OVPAGES'
# int ovpages = OVPAGES(data->mv_size, mc->mc_txn->mt_env->me_psize);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:951:43: note: in expansion of macro 'PAGEHDRSZ'
# #define LEAF2KEY(p, i, ks) ((char *)(p) + PAGEHDRSZ + ((i)*(ks)))
# ^
# mdb.c:6114:20: note: in expansion of macro 'LEAF2KEY'
# key->mv_data = LEAF2KEY(mp, mc->mc_ki[mc->mc_top], key->mv_size);
# ^
# mdb.c:7079:17: error: expected ')' before 'node_size'
# if ((ssize_t)node_size > room)
# ^
# mdb.c:7091:15: error: expected ')' before 'node_size'
# if ((ssize_t)node_size > room)
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:6116:22: note: in expansion of macro 'NODEPTR'
# MDB_node *leaf = NODEPTR(mp, mc->mc_ki[mc->mc_top]);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:817:40: note: in expansion of macro 'PAGEHDRSZ'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:7096:11: note: in expansion of macro 'NUMKEYS'
# for (i = NUMKEYS(mp); i > indx; i--)
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:817:40: note: in expansion of macro 'PAGEHDRSZ'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:6181:21: note: in expansion of macro 'NUMKEYS'
# data->mv_size = NUMKEYS(mx->mc_pg[mx->mc_top]) *
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:817:50: note: in expansion of macro 'PAGEBASE'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:7096:11: note: in expansion of macro 'NUMKEYS'
# for (i = NUMKEYS(mp); i > indx; i--)
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:817:50: note: in expansion of macro 'PAGEBASE'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:6181:21: note: in expansion of macro 'NUMKEYS'
# data->mv_size = NUMKEYS(mx->mc_pg[mx->mc_top]) *
# ^
# mdb.c:7096:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
# for (i = NUMKEYS(mp); i > indx; i--)
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:811:46: note: in expansion of macro 'PAGEHDRSZ'
# #define METADATA(p) ((void *)((char *)(p) + PAGEHDRSZ))
# ^
# mdb.c:6183:21: note: in expansion of macro 'METADATA'
# data->mv_data = METADATA(mx->mc_pg[mx->mc_top]);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:817:40: note: in expansion of macro 'PAGEHDRSZ'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:6184:29: note: in expansion of macro 'NUMKEYS'
# mx->mc_ki[mx->mc_top] = NUMKEYS(mx->mc_pg[mx->mc_top])-1;
# ^
# mdb.c:7101:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
# mdb_cassert(mc, ofs >= mp->mp_lower + sizeof(indx_t));
# ^
# mdb.c:1468:45: note: in definition of macro 'mdb_assert0'
# # define mdb_assert0(env, expr, expr_txt) ((expr) ? (void)0 : \
# ^
# mdb.c:7101:2: note: in expansion of macro 'mdb_cassert'
# mdb_cassert(mc, ofs >= mp->mp_lower + sizeof(indx_t));
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:817:50: note: in expansion of macro 'PAGEBASE'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:6184:29: note: in expansion of macro 'NUMKEYS'
# mx->mc_ki[mx->mc_top] = NUMKEYS(mx->mc_pg[mx->mc_top])-1;
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:7107:9: note: in expansion of macro 'NODEPTR'
# node = NODEPTR(mp, indx);
# ^
# mdb.c:885:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
# #define PGNO_TOPWORD ((pgno_t)-1 > 0xffffffffu ? 32 : 0)
# ^
# mdb.c:913:6: note: in expansion of macro 'PGNO_TOPWORD'
# if (PGNO_TOPWORD) (node)->mn_flags = (pgno) >> PGNO_TOPWORD; } while(0)
# ^
# mdb.c:7113:3: note: in expansion of macro 'SETPGNO'
# SETPGNO(node,pgno);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:6225:21: note: in expansion of macro 'NODEPTR'
# MDB_node *leaf = NODEPTR(mc->mc_pg[mc->mc_top], mc->mc_ki[mc->mc_top]);
# ^
# mdb.c:885:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
# #define PGNO_TOPWORD ((pgno_t)-1 > 0xffffffffu ? 32 : 0)
# ^
# mdb.c:913:49: note: in expansion of macro 'PGNO_TOPWORD'
# if (PGNO_TOPWORD) (node)->mn_flags = (pgno) >> PGNO_TOPWORD; } while(0)
# ^
# mdb.c:7113:3: note: in expansion of macro 'SETPGNO'
# SETPGNO(node,pgno);
# ^
# mdb.c: In function 'mdb_cursor_put':
# mdb.c:7116:3: warning: incompatible implicit declaration of built-in function 'memcpy' [enabled by default]
# memcpy(NODEKEY(node), key->mv_data, key->mv_size);
# ^
# mdb.c:6294:19: error: 'NULL' undeclared (first use in this function)
# MDB_node *leaf = NULL;
# ^
# mdb.c:6296:2: error: unknown type name 'uint16_t'
# uint16_t fp_flags;
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:811:46: note: in expansion of macro 'PAGEHDRSZ'
# #define METADATA(p) ((void *)((char *)(p) + PAGEHDRSZ))
# ^
# mdb.c:7129:12: note: in expansion of macro 'METADATA'
# ndata = METADATA(ofp);
# ^
# mdb.c:6301:2: error: unknown type name 'size_t'
# size_t nsize;
# ^
# mdb.c:7032:12: warning: variable 'room' set but not used [-Wunused-but-set-variable]
# ssize_t room;
# ^
# mdb.c: In function 'mdb_node_del':
# mdb.c:6307:10: error: 'EINVAL' undeclared (first use in this function)
# return EINVAL;
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:817:40: note: in expansion of macro 'PAGEHDRSZ'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:7165:12: note: in expansion of macro 'NUMKEYS'
# numkeys = NUMKEYS(mp);
# ^
# mdb.c:6325:52: error: 'EACCES' undeclared (first use in this function)
# return (mc->mc_txn->mt_flags & MDB_TXN_RDONLY) ? EACCES : MDB_BAD_TXN;
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:817:50: note: in expansion of macro 'PAGEBASE'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:7165:12: note: in expansion of macro 'NUMKEYS'
# numkeys = NUMKEYS(mp);
# ^
# mdb.c:6400:3: warning: implicit declaration of function 'mdb_page_new' [-Wimplicit-function-declaration]
# if ((rc2 = mdb_page_new(mc, P_LEAF, 1, &np))) {
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:951:43: note: in expansion of macro 'PAGEHDRSZ'
# #define LEAF2KEY(p, i, ks) ((char *)(p) + PAGEHDRSZ + ((i)*(ks)))
# ^
# mdb.c:7170:10: note: in expansion of macro 'LEAF2KEY'
# base = LEAF2KEY(mp, indx, ksize);
# ^
# mdb.c:882:28: error: expected expression before 'MDB_node'
# #define NODESIZE offsetof(MDB_node, mn_data)
# ^
# mdb.c:895:26: note: in expansion of macro 'NODESIZE'
# #define LEAFSIZE(k, d) (NODESIZE + (k)->mv_size + (d)->mv_size)
# ^
# mdb.c:6423:4: note: in expansion of macro 'LEAFSIZE'
# LEAFSIZE(key, data) > env->me_nodemax)
# ^
# mdb.c:7172:4: warning: incompatible implicit declaration of built-in function 'memmove' [enabled by default]
# memmove(base, base + ksize, x * ksize);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:6431:35: note: in expansion of macro 'PAGEHDRSZ'
# fp->mp_lower = fp->mp_upper = (PAGEHDRSZ-PAGEBASE);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:7178:9: note: in expansion of macro 'NODEPTR'
# node = NODEPTR(mp, indx);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:6431:45: note: in expansion of macro 'PAGEBASE'
# fp->mp_lower = fp->mp_upper = (PAGEHDRSZ-PAGEBASE);
# ^
# mdb.c:882:28: error: expected expression before 'MDB_node'
# #define NODESIZE offsetof(MDB_node, mn_data)
# ^
# mdb.c:7179:7: note: in expansion of macro 'NODESIZE'
# sz = NODESIZE + node->mn_ksize;
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:6432:22: note: in expansion of macro 'PAGEHDRSZ'
# olddata.mv_size = PAGEHDRSZ;
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:7198:37: note: in expansion of macro 'PAGEBASE'
# base = (char *)mp + mp->mp_upper + PAGEBASE;
# ^
# mdb.c:6440:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
# if (key->mv_size != ksize)
# ^
# mdb.c:7199:2: warning: incompatible implicit declaration of built-in function 'memmove' [enabled by default]
# memmove(base + sz, base, ptr - mp->mp_upper);
# ^
# mdb.c: In function 'mdb_node_shrink':
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:951:43: note: in expansion of macro 'PAGEHDRSZ'
# #define LEAF2KEY(p, i, ks) ((char *)(p) + PAGEHDRSZ + ((i)*(ks)))
# ^
# mdb.c:6442:10: note: in expansion of macro 'LEAF2KEY'
# ptr = LEAF2KEY(mc->mc_pg[mc->mc_top], mc->mc_ki[mc->mc_top], ksize);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:7218:9: note: in expansion of macro 'NODEPTR'
# node = NODEPTR(mp, indx);
# ^
# mdb.c:6443:4: warning: incompatible implicit declaration of built-in function 'memcpy' [enabled by default]
# memcpy(ptr, key->mv_data, ksize);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:817:40: note: in expansion of macro 'PAGEHDRSZ'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:7230:12: note: in expansion of macro 'NUMKEYS'
# for (i = NUMKEYS(sp); --i >= 0; )
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:6468:10: note: in expansion of macro 'NODEPTR'
# leaf = NODEPTR(mc->mc_pg[mc->mc_top], mc->mc_ki[mc->mc_top]);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:817:50: note: in expansion of macro 'PAGEBASE'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:7230:12: note: in expansion of macro 'NUMKEYS'
# for (i = NUMKEYS(sp); --i >= 0; )
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:7232:9: note: in expansion of macro 'PAGEHDRSZ'
# len = PAGEHDRSZ;
# ^
# mdb.c:6504:20: warning: incompatible implicit declaration of built-in function 'memcpy' [enabled by default]
# dkey.mv_data = memcpy(fp+1, olddata.mv_data, olddata.mv_size);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:7239:37: note: in expansion of macro 'PAGEBASE'
# base = (char *)mp + mp->mp_upper + PAGEBASE;
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:6508:21: note: in expansion of macro 'PAGEHDRSZ'
# fp->mp_lower = (PAGEHDRSZ-PAGEBASE);
# ^
# mdb.c:7240:2: warning: incompatible implicit declaration of built-in function 'memmove' [enabled by default]
# memmove(base + delta, base, (char *)sp + len - base);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:6508:31: note: in expansion of macro 'PAGEBASE'
# fp->mp_lower = (PAGEHDRSZ-PAGEBASE);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:817:40: note: in expansion of macro 'PAGEHDRSZ'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:7243:11: note: in expansion of macro 'NUMKEYS'
# for (i = NUMKEYS(mp); --i >= 0; ) {
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:6509:21: note: in expansion of macro 'PAGEHDRSZ'
# xdata.mv_size = PAGEHDRSZ + dkey.mv_size + data->mv_size;
# ^
# mdb.c:882:28: error: expected expression before 'MDB_node'
# #define NODESIZE offsetof(MDB_node, mn_data)
# ^
# mdb.c:6515:45: note: in expansion of macro 'NODESIZE'
# xdata.mv_size += 2 * (sizeof(indx_t) + NODESIZE) +
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:817:50: note: in expansion of macro 'PAGEBASE'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:7243:11: note: in expansion of macro 'NUMKEYS'
# for (i = NUMKEYS(mp); --i >= 0; ) {
# ^
# mdb.c: In function 'mdb_xcursor_init0':
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:6518:36: note: in expansion of macro 'PAGEBASE'
# fp->mp_upper = xdata.mv_size - PAGEBASE;
# ^
# mdb.c:7264:29: error: 'NULL' undeclared (first use in this function)
# mx->mx_cursor.mc_xcursor = NULL;
# ^
# mdb.c: In function 'mdb_xcursor_init1':
# mdb.c:7292:3: warning: incompatible implicit declaration of built-in function 'memcpy' [enabled by default]
# memcpy(&mx->mx_db, NODEDATA(node), sizeof(MDB_db));
# ^
# mdb.c:882:28: error: expected expression before 'MDB_node'
# #define NODESIZE offsetof(MDB_node, mn_data)
# ^
# mdb.c:588:21: note: in definition of macro 'EVEN'
# #define EVEN(n) (((n) + 1U) & -2) /* sign-extending -2 to match n+1U */
# ^
# mdb.c:6530:21: note: in expansion of macro 'NODESIZE'
# offset = EVEN(NODESIZE + sizeof(indx_t) +
# ^
# mdb.c:6535:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
# if (SIZELEFT(fp) < offset) {
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:817:40: note: in expansion of macro 'PAGEHDRSZ'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:7305:26: note: in expansion of macro 'NUMKEYS'
# mx->mx_db.md_entries = NUMKEYS(fp);
# ^
# mdb.c:882:28: error: expected expression before 'MDB_node'
# #define NODESIZE offsetof(MDB_node, mn_data)
# ^
# mdb.c:6551:8: note: in expansion of macro 'NODESIZE'
# if (NODESIZE + NODEKSZ(leaf) + xdata.mv_size > env->me_nodemax) {
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:817:50: note: in expansion of macro 'PAGEBASE'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:7305:26: note: in expansion of macro 'NUMKEYS'
# mx->mx_db.md_entries = NUMKEYS(fp);
# ^
# mdb.c: In function 'mdb_cursor_init':
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:817:40: note: in expansion of macro 'PAGEHDRSZ'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:6569:25: note: in expansion of macro 'NUMKEYS'
# dummy.md_entries = NUMKEYS(fp);
# ^
# mdb.c:7364:16: error: 'NULL' undeclared (first use in this function)
# mc->mc_next = NULL;
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:817:50: note: in expansion of macro 'PAGEBASE'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:6569:25: note: in expansion of macro 'NUMKEYS'
# dummy.md_entries = NUMKEYS(fp);
# ^
# mdb.c: In function 'mdb_cursor_open':
# mdb.c:6585:6: warning: incompatible implicit declaration of built-in function 'memcpy' [enabled by default]
# memcpy(METADATA(mp), METADATA(fp), NUMKEYS(fp) * fp->mp_pad);
# ^
# mdb.c:7392:2: error: unknown type name 'size_t'
# size_t size = sizeof(MDB_cursor);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:811:46: note: in expansion of macro 'PAGEHDRSZ'
# #define METADATA(p) ((void *)((char *)(p) + PAGEHDRSZ))
# ^
# mdb.c:6585:13: note: in expansion of macro 'METADATA'
# memcpy(METADATA(mp), METADATA(fp), NUMKEYS(fp) * fp->mp_pad);
# ^
# mdb.c:7395:10: error: 'EINVAL' undeclared (first use in this function)
# return EINVAL;
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:811:46: note: in expansion of macro 'PAGEHDRSZ'
# #define METADATA(p) ((void *)((char *)(p) + PAGEHDRSZ))
# ^
# mdb.c:6585:27: note: in expansion of macro 'METADATA'
# memcpy(METADATA(mp), METADATA(fp), NUMKEYS(fp) * fp->mp_pad);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:817:40: note: in expansion of macro 'PAGEHDRSZ'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:6585:41: note: in expansion of macro 'NUMKEYS'
# memcpy(METADATA(mp), METADATA(fp), NUMKEYS(fp) * fp->mp_pad);
# ^
# mdb.c:7406:12: warning: incompatible implicit declaration of built-in function 'malloc' [enabled by default]
# if ((mc = malloc(size)) != NULL) {
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:817:50: note: in expansion of macro 'PAGEBASE'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:6585:41: note: in expansion of macro 'NUMKEYS'
# memcpy(METADATA(mp), METADATA(fp), NUMKEYS(fp) * fp->mp_pad);
# ^
# mdb.c:7406:29: error: 'NULL' undeclared (first use in this function)
# if ((mc = malloc(size)) != NULL) {
# ^
# mdb.c:6587:6: warning: incompatible implicit declaration of built-in function 'memcpy' [enabled by default]
# memcpy((char *)mp + mp->mp_upper + PAGEBASE, (char *)fp + fp->mp_upper + PAGEBASE,
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:6587:41: note: in expansion of macro 'PAGEBASE'
# memcpy((char *)mp + mp->mp_upper + PAGEBASE, (char *)fp + fp->mp_upper + PAGEBASE,
# ^
# mdb.c:7414:10: error: 'ENOMEM' undeclared (first use in this function)
# return ENOMEM;
# ^
# mdb.c: In function 'mdb_cursor_renew':
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:6587:79: note: in expansion of macro 'PAGEBASE'
# memcpy((char *)mp + mp->mp_upper + PAGEBASE, (char *)fp + fp->mp_upper + PAGEBASE,
# ^
# mdb.c:7426:10: error: 'EINVAL' undeclared (first use in this function)
# return EINVAL;
# ^
# mdb.c: At top level:
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:6588:40: note: in expansion of macro 'PAGEBASE'
# olddata.mv_size - fp->mp_upper - PAGEBASE);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:817:40: note: in expansion of macro 'PAGEHDRSZ'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:6589:18: note: in expansion of macro 'NUMKEYS'
# for (i=0; i
# ^
# mdb.c:7440:34: error: unknown type name 'size_t'
# mdb_cursor_count(MDB_cursor *mc, size_t *countp)
# ^
# mdb.c: In function 'mdb_cursor_close':
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:817:50: note: in expansion of macro 'PAGEBASE'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:6589:18: note: in expansion of macro 'NUMKEYS'
# for (i=0; i
# ^
# mdb.c:7482:3: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
# free(mc);
# ^
# mdb.c: In function 'mdb_cursor_txn':
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:842:32: note: in expansion of macro 'PAGEHDRSZ'
# #define OVPAGES(size, psize) ((PAGEHDRSZ-1 + (size)) / (psize) + 1)
# ^
# mdb.c:6609:33: note: in expansion of macro 'OVPAGES'
# int level, ovpages, dpages = OVPAGES(data->mv_size, env->me_psize);
# ^
# mdb.c:7489:18: error: 'NULL' undeclared (first use in this function)
# if (!mc) return NULL;
# ^
# mdb.c:6611:4: warning: incompatible implicit declaration of built-in function 'memcpy' [enabled by default]
# memcpy(&pg, olddata.mv_data, sizeof(pg));
# ^
# mdb.c: In function 'mdb_update_key':
# mdb.c:6634:6: error: unknown type name 'size_t'
# size_t sz = (size_t) env->me_psize * ovpages, off;
# ^
# mdb.c:7510:2: error: unknown type name 'size_t'
# size_t len;
# ^
# mdb.c:6634:19: error: 'size_t' undeclared (first use in this function)
# size_t sz = (size_t) env->me_psize * ovpages, off;
# ^
# mdb.c:6634:27: error: expected ',' or ';' before 'env'
# size_t sz = (size_t) env->me_psize * ovpages, off;
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:7517:9: note: in expansion of macro 'NODEPTR'
# node = NODEPTR(mp, indx);
# ^
# mdb.c:6638:14: error: 'ENOMEM' undeclared (first use in this function)
# return ENOMEM;
# ^
# mdb.c:6648:7: error: 'off' undeclared (first use in this function)
# off = (PAGEHDRSZ + data->mv_size) & -sizeof(size_t);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:6648:14: note: in expansion of macro 'PAGEHDRSZ'
# off = (PAGEHDRSZ + data->mv_size) & -sizeof(size_t);
# ^
# mdb.c:885:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
# #define PGNO_TOPWORD ((pgno_t)-1 > 0xffffffffu ? 32 : 0)
# ^
# mdb.c:909:4: note: in expansion of macro 'PGNO_TOPWORD'
# (PGNO_TOPWORD ? ((pgno_t) (node)->mn_flags << PGNO_TOPWORD) : 0))
# ^
# mdb.c:7544:11: note: in expansion of macro 'NODEPGNO'
# pgno = NODEPGNO(node);
# ^
# mdb.c:6649:23: error: expected expression before ')' token
# memcpy((size_t *)((char *)np + off),
# ^
# mdb.c:7546:35: error: 'NULL' undeclared (first use in this function)
# return mdb_page_split(mc, key, NULL, pgno, MDB_SPLIT_REPLACE);
# ^
# mdb.c:6650:17: error: expected expression before ')' token
# (size_t *)((char *)omp + off), sz - off);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:6651:12: note: in expansion of macro 'PAGEHDRSZ'
# sz = PAGEHDRSZ;
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:817:40: note: in expansion of macro 'PAGEHDRSZ'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:7549:13: note: in expansion of macro 'NUMKEYS'
# numkeys = NUMKEYS(mp);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:811:46: note: in expansion of macro 'PAGEHDRSZ'
# #define METADATA(p) ((void *)((char *)(p) + PAGEHDRSZ))
# ^
# mdb.c:6658:22: note: in expansion of macro 'METADATA'
# data->mv_data = METADATA(omp);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:811:46: note: in expansion of macro 'PAGEHDRSZ'
# #define METADATA(p) ((void *)((char *)(p) + PAGEHDRSZ))
# ^
# mdb.c:6660:13: note: in expansion of macro 'METADATA'
# memcpy(METADATA(omp), data->mv_data, data->mv_size);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:817:50: note: in expansion of macro 'PAGEBASE'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:7549:13: note: in expansion of macro 'NUMKEYS'
# numkeys = NUMKEYS(mp);
# ^
# mdb.c:6674:5: warning: incompatible implicit declaration of built-in function 'memcpy' [enabled by default]
# memcpy(olddata.mv_data, data->mv_data, data->mv_size);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:7555:38: note: in expansion of macro 'PAGEBASE'
# base = (char *)mp + mp->mp_upper + PAGEBASE;
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:6715:21: note: in expansion of macro 'NODEPTR'
# MDB_node *n2 = NODEPTR(mp, m3->mc_ki[i]);
# ^
# mdb.c:6731:11: error: expected ';' before 'ecount'
# size_t ecount;
# ^
# mdb.c:882:28: error: expected expression before 'MDB_node'
# #define NODESIZE offsetof(MDB_node, mn_data)
# ^
# mdb.c:7556:30: note: in expansion of macro 'NODESIZE'
# len = ptr - mp->mp_upper + NODESIZE;
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:6735:11: note: in expansion of macro 'NODEPTR'
# leaf = NODEPTR(mc->mc_pg[mc->mc_top], mc->mc_ki[mc->mc_top]);
# ^
# mdb.c:7557:3: warning: incompatible implicit declaration of built-in function 'memmove' [enabled by default]
# memmove(base - delta, base, len);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:817:40: note: in expansion of macro 'PAGEHDRSZ'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:6760:17: note: in expansion of macro 'NUMKEYS'
# int nkeys = NUMKEYS(mp);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:7560:10: note: in expansion of macro 'NODEPTR'
# node = NODEPTR(mp, indx);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:817:50: note: in expansion of macro 'PAGEBASE'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:6760:17: note: in expansion of macro 'NUMKEYS'
# int nkeys = NUMKEYS(mp);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:6769:23: note: in expansion of macro 'NODEPTR'
# MDB_node *n2 = NODEPTR(mp, m2->mc_ki[i]);
# ^
# mdb.c:7568:3: warning: incompatible implicit declaration of built-in function 'memcpy' [enabled by default]
# memcpy(NODEKEY(node), key->mv_data, key->mv_size);
# ^
# mdb.c: In function 'mdb_node_move':
# mdb.c:6776:4: error: 'ecount' undeclared (first use in this function)
# ecount = mc->mc_xcursor->mx_db.md_entries;
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:951:43: note: in expansion of macro 'PAGEHDRSZ'
# #define LEAF2KEY(p, i, ks) ((char *)(p) + PAGEHDRSZ + ((i)*(ks)))
# ^
# mdb.c:7613:17: note: in expansion of macro 'LEAF2KEY'
# key.mv_data = LEAF2KEY(csrc->mc_pg[csrc->mc_top], csrc->mc_ki[csrc->mc_top], key.mv_size);
# ^
# mdb.c:6782:5: warning: incompatible implicit declaration of built-in function 'memcpy' [enabled by default]
# memcpy(db, &mc->mc_xcursor->mx_db, sizeof(MDB_db));
# ^
# mdb.c: In function 'mdb_cursor_del':
# mdb.c:7615:18: error: 'NULL' undeclared (first use in this function)
# data.mv_data = NULL;
# ^
# mdb.c:6827:52: error: 'EACCES' undeclared (first use in this function)
# return (mc->mc_txn->mt_flags & MDB_TXN_RDONLY) ? EACCES : MDB_BAD_TXN;
# ^
# mdb.c:6830:10: error: 'EINVAL' undeclared (first use in this function)
# return EINVAL;
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:7619:13: note: in expansion of macro 'NODEPTR'
# srcnode = NODEPTR(csrc->mc_pg[csrc->mc_top], csrc->mc_ki[csrc->mc_top]);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:817:40: note: in expansion of macro 'PAGEHDRSZ'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:6832:31: note: in expansion of macro 'NUMKEYS'
# if (mc->mc_ki[mc->mc_top] >= NUMKEYS(mc->mc_pg[mc->mc_top]))
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:817:50: note: in expansion of macro 'PAGEBASE'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:6832:31: note: in expansion of macro 'NUMKEYS'
# if (mc->mc_ki[mc->mc_top] >= NUMKEYS(mc->mc_pg[mc->mc_top]))
# ^
# mdb.c:7620:24: error: 'size_t' undeclared (first use in this function)
# mdb_cassert(csrc, !((size_t)srcnode & 1));
# ^
# mdb.c:1468:45: note: in definition of macro 'mdb_assert0'
# # define mdb_assert0(env, expr, expr_txt) ((expr) ? (void)0 : \
# ^
# mdb.c:7620:3: note: in expansion of macro 'mdb_cassert'
# mdb_cassert(csrc, !((size_t)srcnode & 1));
# ^
# mdb.c:6835:57: error: 'NULL' undeclared (first use in this function)
# if (!(flags & MDB_NOSPILL) && (rc = mdb_page_spill(mc, NULL, NULL)))
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:6845:9: note: in expansion of macro 'NODEPTR'
# leaf = NODEPTR(mp, mc->mc_ki[mc->mc_top]);
# ^
# mdb.c:7620:31: error: expected ')' before 'srcnode'
# mdb_cassert(csrc, !((size_t)srcnode & 1));
# ^
# mdb.c:1468:45: note: in definition of macro 'mdb_assert0'
# # define mdb_assert0(env, expr, expr_txt) ((expr) ? (void)0 : \
# ^
# mdb.c:7620:3: note: in expansion of macro 'mdb_cassert'
# mdb_cassert(csrc, !((size_t)srcnode & 1));
# ^
# mdb.c:6864:6: warning: incompatible implicit declaration of built-in function 'memcpy' [enabled by default]
# memcpy(db, &mc->mc_xcursor->mx_db, sizeof(MDB_db));
# ^
# mdb.c:885:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
# #define PGNO_TOPWORD ((pgno_t)-1 > 0xffffffffu ? 32 : 0)
# ^
# mdb.c:909:4: note: in expansion of macro 'PGNO_TOPWORD'
# (PGNO_TOPWORD ? ((pgno_t) (node)->mn_flags << PGNO_TOPWORD) : 0))
# ^
# mdb.c:7621:11: note: in expansion of macro 'NODEPGNO'
# srcpg = NODEPGNO(srcnode);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:6869:13: note: in expansion of macro 'NODEPTR'
# leaf = NODEPTR(mp, mc->mc_ki[mc->mc_top]);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:951:43: note: in expansion of macro 'PAGEHDRSZ'
# #define LEAF2KEY(p, i, ks) ((char *)(p) + PAGEHDRSZ + ((i)*(ks)))
# ^
# mdb.c:7632:19: note: in expansion of macro 'LEAF2KEY'
# key.mv_data = LEAF2KEY(csrc->mc_pg[csrc->mc_top], 0, key.mv_size);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:6879:24: note: in expansion of macro 'NODEPTR'
# MDB_node *n2 = NODEPTR(mp, m2->mc_ki[mc->mc_top]);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:7634:10: note: in expansion of macro 'NODEPTR'
# s2 = NODEPTR(csrc->mc_pg[csrc->mc_top], 0);
# ^
# mdb.c:6912:3: warning: incompatible implicit declaration of built-in function 'memcpy' [enabled by default]
# memcpy(&pg, NODEDATA(leaf), sizeof(pg));
# ^
# mdb.c: At top level:
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:951:43: note: in expansion of macro 'PAGEHDRSZ'
# #define LEAF2KEY(p, i, ks) ((char *)(p) + PAGEHDRSZ + ((i)*(ks)))
# ^
# mdb.c:7659:19: note: in expansion of macro 'LEAF2KEY'
# bkey.mv_data = LEAF2KEY(mn.mc_pg[mn.mc_top], 0, bkey.mv_size);
# ^
# mdb.c:6935:30: error: unknown type name 'uint32_t'
# mdb_page_new(MDB_cursor *mc, uint32_t flags, int num, MDB_page **mp)
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:7661:9: note: in expansion of macro 'NODEPTR'
# s2 = NODEPTR(mn.mc_pg[mn.mc_top], 0);
# ^
# mdb.c:6973:1: error: unknown type name 'size_t'
# mdb_leaf_size(MDB_env *env, MDB_val *key, MDB_val *data)
# ^
# mdb.c: In function 'mdb_leaf_size':
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:7721:23: note: in expansion of macro 'NODEPTR'
# MDB_node *node = NODEPTR(m3->mc_pg[csrc->mc_top], m3->mc_ki[csrc->mc_top]);
# ^
# mdb.c:6975:2: error: unknown type name 'size_t'
# size_t sz;
# ^
# mdb.c:882:28: error: expected expression before 'MDB_node'
# #define NODESIZE offsetof(MDB_node, mn_data)
# ^
# mdb.c:895:26: note: in expansion of macro 'NODESIZE'
# #define LEAFSIZE(k, d) (NODESIZE + (k)->mv_size + (d)->mv_size)
# ^
# mdb.c:6977:7: note: in expansion of macro 'LEAFSIZE'
# sz = LEAFSIZE(key, data);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:7747:24: note: in expansion of macro 'NODEPTR'
# MDB_node *node = NODEPTR(m3->mc_pg[csrc->mc_top], m3->mc_ki[csrc->mc_top]);
# ^
# mdb.c:6978:9: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
# if (sz > env->me_nodemax) {
# ^
# mdb.c: At top level:
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:951:43: note: in expansion of macro 'PAGEHDRSZ'
# #define LEAF2KEY(p, i, ks) ((char *)(p) + PAGEHDRSZ + ((i)*(ks)))
# ^
# mdb.c:7761:19: note: in expansion of macro 'LEAF2KEY'
# key.mv_data = LEAF2KEY(csrc->mc_pg[csrc->mc_top], 0, key.mv_size);
# ^
# mdb.c:6997:1: error: unknown type name 'size_t'
# mdb_branch_size(MDB_env *env, MDB_val *key)
# ^
# mdb.c: In function 'mdb_branch_size':
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:7763:15: note: in expansion of macro 'NODEPTR'
# srcnode = NODEPTR(csrc->mc_pg[csrc->mc_top], 0);
# ^
# mdb.c:6999:2: error: unknown type name 'size_t'
# size_t sz;
# ^
# mdb.c:882:28: error: expected expression before 'MDB_node'
# #define NODESIZE offsetof(MDB_node, mn_data)
# ^
# mdb.c:890:23: note: in expansion of macro 'NODESIZE'
# #define INDXSIZE(k) (NODESIZE + ((k) == NULL ? 0 : (k)->mv_size))
# ^
# mdb.c:7001:7: note: in expansion of macro 'INDXSIZE'
# sz = INDXSIZE(key);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:951:43: note: in expansion of macro 'PAGEHDRSZ'
# #define LEAF2KEY(p, i, ks) ((char *)(p) + PAGEHDRSZ + ((i)*(ks)))
# ^
# mdb.c:7792:19: note: in expansion of macro 'LEAF2KEY'
# key.mv_data = LEAF2KEY(cdst->mc_pg[cdst->mc_top], 0, key.mv_size);
# ^
# mdb.c:890:42: error: 'NULL' undeclared (first use in this function)
# #define INDXSIZE(k) (NODESIZE + ((k) == NULL ? 0 : (k)->mv_size))
# ^
# mdb.c:7001:7: note: in expansion of macro 'INDXSIZE'
# sz = INDXSIZE(key);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:7794:15: note: in expansion of macro 'NODEPTR'
# srcnode = NODEPTR(cdst->mc_pg[cdst->mc_top], 0);
# ^
# mdb.c:7002:9: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
# if (sz > env->me_nodemax) {
# ^
# mdb.c: In function 'mdb_node_add':
# mdb.c: In function 'mdb_page_merge':
# mdb.c:7031:2: error: unknown type name 'size_t'
# size_t node_size = NODESIZE;
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:817:40: note: in expansion of macro 'PAGEHDRSZ'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:7858:14: note: in expansion of macro 'NUMKEYS'
# j = nkeys = NUMKEYS(pdst);
# ^
# mdb.c:882:28: error: expected expression before 'MDB_node'
# #define NODESIZE offsetof(MDB_node, mn_data)
# ^
# mdb.c:7031:23: note: in expansion of macro 'NODESIZE'
# size_t node_size = NODESIZE;
# ^
# mdb.c:7032:2: error: unknown type name 'ssize_t'
# ssize_t room;
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:817:50: note: in expansion of macro 'PAGEBASE'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:7858:14: note: in expansion of macro 'NUMKEYS'
# j = nkeys = NUMKEYS(pdst);
# ^
# mdb.c:7036:18: error: 'NULL' undeclared (first use in this function)
# MDB_page *ofp = NULL; /* overflow page */
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:811:46: note: in expansion of macro 'PAGEHDRSZ'
# #define METADATA(p) ((void *)((char *)(p) + PAGEHDRSZ))
# ^
# mdb.c:7861:17: note: in expansion of macro 'METADATA'
# key.mv_data = METADATA(psrc);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:951:43: note: in expansion of macro 'PAGEHDRSZ'
# #define LEAF2KEY(p, i, ks) ((char *)(p) + PAGEHDRSZ + ((i)*(ks)))
# ^
# mdb.c:7051:15: note: in expansion of macro 'LEAF2KEY'
# char *ptr = LEAF2KEY(mp, indx, ksize);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:817:40: note: in expansion of macro 'PAGEHDRSZ'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:7052:9: note: in expansion of macro 'NUMKEYS'
# dif = NUMKEYS(mp) - indx;
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:817:40: note: in expansion of macro 'PAGEHDRSZ'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:7862:19: note: in expansion of macro 'NUMKEYS'
# for (i = 0; i < NUMKEYS(psrc); i++, j++) {
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:817:50: note: in expansion of macro 'PAGEBASE'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:7862:19: note: in expansion of macro 'NUMKEYS'
# for (i = 0; i < NUMKEYS(psrc); i++, j++) {
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:817:50: note: in expansion of macro 'PAGEBASE'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:7052:9: note: in expansion of macro 'NUMKEYS'
# dif = NUMKEYS(mp) - indx;
# ^
# mdb.c:7054:4: warning: implicit declaration of function 'memmove' [-Wimplicit-function-declaration]
# memmove(ptr+ksize, ptr, dif*ksize);
# ^
# mdb.c:7054:4: warning: incompatible implicit declaration of built-in function 'memmove' [enabled by default]
# mdb.c:7863:37: error: 'NULL' undeclared (first use in this function)
# rc = mdb_node_add(cdst, j, &key, NULL, 0, 0);
# ^
# mdb.c:7056:3: warning: incompatible implicit declaration of built-in function 'memcpy' [enabled by default]
# memcpy(ptr, key->mv_data, ksize);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:817:40: note: in expansion of macro 'PAGEHDRSZ'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:7869:19: note: in expansion of macro 'NUMKEYS'
# for (i = 0; i < NUMKEYS(psrc); i++, j++) {
# ^
# mdb.c:7064:10: error: 'ssize_t' undeclared (first use in this function)
# room = (ssize_t)SIZELEFT(mp) - (ssize_t)sizeof(indx_t);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:817:50: note: in expansion of macro 'PAGEBASE'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:7869:19: note: in expansion of macro 'NUMKEYS'
# for (i = 0; i < NUMKEYS(psrc); i++, j++) {
# ^
# mdb.c:820:23: error: expected expression before 'indx_t'
# #define SIZELEFT(p) (indx_t)((p)->mp_upper - (p)->mp_lower)
# ^
# mdb.c:7064:18: note: in expansion of macro 'SIZELEFT'
# room = (ssize_t)SIZELEFT(mp) - (ssize_t)sizeof(indx_t);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:7870:14: note: in expansion of macro 'NODEPTR'
# srcnode = NODEPTR(psrc, i);
# ^
# mdb.c:7064:42: error: expected ';' before 'sizeof'
# room = (ssize_t)SIZELEFT(mp) - (ssize_t)sizeof(indx_t);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:951:43: note: in expansion of macro 'PAGEHDRSZ'
# #define LEAF2KEY(p, i, ks) ((char *)(p) + PAGEHDRSZ + ((i)*(ks)))
# ^
# mdb.c:7882:20: note: in expansion of macro 'LEAF2KEY'
# key.mv_data = LEAF2KEY(mn.mc_pg[mn.mc_top], 0, key.mv_size);
# ^
# mdb.c:7072:40: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
# } else if (node_size + data->mv_size > mc->mc_txn->mt_env->me_nodemax) {
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:842:32: note: in expansion of macro 'PAGEHDRSZ'
# #define OVPAGES(size, psize) ((PAGEHDRSZ-1 + (size)) / (psize) + 1)
# ^
# mdb.c:7073:18: note: in expansion of macro 'OVPAGES'
# int ovpages = OVPAGES(data->mv_size, mc->mc_txn->mt_env->me_psize);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:7884:11: note: in expansion of macro 'NODEPTR'
# s2 = NODEPTR(mn.mc_pg[mn.mc_top], 0);
# ^
# mdb.c:7079:17: error: expected ')' before 'node_size'
# if ((ssize_t)node_size > room)
# ^
# mdb.c:7091:15: error: expected ')' before 'node_size'
# if ((ssize_t)node_size > room)
# ^
# mdb.c:885:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
# #define PGNO_TOPWORD ((pgno_t)-1 > 0xffffffffu ? 32 : 0)
# ^
# mdb.c:909:4: note: in expansion of macro 'PGNO_TOPWORD'
# (PGNO_TOPWORD ? ((pgno_t) (node)->mn_flags << PGNO_TOPWORD) : 0))
# ^
# mdb.c:7895:44: note: in expansion of macro 'NODEPGNO'
# rc = mdb_node_add(cdst, j, &key, &data, NODEPGNO(srcnode), srcnode->mn_flags);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:817:40: note: in expansion of macro 'PAGEHDRSZ'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:7096:11: note: in expansion of macro 'NUMKEYS'
# for (i = NUMKEYS(mp); i > indx; i--)
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:7953:22: note: in expansion of macro 'NODEPTR'
# MDB_node *node = NODEPTR(m3->mc_pg[top], m3->mc_ki[top]);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:817:50: note: in expansion of macro 'PAGEBASE'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:7096:11: note: in expansion of macro 'NUMKEYS'
# for (i = NUMKEYS(mp); i > indx; i--)
# ^
# mdb.c:7961:3: error: unknown type name 'uint16_t'
# uint16_t depth = cdst->mc_db->md_depth;
# ^
# mdb.c: In function 'mdb_rebalance':
# mdb.c:7096:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
# for (i = NUMKEYS(mp); i > indx; i--)
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:823:54: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEFILL(env, p) (1000L * ((env)->me_psize - PAGEHDRSZ - SIZELEFT(p)) / \
# ^
# mdb.c:8022:6: note: in expansion of macro 'PAGEFILL'
# if (PAGEFILL(mc->mc_txn->mt_env, mc->mc_pg[mc->mc_top]) >= thresh &&
# ^
# mdb.c:7101:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
# mdb_cassert(mc, ofs >= mp->mp_lower + sizeof(indx_t));
# ^
# mdb.c:1468:45: note: in definition of macro 'mdb_assert0'
# # define mdb_assert0(env, expr, expr_txt) ((expr) ? (void)0 : \
# ^
# mdb.c:7101:2: note: in expansion of macro 'mdb_cassert'
# mdb_cassert(mc, ofs >= mp->mp_lower + sizeof(indx_t));
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:824:24: note: in expansion of macro 'PAGEHDRSZ'
# ((env)->me_psize - PAGEHDRSZ))
# ^
# mdb.c:8022:6: note: in expansion of macro 'PAGEFILL'
# if (PAGEFILL(mc->mc_txn->mt_env, mc->mc_pg[mc->mc_top]) >= thresh &&
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:7107:9: note: in expansion of macro 'NODEPTR'
# node = NODEPTR(mp, indx);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:817:40: note: in expansion of macro 'PAGEHDRSZ'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:8023:3: note: in expansion of macro 'NUMKEYS'
# NUMKEYS(mc->mc_pg[mc->mc_top]) >= minkeys) {
# ^
# mdb.c:885:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
# #define PGNO_TOPWORD ((pgno_t)-1 > 0xffffffffu ? 32 : 0)
# ^
# mdb.c:913:6: note: in expansion of macro 'PGNO_TOPWORD'
# if (PGNO_TOPWORD) (node)->mn_flags = (pgno) >> PGNO_TOPWORD; } while(0)
# ^
# mdb.c:7113:3: note: in expansion of macro 'SETPGNO'
# SETPGNO(node,pgno);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:817:50: note: in expansion of macro 'PAGEBASE'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:8023:3: note: in expansion of macro 'NUMKEYS'
# NUMKEYS(mc->mc_pg[mc->mc_top]) >= minkeys) {
# ^
# mdb.c:885:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
# #define PGNO_TOPWORD ((pgno_t)-1 > 0xffffffffu ? 32 : 0)
# ^
# mdb.c:913:49: note: in expansion of macro 'PGNO_TOPWORD'
# if (PGNO_TOPWORD) (node)->mn_flags = (pgno) >> PGNO_TOPWORD; } while(0)
# ^
# mdb.c:7113:3: note: in expansion of macro 'SETPGNO'
# SETPGNO(node,pgno);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:817:40: note: in expansion of macro 'PAGEHDRSZ'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:8035:7: note: in expansion of macro 'NUMKEYS'
# if (NUMKEYS(mp) == 0) {
# ^
# mdb.c:7116:3: warning: incompatible implicit declaration of built-in function 'memcpy' [enabled by default]
# memcpy(NODEKEY(node), key->mv_data, key->mv_size);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:817:50: note: in expansion of macro 'PAGEBASE'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:8035:7: note: in expansion of macro 'NUMKEYS'
# if (NUMKEYS(mp) == 0) {
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:811:46: note: in expansion of macro 'PAGEHDRSZ'
# #define METADATA(p) ((void *)((char *)(p) + PAGEHDRSZ))
# ^
# mdb.c:7129:12: note: in expansion of macro 'METADATA'
# ndata = METADATA(ofp);
# ^
# mdb.c:7032:12: warning: variable 'room' set but not used [-Wunused-but-set-variable]
# ssize_t room;
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:817:40: note: in expansion of macro 'PAGEHDRSZ'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:8065:31: note: in expansion of macro 'NUMKEYS'
# } else if (IS_BRANCH(mp) && NUMKEYS(mp) == 1) {
# ^
# mdb.c: In function 'mdb_node_del':
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:817:40: note: in expansion of macro 'PAGEHDRSZ'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:7165:12: note: in expansion of macro 'NUMKEYS'
# numkeys = NUMKEYS(mp);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:817:50: note: in expansion of macro 'PAGEBASE'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:8065:31: note: in expansion of macro 'NUMKEYS'
# } else if (IS_BRANCH(mp) && NUMKEYS(mp) == 1) {
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:817:50: note: in expansion of macro 'PAGEBASE'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:7165:12: note: in expansion of macro 'NUMKEYS'
# numkeys = NUMKEYS(mp);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:908:4: note: in definition of macro 'NODEPGNO'
# ((node)->mn_lo | ((pgno_t) (node)->mn_hi << 16) | \
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:8071:34: note: in expansion of macro 'NODEPTR'
# mc->mc_db->md_root = NODEPGNO(NODEPTR(mp, 0));
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:951:43: note: in expansion of macro 'PAGEHDRSZ'
# #define LEAF2KEY(p, i, ks) ((char *)(p) + PAGEHDRSZ + ((i)*(ks)))
# ^
# mdb.c:7170:10: note: in expansion of macro 'LEAF2KEY'
# base = LEAF2KEY(mp, indx, ksize);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:908:30: note: in definition of macro 'NODEPGNO'
# ((node)->mn_lo | ((pgno_t) (node)->mn_hi << 16) | \
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:8071:34: note: in expansion of macro 'NODEPTR'
# mc->mc_db->md_root = NODEPGNO(NODEPTR(mp, 0));
# ^
# mdb.c:7172:4: warning: incompatible implicit declaration of built-in function 'memmove' [enabled by default]
# memmove(base, base + ksize, x * ksize);
# ^
# mdb.c:885:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
# #define PGNO_TOPWORD ((pgno_t)-1 > 0xffffffffu ? 32 : 0)
# ^
# mdb.c:909:4: note: in expansion of macro 'PGNO_TOPWORD'
# (PGNO_TOPWORD ? ((pgno_t) (node)->mn_flags << PGNO_TOPWORD) : 0))
# ^
# mdb.c:8071:25: note: in expansion of macro 'NODEPGNO'
# mc->mc_db->md_root = NODEPGNO(NODEPTR(mp, 0));
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:7178:9: note: in expansion of macro 'NODEPTR'
# node = NODEPTR(mp, indx);
# ^
# mdb.c:882:28: error: expected expression before 'MDB_node'
# #define NODESIZE offsetof(MDB_node, mn_data)
# ^
# mdb.c:7179:7: note: in expansion of macro 'NODESIZE'
# sz = NODESIZE + node->mn_ksize;
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:909:30: note: in definition of macro 'NODEPGNO'
# (PGNO_TOPWORD ? ((pgno_t) (node)->mn_flags << PGNO_TOPWORD) : 0))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:8071:34: note: in expansion of macro 'NODEPTR'
# mc->mc_db->md_root = NODEPGNO(NODEPTR(mp, 0));
# ^
# mdb.c:8072:66: error: 'NULL' undeclared (first use in this function)
# rc = mdb_page_get(mc->mc_txn,mc->mc_db->md_root,&mc->mc_pg[0],NULL);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:7198:37: note: in expansion of macro 'PAGEBASE'
# base = (char *)mp + mp->mp_upper + PAGEBASE;
# ^
# mdb.c:7199:2: warning: incompatible implicit declaration of built-in function 'memmove' [enabled by default]
# memmove(base + sz, base, ptr - mp->mp_upper);
# ^
# mdb.c: In function 'mdb_node_shrink':
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:7218:9: note: in expansion of macro 'NODEPTR'
# node = NODEPTR(mp, indx);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:1468:45: note: in definition of macro 'mdb_assert0'
# # define mdb_assert0(env, expr, expr_txt) ((expr) ? (void)0 : \
# ^
# mdb.c:8114:2: note: in expansion of macro 'mdb_cassert'
# mdb_cassert(mc, NUMKEYS(mc->mc_pg[ptop]) > 1);
# ^
# mdb.c:817:40: note: in expansion of macro 'PAGEHDRSZ'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:8114:18: note: in expansion of macro 'NUMKEYS'
# mdb_cassert(mc, NUMKEYS(mc->mc_pg[ptop]) > 1);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:817:40: note: in expansion of macro 'PAGEHDRSZ'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:7230:12: note: in expansion of macro 'NUMKEYS'
# for (i = NUMKEYS(sp); --i >= 0; )
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:817:50: note: in expansion of macro 'PAGEBASE'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:7230:12: note: in expansion of macro 'NUMKEYS'
# for (i = NUMKEYS(sp); --i >= 0; )
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:1468:45: note: in definition of macro 'mdb_assert0'
# # define mdb_assert0(env, expr, expr_txt) ((expr) ? (void)0 : \
# ^
# mdb.c:8114:2: note: in expansion of macro 'mdb_cassert'
# mdb_cassert(mc, NUMKEYS(mc->mc_pg[ptop]) > 1);
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:817:50: note: in expansion of macro 'PAGEBASE'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:8114:18: note: in expansion of macro 'NUMKEYS'
# mdb_cassert(mc, NUMKEYS(mc->mc_pg[ptop]) > 1);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:7232:9: note: in expansion of macro 'PAGEHDRSZ'
# len = PAGEHDRSZ;
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:8132:10: note: in expansion of macro 'NODEPTR'
# node = NODEPTR(mc->mc_pg[ptop], mn.mc_ki[ptop]);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:7239:37: note: in expansion of macro 'PAGEBASE'
# base = (char *)mp + mp->mp_upper + PAGEBASE;
# ^
# mdb.c:885:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
# #define PGNO_TOPWORD ((pgno_t)-1 > 0xffffffffu ? 32 : 0)
# ^
# mdb.c:909:4: note: in expansion of macro 'PGNO_TOPWORD'
# (PGNO_TOPWORD ? ((pgno_t) (node)->mn_flags << PGNO_TOPWORD) : 0))
# ^
# mdb.c:8133:32: note: in expansion of macro 'NODEPGNO'
# rc = mdb_page_get(mc->mc_txn,NODEPGNO(node),&mn.mc_pg[mn.mc_top],NULL);
# ^
# mdb.c:7240:2: warning: incompatible implicit declaration of built-in function 'memmove' [enabled by default]
# memmove(base + delta, base, (char *)sp + len - base);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:817:40: note: in expansion of macro 'PAGEHDRSZ'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:7243:11: note: in expansion of macro 'NUMKEYS'
# for (i = NUMKEYS(mp); --i >= 0; ) {
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:817:40: note: in expansion of macro 'PAGEHDRSZ'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:8137:27: note: in expansion of macro 'NUMKEYS'
# mc->mc_ki[mc->mc_top] = NUMKEYS(mc->mc_pg[mc->mc_top]);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:817:50: note: in expansion of macro 'PAGEBASE'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:7243:11: note: in expansion of macro 'NUMKEYS'
# for (i = NUMKEYS(mp); --i >= 0; ) {
# ^
# mdb.c: In function 'mdb_xcursor_init0':
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:817:50: note: in expansion of macro 'PAGEBASE'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:8137:27: note: in expansion of macro 'NUMKEYS'
# mc->mc_ki[mc->mc_top] = NUMKEYS(mc->mc_pg[mc->mc_top]);
# ^
# mdb.c:7264:29: error: 'NULL' undeclared (first use in this function)
# mx->mx_cursor.mc_xcursor = NULL;
# ^
# mdb.c: In function 'mdb_xcursor_init1':
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:8144:10: note: in expansion of macro 'NODEPTR'
# node = NODEPTR(mc->mc_pg[ptop], mn.mc_ki[ptop]);
# ^
# mdb.c:7292:3: warning: incompatible implicit declaration of built-in function 'memcpy' [enabled by default]
# memcpy(&mx->mx_db, NODEDATA(node), sizeof(MDB_db));
# ^
# mdb.c:885:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
# #define PGNO_TOPWORD ((pgno_t)-1 > 0xffffffffu ? 32 : 0)
# ^
# mdb.c:909:4: note: in expansion of macro 'PGNO_TOPWORD'
# (PGNO_TOPWORD ? ((pgno_t) (node)->mn_flags << PGNO_TOPWORD) : 0))
# ^
# mdb.c:8145:32: note: in expansion of macro 'NODEPGNO'
# rc = mdb_page_get(mc->mc_txn,NODEPGNO(node),&mn.mc_pg[mn.mc_top],NULL);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:817:40: note: in expansion of macro 'PAGEHDRSZ'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:7305:26: note: in expansion of macro 'NUMKEYS'
# mx->mx_db.md_entries = NUMKEYS(fp);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:817:40: note: in expansion of macro 'PAGEHDRSZ'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:8148:25: note: in expansion of macro 'NUMKEYS'
# mn.mc_ki[mn.mc_top] = NUMKEYS(mn.mc_pg[mn.mc_top]) - 1;
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:817:50: note: in expansion of macro 'PAGEBASE'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:7305:26: note: in expansion of macro 'NUMKEYS'
# mx->mx_db.md_entries = NUMKEYS(fp);
# ^
# mdb.c: In function 'mdb_cursor_init':
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:817:50: note: in expansion of macro 'PAGEBASE'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:8148:25: note: in expansion of macro 'NUMKEYS'
# mn.mc_ki[mn.mc_top] = NUMKEYS(mn.mc_pg[mn.mc_top]) - 1;
# ^
# mdb.c:7364:16: error: 'NULL' undeclared (first use in this function)
# mc->mc_next = NULL;
# ^
# mdb.c: In function 'mdb_cursor_open':
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:823:54: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEFILL(env, p) (1000L * ((env)->me_psize - PAGEHDRSZ - SIZELEFT(p)) / \
# ^
# mdb.c:8161:6: note: in expansion of macro 'PAGEFILL'
# if (PAGEFILL(mc->mc_txn->mt_env, mn.mc_pg[mn.mc_top]) >= thresh && NUMKEYS(mn.mc_pg[mn.mc_top]) > minkeys) {
# ^
# mdb.c:7392:2: error: unknown type name 'size_t'
# size_t size = sizeof(MDB_cursor);
# ^
# mdb.c:7395:10: error: 'EINVAL' undeclared (first use in this function)
# return EINVAL;
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:824:24: note: in expansion of macro 'PAGEHDRSZ'
# ((env)->me_psize - PAGEHDRSZ))
# ^
# mdb.c:8161:6: note: in expansion of macro 'PAGEFILL'
# if (PAGEFILL(mc->mc_txn->mt_env, mn.mc_pg[mn.mc_top]) >= thresh && NUMKEYS(mn.mc_pg[mn.mc_top]) > minkeys) {
# ^
# mdb.c:7406:12: warning: incompatible implicit declaration of built-in function 'malloc' [enabled by default]
# if ((mc = malloc(size)) != NULL) {
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:817:40: note: in expansion of macro 'PAGEHDRSZ'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:8161:69: note: in expansion of macro 'NUMKEYS'
# if (PAGEFILL(mc->mc_txn->mt_env, mn.mc_pg[mn.mc_top]) >= thresh && NUMKEYS(mn.mc_pg[mn.mc_top]) > minkeys) {
# ^
# mdb.c:7406:29: error: 'NULL' undeclared (first use in this function)
# if ((mc = malloc(size)) != NULL) {
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:817:50: note: in expansion of macro 'PAGEBASE'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:8161:69: note: in expansion of macro 'NUMKEYS'
# if (PAGEFILL(mc->mc_txn->mt_env, mn.mc_pg[mn.mc_top]) >= thresh && NUMKEYS(mn.mc_pg[mn.mc_top]) > minkeys) {
# ^
# mdb.c:7414:10: error: 'ENOMEM' undeclared (first use in this function)
# return ENOMEM;
# ^
# mdb.c: In function 'mdb_cursor_renew':
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:817:40: note: in expansion of macro 'PAGEHDRSZ'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:8171:13: note: in expansion of macro 'NUMKEYS'
# oldki += NUMKEYS(mn.mc_pg[mn.mc_top]);
# ^
# mdb.c:7426:10: error: 'EINVAL' undeclared (first use in this function)
# return EINVAL;
# ^
# mdb.c: At top level:
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:817:50: note: in expansion of macro 'PAGEBASE'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:8171:13: note: in expansion of macro 'NUMKEYS'
# oldki += NUMKEYS(mn.mc_pg[mn.mc_top]);
# ^
# mdb.c:7440:34: error: unknown type name 'size_t'
# mdb_cursor_count(MDB_cursor *mc, size_t *countp)
# ^
# mdb.c: In function 'mdb_cursor_close':
# mdb.c: In function 'mdb_cursor_del0':
# mdb.c:7482:3: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
# free(mc);
# ^
# mdb.c: In function 'mdb_cursor_txn':
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:8216:23: note: in expansion of macro 'NODEPTR'
# MDB_node *node = NODEPTR(m3->mc_pg[mc->mc_top], m3->mc_ki[mc->mc_top]);
# ^
# mdb.c:7489:18: error: 'NULL' undeclared (first use in this function)
# if (!mc) return NULL;
# ^
# mdb.c: In function 'mdb_update_key':
# mdb.c:7510:2: error: unknown type name 'size_t'
# size_t len;
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:817:40: note: in expansion of macro 'PAGEHDRSZ'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:8234:11: note: in expansion of macro 'NUMKEYS'
# nkeys = NUMKEYS(mp);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:7517:9: note: in expansion of macro 'NODEPTR'
# node = NODEPTR(mp, indx);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:817:50: note: in expansion of macro 'PAGEBASE'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:8234:11: note: in expansion of macro 'NUMKEYS'
# nkeys = NUMKEYS(mp);
# ^
# mdb.c:8245:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
# if (m3->mc_ki[mc->mc_top] >= nkeys) {
# ^
# mdb.c:885:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
# #define PGNO_TOPWORD ((pgno_t)-1 > 0xffffffffu ? 32 : 0)
# ^
# mdb.c:909:4: note: in expansion of macro 'PGNO_TOPWORD'
# (PGNO_TOPWORD ? ((pgno_t) (node)->mn_flags << PGNO_TOPWORD) : 0))
# ^
# mdb.c:7544:11: note: in expansion of macro 'NODEPGNO'
# pgno = NODEPGNO(node);
# ^
# mdb.c: In function 'mdb_del':
# mdb.c:7546:35: error: 'NULL' undeclared (first use in this function)
# return mdb_page_split(mc, key, NULL, pgno, MDB_SPLIT_REPLACE);
# ^
# mdb.c:8267:10: error: 'EINVAL' undeclared (first use in this function)
# return EINVAL;
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:817:40: note: in expansion of macro 'PAGEHDRSZ'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:7549:13: note: in expansion of macro 'NUMKEYS'
# numkeys = NUMKEYS(mp);
# ^
# mdb.c:8270:45: error: 'EACCES' undeclared (first use in this function)
# return (txn->mt_flags & MDB_TXN_RDONLY) ? EACCES : MDB_BAD_TXN;
# ^
# mdb.c:8274:10: error: 'NULL' undeclared (first use in this function)
# data = NULL;
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:817:50: note: in expansion of macro 'PAGEBASE'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:7549:13: note: in expansion of macro 'NUMKEYS'
# numkeys = NUMKEYS(mp);
# ^
# mdb.c: In function 'mdb_del0':
# mdb.c:8301:11: error: 'NULL' undeclared (first use in this function)
# xdata = NULL;
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:7555:38: note: in expansion of macro 'PAGEBASE'
# base = (char *)mp + mp->mp_upper + PAGEBASE;
# ^
# mdb.c: In function 'mdb_page_split':
# mdb.c:882:28: error: expected expression before 'MDB_node'
# #define NODESIZE offsetof(MDB_node, mn_data)
# ^
# mdb.c:7556:30: note: in expansion of macro 'NODESIZE'
# len = ptr - mp->mp_upper + NODESIZE;
# ^
# mdb.c:8345:19: error: 'NULL' undeclared (first use in this function)
# MDB_page *copy = NULL;
# ^
# mdb.c:7557:3: warning: incompatible implicit declaration of built-in function 'memmove' [enabled by default]
# memmove(base - delta, base, len);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:817:40: note: in expansion of macro 'PAGEHDRSZ'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:8353:10: note: in expansion of macro 'NUMKEYS'
# nkeys = NUMKEYS(mp);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:7560:10: note: in expansion of macro 'NODEPTR'
# node = NODEPTR(mp, indx);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:817:50: note: in expansion of macro 'PAGEBASE'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:8353:10: note: in expansion of macro 'NUMKEYS'
# nkeys = NUMKEYS(mp);
# ^
# mdb.c:7568:3: warning: incompatible implicit declaration of built-in function 'memcpy' [enabled by default]
# memcpy(NODEKEY(node), key->mv_data, key->mv_size);
# ^
# mdb.c: In function 'mdb_node_move':
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:951:43: note: in expansion of macro 'PAGEHDRSZ'
# #define LEAF2KEY(p, i, ks) ((char *)(p) + PAGEHDRSZ + ((i)*(ks)))
# ^
# mdb.c:8422:12: note: in expansion of macro 'LEAF2KEY'
# split = LEAF2KEY(mp, split_indx, ksize);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:951:43: note: in expansion of macro 'PAGEHDRSZ'
# #define LEAF2KEY(p, i, ks) ((char *)(p) + PAGEHDRSZ + ((i)*(ks)))
# ^
# mdb.c:7613:17: note: in expansion of macro 'LEAF2KEY'
# key.mv_data = LEAF2KEY(csrc->mc_pg[csrc->mc_top], csrc->mc_ki[csrc->mc_top], key.mv_size);
# ^
# mdb.c:7615:18: error: 'NULL' undeclared (first use in this function)
# data.mv_data = NULL;
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:951:43: note: in expansion of macro 'PAGEHDRSZ'
# #define LEAF2KEY(p, i, ks) ((char *)(p) + PAGEHDRSZ + ((i)*(ks)))
# ^
# mdb.c:8436:11: note: in expansion of macro 'LEAF2KEY'
# ins = LEAF2KEY(mp, mc->mc_ki[mc->mc_top], ksize);
# ^
# mdb.c:8437:5: warning: incompatible implicit declaration of built-in function 'memcpy' [enabled by default]
# memcpy(rp->mp_ptrs, split, rsize);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:7619:13: note: in expansion of macro 'NODEPTR'
# srcnode = NODEPTR(csrc->mc_pg[csrc->mc_top], csrc->mc_ki[csrc->mc_top]);
# ^
# mdb.c:8439:5: warning: incompatible implicit declaration of built-in function 'memmove' [enabled by default]
# memmove(ins+ksize, ins, (split_indx - mc->mc_ki[mc->mc_top]) * ksize);
# ^
# mdb.c:7620:24: error: 'size_t' undeclared (first use in this function)
# mdb_cassert(csrc, !((size_t)srcnode & 1));
# ^
# mdb.c:1468:45: note: in definition of macro 'mdb_assert0'
# # define mdb_assert0(env, expr, expr_txt) ((expr) ? (void)0 : \
# ^
# mdb.c:7620:3: note: in expansion of macro 'mdb_cassert'
# mdb_cassert(csrc, !((size_t)srcnode & 1));
# ^
# mdb.c:8445:6: warning: incompatible implicit declaration of built-in function 'memcpy' [enabled by default]
# memcpy(rp->mp_ptrs, split, x * ksize);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:951:43: note: in expansion of macro 'PAGEHDRSZ'
# #define LEAF2KEY(p, i, ks) ((char *)(p) + PAGEHDRSZ + ((i)*(ks)))
# ^
# mdb.c:8446:11: note: in expansion of macro 'LEAF2KEY'
# ins = LEAF2KEY(rp, x, ksize);
# ^
# mdb.c:7620:31: error: expected ')' before 'srcnode'
# mdb_cassert(csrc, !((size_t)srcnode & 1));
# ^
# mdb.c:1468:45: note: in definition of macro 'mdb_assert0'
# # define mdb_assert0(env, expr, expr_txt) ((expr) ? (void)0 : \
# ^
# mdb.c:7620:3: note: in expansion of macro 'mdb_cassert'
# mdb_cassert(csrc, !((size_t)srcnode & 1));
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:8456:27: note: in expansion of macro 'PAGEHDRSZ'
# pmax = env->me_psize - PAGEHDRSZ;
# ^
# mdb.c:885:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
# #define PGNO_TOPWORD ((pgno_t)-1 > 0xffffffffu ? 32 : 0)
# ^
# mdb.c:909:4: note: in expansion of macro 'PGNO_TOPWORD'
# (PGNO_TOPWORD ? ((pgno_t) (node)->mn_flags << PGNO_TOPWORD) : 0))
# ^
# mdb.c:7621:11: note: in expansion of macro 'NODEPGNO'
# srcpg = NODEPGNO(srcnode);
# ^
# mdb.c:8466:10: error: 'ENOMEM' undeclared (first use in this function)
# rc = ENOMEM;
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:951:43: note: in expansion of macro 'PAGEHDRSZ'
# #define LEAF2KEY(p, i, ks) ((char *)(p) + PAGEHDRSZ + ((i)*(ks)))
# ^
# mdb.c:7632:19: note: in expansion of macro 'LEAF2KEY'
# key.mv_data = LEAF2KEY(csrc->mc_pg[csrc->mc_top], 0, key.mv_size);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:8471:22: note: in expansion of macro 'PAGEHDRSZ'
# copy->mp_lower = (PAGEHDRSZ-PAGEBASE);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:7634:10: note: in expansion of macro 'NODEPTR'
# s2 = NODEPTR(csrc->mc_pg[csrc->mc_top], 0);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:8471:32: note: in expansion of macro 'PAGEBASE'
# copy->mp_lower = (PAGEHDRSZ-PAGEBASE);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:8472:37: note: in expansion of macro 'PAGEBASE'
# copy->mp_upper = env->me_psize - PAGEBASE;
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:951:43: note: in expansion of macro 'PAGEHDRSZ'
# #define LEAF2KEY(p, i, ks) ((char *)(p) + PAGEHDRSZ + ((i)*(ks)))
# ^
# mdb.c:7659:19: note: in expansion of macro 'LEAF2KEY'
# bkey.mv_data = LEAF2KEY(mn.mc_pg[mn.mc_top], 0, bkey.mv_size);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:7661:9: note: in expansion of macro 'NODEPTR'
# s2 = NODEPTR(mn.mc_pg[mn.mc_top], 0);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:8512:59: note: in expansion of macro 'PAGEBASE'
# node = (MDB_node *)((char *)mp + copy->mp_ptrs[i] + PAGEBASE);
# ^
# mdb.c:882:28: error: expected expression before 'MDB_node'
# #define NODESIZE offsetof(MDB_node, mn_data)
# ^
# mdb.c:8513:16: note: in expansion of macro 'NODESIZE'
# psize += NODESIZE + NODEKSZ(node) + sizeof(indx_t);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:7721:23: note: in expansion of macro 'NODEPTR'
# MDB_node *node = NODEPTR(m3->mc_pg[csrc->mc_top], m3->mc_ki[csrc->mc_top]);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:8532:66: note: in expansion of macro 'PAGEBASE'
# node = (MDB_node *)((char *)mp + copy->mp_ptrs[split_indx] + PAGEBASE);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:7747:24: note: in expansion of macro 'NODEPTR'
# MDB_node *node = NODEPTR(m3->mc_pg[csrc->mc_top], m3->mc_ki[csrc->mc_top]);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:817:40: note: in expansion of macro 'PAGEHDRSZ'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:8562:26: note: in expansion of macro 'NUMKEYS'
# mc->mc_ki[ptop] >= NUMKEYS(mc->mc_pg[ptop])) {
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:951:43: note: in expansion of macro 'PAGEHDRSZ'
# #define LEAF2KEY(p, i, ks) ((char *)(p) + PAGEHDRSZ + ((i)*(ks)))
# ^
# mdb.c:7761:19: note: in expansion of macro 'LEAF2KEY'
# key.mv_data = LEAF2KEY(csrc->mc_pg[csrc->mc_top], 0, key.mv_size);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:817:50: note: in expansion of macro 'PAGEBASE'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:8562:26: note: in expansion of macro 'NUMKEYS'
# mc->mc_ki[ptop] >= NUMKEYS(mc->mc_pg[ptop])) {
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:7763:15: note: in expansion of macro 'NODEPTR'
# srcnode = NODEPTR(csrc->mc_pg[csrc->mc_top], 0);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:8609:57: note: in expansion of macro 'PAGEBASE'
# node = (MDB_node *)((char *)mp + copy->mp_ptrs[i] + PAGEBASE);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:951:43: note: in expansion of macro 'PAGEHDRSZ'
# #define LEAF2KEY(p, i, ks) ((char *)(p) + PAGEHDRSZ + ((i)*(ks)))
# ^
# mdb.c:7792:19: note: in expansion of macro 'LEAF2KEY'
# key.mv_data = LEAF2KEY(cdst->mc_pg[cdst->mc_top], 0, key.mv_size);
# ^
# mdb.c:885:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
# #define PGNO_TOPWORD ((pgno_t)-1 > 0xffffffffu ? 32 : 0)
# ^
# mdb.c:909:4: note: in expansion of macro 'PGNO_TOPWORD'
# (PGNO_TOPWORD ? ((pgno_t) (node)->mn_flags << PGNO_TOPWORD) : 0))
# ^
# mdb.c:8617:13: note: in expansion of macro 'NODEPGNO'
# pgno = NODEPGNO(node);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:7794:15: note: in expansion of macro 'NODEPTR'
# srcnode = NODEPTR(cdst->mc_pg[cdst->mc_top], 0);
# ^
# mdb.c: In function 'mdb_page_merge':
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:817:40: note: in expansion of macro 'PAGEHDRSZ'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:8639:11: note: in expansion of macro 'NUMKEYS'
# nkeys = NUMKEYS(copy);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:817:40: note: in expansion of macro 'PAGEHDRSZ'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:7858:14: note: in expansion of macro 'NUMKEYS'
# j = nkeys = NUMKEYS(pdst);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:817:50: note: in expansion of macro 'PAGEBASE'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:8639:11: note: in expansion of macro 'NUMKEYS'
# nkeys = NUMKEYS(copy);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:817:50: note: in expansion of macro 'PAGEBASE'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:7858:14: note: in expansion of macro 'NUMKEYS'
# j = nkeys = NUMKEYS(pdst);
# ^
# mdb.c:8644:3: warning: incompatible implicit declaration of built-in function 'memcpy' [enabled by default]
# memcpy(NODEPTR(mp, nkeys-1), NODEPTR(copy, nkeys-1),
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:811:46: note: in expansion of macro 'PAGEHDRSZ'
# #define METADATA(p) ((void *)((char *)(p) + PAGEHDRSZ))
# ^
# mdb.c:7861:17: note: in expansion of macro 'METADATA'
# key.mv_data = METADATA(psrc);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:8644:10: note: in expansion of macro 'NODEPTR'
# memcpy(NODEPTR(mp, nkeys-1), NODEPTR(copy, nkeys-1),
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:817:40: note: in expansion of macro 'PAGEHDRSZ'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:7862:19: note: in expansion of macro 'NUMKEYS'
# for (i = 0; i < NUMKEYS(psrc); i++, j++) {
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:8644:32: note: in expansion of macro 'NODEPTR'
# memcpy(NODEPTR(mp, nkeys-1), NODEPTR(copy, nkeys-1),
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:817:50: note: in expansion of macro 'PAGEBASE'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:7862:19: note: in expansion of macro 'NUMKEYS'
# for (i = 0; i < NUMKEYS(psrc); i++, j++) {
# ^
# mdb.c:7863:37: error: 'NULL' undeclared (first use in this function)
# rc = mdb_node_add(cdst, j, &key, NULL, 0, 0);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:8645:37: note: in expansion of macro 'PAGEBASE'
# env->me_psize - copy->mp_upper - PAGEBASE);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:817:40: note: in expansion of macro 'PAGEHDRSZ'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:7869:19: note: in expansion of macro 'NUMKEYS'
# for (i = 0; i < NUMKEYS(psrc); i++, j++) {
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:817:40: note: in expansion of macro 'PAGEHDRSZ'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:8656:24: note: in expansion of macro 'NUMKEYS'
# mc->mc_ki[ptop] >= NUMKEYS(mc->mc_pg[ptop])) {
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:817:50: note: in expansion of macro 'PAGEBASE'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:7869:19: note: in expansion of macro 'NUMKEYS'
# for (i = 0; i < NUMKEYS(psrc); i++, j++) {
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:817:50: note: in expansion of macro 'PAGEBASE'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:8656:24: note: in expansion of macro 'NUMKEYS'
# mc->mc_ki[ptop] >= NUMKEYS(mc->mc_pg[ptop])) {
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:7870:14: note: in expansion of macro 'NODEPTR'
# srcnode = NODEPTR(psrc, i);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:8664:11: note: in expansion of macro 'NODEPTR'
# node = NODEPTR(mc->mc_pg[mc->mc_top], mc->mc_ki[mc->mc_top]);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:951:43: note: in expansion of macro 'PAGEHDRSZ'
# #define LEAF2KEY(p, i, ks) ((char *)(p) + PAGEHDRSZ + ((i)*(ks)))
# ^
# mdb.c:7882:20: note: in expansion of macro 'LEAF2KEY'
# key.mv_data = LEAF2KEY(mn.mc_pg[mn.mc_top], 0, key.mv_size);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:817:40: note: in expansion of macro 'PAGEHDRSZ'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:8675:24: note: in expansion of macro 'NUMKEYS'
# mc->mc_ki[ptop] >= NUMKEYS(mc->mc_pg[ptop])) {
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:7884:11: note: in expansion of macro 'NODEPTR'
# s2 = NODEPTR(mn.mc_pg[mn.mc_top], 0);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:817:50: note: in expansion of macro 'PAGEBASE'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:8675:24: note: in expansion of macro 'NUMKEYS'
# mc->mc_ki[ptop] >= NUMKEYS(mc->mc_pg[ptop])) {
# ^
# mdb.c:885:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
# #define PGNO_TOPWORD ((pgno_t)-1 > 0xffffffffu ? 32 : 0)
# ^
# mdb.c:909:4: note: in expansion of macro 'PGNO_TOPWORD'
# (PGNO_TOPWORD ? ((pgno_t) (node)->mn_flags << PGNO_TOPWORD) : 0))
# ^
# mdb.c:7895:44: note: in expansion of macro 'NODEPGNO'
# rc = mdb_node_add(cdst, j, &key, &data, NODEPGNO(srcnode), srcnode->mn_flags);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:817:40: note: in expansion of macro 'PAGEHDRSZ'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:8688:11: note: in expansion of macro 'NUMKEYS'
# nkeys = NUMKEYS(mp);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:7953:22: note: in expansion of macro 'NODEPTR'
# MDB_node *node = NODEPTR(m3->mc_pg[top], m3->mc_ki[top]);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:817:50: note: in expansion of macro 'PAGEBASE'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:8688:11: note: in expansion of macro 'NUMKEYS'
# nkeys = NUMKEYS(mp);
# ^
# mdb.c:7961:3: error: unknown type name 'uint16_t'
# uint16_t depth = cdst->mc_db->md_depth;
# ^
# mdb.c: In function 'mdb_rebalance':
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:8735:22: note: in expansion of macro 'NODEPTR'
# MDB_node *node = NODEPTR(m3->mc_pg[mc->mc_top], m3->mc_ki[mc->mc_top]);
# ^
# mdb.c: In function 'mdb_put':
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:823:54: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEFILL(env, p) (1000L * ((env)->me_psize - PAGEHDRSZ - SIZELEFT(p)) / \
# ^
# mdb.c:8022:6: note: in expansion of macro 'PAGEFILL'
# if (PAGEFILL(mc->mc_txn->mt_env, mc->mc_pg[mc->mc_top]) >= thresh &&
# ^
# mdb.c:8760:10: error: 'EINVAL' undeclared (first use in this function)
# return EINVAL;
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:824:24: note: in expansion of macro 'PAGEHDRSZ'
# ((env)->me_psize - PAGEHDRSZ))
# ^
# mdb.c:8022:6: note: in expansion of macro 'PAGEFILL'
# if (PAGEFILL(mc->mc_txn->mt_env, mc->mc_pg[mc->mc_top]) >= thresh &&
# ^
# mdb.c:8766:45: error: 'EACCES' undeclared (first use in this function)
# return (txn->mt_flags & MDB_TXN_RDONLY) ? EACCES : MDB_BAD_TXN;
# ^
# mdb.c: At top level:
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:817:40: note: in expansion of macro 'PAGEHDRSZ'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:8023:3: note: in expansion of macro 'NUMKEYS'
# NUMKEYS(mc->mc_pg[mc->mc_top]) >= minkeys) {
# ^
# mdb.c:8782:2: error: expected specifier-qualifier-list before 'pthread_mutex_t'
# pthread_mutex_t mc_mutex;
# ^
# mdb.c: In function 'mdb_env_copythr':
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:817:50: note: in expansion of macro 'PAGEBASE'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:8023:3: note: in expansion of macro 'NUMKEYS'
# NUMKEYS(mc->mc_pg[mc->mc_top]) >= minkeys) {
# ^
# mdb.c:8813:24: error: 'mdb_copy' has no member named 'mc_mutex'
# pthread_mutex_lock(&my->mc_mutex);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:817:40: note: in expansion of macro 'PAGEHDRSZ'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:8035:7: note: in expansion of macro 'NUMKEYS'
# if (NUMKEYS(mp) == 0) {
# ^
# mdb.c:8814:4: error: 'mdb_copy' has no member named 'mc_new'
# my->mc_new = 0;
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:817:50: note: in expansion of macro 'PAGEBASE'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:8035:7: note: in expansion of macro 'NUMKEYS'
# if (NUMKEYS(mp) == 0) {
# ^
# mdb.c:8815:2: warning: implicit declaration of function 'pthread_cond_signal' [-Wimplicit-function-declaration]
# pthread_cond_signal(&my->mc_cond);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:817:40: note: in expansion of macro 'PAGEHDRSZ'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:8065:31: note: in expansion of macro 'NUMKEYS'
# } else if (IS_BRANCH(mp) && NUMKEYS(mp) == 1) {
# ^
# mdb.c:8815:25: error: 'mdb_copy' has no member named 'mc_cond'
# pthread_cond_signal(&my->mc_cond);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:817:50: note: in expansion of macro 'PAGEBASE'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:8065:31: note: in expansion of macro 'NUMKEYS'
# } else if (IS_BRANCH(mp) && NUMKEYS(mp) == 1) {
# ^
# mdb.c:8817:13: error: 'mdb_copy' has no member named 'mc_new'
# while (!my->mc_new)
# ^
# mdb.c:8818:4: warning: implicit declaration of function 'pthread_cond_wait' [-Wimplicit-function-declaration]
# pthread_cond_wait(&my->mc_cond, &my->mc_mutex);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:908:4: note: in definition of macro 'NODEPGNO'
# ((node)->mn_lo | ((pgno_t) (node)->mn_hi << 16) | \
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:8071:34: note: in expansion of macro 'NODEPTR'
# mc->mc_db->md_root = NODEPGNO(NODEPTR(mp, 0));
# ^
# mdb.c:8818:25: error: 'mdb_copy' has no member named 'mc_cond'
# pthread_cond_wait(&my->mc_cond, &my->mc_mutex);
# ^
# mdb.c:8818:39: error: 'mdb_copy' has no member named 'mc_mutex'
# pthread_cond_wait(&my->mc_cond, &my->mc_mutex);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:908:30: note: in definition of macro 'NODEPGNO'
# ((node)->mn_lo | ((pgno_t) (node)->mn_hi << 16) | \
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:8071:34: note: in expansion of macro 'NODEPTR'
# mc->mc_db->md_root = NODEPGNO(NODEPTR(mp, 0));
# ^
# mdb.c:8819:9: error: 'mdb_copy' has no member named 'mc_new'
# if (my->mc_new < 0) {
# ^
# mdb.c:8820:6: error: 'mdb_copy' has no member named 'mc_new'
# my->mc_new = 0;
# ^
# mdb.c:885:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
# #define PGNO_TOPWORD ((pgno_t)-1 > 0xffffffffu ? 32 : 0)
# ^
# mdb.c:909:4: note: in expansion of macro 'PGNO_TOPWORD'
# (PGNO_TOPWORD ? ((pgno_t) (node)->mn_flags << PGNO_TOPWORD) : 0))
# ^
# mdb.c:8071:25: note: in expansion of macro 'NODEPGNO'
# mc->mc_db->md_root = NODEPGNO(NODEPTR(mp, 0));
# ^
# mdb.c:8823:5: error: 'mdb_copy' has no member named 'mc_new'
# my->mc_new = 0;
# ^
# mdb.c:8824:13: error: 'mdb_copy' has no member named 'mc_wlen'
# wsize = my->mc_wlen[toggle];
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:909:30: note: in definition of macro 'NODEPGNO'
# (PGNO_TOPWORD ? ((pgno_t) (node)->mn_flags << PGNO_TOPWORD) : 0))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:8071:34: note: in expansion of macro 'NODEPTR'
# mc->mc_db->md_root = NODEPGNO(NODEPTR(mp, 0));
# ^
# mdb.c:8825:11: error: 'mdb_copy' has no member named 'mc_wbuf'
# ptr = my->mc_wbuf[toggle];
# ^
# mdb.c:8828:4: warning: implicit declaration of function 'write' [-Wimplicit-function-declaration]
# DO_WRITE(rc, my->mc_fd, ptr, wsize, len);
# ^
# mdb.c:8072:66: error: 'NULL' undeclared (first use in this function)
# rc = mdb_page_get(mc->mc_txn,mc->mc_db->md_root,&mc->mc_pg[0],NULL);
# ^
# mdb.c:8828:19: error: 'mdb_copy' has no member named 'mc_fd'
# DO_WRITE(rc, my->mc_fd, ptr, wsize, len);
# ^
# mdb.c:8810:52: note: in definition of macro 'DO_WRITE'
# #define DO_WRITE(rc, fd, ptr, w2, len) len = write(fd, ptr, w2); rc = (len >= 0)
# ^
# mdb.c:356:19: error: 'errno' undeclared (first use in this function)
# #define ErrCode() errno
# ^
# mdb.c:8830:10: note: in expansion of macro 'ErrCode'
# rc = ErrCode();
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:1468:45: note: in definition of macro 'mdb_assert0'
# # define mdb_assert0(env, expr, expr_txt) ((expr) ? (void)0 : \
# ^
# mdb.c:8114:2: note: in expansion of macro 'mdb_cassert'
# mdb_cassert(mc, NUMKEYS(mc->mc_pg[ptop]) > 1);
# ^
# mdb.c:817:40: note: in expansion of macro 'PAGEHDRSZ'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:8114:18: note: in expansion of macro 'NUMKEYS'
# mdb_cassert(mc, NUMKEYS(mc->mc_pg[ptop]) > 1);
# ^
# mdb.c:8838:10: error: 'EIO' undeclared (first use in this function)
# rc = EIO;
# ^
# mdb.c:8843:6: error: 'mdb_copy' has no member named 'mc_status'
# my->mc_status = rc;
# ^
# mdb.c:8847:9: error: 'mdb_copy' has no member named 'mc_olen'
# if (my->mc_olen[toggle]) {
# ^
# mdb.c:8848:14: error: 'mdb_copy' has no member named 'mc_olen'
# wsize = my->mc_olen[toggle];
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:1468:45: note: in definition of macro 'mdb_assert0'
# # define mdb_assert0(env, expr, expr_txt) ((expr) ? (void)0 : \
# ^
# mdb.c:8114:2: note: in expansion of macro 'mdb_cassert'
# mdb_cassert(mc, NUMKEYS(mc->mc_pg[ptop]) > 1);
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:817:50: note: in expansion of macro 'PAGEBASE'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:8114:18: note: in expansion of macro 'NUMKEYS'
# mdb_cassert(mc, NUMKEYS(mc->mc_pg[ptop]) > 1);
# ^
# mdb.c:8849:12: error: 'mdb_copy' has no member named 'mc_over'
# ptr = my->mc_over[toggle];
# ^
# mdb.c:8850:6: error: 'mdb_copy' has no member named 'mc_olen'
# my->mc_olen[toggle] = 0;
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:8132:10: note: in expansion of macro 'NODEPTR'
# node = NODEPTR(mc->mc_pg[ptop], mn.mc_ki[ptop]);
# ^
# mdb.c:8853:5: error: 'mdb_copy' has no member named 'mc_wlen'
# my->mc_wlen[toggle] = 0;
# ^
# mdb.c:8855:26: error: 'mdb_copy' has no member named 'mc_cond'
# pthread_cond_signal(&my->mc_cond);
# ^
# mdb.c:885:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
# #define PGNO_TOPWORD ((pgno_t)-1 > 0xffffffffu ? 32 : 0)
# ^
# mdb.c:909:4: note: in expansion of macro 'PGNO_TOPWORD'
# (PGNO_TOPWORD ? ((pgno_t) (node)->mn_flags << PGNO_TOPWORD) : 0))
# ^
# mdb.c:8133:32: note: in expansion of macro 'NODEPGNO'
# rc = mdb_page_get(mc->mc_txn,NODEPGNO(node),&mn.mc_pg[mn.mc_top],NULL);
# ^
# mdb.c:8857:25: error: 'mdb_copy' has no member named 'mc_cond'
# pthread_cond_signal(&my->mc_cond);
# ^
# mdb.c:8858:26: error: 'mdb_copy' has no member named 'mc_mutex'
# pthread_mutex_unlock(&my->mc_mutex);
# ^
# mdb.c: In function 'mdb_env_cthr_toggle':
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:817:40: note: in expansion of macro 'PAGEHDRSZ'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:8137:27: note: in expansion of macro 'NUMKEYS'
# mc->mc_ki[mc->mc_top] = NUMKEYS(mc->mc_pg[mc->mc_top]);
# ^
# mdb.c:8867:17: error: 'mdb_copy' has no member named 'mc_toggle'
# int toggle = my->mc_toggle ^ 1;
# ^
# mdb.c:8868:24: error: 'mdb_copy' has no member named 'mc_mutex'
# pthread_mutex_lock(&my->mc_mutex);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:817:50: note: in expansion of macro 'PAGEBASE'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:8137:27: note: in expansion of macro 'NUMKEYS'
# mc->mc_ki[mc->mc_top] = NUMKEYS(mc->mc_pg[mc->mc_top]);
# ^
# mdb.c:8869:8: error: 'mdb_copy' has no member named 'mc_status'
# if (my->mc_status) {
# ^
# mdb.c:8870:27: error: 'mdb_copy' has no member named 'mc_mutex'
# pthread_mutex_unlock(&my->mc_mutex);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:8144:10: note: in expansion of macro 'NODEPTR'
# node = NODEPTR(mc->mc_pg[ptop], mn.mc_ki[ptop]);
# ^
# mdb.c:8871:12: error: 'mdb_copy' has no member named 'mc_status'
# return my->mc_status;
# ^
# mdb.c:885:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
# #define PGNO_TOPWORD ((pgno_t)-1 > 0xffffffffu ? 32 : 0)
# ^
# mdb.c:909:4: note: in expansion of macro 'PGNO_TOPWORD'
# (PGNO_TOPWORD ? ((pgno_t) (node)->mn_flags << PGNO_TOPWORD) : 0))
# ^
# mdb.c:8145:32: note: in expansion of macro 'NODEPGNO'
# rc = mdb_page_get(mc->mc_txn,NODEPGNO(node),&mn.mc_pg[mn.mc_top],NULL);
# ^
# mdb.c:8873:11: error: 'mdb_copy' has no member named 'mc_new'
# while (my->mc_new == 1)
# ^
# mdb.c:8874:24: error: 'mdb_copy' has no member named 'mc_cond'
# pthread_cond_wait(&my->mc_cond, &my->mc_mutex);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:817:40: note: in expansion of macro 'PAGEHDRSZ'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:8148:25: note: in expansion of macro 'NUMKEYS'
# mn.mc_ki[mn.mc_top] = NUMKEYS(mn.mc_pg[mn.mc_top]) - 1;
# ^
# mdb.c:8874:38: error: 'mdb_copy' has no member named 'mc_mutex'
# pthread_cond_wait(&my->mc_cond, &my->mc_mutex);
# ^
# mdb.c:8875:4: error: 'mdb_copy' has no member named 'mc_new'
# my->mc_new = st;
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:817:50: note: in expansion of macro 'PAGEBASE'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:8148:25: note: in expansion of macro 'NUMKEYS'
# mn.mc_ki[mn.mc_top] = NUMKEYS(mn.mc_pg[mn.mc_top]) - 1;
# ^
# mdb.c:8876:4: error: 'mdb_copy' has no member named 'mc_toggle'
# my->mc_toggle = toggle;
# ^
# mdb.c:8877:25: error: 'mdb_copy' has no member named 'mc_cond'
# pthread_cond_signal(&my->mc_cond);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:823:54: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEFILL(env, p) (1000L * ((env)->me_psize - PAGEHDRSZ - SIZELEFT(p)) / \
# ^
# mdb.c:8161:6: note: in expansion of macro 'PAGEFILL'
# if (PAGEFILL(mc->mc_txn->mt_env, mn.mc_pg[mn.mc_top]) >= thresh && NUMKEYS(mn.mc_pg[mn.mc_top]) > minkeys) {
# ^
# mdb.c:8878:26: error: 'mdb_copy' has no member named 'mc_mutex'
# pthread_mutex_unlock(&my->mc_mutex);
# ^
# mdb.c: In function 'mdb_env_cwalk':
# mdb.c:8887:19: error: 'mdb_copy' has no member named 'mc_txn'
# MDB_txn *txn = my->mc_txn;
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:824:24: note: in expansion of macro 'PAGEHDRSZ'
# ((env)->me_psize - PAGEHDRSZ))
# ^
# mdb.c:8161:6: note: in expansion of macro 'PAGEFILL'
# if (PAGEFILL(mc->mc_txn->mt_env, mn.mc_pg[mn.mc_top]) >= thresh && NUMKEYS(mn.mc_pg[mn.mc_top]) > minkeys) {
# ^
# mdb.c:8902:22: error: 'mdb_copy' has no member named 'mc_txn'
# rc = mdb_page_get(my->mc_txn, *pg, &mc.mc_pg[0], NULL);
# ^
# mdb.c:8902:51: error: 'NULL' undeclared (first use in this function)
# rc = mdb_page_get(my->mc_txn, *pg, &mc.mc_pg[0], NULL);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:817:40: note: in expansion of macro 'PAGEHDRSZ'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:8161:69: note: in expansion of macro 'NUMKEYS'
# if (PAGEFILL(mc->mc_txn->mt_env, mn.mc_pg[mn.mc_top]) >= thresh && NUMKEYS(mn.mc_pg[mn.mc_top]) > minkeys) {
# ^
# mdb.c:8910:14: warning: incompatible implicit declaration of built-in function 'malloc' [enabled by default]
# buf = ptr = malloc(my->mc_env->me_psize * mc.mc_snum);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:817:50: note: in expansion of macro 'PAGEBASE'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:8161:69: note: in expansion of macro 'NUMKEYS'
# if (PAGEFILL(mc->mc_txn->mt_env, mn.mc_pg[mn.mc_top]) >= thresh && NUMKEYS(mn.mc_pg[mn.mc_top]) > minkeys) {
# ^
# mdb.c:8910:23: error: 'mdb_copy' has no member named 'mc_env'
# buf = ptr = malloc(my->mc_env->me_psize * mc.mc_snum);
# ^
# mdb.c:8912:10: error: 'ENOMEM' undeclared (first use in this function)
# return ENOMEM;
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:817:40: note: in expansion of macro 'PAGEHDRSZ'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:8171:13: note: in expansion of macro 'NUMKEYS'
# oldki += NUMKEYS(mn.mc_pg[mn.mc_top]);
# ^
# mdb.c:8915:49: error: 'mdb_copy' has no member named 'mc_env'
# mdb_page_copy((MDB_page *)ptr, mc.mc_pg[i], my->mc_env->me_psize);
# ^
# mdb.c:8917:12: error: 'mdb_copy' has no member named 'mc_env'
# ptr += my->mc_env->me_psize;
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:817:50: note: in expansion of macro 'PAGEBASE'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:8171:13: note: in expansion of macro 'NUMKEYS'
# oldki += NUMKEYS(mn.mc_pg[mn.mc_top]);
# ^
# mdb.c:8923:13: error: 'mdb_copy' has no member named 'mc_toggle'
# toggle = my->mc_toggle;
# ^
# mdb.c: In function 'mdb_cursor_del0':
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:817:40: note: in expansion of macro 'PAGEHDRSZ'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:8927:7: note: in expansion of macro 'NUMKEYS'
# n = NUMKEYS(mp);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:8216:23: note: in expansion of macro 'NODEPTR'
# MDB_node *node = NODEPTR(m3->mc_pg[mc->mc_top], m3->mc_ki[mc->mc_top]);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:817:50: note: in expansion of macro 'PAGEBASE'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:8927:7: note: in expansion of macro 'NUMKEYS'
# n = NUMKEYS(mp);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:817:40: note: in expansion of macro 'PAGEHDRSZ'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:8234:11: note: in expansion of macro 'NUMKEYS'
# nkeys = NUMKEYS(mp);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:8932:11: note: in expansion of macro 'NODEPTR'
# ni = NODEPTR(mp, i);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:817:50: note: in expansion of macro 'PAGEBASE'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:8234:11: note: in expansion of macro 'NUMKEYS'
# nkeys = NUMKEYS(mp);
# ^
# mdb.c:8940:34: error: 'mdb_copy' has no member named 'mc_env'
# mdb_page_copy(leaf, mp, my->mc_env->me_psize);
# ^
# mdb.c:8245:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
# if (m3->mc_ki[mc->mc_top] >= nkeys) {
# ^
# mdb.c: In function 'mdb_del':
# mdb.c:8267:10: error: 'EINVAL' undeclared (first use in this function)
# return EINVAL;
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:8942:13: note: in expansion of macro 'NODEPTR'
# ni = NODEPTR(mp, i);
# ^
# mdb.c:8270:45: error: 'EACCES' undeclared (first use in this function)
# return (txn->mt_flags & MDB_TXN_RDONLY) ? EACCES : MDB_BAD_TXN;
# ^
# mdb.c:8945:7: warning: incompatible implicit declaration of built-in function 'memcpy' [enabled by default]
# memcpy(&pg, NODEDATA(ni), sizeof(pg));
# ^
# mdb.c:8274:10: error: 'NULL' undeclared (first use in this function)
# data = NULL;
# ^
# mdb.c: In function 'mdb_del0':
# mdb.c:8949:13: error: 'mdb_copy' has no member named 'mc_wlen'
# if (my->mc_wlen[toggle] >= MDB_WBUF) {
# ^
# mdb.c:8301:11: error: 'NULL' undeclared (first use in this function)
# xdata = NULL;
# ^
# mdb.c: In function 'mdb_page_split':
# mdb.c:8953:19: error: 'mdb_copy' has no member named 'mc_toggle'
# toggle = my->mc_toggle;
# ^
# mdb.c:8345:19: error: 'NULL' undeclared (first use in this function)
# MDB_page *copy = NULL;
# ^
# mdb.c:8955:27: error: 'mdb_copy' has no member named 'mc_wbuf'
# mo = (MDB_page *)(my->mc_wbuf[toggle] + my->mc_wlen[toggle]);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:817:40: note: in expansion of macro 'PAGEHDRSZ'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:8353:10: note: in expansion of macro 'NUMKEYS'
# nkeys = NUMKEYS(mp);
# ^
# mdb.c:8955:49: error: 'mdb_copy' has no member named 'mc_wlen'
# mo = (MDB_page *)(my->mc_wbuf[toggle] + my->mc_wlen[toggle]);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:817:50: note: in expansion of macro 'PAGEBASE'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:8353:10: note: in expansion of macro 'NUMKEYS'
# nkeys = NUMKEYS(mp);
# ^
# mdb.c:8956:25: error: 'mdb_copy' has no member named 'mc_env'
# memcpy(mo, omp, my->mc_env->me_psize);
# ^
# mdb.c:8957:23: error: 'mdb_copy' has no member named 'mc_next_pgno'
# mo->mp_pgno = my->mc_next_pgno;
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:951:43: note: in expansion of macro 'PAGEHDRSZ'
# #define LEAF2KEY(p, i, ks) ((char *)(p) + PAGEHDRSZ + ((i)*(ks)))
# ^
# mdb.c:8422:12: note: in expansion of macro 'LEAF2KEY'
# split = LEAF2KEY(mp, split_indx, ksize);
# ^
# mdb.c:8958:9: error: 'mdb_copy' has no member named 'mc_next_pgno'
# my->mc_next_pgno += omp->mp_pages;
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:951:43: note: in expansion of macro 'PAGEHDRSZ'
# #define LEAF2KEY(p, i, ks) ((char *)(p) + PAGEHDRSZ + ((i)*(ks)))
# ^
# mdb.c:8436:11: note: in expansion of macro 'LEAF2KEY'
# ins = LEAF2KEY(mp, mc->mc_ki[mc->mc_top], ksize);
# ^
# mdb.c:8959:9: error: 'mdb_copy' has no member named 'mc_wlen'
# my->mc_wlen[toggle] += my->mc_env->me_psize;
# ^
# mdb.c:8437:5: warning: incompatible implicit declaration of built-in function 'memcpy' [enabled by default]
# memcpy(rp->mp_ptrs, split, rsize);
# ^
# mdb.c:8959:32: error: 'mdb_copy' has no member named 'mc_env'
# my->mc_wlen[toggle] += my->mc_env->me_psize;
# ^
# mdb.c:8439:5: warning: incompatible implicit declaration of built-in function 'memmove' [enabled by default]
# memmove(ins+ksize, ins, (split_indx - mc->mc_ki[mc->mc_top]) * ksize);
# ^
# mdb.c:8961:10: error: 'mdb_copy' has no member named 'mc_olen'
# my->mc_olen[toggle] = my->mc_env->me_psize * (omp->mp_pages - 1);
# ^
# mdb.c:8445:6: warning: incompatible implicit declaration of built-in function 'memcpy' [enabled by default]
# memcpy(rp->mp_ptrs, split, x * ksize);
# ^
# mdb.c:8961:32: error: 'mdb_copy' has no member named 'mc_env'
# my->mc_olen[toggle] = my->mc_env->me_psize * (omp->mp_pages - 1);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:951:43: note: in expansion of macro 'PAGEHDRSZ'
# #define LEAF2KEY(p, i, ks) ((char *)(p) + PAGEHDRSZ + ((i)*(ks)))
# ^
# mdb.c:8446:11: note: in expansion of macro 'LEAF2KEY'
# ins = LEAF2KEY(rp, x, ksize);
# ^
# mdb.c:8962:10: error: 'mdb_copy' has no member named 'mc_over'
# my->mc_over[toggle] = (char *)omp + my->mc_env->me_psize;
# ^
# mdb.c:8962:46: error: 'mdb_copy' has no member named 'mc_env'
# my->mc_over[toggle] = (char *)omp + my->mc_env->me_psize;
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:8456:27: note: in expansion of macro 'PAGEHDRSZ'
# pmax = env->me_psize - PAGEHDRSZ;
# ^
# mdb.c:8966:19: error: 'mdb_copy' has no member named 'mc_toggle'
# toggle = my->mc_toggle;
# ^
# mdb.c:8466:10: error: 'ENOMEM' undeclared (first use in this function)
# rc = ENOMEM;
# ^
# mdb.c:8975:34: error: 'mdb_copy' has no member named 'mc_env'
# mdb_page_copy(leaf, mp, my->mc_env->me_psize);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:8471:22: note: in expansion of macro 'PAGEHDRSZ'
# copy->mp_lower = (PAGEHDRSZ-PAGEBASE);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:8977:13: note: in expansion of macro 'NODEPTR'
# ni = NODEPTR(mp, i);
# ^
# mdb.c:8980:7: warning: incompatible implicit declaration of built-in function 'memcpy' [enabled by default]
# memcpy(&db, NODEDATA(ni), sizeof(db));
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:8471:32: note: in expansion of macro 'PAGEBASE'
# copy->mp_lower = (PAGEHDRSZ-PAGEBASE);
# ^
# mdb.c:8981:9: error: 'mdb_copy' has no member named 'mc_toggle'
# my->mc_toggle = toggle;
# ^
# mdb.c:8985:18: error: 'mdb_copy' has no member named 'mc_toggle'
# toggle = my->mc_toggle;
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:8472:37: note: in expansion of macro 'PAGEBASE'
# copy->mp_upper = env->me_psize - PAGEBASE;
# ^
# mdb.c:8992:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
# if (mc.mc_ki[mc.mc_top] < n) {
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:8512:59: note: in expansion of macro 'PAGEBASE'
# node = (MDB_node *)((char *)mp + copy->mp_ptrs[i] + PAGEBASE);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:8995:10: note: in expansion of macro 'NODEPTR'
# ni = NODEPTR(mp, mc.mc_ki[mc.mc_top]);
# ^
# mdb.c:885:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
# #define PGNO_TOPWORD ((pgno_t)-1 > 0xffffffffu ? 32 : 0)
# ^
# mdb.c:909:4: note: in expansion of macro 'PGNO_TOPWORD'
# (PGNO_TOPWORD ? ((pgno_t) (node)->mn_flags << PGNO_TOPWORD) : 0))
# ^
# mdb.c:8996:10: note: in expansion of macro 'NODEPGNO'
# pg = NODEPGNO(ni);
# ^
# mdb.c:882:28: error: expected expression before 'MDB_node'
# #define NODESIZE offsetof(MDB_node, mn_data)
# ^
# mdb.c:8513:16: note: in expansion of macro 'NODESIZE'
# psize += NODESIZE + NODEKSZ(node) + sizeof(indx_t);
# ^
# mdb.c:9007:47: error: 'mdb_copy' has no member named 'mc_env'
# mdb_page_copy(mc.mc_pg[mc.mc_top], mp, my->mc_env->me_psize);
# ^
# mdb.c:9014:9: error: 'mdb_copy' has no member named 'mc_wlen'
# if (my->mc_wlen[toggle] >= MDB_WBUF) {
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:8532:66: note: in expansion of macro 'PAGEBASE'
# node = (MDB_node *)((char *)mp + copy->mp_ptrs[split_indx] + PAGEBASE);
# ^
# mdb.c:9018:15: error: 'mdb_copy' has no member named 'mc_toggle'
# toggle = my->mc_toggle;
# ^
# mdb.c:9020:23: error: 'mdb_copy' has no member named 'mc_wbuf'
# mo = (MDB_page *)(my->mc_wbuf[toggle] + my->mc_wlen[toggle]);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:817:40: note: in expansion of macro 'PAGEHDRSZ'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:8562:26: note: in expansion of macro 'NUMKEYS'
# mc->mc_ki[ptop] >= NUMKEYS(mc->mc_pg[ptop])) {
# ^
# mdb.c:9020:45: error: 'mdb_copy' has no member named 'mc_wlen'
# mo = (MDB_page *)(my->mc_wbuf[toggle] + my->mc_wlen[toggle]);
# ^
# mdb.c:9021:27: error: 'mdb_copy' has no member named 'mc_env'
# mdb_page_copy(mo, mp, my->mc_env->me_psize);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:817:50: note: in expansion of macro 'PAGEBASE'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:8562:26: note: in expansion of macro 'NUMKEYS'
# mc->mc_ki[ptop] >= NUMKEYS(mc->mc_pg[ptop])) {
# ^
# mdb.c:9022:19: error: 'mdb_copy' has no member named 'mc_next_pgno'
# mo->mp_pgno = my->mc_next_pgno++;
# ^
# mdb.c:9023:5: error: 'mdb_copy' has no member named 'mc_wlen'
# my->mc_wlen[toggle] += my->mc_env->me_psize;
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:8609:57: note: in expansion of macro 'PAGEBASE'
# node = (MDB_node *)((char *)mp + copy->mp_ptrs[i] + PAGEBASE);
# ^
# mdb.c:9023:28: error: 'mdb_copy' has no member named 'mc_env'
# my->mc_wlen[toggle] += my->mc_env->me_psize;
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:9026:9: note: in expansion of macro 'NODEPTR'
# ni = NODEPTR(mc.mc_pg[mc.mc_top-1], mc.mc_ki[mc.mc_top-1]);
# ^
# mdb.c:885:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
# #define PGNO_TOPWORD ((pgno_t)-1 > 0xffffffffu ? 32 : 0)
# ^
# mdb.c:909:4: note: in expansion of macro 'PGNO_TOPWORD'
# (PGNO_TOPWORD ? ((pgno_t) (node)->mn_flags << PGNO_TOPWORD) : 0))
# ^
# mdb.c:8617:13: note: in expansion of macro 'NODEPGNO'
# pgno = NODEPGNO(node);
# ^
# mdb.c:885:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
# #define PGNO_TOPWORD ((pgno_t)-1 > 0xffffffffu ? 32 : 0)
# ^
# mdb.c:913:6: note: in expansion of macro 'PGNO_TOPWORD'
# if (PGNO_TOPWORD) (node)->mn_flags = (pgno) >> PGNO_TOPWORD; } while(0)
# ^
# mdb.c:9027:4: note: in expansion of macro 'SETPGNO'
# SETPGNO(ni, mo->mp_pgno);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:817:40: note: in expansion of macro 'PAGEHDRSZ'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:8639:11: note: in expansion of macro 'NUMKEYS'
# nkeys = NUMKEYS(copy);
# ^
# mdb.c:885:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
# #define PGNO_TOPWORD ((pgno_t)-1 > 0xffffffffu ? 32 : 0)
# ^
# mdb.c:913:49: note: in expansion of macro 'PGNO_TOPWORD'
# if (PGNO_TOPWORD) (node)->mn_flags = (pgno) >> PGNO_TOPWORD; } while(0)
# ^
# mdb.c:9027:4: note: in expansion of macro 'SETPGNO'
# SETPGNO(ni, mo->mp_pgno);
# ^
# mdb.c:9036:2: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
# free(buf);
# ^
# mdb.c: In function 'mdb_env_copyfd1':
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:817:50: note: in expansion of macro 'PAGEBASE'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:8639:11: note: in expansion of macro 'NUMKEYS'
# nkeys = NUMKEYS(copy);
# ^
# mdb.c:9047:17: error: 'NULL' undeclared (first use in this function)
# MDB_txn *txn = NULL;
# ^
# mdb.c:9048:2: error: unknown type name 'pthread_t'
# pthread_t thr;
# ^
# mdb.c:8644:3: warning: incompatible implicit declaration of built-in function 'memcpy' [enabled by default]
# memcpy(NODEPTR(mp, nkeys-1), NODEPTR(copy, nkeys-1),
# ^
# mdb.c:9058:24: error: 'mdb_copy' has no member named 'mc_mutex'
# pthread_mutex_init(&my.mc_mutex, NULL);
# ^
# mdb.c:9059:2: warning: implicit declaration of function 'pthread_cond_init' [-Wimplicit-function-declaration]
# pthread_cond_init(&my.mc_cond, NULL);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:8644:10: note: in expansion of macro 'NODEPTR'
# memcpy(NODEPTR(mp, nkeys-1), NODEPTR(copy, nkeys-1),
# ^
# mdb.c:9059:23: error: 'mdb_copy' has no member named 'mc_cond'
# pthread_cond_init(&my.mc_cond, NULL);
# ^
# mdb.c:9065:2: warning: implicit declaration of function 'posix_memalign' [-Wimplicit-function-declaration]
# rc = posix_memalign((void **)&my.mc_wbuf[0], env->me_os_psize, MDB_WBUF*2);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:8644:32: note: in expansion of macro 'NODEPTR'
# memcpy(NODEPTR(mp, nkeys-1), NODEPTR(copy, nkeys-1),
# ^
# mdb.c:9065:34: error: 'mdb_copy' has no member named 'mc_wbuf'
# rc = posix_memalign((void **)&my.mc_wbuf[0], env->me_os_psize, MDB_WBUF*2);
# ^
# mdb.c:9070:2: warning: incompatible implicit declaration of built-in function 'memset' [enabled by default]
# memset(my.mc_wbuf[0], 0, MDB_WBUF*2);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:8645:37: note: in expansion of macro 'PAGEBASE'
# env->me_psize - copy->mp_upper - PAGEBASE);
# ^
# mdb.c:9070:11: error: 'mdb_copy' has no member named 'mc_wbuf'
# memset(my.mc_wbuf[0], 0, MDB_WBUF*2);
# ^
# mdb.c:9071:4: error: 'mdb_copy' has no member named 'mc_wbuf'
# my.mc_wbuf[1] = my.mc_wbuf[0] + MDB_WBUF;
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:817:40: note: in expansion of macro 'PAGEHDRSZ'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:8656:24: note: in expansion of macro 'NUMKEYS'
# mc->mc_ki[ptop] >= NUMKEYS(mc->mc_pg[ptop])) {
# ^
# mdb.c:9071:20: error: 'mdb_copy' has no member named 'mc_wbuf'
# my.mc_wbuf[1] = my.mc_wbuf[0] + MDB_WBUF;
# ^
# mdb.c:9072:4: error: 'mdb_copy' has no member named 'mc_wlen'
# my.mc_wlen[0] = 0;
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:817:50: note: in expansion of macro 'PAGEBASE'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:8656:24: note: in expansion of macro 'NUMKEYS'
# mc->mc_ki[ptop] >= NUMKEYS(mc->mc_pg[ptop])) {
# ^
# mdb.c:9073:4: error: 'mdb_copy' has no member named 'mc_wlen'
# my.mc_wlen[1] = 0;
# ^
# mdb.c:9074:4: error: 'mdb_copy' has no member named 'mc_olen'
# my.mc_olen[0] = 0;
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:8664:11: note: in expansion of macro 'NODEPTR'
# node = NODEPTR(mc->mc_pg[mc->mc_top], mc->mc_ki[mc->mc_top]);
# ^
# mdb.c:9075:4: error: 'mdb_copy' has no member named 'mc_olen'
# my.mc_olen[1] = 0;
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:817:40: note: in expansion of macro 'PAGEHDRSZ'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:8675:24: note: in expansion of macro 'NUMKEYS'
# mc->mc_ki[ptop] >= NUMKEYS(mc->mc_pg[ptop])) {
# ^
# mdb.c:9076:4: error: 'mdb_copy' has no member named 'mc_next_pgno'
# my.mc_next_pgno = NUM_METAS;
# ^
# mdb.c:9077:4: error: 'mdb_copy' has no member named 'mc_status'
# my.mc_status = 0;
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:817:50: note: in expansion of macro 'PAGEBASE'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:8675:24: note: in expansion of macro 'NUMKEYS'
# mc->mc_ki[ptop] >= NUMKEYS(mc->mc_pg[ptop])) {
# ^
# mdb.c:9078:4: error: 'mdb_copy' has no member named 'mc_new'
# my.mc_new = 1;
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:817:40: note: in expansion of macro 'PAGEHDRSZ'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:8688:11: note: in expansion of macro 'NUMKEYS'
# nkeys = NUMKEYS(mp);
# ^
# mdb.c:9079:4: error: 'mdb_copy' has no member named 'mc_toggle'
# my.mc_toggle = 0;
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:817:50: note: in expansion of macro 'PAGEBASE'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:8688:11: note: in expansion of macro 'NUMKEYS'
# nkeys = NUMKEYS(mp);
# ^
# mdb.c:9080:4: error: 'mdb_copy' has no member named 'mc_env'
# my.mc_env = env;
# ^
# mdb.c:9081:4: error: 'mdb_copy' has no member named 'mc_fd'
# my.mc_fd = fd;
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:8735:22: note: in expansion of macro 'NODEPTR'
# MDB_node *node = NODEPTR(m3->mc_pg[mc->mc_top], m3->mc_ki[mc->mc_top]);
# ^
# mdb.c: In function 'mdb_put':
# mdb.c:9082:2: warning: implicit declaration of function 'pthread_create' [-Wimplicit-function-declaration]
# THREAD_CREATE(thr, mdb_env_copythr, &my);
# ^
# mdb.c:8760:10: error: 'EINVAL' undeclared (first use in this function)
# return EINVAL;
# ^
# mdb.c:9088:21: error: 'mdb_copy' has no member named 'mc_wbuf'
# mp = (MDB_page *)my.mc_wbuf[0];
# ^
# mdb.c:8766:45: error: 'EACCES' undeclared (first use in this function)
# return (txn->mt_flags & MDB_TXN_RDONLY) ? EACCES : MDB_BAD_TXN;
# ^
# mdb.c: At top level:
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:811:46: note: in expansion of macro 'PAGEHDRSZ'
# #define METADATA(p) ((void *)((char *)(p) + PAGEHDRSZ))
# ^
# mdb.c:9092:19: note: in expansion of macro 'METADATA'
# mm = (MDB_meta *)METADATA(mp);
# ^
# mdb.c:8782:2: error: expected specifier-qualifier-list before 'pthread_mutex_t'
# pthread_mutex_t mc_mutex;
# ^
# mdb.c:9096:22: error: 'mdb_copy' has no member named 'mc_wbuf'
# mp = (MDB_page *)(my.mc_wbuf[0] + env->me_psize);
# ^
# mdb.c: In function 'mdb_env_copythr':
# mdb.c:8813:24: error: 'mdb_copy' has no member named 'mc_mutex'
# pthread_mutex_lock(&my->mc_mutex);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:811:46: note: in expansion of macro 'PAGEHDRSZ'
# #define METADATA(p) ((void *)((char *)(p) + PAGEHDRSZ))
# ^
# mdb.c:9099:15: note: in expansion of macro 'METADATA'
# *(MDB_meta *)METADATA(mp) = *mm;
# ^
# mdb.c:8814:4: error: 'mdb_copy' has no member named 'mc_new'
# my->mc_new = 0;
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:811:46: note: in expansion of macro 'PAGEHDRSZ'
# #define METADATA(p) ((void *)((char *)(p) + PAGEHDRSZ))
# ^
# mdb.c:9100:19: note: in expansion of macro 'METADATA'
# mm = (MDB_meta *)METADATA(mp);
# ^
# mdb.c:8815:2: warning: implicit declaration of function 'pthread_cond_signal' [-Wimplicit-function-declaration]
# pthread_cond_signal(&my->mc_cond);
# ^
# mdb.c:9126:4: error: 'mdb_copy' has no member named 'mc_wlen'
# my.mc_wlen[0] = env->me_psize * NUM_METAS;
# ^
# mdb.c:8815:25: error: 'mdb_copy' has no member named 'mc_cond'
# pthread_cond_signal(&my->mc_cond);
# ^
# mdb.c:9127:4: error: 'mdb_copy' has no member named 'mc_txn'
# my.mc_txn = txn;
# ^
# mdb.c:8817:13: error: 'mdb_copy' has no member named 'mc_new'
# while (!my->mc_new)
# ^
# mdb.c:8818:4: warning: implicit declaration of function 'pthread_cond_wait' [-Wimplicit-function-declaration]
# pthread_cond_wait(&my->mc_cond, &my->mc_mutex);
# ^
# mdb.c:9128:24: error: 'mdb_copy' has no member named 'mc_mutex'
# pthread_mutex_lock(&my.mc_mutex);
# ^
# mdb.c:8818:25: error: 'mdb_copy' has no member named 'mc_cond'
# pthread_cond_wait(&my->mc_cond, &my->mc_mutex);
# ^
# mdb.c:9129:10: error: 'mdb_copy' has no member named 'mc_new'
# while(my.mc_new)
# ^
# mdb.c:8818:39: error: 'mdb_copy' has no member named 'mc_mutex'
# pthread_cond_wait(&my->mc_cond, &my->mc_mutex);
# ^
# mdb.c:9130:24: error: 'mdb_copy' has no member named 'mc_cond'
# pthread_cond_wait(&my.mc_cond, &my.mc_mutex);
# ^
# mdb.c:8819:9: error: 'mdb_copy' has no member named 'mc_new'
# if (my->mc_new < 0) {
# ^
# mdb.c:9130:37: error: 'mdb_copy' has no member named 'mc_mutex'
# pthread_cond_wait(&my.mc_cond, &my.mc_mutex);
# ^
# mdb.c:8820:6: error: 'mdb_copy' has no member named 'mc_new'
# my->mc_new = 0;
# ^
# mdb.c:9131:26: error: 'mdb_copy' has no member named 'mc_mutex'
# pthread_mutex_unlock(&my.mc_mutex);
# ^
# mdb.c:8823:5: error: 'mdb_copy' has no member named 'mc_new'
# my->mc_new = 0;
# ^
# mdb.c:9133:29: error: 'mdb_copy' has no member named 'mc_wlen'
# if (rc == MDB_SUCCESS && my.mc_wlen[my.mc_toggle])
# ^
# mdb.c:8824:13: error: 'mdb_copy' has no member named 'mc_wlen'
# wsize = my->mc_wlen[toggle];
# ^
# mdb.c:9133:40: error: 'mdb_copy' has no member named 'mc_toggle'
# if (rc == MDB_SUCCESS && my.mc_wlen[my.mc_toggle])
# ^
# mdb.c:8825:11: error: 'mdb_copy' has no member named 'mc_wbuf'
# ptr = my->mc_wbuf[toggle];
# ^
# mdb.c:9136:24: error: 'mdb_copy' has no member named 'mc_mutex'
# pthread_mutex_lock(&my.mc_mutex);
# ^
# mdb.c:8828:4: warning: implicit declaration of function 'write' [-Wimplicit-function-declaration]
# DO_WRITE(rc, my->mc_fd, ptr, wsize, len);
# ^
# mdb.c:9137:10: error: 'mdb_copy' has no member named 'mc_new'
# while(my.mc_new)
# ^
# mdb.c:9138:24: error: 'mdb_copy' has no member named 'mc_cond'
# pthread_cond_wait(&my.mc_cond, &my.mc_mutex);
# ^
# mdb.c:8828:19: error: 'mdb_copy' has no member named 'mc_fd'
# DO_WRITE(rc, my->mc_fd, ptr, wsize, len);
# ^
# mdb.c:8810:52: note: in definition of macro 'DO_WRITE'
# #define DO_WRITE(rc, fd, ptr, w2, len) len = write(fd, ptr, w2); rc = (len >= 0)
# ^
# mdb.c:9138:37: error: 'mdb_copy' has no member named 'mc_mutex'
# pthread_cond_wait(&my.mc_cond, &my.mc_mutex);
# ^
# mdb.c:356:19: error: 'errno' undeclared (first use in this function)
# #define ErrCode() errno
# ^
# mdb.c:8830:10: note: in expansion of macro 'ErrCode'
# rc = ErrCode();
# ^
# mdb.c:9139:26: error: 'mdb_copy' has no member named 'mc_mutex'
# pthread_mutex_unlock(&my.mc_mutex);
# ^
# mdb.c:8838:10: error: 'EIO' undeclared (first use in this function)
# rc = EIO;
# ^
# mdb.c:9140:2: warning: implicit declaration of function 'pthread_join' [-Wimplicit-function-declaration]
# THREAD_FINISH(thr);
# ^
# mdb.c:8843:6: error: 'mdb_copy' has no member named 'mc_status'
# my->mc_status = rc;
# ^
# mdb.c:9148:2: warning: implicit declaration of function 'pthread_cond_destroy' [-Wimplicit-function-declaration]
# pthread_cond_destroy(&my.mc_cond);
# ^
# mdb.c:8847:9: error: 'mdb_copy' has no member named 'mc_olen'
# if (my->mc_olen[toggle]) {
# ^
# mdb.c:9148:26: error: 'mdb_copy' has no member named 'mc_cond'
# pthread_cond_destroy(&my.mc_cond);
# ^
# mdb.c:8848:14: error: 'mdb_copy' has no member named 'mc_olen'
# wsize = my->mc_olen[toggle];
# ^
# mdb.c:9149:2: warning: implicit declaration of function 'pthread_mutex_destroy' [-Wimplicit-function-declaration]
# pthread_mutex_destroy(&my.mc_mutex);
# ^
# mdb.c:8849:12: error: 'mdb_copy' has no member named 'mc_over'
# ptr = my->mc_over[toggle];
# ^
# mdb.c:9149:27: error: 'mdb_copy' has no member named 'mc_mutex'
# pthread_mutex_destroy(&my.mc_mutex);
# ^
# mdb.c:8850:6: error: 'mdb_copy' has no member named 'mc_olen'
# my->mc_olen[toggle] = 0;
# ^
# mdb.c:9150:2: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
# free(my.mc_wbuf[0]);
# ^
# mdb.c:8853:5: error: 'mdb_copy' has no member named 'mc_wlen'
# my->mc_wlen[toggle] = 0;
# ^
# mdb.c:9150:9: error: 'mdb_copy' has no member named 'mc_wbuf'
# free(my.mc_wbuf[0]);
# ^
# mdb.c: In function 'mdb_env_copyfd0':
# mdb.c:8855:26: error: 'mdb_copy' has no member named 'mc_cond'
# pthread_cond_signal(&my->mc_cond);
# ^
# mdb.c:9159:17: error: 'NULL' undeclared (first use in this function)
# MDB_txn *txn = NULL;
# ^
# mdb.c:8857:25: error: 'mdb_copy' has no member named 'mc_cond'
# pthread_cond_signal(&my->mc_cond);
# ^
# mdb.c:9162:2: error: unknown type name 'size_t'
# size_t wsize, w3;
# ^
# mdb.c:8858:26: error: 'mdb_copy' has no member named 'mc_mutex'
# pthread_mutex_unlock(&my->mc_mutex);
# ^
# mdb.c: In function 'mdb_env_cthr_toggle':
# mdb.c:9168:2: error: unknown type name 'ssize_t'
# ssize_t len;
# ^
# mdb.c:8867:17: error: 'mdb_copy' has no member named 'mc_toggle'
# int toggle = my->mc_toggle ^ 1;
# ^
# mdb.c:9169:2: error: unknown type name 'size_t'
# size_t w2;
# ^
# mdb.c:8868:24: error: 'mdb_copy' has no member named 'mc_mutex'
# pthread_mutex_lock(&my->mc_mutex);
# ^
# mdb.c:8869:8: error: 'mdb_copy' has no member named 'mc_status'
# if (my->mc_status) {
# ^
# mdb.c:356:19: error: 'errno' undeclared (first use in this function)
# #define ErrCode() errno
# ^
# mdb.c:9202:9: note: in expansion of macro 'ErrCode'
# rc = ErrCode();
# ^
# mdb.c:8870:27: error: 'mdb_copy' has no member named 'mc_mutex'
# pthread_mutex_unlock(&my->mc_mutex);
# ^
# mdb.c:9211:9: error: 'EIO' undeclared (first use in this function)
# rc = EIO;
# ^
# mdb.c:8871:12: error: 'mdb_copy' has no member named 'mc_status'
# return my->mc_status;
# ^
# mdb.c:9223:3: error: unknown type name 'size_t'
# size_t fsize = 0;
# ^
# mdb.c:8873:11: error: 'mdb_copy' has no member named 'mc_new'
# while (my->mc_new == 1)
# ^
# mdb.c:9224:3: warning: implicit declaration of function 'mdb_fsize' [-Wimplicit-function-declaration]
# if ((rc = mdb_fsize(env->me_fd, &fsize)))
# ^
# mdb.c:8874:24: error: 'mdb_copy' has no member named 'mc_cond'
# pthread_cond_wait(&my->mc_cond, &my->mc_mutex);
# ^
# mdb.c:8874:38: error: 'mdb_copy' has no member named 'mc_mutex'
# pthread_cond_wait(&my->mc_cond, &my->mc_mutex);
# ^
# mdb.c:1274:44: error: 'ssize_t' undeclared (first use in this function)
# #define MAX_WRITE (0x40000000U >> (sizeof(ssize_t) == 4))
# ^
# mdb.c:9231:15: note: in expansion of macro 'MAX_WRITE'
# if (wsize > MAX_WRITE)
# ^
# mdb.c: In function 'mdb_env_copy2':
# mdb.c:8875:4: error: 'mdb_copy' has no member named 'mc_new'
# my->mc_new = st;
# ^
# mdb.c:9283:9: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
# len = strlen(path);
# ^
# mdb.c:8876:4: error: 'mdb_copy' has no member named 'mc_toggle'
# my->mc_toggle = toggle;
# ^
# mdb.c:9285:11: warning: incompatible implicit declaration of built-in function 'malloc' [enabled by default]
# lpath = malloc(len);
# ^
# mdb.c:8877:25: error: 'mdb_copy' has no member named 'mc_cond'
# pthread_cond_signal(&my->mc_cond);
# ^
# mdb.c:9287:11: error: 'ENOMEM' undeclared (first use in this function)
# return ENOMEM;
# ^
# mdb.c:8878:26: error: 'mdb_copy' has no member named 'mc_mutex'
# pthread_mutex_unlock(&my->mc_mutex);
# ^
# mdb.c: In function 'mdb_env_cwalk':
# mdb.c:9288:3: warning: incompatible implicit declaration of built-in function 'sprintf' [enabled by default]
# sprintf(lpath, "%s" DATANAME, path);
# ^
# mdb.c:8887:19: error: 'mdb_copy' has no member named 'mc_txn'
# MDB_txn *txn = my->mc_txn;
# ^
# mdb.c:9303:22: error: 'O_WRONLY' undeclared (first use in this function)
# newfd = open(lpath, O_WRONLY|O_CREAT|O_EXCL, 0666);
# ^
# mdb.c:8902:22: error: 'mdb_copy' has no member named 'mc_txn'
# rc = mdb_page_get(my->mc_txn, *pg, &mc.mc_pg[0], NULL);
# ^
# mdb.c:9303:31: error: 'O_CREAT' undeclared (first use in this function)
# newfd = open(lpath, O_WRONLY|O_CREAT|O_EXCL, 0666);
# ^
# mdb.c:8902:51: error: 'NULL' undeclared (first use in this function)
# rc = mdb_page_get(my->mc_txn, *pg, &mc.mc_pg[0], NULL);
# ^
# mdb.c:9303:39: error: 'O_EXCL' undeclared (first use in this function)
# newfd = open(lpath, O_WRONLY|O_CREAT|O_EXCL, 0666);
# ^
# mdb.c:8910:14: warning: incompatible implicit declaration of built-in function 'malloc' [enabled by default]
# buf = ptr = malloc(my->mc_env->me_psize * mc.mc_snum);
# ^
# mdb.c:356:19: error: 'errno' undeclared (first use in this function)
# #define ErrCode() errno
# ^
# mdb.c:9306:8: note: in expansion of macro 'ErrCode'
# rc = ErrCode();
# ^
# mdb.c:8910:23: error: 'mdb_copy' has no member named 'mc_env'
# buf = ptr = malloc(my->mc_env->me_psize * mc.mc_snum);
# ^
# mdb.c:9329:3: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
# free(lpath);
# ^
# mdb.c:8912:10: error: 'ENOMEM' undeclared (first use in this function)
# return ENOMEM;
# ^
# mdb.c: In function 'mdb_env_set_flags':
# mdb.c:8915:49: error: 'mdb_copy' has no member named 'mc_env'
# mdb_page_copy((MDB_page *)ptr, mc.mc_pg[i], my->mc_env->me_psize);
# ^
# mdb.c:9347:10: error: 'EINVAL' undeclared (first use in this function)
# return EINVAL;
# ^
# mdb.c: In function 'mdb_env_get_flags':
# mdb.c:8917:12: error: 'mdb_copy' has no member named 'mc_env'
# ptr += my->mc_env->me_psize;
# ^
# mdb.c:9359:10: error: 'EINVAL' undeclared (first use in this function)
# return EINVAL;
# ^
# mdb.c: In function 'mdb_env_set_userctx':
# mdb.c:8923:13: error: 'mdb_copy' has no member named 'mc_toggle'
# toggle = my->mc_toggle;
# ^
# mdb.c:9369:10: error: 'EINVAL' undeclared (first use in this function)
# return EINVAL;
# ^
# mdb.c: In function 'mdb_env_get_userctx':
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:817:40: note: in expansion of macro 'PAGEHDRSZ'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:8927:7: note: in expansion of macro 'NUMKEYS'
# n = NUMKEYS(mp);
# ^
# mdb.c:9377:33: error: 'NULL' undeclared (first use in this function)
# return env ? env->me_userctx : NULL;
# ^
# mdb.c: In function 'mdb_env_set_assert':
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:817:50: note: in expansion of macro 'PAGEBASE'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:8927:7: note: in expansion of macro 'NUMKEYS'
# n = NUMKEYS(mp);
# ^
# mdb.c:9384:10: error: 'EINVAL' undeclared (first use in this function)
# return EINVAL;
# ^
# mdb.c: In function 'mdb_env_get_path':
# mdb.c:9395:10: error: 'EINVAL' undeclared (first use in this function)
# return EINVAL;
# ^
# mdb.c: In function 'mdb_env_get_fd':
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:8932:11: note: in expansion of macro 'NODEPTR'
# ni = NODEPTR(mp, i);
# ^
# mdb.c:9405:10: error: 'EINVAL' undeclared (first use in this function)
# return EINVAL;
# ^
# mdb.c: In function 'mdb_env_stat':
# mdb.c:8940:34: error: 'mdb_copy' has no member named 'mc_env'
# mdb_page_copy(leaf, mp, my->mc_env->me_psize);
# ^
# mdb.c:9435:13: error: 'NULL' undeclared (first use in this function)
# if (env == NULL || arg == NULL)
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:8942:13: note: in expansion of macro 'NODEPTR'
# ni = NODEPTR(mp, i);
# ^
# mdb.c:9436:10: error: 'EINVAL' undeclared (first use in this function)
# return EINVAL;
# ^
# mdb.c: In function 'mdb_env_info':
# mdb.c:8945:7: warning: incompatible implicit declaration of built-in function 'memcpy' [enabled by default]
# memcpy(&pg, NODEDATA(ni), sizeof(pg));
# ^
# mdb.c:9448:13: error: 'NULL' undeclared (first use in this function)
# if (env == NULL || arg == NULL)
# ^
# mdb.c:8949:13: error: 'mdb_copy' has no member named 'mc_wlen'
# if (my->mc_wlen[toggle] >= MDB_WBUF) {
# ^
# mdb.c:9449:10: error: 'EINVAL' undeclared (first use in this function)
# return EINVAL;
# ^
# mdb.c: In function 'mdb_default_cmp':
# mdb.c:8953:19: error: 'mdb_copy' has no member named 'mc_toggle'
# toggle = my->mc_toggle;
# ^
# mdb.c:9472:2: error: unknown type name 'uint16_t'
# uint16_t f = txn->mt_dbs[dbi].md_flags;
# ^
# mdb.c:8955:27: error: 'mdb_copy' has no member named 'mc_wbuf'
# mo = (MDB_page *)(my->mc_wbuf[toggle] + my->mc_wlen[toggle]);
# ^
# mdb.c: In function 'mdb_dbi_open':
# mdb.c:8955:49: error: 'mdb_copy' has no member named 'mc_wlen'
# mo = (MDB_page *)(my->mc_wbuf[toggle] + my->mc_wlen[toggle]);
# ^
# mdb.c:9494:2: error: unknown type name 'size_t'
# size_t len;
# ^
# mdb.c:8956:25: error: 'mdb_copy' has no member named 'mc_env'
# memcpy(mo, omp, my->mc_env->me_psize);
# ^
# mdb.c:9497:10: error: 'EINVAL' undeclared (first use in this function)
# return EINVAL;
# ^
# mdb.c:8957:23: error: 'mdb_copy' has no member named 'mc_next_pgno'
# mo->mp_pgno = my->mc_next_pgno;
# ^
# mdb.c:9505:4: error: unknown type name 'uint16_t'
# uint16_t f2 = flags & PERSISTENT_FLAGS;
# ^
# mdb.c:8958:9: error: 'mdb_copy' has no member named 'mc_next_pgno'
# my->mc_next_pgno += omp->mp_pages;
# ^
# mdb.c:9516:39: error: 'NULL' undeclared (first use in this function)
# if (txn->mt_dbxs[MAIN_DBI].md_cmp == NULL) {
# ^
# mdb.c:8959:9: error: 'mdb_copy' has no member named 'mc_wlen'
# my->mc_wlen[toggle] += my->mc_env->me_psize;
# ^
# mdb.c:9521:8: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
# len = strlen(name);
# ^
# mdb.c:8959:32: error: 'mdb_copy' has no member named 'mc_env'
# my->mc_wlen[toggle] += my->mc_env->me_psize;
# ^
# mdb.c:8961:10: error: 'mdb_copy' has no member named 'mc_olen'
# my->mc_olen[toggle] = my->mc_env->me_psize * (omp->mp_pages - 1);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:9552:20: note: in expansion of macro 'NODEPTR'
# MDB_node *node = NODEPTR(mc.mc_pg[mc.mc_top], mc.mc_ki[mc.mc_top]);
# ^
# mdb.c:8961:32: error: 'mdb_copy' has no member named 'mc_env'
# my->mc_olen[toggle] = my->mc_env->me_psize * (omp->mp_pages - 1);
# ^
# mdb.c:9560:17: warning: incompatible implicit declaration of built-in function 'strdup' [enabled by default]
# if ((namedup = strdup(name)) == NULL)
# ^
# mdb.c:8962:10: error: 'mdb_copy' has no member named 'mc_over'
# my->mc_over[toggle] = (char *)omp + my->mc_env->me_psize;
# ^
# mdb.c:9561:10: error: 'ENOMEM' undeclared (first use in this function)
# return ENOMEM;
# ^
# mdb.c:8962:46: error: 'mdb_copy' has no member named 'mc_env'
# my->mc_over[toggle] = (char *)omp + my->mc_env->me_psize;
# ^
# mdb.c:9567:3: warning: incompatible implicit declaration of built-in function 'memset' [enabled by default]
# memset(&dummy, 0, sizeof(dummy));
# ^
# mdb.c:8966:19: error: 'mdb_copy' has no member named 'mc_toggle'
# toggle = my->mc_toggle;
# ^
# mdb.c:9575:3: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
# free(namedup);
# ^
# mdb.c:8975:34: error: 'mdb_copy' has no member named 'mc_env'
# mdb_page_copy(leaf, mp, my->mc_env->me_psize);
# ^
# mdb.c:9589:3: warning: incompatible implicit declaration of built-in function 'memcpy' [enabled by default]
# memcpy(&txn->mt_dbs[slot], data.mv_data, sizeof(MDB_db));
# ^
# mdb.c: In function 'mdb_stat':
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:8977:13: note: in expansion of macro 'NODEPTR'
# ni = NODEPTR(mp, i);
# ^
# mdb.c:9604:10: error: 'EINVAL' undeclared (first use in this function)
# return EINVAL;
# ^
# mdb.c:8980:7: warning: incompatible implicit declaration of built-in function 'memcpy' [enabled by default]
# memcpy(&db, NODEDATA(ni), sizeof(db));
# ^
# mdb.c: In function 'mdb_dbi_close':
# mdb.c:8981:9: error: 'mdb_copy' has no member named 'mc_toggle'
# my->mc_toggle = toggle;
# ^
# mdb.c:9626:39: error: 'NULL' undeclared (first use in this function)
# env->me_dbxs[dbi].md_name.mv_data = NULL;
# ^
# mdb.c:8985:18: error: 'mdb_copy' has no member named 'mc_toggle'
# toggle = my->mc_toggle;
# ^
# mdb.c:9630:3: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
# free(ptr);
# ^
# mdb.c: In function 'mdb_dbi_flags':
# mdb.c:8992:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
# if (mc.mc_ki[mc.mc_top] < n) {
# ^
# mdb.c:9638:10: error: 'EINVAL' undeclared (first use in this function)
# return EINVAL;
# ^
# mdb.c: In function 'mdb_drop0':
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:8995:10: note: in expansion of macro 'NODEPTR'
# ni = NODEPTR(mp, mc.mc_ki[mc.mc_top]);
# ^
# mdb.c:9653:27: error: 'NULL' undeclared (first use in this function)
# rc = mdb_page_search(mc, NULL, MDB_PS_FIRST);
# ^
# mdb.c:885:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
# #define PGNO_TOPWORD ((pgno_t)-1 > 0xffffffffu ? 32 : 0)
# ^
# mdb.c:909:4: note: in expansion of macro 'PGNO_TOPWORD'
# (PGNO_TOPWORD ? ((pgno_t) (node)->mn_flags << PGNO_TOPWORD) : 0))
# ^
# mdb.c:8996:10: note: in expansion of macro 'NODEPGNO'
# pg = NODEPGNO(ni);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:817:40: note: in expansion of macro 'PAGEHDRSZ'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:9669:17: note: in expansion of macro 'NUMKEYS'
# unsigned n = NUMKEYS(mp);
# ^
# mdb.c:9007:47: error: 'mdb_copy' has no member named 'mc_env'
# mdb_page_copy(mc.mc_pg[mc.mc_top], mp, my->mc_env->me_psize);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:817:50: note: in expansion of macro 'PAGEBASE'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:9669:17: note: in expansion of macro 'NUMKEYS'
# unsigned n = NUMKEYS(mp);
# ^
# mdb.c:9014:9: error: 'mdb_copy' has no member named 'mc_wlen'
# if (my->mc_wlen[toggle] >= MDB_WBUF) {
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:9672:11: note: in expansion of macro 'NODEPTR'
# ni = NODEPTR(mp, i);
# ^
# mdb.c:9018:15: error: 'mdb_copy' has no member named 'mc_toggle'
# toggle = my->mc_toggle;
# ^
# mdb.c:9676:7: warning: incompatible implicit declaration of built-in function 'memcpy' [enabled by default]
# memcpy(&pg, NODEDATA(ni), sizeof(pg));
# ^
# mdb.c:9020:23: error: 'mdb_copy' has no member named 'mc_wbuf'
# mo = (MDB_page *)(my->mc_wbuf[toggle] + my->mc_wlen[toggle]);
# ^
# mdb.c:9020:45: error: 'mdb_copy' has no member named 'mc_wlen'
# mo = (MDB_page *)(my->mc_wbuf[toggle] + my->mc_wlen[toggle]);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:9697:11: note: in expansion of macro 'NODEPTR'
# ni = NODEPTR(mp, i);
# ^
# mdb.c:9021:27: error: 'mdb_copy' has no member named 'mc_env'
# mdb_page_copy(mo, mp, my->mc_env->me_psize);
# ^
# mdb.c:885:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
# #define PGNO_TOPWORD ((pgno_t)-1 > 0xffffffffu ? 32 : 0)
# ^
# mdb.c:909:4: note: in expansion of macro 'PGNO_TOPWORD'
# (PGNO_TOPWORD ? ((pgno_t) (node)->mn_flags << PGNO_TOPWORD) : 0))
# ^
# mdb.c:9698:11: note: in expansion of macro 'NODEPGNO'
# pg = NODEPGNO(ni);
# ^
# mdb.c:9022:19: error: 'mdb_copy' has no member named 'mc_next_pgno'
# mo->mp_pgno = my->mc_next_pgno++;
# ^
# mdb.c: In function 'mdb_drop':
# mdb.c:9023:5: error: 'mdb_copy' has no member named 'mc_wlen'
# my->mc_wlen[toggle] += my->mc_env->me_psize;
# ^
# mdb.c:9739:10: error: 'EINVAL' undeclared (first use in this function)
# return EINVAL;
# ^
# mdb.c:9023:28: error: 'mdb_copy' has no member named 'mc_env'
# my->mc_wlen[toggle] += my->mc_env->me_psize;
# ^
# mdb.c:9742:10: error: 'EACCES' undeclared (first use in this function)
# return EACCES;
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:9026:9: note: in expansion of macro 'NODEPTR'
# ni = NODEPTR(mc.mc_pg[mc.mc_top-1], mc.mc_ki[mc.mc_top-1]);
# ^
# mdb.c:9760:54: error: 'NULL' undeclared (first use in this function)
# rc = mdb_del0(txn, MAIN_DBI, &mc->mc_dbx->md_name, NULL, F_SUBDATA);
# ^
# mdb.c: In function 'mdb_set_compare':
# mdb.c:885:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
# #define PGNO_TOPWORD ((pgno_t)-1 > 0xffffffffu ? 32 : 0)
# ^
# mdb.c:913:6: note: in expansion of macro 'PGNO_TOPWORD'
# if (PGNO_TOPWORD) (node)->mn_flags = (pgno) >> PGNO_TOPWORD; } while(0)
# ^
# mdb.c:9027:4: note: in expansion of macro 'SETPGNO'
# SETPGNO(ni, mo->mp_pgno);
# ^
# mdb.c:9787:10: error: 'EINVAL' undeclared (first use in this function)
# return EINVAL;
# ^
# mdb.c: In function 'mdb_set_dupsort':
# mdb.c:885:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
# #define PGNO_TOPWORD ((pgno_t)-1 > 0xffffffffu ? 32 : 0)
# ^
# mdb.c:913:49: note: in expansion of macro 'PGNO_TOPWORD'
# if (PGNO_TOPWORD) (node)->mn_flags = (pgno) >> PGNO_TOPWORD; } while(0)
# ^
# mdb.c:9027:4: note: in expansion of macro 'SETPGNO'
# SETPGNO(ni, mo->mp_pgno);
# ^
# mdb.c:9796:10: error: 'EINVAL' undeclared (first use in this function)
# return EINVAL;
# ^
# mdb.c: In function 'mdb_set_relfunc':
# mdb.c:9036:2: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
# free(buf);
# ^
# mdb.c: In function 'mdb_env_copyfd1':
# mdb.c:9805:10: error: 'EINVAL' undeclared (first use in this function)
# return EINVAL;
# ^
# mdb.c: In function 'mdb_set_relctx':
# mdb.c:9047:17: error: 'NULL' undeclared (first use in this function)
# MDB_txn *txn = NULL;
# ^
# mdb.c:9814:10: error: 'EINVAL' undeclared (first use in this function)
# return EINVAL;
# ^
# mdb.c: In function 'mdb_reader_list':
# mdb.c:9048:2: error: unknown type name 'pthread_t'
# pthread_t thr;
# ^
# mdb.c:9844:4: warning: incompatible implicit declaration of built-in function 'sprintf' [enabled by default]
# sprintf(buf, txnid == (txnid_t)-1 ?
# ^
# mdb.c:9058:24: error: 'mdb_copy' has no member named 'mc_mutex'
# pthread_mutex_init(&my.mc_mutex, NULL);
# ^
# mdb.c:9059:2: warning: implicit declaration of function 'pthread_cond_init' [-Wimplicit-function-declaration]
# pthread_cond_init(&my.mc_cond, NULL);
# ^
# mdb.c:9846:25: error: 'size_t' undeclared (first use in this function)
# (int)mr[i].mr_pid, (size_t)mr[i].mr_tid, txnid);
# ^
# mdb.c:9059:23: error: 'mdb_copy' has no member named 'mc_cond'
# pthread_cond_init(&my.mc_cond, NULL);
# ^
# mdb.c:9846:32: error: expected ')' before 'mr'
# (int)mr[i].mr_pid, (size_t)mr[i].mr_tid, txnid);
# ^
# mdb.c: At top level:
# mdb.c:9065:2: warning: implicit declaration of function 'posix_memalign' [-Wimplicit-function-declaration]
# rc = posix_memalign((void **)&my.mc_wbuf[0], env->me_os_psize, MDB_WBUF*2);
# ^
# mdb.c:62:19: error: unknown type name 'pid_t'
# #define MDB_PID_T pid_t
# ^
# mdb.c:9868:16: note: in expansion of macro 'MDB_PID_T'
# mdb_pid_insert(MDB_PID_T *ids, MDB_PID_T pid)
# ^
# mdb.c:9065:34: error: 'mdb_copy' has no member named 'mc_wbuf'
# rc = posix_memalign((void **)&my.mc_wbuf[0], env->me_os_psize, MDB_WBUF*2);
# ^
# mdb.c:62:19: error: unknown type name 'pid_t'
# #define MDB_PID_T pid_t
# ^
# mdb.c:9868:32: note: in expansion of macro 'MDB_PID_T'
# mdb_pid_insert(MDB_PID_T *ids, MDB_PID_T pid)
# ^
# mdb.c: In function 'mdb_reader_check':
# mdb.c:9070:2: warning: incompatible implicit declaration of built-in function 'memset' [enabled by default]
# memset(my.mc_wbuf[0], 0, MDB_WBUF*2);
# ^
# mdb.c:9908:10: error: 'EINVAL' undeclared (first use in this function)
# return EINVAL;
# ^
# mdb.c: In function 'mdb_reader_check0':
# mdb.c:9070:11: error: 'mdb_copy' has no member named 'mc_wbuf'
# memset(my.mc_wbuf[0], 0, MDB_WBUF*2);
# ^
# mdb.c:9918:36: error: 'NULL' undeclared (first use in this function)
# mdb_mutexref_t rmutex = rlocked ? NULL : env->me_rmutex;
# ^
# mdb.c:9071:4: error: 'mdb_copy' has no member named 'mc_wbuf'
# my.mc_wbuf[1] = my.mc_wbuf[0] + MDB_WBUF;
# ^
# mdb.c:62:19: error: unknown type name 'pid_t'
# #define MDB_PID_T pid_t
# ^
# mdb.c:9921:2: note: in expansion of macro 'MDB_PID_T'
# MDB_PID_T *pids, pid;
# ^
# mdb.c:9071:20: error: 'mdb_copy' has no member named 'mc_wbuf'
# my.mc_wbuf[1] = my.mc_wbuf[0] + MDB_WBUF;
# ^
# mdb.c:9925:9: warning: incompatible implicit declaration of built-in function 'malloc' [enabled by default]
# pids = malloc((rdrs+1) * sizeof(MDB_PID_T));
# ^
# mdb.c:9072:4: error: 'mdb_copy' has no member named 'mc_wlen'
# my.mc_wlen[0] = 0;
# ^
# mdb.c:62:19: error: 'pid_t' undeclared (first use in this function)
# #define MDB_PID_T pid_t
# ^
# mdb.c:9925:34: note: in expansion of macro 'MDB_PID_T'
# pids = malloc((rdrs+1) * sizeof(MDB_PID_T));
# ^
# mdb.c:9073:4: error: 'mdb_copy' has no member named 'mc_wlen'
# my.mc_wlen[1] = 0;
# ^
# mdb.c:9927:10: error: 'ENOMEM' undeclared (first use in this function)
# return ENOMEM;
# ^
# mdb.c:9074:4: error: 'mdb_copy' has no member named 'mc_olen'
# my.mc_olen[0] = 0;
# ^
# mdb.c:9075:4: error: 'mdb_copy' has no member named 'mc_olen'
# my.mc_olen[1] = 0;
# ^
# mdb.c:9933:4: warning: implicit declaration of function 'mdb_pid_insert' [-Wimplicit-function-declaration]
# if (mdb_pid_insert(pids, pid) == 0) {
# ^
# mdb.c:9076:4: error: 'mdb_copy' has no member named 'mc_next_pgno'
# my.mc_next_pgno = NUM_METAS;
# ^
# mdb.c:9961:2: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
# free(pids);
# ^
# mdb.c:9077:4: error: 'mdb_copy' has no member named 'mc_status'
# my.mc_status = 0;
# ^
# mdb.c:9078:4: error: 'mdb_copy' has no member named 'mc_new'
# my.mc_new = 1;
# ^
# mdb.c:9079:4: error: 'mdb_copy' has no member named 'mc_toggle'
# my.mc_toggle = 0;
# ^
# mdb.c:9080:4: error: 'mdb_copy' has no member named 'mc_env'
# my.mc_env = env;
# ^
# mdb.c:9081:4: error: 'mdb_copy' has no member named 'mc_fd'
# my.mc_fd = fd;
# ^
# mdb.c:9082:2: warning: implicit declaration of function 'pthread_create' [-Wimplicit-function-declaration]
# THREAD_CREATE(thr, mdb_env_copythr, &my);
# ^
# mdb.c:9088:21: error: 'mdb_copy' has no member named 'mc_wbuf'
# mp = (MDB_page *)my.mc_wbuf[0];
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:811:46: note: in expansion of macro 'PAGEHDRSZ'
# #define METADATA(p) ((void *)((char *)(p) + PAGEHDRSZ))
# ^
# mdb.c:9092:19: note: in expansion of macro 'METADATA'
# mm = (MDB_meta *)METADATA(mp);
# ^
# mdb.c: In function 'mdb_cmp_long':
# mdb.c:9096:22: error: 'mdb_copy' has no member named 'mc_wbuf'
# mp = (MDB_page *)(my.mc_wbuf[0] + env->me_psize);
# ^
# mdb.c:4970:1: warning: control reaches end of non-void function [-Wreturn-type]
# }
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:811:46: note: in expansion of macro 'PAGEHDRSZ'
# #define METADATA(p) ((void *)((char *)(p) + PAGEHDRSZ))
# ^
# mdb.c:9099:15: note: in expansion of macro 'METADATA'
# *(MDB_meta *)METADATA(mp) = *mm;
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:811:46: note: in expansion of macro 'PAGEHDRSZ'
# #define METADATA(p) ((void *)((char *)(p) + PAGEHDRSZ))
# ^
# mdb.c:9100:19: note: in expansion of macro 'METADATA'
# mm = (MDB_meta *)METADATA(mp);
# ^
# mdb.c:9126:4: error: 'mdb_copy' has no member named 'mc_wlen'
# my.mc_wlen[0] = env->me_psize * NUM_METAS;
# ^
# mdb.c:9127:4: error: 'mdb_copy' has no member named 'mc_txn'
# my.mc_txn = txn;
# ^
# mdb.c:9128:24: error: 'mdb_copy' has no member named 'mc_mutex'
# pthread_mutex_lock(&my.mc_mutex);
# ^
# mdb.c:9129:10: error: 'mdb_copy' has no member named 'mc_new'
# while(my.mc_new)
# ^
# mdb.c:9130:24: error: 'mdb_copy' has no member named 'mc_cond'
# pthread_cond_wait(&my.mc_cond, &my.mc_mutex);
# ^
# mdb.c:9130:37: error: 'mdb_copy' has no member named 'mc_mutex'
# pthread_cond_wait(&my.mc_cond, &my.mc_mutex);
# ^
# mdb.c:9131:26: error: 'mdb_copy' has no member named 'mc_mutex'
# pthread_mutex_unlock(&my.mc_mutex);
# ^
# mdb.c:9133:29: error: 'mdb_copy' has no member named 'mc_wlen'
# if (rc == MDB_SUCCESS && my.mc_wlen[my.mc_toggle])
# ^
# mdb.c:9133:40: error: 'mdb_copy' has no member named 'mc_toggle'
# if (rc == MDB_SUCCESS && my.mc_wlen[my.mc_toggle])
# ^
# mdb.c:9136:24: error: 'mdb_copy' has no member named 'mc_mutex'
# pthread_mutex_lock(&my.mc_mutex);
# ^
# mdb.c:9137:10: error: 'mdb_copy' has no member named 'mc_new'
# while(my.mc_new)
# ^
# mdb.c:9138:24: error: 'mdb_copy' has no member named 'mc_cond'
# pthread_cond_wait(&my.mc_cond, &my.mc_mutex);
# ^
# mdb.c:9138:37: error: 'mdb_copy' has no member named 'mc_mutex'
# pthread_cond_wait(&my.mc_cond, &my.mc_mutex);
# ^
# mdb.c:9139:26: error: 'mdb_copy' has no member named 'mc_mutex'
# pthread_mutex_unlock(&my.mc_mutex);
# ^
# mdb.c:9140:2: warning: implicit declaration of function 'pthread_join' [-Wimplicit-function-declaration]
# THREAD_FINISH(thr);
# ^
# mdb.c:9148:2: warning: implicit declaration of function 'pthread_cond_destroy' [-Wimplicit-function-declaration]
# pthread_cond_destroy(&my.mc_cond);
# ^
# mdb.c:9148:26: error: 'mdb_copy' has no member named 'mc_cond'
# pthread_cond_destroy(&my.mc_cond);
# ^
# mdb.c: In function 'mdb_env_get_userctx':
# mdb.c:9149:2: warning: implicit declaration of function 'pthread_mutex_destroy' [-Wimplicit-function-declaration]
# pthread_mutex_destroy(&my.mc_mutex);
# ^
# mdb.c:9378:1: warning: control reaches end of non-void function [-Wreturn-type]
# }
# ^
# mdb.c:9149:27: error: 'mdb_copy' has no member named 'mc_mutex'
# pthread_mutex_destroy(&my.mc_mutex);
# ^
# mdb.c:9150:2: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
# free(my.mc_wbuf[0]);
# ^
# mdb.c:9150:9: error: 'mdb_copy' has no member named 'mc_wbuf'
# free(my.mc_wbuf[0]);
# ^
# mdb.c: In function 'mdb_env_copyfd0':
# mdb.c:9159:17: error: 'NULL' undeclared (first use in this function)
# MDB_txn *txn = NULL;
# ^
# mdb.c:9162:2: error: unknown type name 'size_t'
# size_t wsize, w3;
# ^
# make: *** [Makefile:88: mdb.lo] Error 1
# mdb.c:9168:2: error: unknown type name 'ssize_t'
# ssize_t len;
# ^
# mdb.c:9169:2: error: unknown type name 'size_t'
# size_t w2;
# ^
# mdb.c:356:19: error: 'errno' undeclared (first use in this function)
# #define ErrCode() errno
# ^
# mdb.c:9202:9: note: in expansion of macro 'ErrCode'
# rc = ErrCode();
# ^
# mdb.c:9211:9: error: 'EIO' undeclared (first use in this function)
# rc = EIO;
# ^
# mdb.c:9223:3: error: unknown type name 'size_t'
# size_t fsize = 0;
# ^
# mdb.c:9224:3: warning: implicit declaration of function 'mdb_fsize' [-Wimplicit-function-declaration]
# if ((rc = mdb_fsize(env->me_fd, &fsize)))
# ^
# mdb.c:1274:44: error: 'ssize_t' undeclared (first use in this function)
# #define MAX_WRITE (0x40000000U >> (sizeof(ssize_t) == 4))
# ^
# mdb.c:9231:15: note: in expansion of macro 'MAX_WRITE'
# if (wsize > MAX_WRITE)
# ^
# mdb.c: In function 'mdb_env_copy2':
# mdb.c:9283:9: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
# len = strlen(path);
# ^
# mdb.c:9285:11: warning: incompatible implicit declaration of built-in function 'malloc' [enabled by default]
# lpath = malloc(len);
# ^
# mdb.c:9287:11: error: 'ENOMEM' undeclared (first use in this function)
# return ENOMEM;
# ^
# mdb.c:9288:3: warning: incompatible implicit declaration of built-in function 'sprintf' [enabled by default]
# sprintf(lpath, "%s" DATANAME, path);
# ^
# mdb.c:9303:22: error: 'O_WRONLY' undeclared (first use in this function)
# newfd = open(lpath, O_WRONLY|O_CREAT|O_EXCL, 0666);
# ^
# mdb.c:9303:31: error: 'O_CREAT' undeclared (first use in this function)
# newfd = open(lpath, O_WRONLY|O_CREAT|O_EXCL, 0666);
# ^
# mdb.c:9303:39: error: 'O_EXCL' undeclared (first use in this function)
# newfd = open(lpath, O_WRONLY|O_CREAT|O_EXCL, 0666);
# ^
# mdb.c:356:19: error: 'errno' undeclared (first use in this function)
# #define ErrCode() errno
# ^
# mdb.c:9306:8: note: in expansion of macro 'ErrCode'
# rc = ErrCode();
# ^
# mdb.c:9329:3: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
# free(lpath);
# ^
# mdb.c: In function 'mdb_env_set_flags':
# mdb.c:9347:10: error: 'EINVAL' undeclared (first use in this function)
# return EINVAL;
# ^
# mdb.c: In function 'mdb_env_get_flags':
# mdb.c:9359:10: error: 'EINVAL' undeclared (first use in this function)
# return EINVAL;
# ^
# mdb.c: In function 'mdb_env_set_userctx':
# mdb.c:9369:10: error: 'EINVAL' undeclared (first use in this function)
# return EINVAL;
# ^
# mdb.c: In function 'mdb_env_get_userctx':
# mdb.c:9377:33: error: 'NULL' undeclared (first use in this function)
# return env ? env->me_userctx : NULL;
# ^
# mdb.c: In function 'mdb_env_set_assert':
# mdb.c:9384:10: error: 'EINVAL' undeclared (first use in this function)
# return EINVAL;
# ^
# mdb.c: In function 'mdb_env_get_path':
# mdb.c:9395:10: error: 'EINVAL' undeclared (first use in this function)
# return EINVAL;
# ^
# mdb.c: In function 'mdb_env_get_fd':
# mdb.c:9405:10: error: 'EINVAL' undeclared (first use in this function)
# return EINVAL;
# ^
# mdb.c: In function 'mdb_env_stat':
# mdb.c:9435:13: error: 'NULL' undeclared (first use in this function)
# if (env == NULL || arg == NULL)
# ^
# mdb.c:9436:10: error: 'EINVAL' undeclared (first use in this function)
# return EINVAL;
# ^
# mdb.c: In function 'mdb_env_info':
# mdb.c:9448:13: error: 'NULL' undeclared (first use in this function)
# if (env == NULL || arg == NULL)
# ^
# mdb.c:9449:10: error: 'EINVAL' undeclared (first use in this function)
# return EINVAL;
# ^
# mdb.c: In function 'mdb_default_cmp':
# mdb.c:9472:2: error: unknown type name 'uint16_t'
# uint16_t f = txn->mt_dbs[dbi].md_flags;
# ^
# mdb.c: In function 'mdb_dbi_open':
# mdb.c:9494:2: error: unknown type name 'size_t'
# size_t len;
# ^
# mdb.c:9497:10: error: 'EINVAL' undeclared (first use in this function)
# return EINVAL;
# ^
# mdb.c:9505:4: error: unknown type name 'uint16_t'
# uint16_t f2 = flags & PERSISTENT_FLAGS;
# ^
# mdb.c:9516:39: error: 'NULL' undeclared (first use in this function)
# if (txn->mt_dbxs[MAIN_DBI].md_cmp == NULL) {
# ^
# mdb.c:9521:8: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
# len = strlen(name);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:9552:20: note: in expansion of macro 'NODEPTR'
# MDB_node *node = NODEPTR(mc.mc_pg[mc.mc_top], mc.mc_ki[mc.mc_top]);
# ^
# mdb.c:9560:17: warning: incompatible implicit declaration of built-in function 'strdup' [enabled by default]
# if ((namedup = strdup(name)) == NULL)
# ^
# mdb.c:9561:10: error: 'ENOMEM' undeclared (first use in this function)
# return ENOMEM;
# ^
# mdb.c:9567:3: warning: incompatible implicit declaration of built-in function 'memset' [enabled by default]
# memset(&dummy, 0, sizeof(dummy));
# ^
# mdb.c:9575:3: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
# free(namedup);
# ^
# mdb.c:9589:3: warning: incompatible implicit declaration of built-in function 'memcpy' [enabled by default]
# memcpy(&txn->mt_dbs[slot], data.mv_data, sizeof(MDB_db));
# ^
# mdb.c: In function 'mdb_stat':
# mdb.c:9604:10: error: 'EINVAL' undeclared (first use in this function)
# return EINVAL;
# ^
# mdb.c: In function 'mdb_dbi_close':
# mdb.c:9626:39: error: 'NULL' undeclared (first use in this function)
# env->me_dbxs[dbi].md_name.mv_data = NULL;
# ^
# mdb.c:9630:3: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
# free(ptr);
# ^
# mdb.c: In function 'mdb_dbi_flags':
# mdb.c:9638:10: error: 'EINVAL' undeclared (first use in this function)
# return EINVAL;
# ^
# mdb.c: In function 'mdb_drop0':
# mdb.c:9653:27: error: 'NULL' undeclared (first use in this function)
# rc = mdb_page_search(mc, NULL, MDB_PS_FIRST);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:817:40: note: in expansion of macro 'PAGEHDRSZ'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:9669:17: note: in expansion of macro 'NUMKEYS'
# unsigned n = NUMKEYS(mp);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:817:50: note: in expansion of macro 'PAGEBASE'
# #define NUMKEYS(p) (((p)->mp_lower - (PAGEHDRSZ-PAGEBASE)) >> 1)
# ^
# mdb.c:9669:17: note: in expansion of macro 'NUMKEYS'
# unsigned n = NUMKEYS(mp);
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:9672:11: note: in expansion of macro 'NODEPTR'
# ni = NODEPTR(mp, i);
# ^
# mdb.c:9676:7: warning: incompatible implicit declaration of built-in function 'memcpy' [enabled by default]
# memcpy(&pg, NODEDATA(ni), sizeof(pg));
# ^
# mdb.c:808:41: error: expected expression before 'MDB_page'
# #define PAGEHDRSZ ((unsigned) offsetof(MDB_page, mp_ptrs))
# ^
# mdb.c:814:33: note: in expansion of macro 'PAGEHDRSZ'
# #define PAGEBASE ((MDB_DEVEL) ? PAGEHDRSZ : 0)
# ^
# mdb.c:898:70: note: in expansion of macro 'PAGEBASE'
# #define NODEPTR(p, i) ((MDB_node *)((char *)(p) + (p)->mp_ptrs[i] + PAGEBASE))
# ^
# mdb.c:9697:11: note: in expansion of macro 'NODEPTR'
# ni = NODEPTR(mp, i);
# ^
# mdb.c:885:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
# #define PGNO_TOPWORD ((pgno_t)-1 > 0xffffffffu ? 32 : 0)
# ^
# mdb.c:909:4: note: in expansion of macro 'PGNO_TOPWORD'
# (PGNO_TOPWORD ? ((pgno_t) (node)->mn_flags << PGNO_TOPWORD) : 0))
# ^
# mdb.c:9698:11: note: in expansion of macro 'NODEPGNO'
# pg = NODEPGNO(ni);
# ^
# mdb.c: In function 'mdb_drop':
# mdb.c:9739:10: error: 'EINVAL' undeclared (first use in this function)
# return EINVAL;
# ^
# mdb.c:9742:10: error: 'EACCES' undeclared (first use in this function)
# return EACCES;
# ^
# mdb.c:9760:54: error: 'NULL' undeclared (first use in this function)
# rc = mdb_del0(txn, MAIN_DBI, &mc->mc_dbx->md_name, NULL, F_SUBDATA);
# ^
# mdb.c: In function 'mdb_set_compare':
# mdb.c:9787:10: error: 'EINVAL' undeclared (first use in this function)
# return EINVAL;
# ^
# mdb.c: In function 'mdb_set_dupsort':
# mdb.c:9796:10: error: 'EINVAL' undeclared (first use in this function)
# return EINVAL;
# ^
# mdb.c: In function 'mdb_set_relfunc':
# mdb.c:9805:10: error: 'EINVAL' undeclared (first use in this function)
# return EINVAL;
# ^
# mdb.c: In function 'mdb_set_relctx':
# mdb.c:9814:10: error: 'EINVAL' undeclared (first use in this function)
# return EINVAL;
# ^
# mdb.c: In function 'mdb_reader_list':
# mdb.c:9844:4: warning: incompatible implicit declaration of built-in function 'sprintf' [enabled by default]
# sprintf(buf, txnid == (txnid_t)-1 ?
# ^
# mdb.c:9846:25: error: 'size_t' undeclared (first use in this function)
# (int)mr[i].mr_pid, (size_t)mr[i].mr_tid, txnid);
# ^
# mdb.c:9846:32: error: expected ')' before 'mr'
# (int)mr[i].mr_pid, (size_t)mr[i].mr_tid, txnid);
# ^
# mdb.c: At top level:
# mdb.c:62:19: error: unknown type name 'pid_t'
# #define MDB_PID_T pid_t
# ^
# mdb.c:9868:16: note: in expansion of macro 'MDB_PID_T'
# mdb_pid_insert(MDB_PID_T *ids, MDB_PID_T pid)
# ^
# mdb.c:62:19: error: unknown type name 'pid_t'
# #define MDB_PID_T pid_t
# ^
# mdb.c:9868:32: note: in expansion of macro 'MDB_PID_T'
# mdb_pid_insert(MDB_PID_T *ids, MDB_PID_T pid)
# ^
# mdb.c: In function 'mdb_reader_check':
# mdb.c:9908:10: error: 'EINVAL' undeclared (first use in this function)
# return EINVAL;
# ^
# mdb.c: In function 'mdb_reader_check0':
# mdb.c:9918:36: error: 'NULL' undeclared (first use in this function)
# mdb_mutexref_t rmutex = rlocked ? NULL : env->me_rmutex;
# ^
# mdb.c:62:19: error: unknown type name 'pid_t'
# #define MDB_PID_T pid_t
# ^
# mdb.c:9921:2: note: in expansion of macro 'MDB_PID_T'
# MDB_PID_T *pids, pid;
# ^
# mdb.c:9925:9: warning: incompatible implicit declaration of built-in function 'malloc' [enabled by default]
# pids = malloc((rdrs+1) * sizeof(MDB_PID_T));
# ^
# mdb.c:62:19: error: 'pid_t' undeclared (first use in this function)
# #define MDB_PID_T pid_t
# ^
# mdb.c:9925:34: note: in expansion of macro 'MDB_PID_T'
# pids = malloc((rdrs+1) * sizeof(MDB_PID_T));
# ^
# mdb.c:9927:10: error: 'ENOMEM' undeclared (first use in this function)
# return ENOMEM;
# ^
# mdb.c:9933:4: warning: implicit declaration of function 'mdb_pid_insert' [-Wimplicit-function-declaration]
# if (mdb_pid_insert(pids, pid) == 0) {
# ^
# mdb.c:9961:2: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
# free(pids);
# ^
# mdb.c: In function 'mdb_cmp_long':
# mdb.c:4970:1: warning: control reaches end of non-void function [-Wreturn-type]
# }
# ^
# mdb.c: In function 'mdb_env_get_userctx':
# mdb.c:9378:1: warning: control reaches end of non-void function [-Wreturn-type]
# }
# ^
# make: *** [Makefile:82: mdb.o] Error 1
# ==> ERROR: A failure occurred in build().
# Aborting...