MidnightBSD Magus

databases/ruby-bdb

Ruby interface to Oracle Berkeley DB revision 2 or later

Flavor Version Run OSVersion Arch License Restricted Status
0.6.6_1 601 3.2 amd64 ruby 0 fail

License Permissions:

Events

Machine Type Time Message
m3264 info 2025-03-02 17:13:03.380014 Test Started
m3264 fail 2025-03-02 17:13:47.656605 make build returned non-zero: 1
m3264 fail 2025-03-02 17:13:47.809699 Test complete.

Log

===>  Building for ruby32-bdb-0.6.6_1
--- all ---
--- docs/doc/index.html ---
--- all ---
--- bdb.o ---
--- common.o ---
--- cursor.o ---
--- delegator.o ---
--- env.o ---
--- lock.o ---
--- log.o ---
compiling bdb.c
compiling common.c
compiling cursor.c
compiling delegator.c
compiling env.c
compiling lock.c
compiling log.c
--- bdb.o ---
In file included from bdb.c:1:
In file included from ./bdb.h:1:
/usr/local/include/db5/db.h:2725:5: warning: 'DB_DBM_HSEARCH' is not defined, evaluates to 0 [-Wundef]
#if DB_DBM_HSEARCH != 0
    ^
/usr/local/include/db5/db.h:3081:5: warning: 'DB_DBM_HSEARCH' is not defined, evaluates to 0 [-Wundef]
#if DB_DBM_HSEARCH != 0
    ^
/usr/local/include/db5/db.h:3102:5: warning: 'DB_DBM_HSEARCH' is not defined, evaluates to 0 [-Wundef]
#if DB_DBM_HSEARCH != 0
    ^
--- delegator.o ---
In file included from delegator.c:1:
In file included from ./bdb.h:1:
/usr/local/include/db5/db.h:2725:5: warning: 'DB_DBM_HSEARCH' is not defined, evaluates to 0 [-Wundef]
#if DB_DBM_HSEARCH != 0
    ^
/usr/local/include/db5/db.h:3081:5: warning: 'DB_DBM_HSEARCH' is not defined, evaluates to 0 [-Wundef]
#if DB_DBM_HSEARCH != 0
    ^
/usr/local/include/db5/db.h:3102:5: warning: 'DB_DBM_HSEARCH' is not defined, evaluates to 0 [-Wundef]
#if DB_DBM_HSEARCH != 0
    ^
--- lock.o ---
In file included from lock.c:1:
In file included from ./bdb.h:1:
/usr/local/include/db5/db.h:2725:5: warning: 'DB_DBM_HSEARCH' is not defined, evaluates to 0 [-Wundef]
#if DB_DBM_HSEARCH != 0
    ^
/usr/local/include/db5/db.h:3081:5: warning: 'DB_DBM_HSEARCH' is not defined, evaluates to 0 [-Wundef]
#if DB_DBM_HSEARCH != 0
    ^
/usr/local/include/db5/db.h:3102:5: warning: 'DB_DBM_HSEARCH' is not defined, evaluates to 0 [-Wundef]
#if DB_DBM_HSEARCH != 0
    ^
--- common.o ---
In file included from common.c:1:
In file included from ./bdb.h:1:
/usr/local/include/db5/db.h:2725:5: warning: 'DB_DBM_HSEARCH' is not defined, evaluates to 0 [-Wundef]
#if DB_DBM_HSEARCH != 0
    ^
/usr/local/include/db5/db.h:3081:5: warning: 'DB_DBM_HSEARCH' is not defined, evaluates to 0 [-Wundef]
#if DB_DBM_HSEARCH != 0
    ^
/usr/local/include/db5/db.h:3102:5: warning: 'DB_DBM_HSEARCH' is not defined, evaluates to 0 [-Wundef]
#if DB_DBM_HSEARCH != 0
    ^
--- env.o ---
In file included from env.c:1:
In file included from ./bdb.h:1:
/usr/local/include/db5/db.h:2725:5: warning: 'DB_DBM_HSEARCH' is not defined, evaluates to 0 [-Wundef]
#if DB_DBM_HSEARCH != 0
    ^
--- cursor.o ---
In file included from cursor.c:1:
In file included from ./bdb.h:1:
/usr/local/include/db5/db.h:2725:5: warning: 'DB_DBM_HSEARCH' is not defined, evaluates to 0 [-Wundef]
#if DB_DBM_HSEARCH != 0
    ^
--- log.o ---
In file included from log.c:1:
--- cursor.o ---
/usr/local/include/db5/db.h:3081:5: warning: 'DB_DBM_HSEARCH' is not defined, evaluates to 0 [-Wundef]
#if DB_DBM_HSEARCH != 0
    ^
/usr/local/include/db5/db.h:3102:5: warning: 'DB_DBM_HSEARCH' is not defined, evaluates to 0 [-Wundef]
#if DB_DBM_HSEARCH != 0
    ^
--- env.o ---
/usr/local/include/db5/db.h:3081:5: warning: 'DB_DBM_HSEARCH' is not defined, evaluates to 0 [-Wundef]
#if DB_DBM_HSEARCH != 0
    ^
/usr/local/include/db5/db.h:3102:5: warning: 'DB_DBM_HSEARCH' is not defined, evaluates to 0 [-Wundef]
#if DB_DBM_HSEARCH != 0
    ^
--- log.o ---
In file included from ./bdb.h:1:
/usr/local/include/db5/db.h:2725:5: warning: 'DB_DBM_HSEARCH' is not defined, evaluates to 0 [-Wundef]
#if DB_DBM_HSEARCH != 0
    ^
/usr/local/include/db5/db.h:3081:5: warning: 'DB_DBM_HSEARCH' is not defined, evaluates to 0 [-Wundef]
#if DB_DBM_HSEARCH != 0
    ^
/usr/local/include/db5/db.h:3102:5: warning: 'DB_DBM_HSEARCH' is not defined, evaluates to 0 [-Wundef]
#if DB_DBM_HSEARCH != 0
    ^
--- delegator.o ---
delegator.c:35:57: warning: incompatible function pointer types passing 'VALUE (VALUE)' (aka 'unsigned long (unsigned long)') to parameter of type 'rb_block_call_func_t' (aka 'unsigned long (*)(unsigned long, unsigned long, int, const unsigned long *, unsigned long)') [-Wincompatible-function-pointer-types]
--- bdb.o ---
bdb.c:168:15: warning: implicit declaration of function 'rb_tainted_str_new2' is invalid in C99 [-Wimplicit-function-declaration]
    version = rb_tainted_str_new2(db_version(&major, &minor, &patch));
              ^
--- common.o ---
common.c:195:34: warning: implicit conversion loses integer precision: 'long' to 'u_int32_t' (aka 'unsigned int') [-Wshorten-64-to-32]
    key->size = RSTRING_LEN(tmp) + is_nil;
              ~ ~~~~~~~~~~~~~~~~~^~~~~~~~
common.c:276:23: warning: implicit declaration of function 'rb_tainted_str_new' is invalid in C99 [-Wimplicit-function-declaration]
                res = rb_tainted_str_new(a->data, a->size);
                      ^
common.c:497:10: warning: implicit declaration of function 'rb_tainted_str_new' is invalid in C99 [-Wimplicit-function-declaration]
    st = rb_tainted_str_new((char *)bytes, length);
         ^
common.c:811:5: warning: 'HAVE_ST_DB_SET_Q_EXTENTSIZE' is not defined, evaluates to 0 [-Wundef]
#if HAVE_ST_DB_SET_Q_EXTENTSIZE
    ^
common.c:931:15: warning: implicit conversion loses integer precision: 'VALUE' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32]
            opened = bdb_ary_delete(&txnst->db_ary, dbst->ori_val);
--- cursor.o ---
cursor.c:70:10: warning: 'RB_OBJ_TAINTED' is deprecated: taintedness turned out to be a wrong idea. [-Wdeprecated-declarations]
    if (!OBJ_TAINTED(obj) && rb_safe_level() >= 4)
         ^
/usr/local/include/ruby-3.2/ruby/internal/fl_type.h:151:25: note: expanded from macro 'OBJ_TAINTED'
#define OBJ_TAINTED     RB_OBJ_TAINTED     /**< @old{RB_OBJ_TAINTED} */
                        ^
/usr/local/include/ruby-3.2/ruby/internal/fl_type.h:118:30: note: expanded from macro 'RB_OBJ_TAINTED'
#define RB_OBJ_TAINTED       RB_OBJ_TAINTED
                             ^
/usr/local/include/ruby-3.2/ruby/internal/fl_type.h:812:1: note: 'RB_OBJ_TAINTED' has been explicitly marked deprecated here
RBIMPL_ATTR_DEPRECATED(("taintedness turned out to be a wrong idea."))
^
/usr/local/include/ruby-3.2/ruby/internal/attr/deprecated.h:36:53: note: expanded from macro 'RBIMPL_ATTR_DEPRECATED'
# define RBIMPL_ATTR_DEPRECATED(msg) __attribute__((__deprecated__ msg))
                                                    ^
--- delegator.o ---
        res = rb_block_call(delegst->obj, id_send, argc, argv, rb_yield, 0);
                                                               ^~~~~~~~
/usr/local/include/ruby-3.2/ruby/internal/iterator.h:324:90: note: passing argument to parameter 'proc' here
VALUE rb_block_call(VALUE obj, ID mid, int argc, const VALUE *argv, rb_block_call_func_t proc, VALUE data2);
                                                                                         ^
--- env.o ---
env.c:70:10: warning: implicit declaration of function 'rb_tainted_str_new' is invalid in C99 [-Wimplicit-function-declaration]
    av = rb_tainted_str_new(control->data, control->size);
         ^
env.c:196:5: warning: 'DB_RET_NOTPERM' is not defined, evaluates to 0 [-Wundef]
#if DB_RET_NOTPERM || DB_RET_ISPERM
    ^
env.c:196:23: warning: 'DB_RET_ISPERM' is not defined, evaluates to 0 [-Wundef]
#if DB_RET_NOTPERM || DB_RET_ISPERM
                      ^
env.c:169:20: warning: implicit conversion loses integer precision: 'long' to 'u_int32_t' (aka 'unsigned int') [-Wshorten-64-to-32]
    control.size = RSTRING_LEN(av);
                 ~ ^~~~~~~~~~~~~~~
/usr/local/include/ruby-3.2/ruby/internal/core/rstring.h:52:27: note: expanded from macro 'RSTRING_LEN'
#define RSTRING_LEN       RSTRING_LEN
                          ^
env.c:171:16: warning: implicit conversion loses integer precision: 'long' to 'u_int32_t' (aka 'unsigned int') [-Wshorten-64-to-32]
    rec.size = RSTRING_LEN(bv);
--- lock.o ---
lock.c:145:21: warning: implicit declaration of function 'rb_tainted_str_new2' is invalid in C99 [-Wimplicit-function-declaration]
    rb_hash_aset(a, rb_tainted_str_new2("st_lastid"), INT2NUM(statp->st_id));
                    ^
lock.c:160:73: warning: implicit conversion loses integer precision: 'uintmax_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32]
    rb_hash_aset(a, rb_tainted_str_new2("st_nrequests"), INT2NUM(statp->st_nrequests));
                                                         ~~~~~~~ ~~~~~~~^~~~~~~~~~~~
lock.c:161:73: warning: implicit conversion loses integer precision: 'uintmax_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32]
    rb_hash_aset(a, rb_tainted_str_new2("st_nreleases"), INT2NUM(statp->st_nreleases));
                                                         ~~~~~~~ ~~~~~~~^~~~~~~~~~~~
lock.c:163:75: warning: implicit conversion loses integer precision: 'uintmax_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32]
--- common.o ---
                   ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
common.c:933:12: warning: implicit conversion loses integer precision: 'VALUE' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32]
                opened = bdb_ary_delete(&txnst->db_assoc, dbst->ori_val);
                       ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
common.c:1083:10: warning: 'RB_OBJ_TAINTED' is deprecated: taintedness turned out to be a wrong idea. [-Wdeprecated-declarations]
    if (!OBJ_TAINTED(obj) && rb_safe_level() >= 4) {
         ^
/usr/local/include/ruby-3.2/ruby/internal/fl_type.h:151:25: note: expanded from macro 'OBJ_TAINTED'
#define OBJ_TAINTED     RB_OBJ_TAINTED     /**< @old{RB_OBJ_TAINTED} */
                        ^
/usr/local/include/ruby-3.2/ruby/internal/fl_type.h:118:30: note: expanded from macro 'RB_OBJ_TAINTED'
#define RB_OBJ_TAINTED       RB_OBJ_TAINTED
                             ^
--- cursor.o ---
cursor.c:70:30: warning: implicit declaration of function 'rb_safe_level' is invalid in C99 [-Wimplicit-function-declaration]
    if (!OBJ_TAINTED(obj) && rb_safe_level() >= 4)
                             ^
cursor.c:85:5: warning: implicit declaration of function 'rb_secure' is invalid in C99 [-Wimplicit-function-declaration]
    rb_secure(4);
    ^
cursor.c:187:42: warning: initializing 'VALUE *' (aka 'unsigned long *') with an expression of type 'volatile VALUE *' (aka 'volatile unsigned long *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
    cnt = rb_scan_args(argc, argv, "12", &a, &b, &c);
                                         ^~
/usr/local/include/ruby-3.2/ruby/internal/scan_args.h:501:25: note: expanded from macro 'rb_scan_args'
            ((VALUE*[]){__VA_ARGS__})),                       \
                        ^~~~~~~~~~~
/usr/local/include/ruby-3.2/ruby/internal/scan_args.h:375:55: note: expanded from macro 'rb_scan_args0'
--- env.o ---
             ~ ^~~~~~~~~~~~~~~
/usr/local/include/ruby-3.2/ruby/internal/core/rstring.h:52:27: note: expanded from macro 'RSTRING_LEN'
#define RSTRING_LEN       RSTRING_LEN
                          ^
env.c:218:15: warning: implicit conversion loses integer precision: 'long' to 'u_int32_t' (aka 'unsigned int') [-Wshorten-64-to-32]
        cdata.size = RSTRING_LEN(ident);
                   ~ ^~~~~~~~~~~~~~~~~~
/usr/local/include/ruby-3.2/ruby/internal/core/rstring.h:52:27: note: expanded from macro 'RSTRING_LEN'
#define RSTRING_LEN       RSTRING_LEN
                          ^
env.c:331:33: warning: implicit declaration of function 'rb_tainted_str_new2' is invalid in C99 [-Wimplicit-function-declaration]
        rb_funcall(obj, id_msgcall, 1, rb_tainted_str_new2(msg));
                                       ^
env.c:334:45: warning: implicit declaration of function 'rb_tainted_str_new2' is invalid in C99 [-Wimplicit-function-declaration]
--- lock.o ---
    rb_hash_aset(a, rb_tainted_str_new2("st_lock_nowait"), INT2NUM(statp->st_lock_nowait));
                                                           ~~~~~~~ ~~~~~~~^~~~~~~~~~~~~~
lock.c:167:73: warning: implicit conversion loses integer precision: 'uintmax_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32]
    rb_hash_aset(a, rb_tainted_str_new2("st_lock_wait"), INT2NUM(statp->st_lock_wait));
                                                         ~~~~~~~ ~~~~~~~^~~~~~~~~~~~
lock.c:175:74: warning: implicit conversion loses integer precision: 'uintmax_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32]
    rb_hash_aset(a, rb_tainted_str_new2("st_ndeadlocks"), INT2NUM(statp->st_ndeadlocks));
                                                          ~~~~~~~ ~~~~~~~^~~~~~~~~~~~~
lock.c:176:77: warning: implicit conversion loses integer precision: 'uintmax_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32]
--- common.o ---
/usr/local/include/ruby-3.2/ruby/internal/fl_type.h:812:1: note: 'RB_OBJ_TAINTED' has been explicitly marked deprecated here
RBIMPL_ATTR_DEPRECATED(("taintedness turned out to be a wrong idea."))
^
/usr/local/include/ruby-3.2/ruby/internal/attr/deprecated.h:36:53: note: expanded from macro 'RBIMPL_ATTR_DEPRECATED'
# define RBIMPL_ATTR_DEPRECATED(msg) __attribute__((__deprecated__ msg))
                                                    ^
common.c:1083:30: warning: implicit declaration of function 'rb_safe_level' is invalid in C99 [-Wimplicit-function-declaration]
    if (!OBJ_TAINTED(obj) && rb_safe_level() >= 4) {
                             ^
common.c:1341:2: warning: 'rb_iterate' is deprecated: by: rb_block_call since 1.9 [-Wdeprecated-declarations]
        rb_iterate(rb_each, argv[argc - 1], bdb_i_options, obj);
        ^
/usr/local/include/ruby-3.2/ruby/internal/iterator.h:269:1: note: 'rb_iterate' has been explicitly marked deprecated here
RBIMPL_ATTR_DEPRECATED(("by: rb_block_call since 1.9"))
^
--- cursor.o ---
                     (rb_scan_args_verify(fmt, varc), vars), (char *)fmt, varc)
                                                      ^~~~
cursor.c:187:42: warning: initializing 'VALUE *' (aka 'unsigned long *') with an expression of type 'volatile VALUE *' (aka 'volatile unsigned long *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
    cnt = rb_scan_args(argc, argv, "12", &a, &b, &c);
                                         ^~
/usr/local/include/ruby-3.2/ruby/internal/scan_args.h:500:32: note: expanded from macro 'rb_scan_args'
            (sizeof((VALUE*[]){__VA_ARGS__})/sizeof(VALUE*)), \
                               ^~~~~~~~~~~
/usr/local/include/ruby-3.2/ruby/internal/scan_args.h:375:75: note: expanded from macro 'rb_scan_args0'
                     (rb_scan_args_verify(fmt, varc), vars), (char *)fmt, varc)
                                                                          ^~~~
--- env.o ---
        rb_funcall(envst->msgcall, bdb_id_call, 1, rb_tainted_str_new2(msg));
                                                   ^
env.c:367:12: warning: implicit conversion loses integer precision: 'long' to 'pid_t' (aka 'int') [-Wshorten-64-to-32]
    *pid = NUM2LONG(RARRAY_PTR(res)[0]);
         ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/ruby-3.2/ruby/internal/arithmetic/long.h:51:22: note: expanded from macro 'NUM2LONG'
#define NUM2LONG     RB_NUM2LONG          /**< @old{RB_NUM2LONG} */
                     ^
/usr/local/include/ruby-3.2/ruby/internal/arithmetic/long.h:57:22: note: expanded from macro 'RB_NUM2LONG'
#define RB_NUM2LONG  rb_num2long_inline   /**< @alias{rb_num2long_inline} */
                     ^
env.c:563:37: warning: 'HAVE_DB_ENV_SET_TAS_SPINS' is not defined, evaluates to 0 [-Wundef]
#if HAVE_ST_DB_ENV_SET_TAS_SPINS || HAVE_DB_ENV_SET_TAS_SPINS
                                    ^
env.c:591:5: warning: 'DB_VERB_CHECKPOINT' is not defined, evaluates to 0 [-Wundef]
--- lock.o ---
    rb_hash_aset(a, rb_tainted_str_new2("st_nlocktimeouts"), INT2NUM(statp->st_nlocktimeouts));
                                                             ~~~~~~~ ~~~~~~~^~~~~~~~~~~~~~~~
lock.c:177:76: warning: implicit conversion loses integer precision: 'uintmax_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32]
    rb_hash_aset(a, rb_tainted_str_new2("st_ntxntimeouts"), INT2NUM(statp->st_ntxntimeouts));
                                                            ~~~~~~~ ~~~~~~~^~~~~~~~~~~~~~~
lock.c:178:71: warning: implicit conversion loses integer precision: 'roff_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32]
    rb_hash_aset(a, rb_tainted_str_new2("st_regsize"), INT2NUM(statp->st_regsize));
                                                       ~~~~~~~ ~~~~~~~^~~~~~~~~~
lock.c:179:75: warning: implicit conversion loses integer precision: 'uintmax_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32]
--- common.o ---
/usr/local/include/ruby-3.2/ruby/internal/attr/deprecated.h:36:53: note: expanded from macro 'RBIMPL_ATTR_DEPRECATED'
# define RBIMPL_ATTR_DEPRECATED(msg) __attribute__((__deprecated__ msg))
                                                    ^
common.c:1341:38: warning: incompatible function pointer types passing 'VALUE (VALUE, VALUE)' (aka 'unsigned long (unsigned long, unsigned long)') to parameter of type 'rb_block_call_func_t' (aka 'unsigned long (*)(unsigned long, unsigned long, int, const unsigned long *, unsigned long)') [-Wincompatible-function-pointer-types]
        rb_iterate(rb_each, argv[argc - 1], bdb_i_options, obj);
                                            ^~~~~~~~~~~~~
/usr/local/include/ruby-3.2/ruby/internal/iterator.h:283:75: note: passing argument to parameter 'proc' here
VALUE rb_iterate(VALUE (*func1)(VALUE), VALUE data1, rb_block_call_func_t proc, VALUE data2);
                                                                          ^
--- cursor.o ---
cursor.c:356:5: warning: implicit declaration of function 'rb_secure' is invalid in C99 [-Wimplicit-function-declaration]
    rb_secure(4);
    ^
cursor.c:351:20: warning: variable 'd' set but not used [-Wunused-but-set-variable]
    volatile VALUE d = Qnil;
                   ^
--- env.o ---
#if DB_VERB_CHECKPOINT
    ^
env.c:889:5: warning: 'HAVE_ST_DB_ENV_SET_FEEBACK' is not defined, evaluates to 0 [-Wundef]
#if HAVE_ST_DB_ENV_SET_FEEBACK
    ^
env.c:634:6: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
        l = RARRAY_LEN(value);
          ~ ^~~~~~~~~~~~~~~~~
/usr/local/include/ruby-3.2/ruby/internal/core/rarray.h:68:36: note: expanded from macro 'RARRAY_LEN'
#define RARRAY_LEN                 rb_array_len                 /**< @alias{rb_array_len} */
                                   ^
env.c:1124:10: warning: 'RB_OBJ_TAINTED' is deprecated: taintedness turned out to be a wrong idea. [-Wdeprecated-declarations]
    if (!OBJ_TAINTED(obj) && rb_safe_level() >= 4) {
         ^
/usr/local/include/ruby-3.2/ruby/internal/fl_type.h:151:25: note: expanded from macro 'OBJ_TAINTED'
#define OBJ_TAINTED     RB_OBJ_TAINTED     /**< @old{RB_OBJ_TAINTED} */
                        ^
--- lock.o ---
    rb_hash_aset(a, rb_tainted_str_new2("st_region_wait"), INT2NUM(statp->st_region_wait));
                                                           ~~~~~~~ ~~~~~~~^~~~~~~~~~~~~~
lock.c:180:77: warning: implicit conversion loses integer precision: 'uintmax_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32]
    rb_hash_aset(a, rb_tainted_str_new2("st_region_nowait"), INT2NUM(statp->st_region_nowait));
                                                             ~~~~~~~ ~~~~~~~^~~~~~~~~~~~~~~~
lock.c:182:75: warning: implicit conversion loses integer precision: 'uintmax_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32]
    rb_hash_aset(a, rb_tainted_str_new2("st_objs_nowait"), INT2NUM(statp->st_objs_nowait));
                                                           ~~~~~~~ ~~~~~~~^~~~~~~~~~~~~~
lock.c:185:73: warning: implicit conversion loses integer precision: 'uintmax_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32]
--- common.o ---
common.c:1435:2: warning: implicit declaration of function 'rb_secure' is invalid in C99 [-Wimplicit-function-declaration]
        rb_secure(2);
        ^
common.c:1438:2: warning: implicit declaration of function 'rb_secure' is invalid in C99 [-Wimplicit-function-declaration]
        rb_secure(4);
        ^
common.c:1440:9: warning: implicit declaration of function 'rb_safe_level' is invalid in C99 [-Wimplicit-function-declaration]
    if (rb_safe_level() >= 4) {
        ^
common.c:1543:19: warning: implicit declaration of function 'rb_tainted_str_new2' is invalid in C99 [-Wimplicit-function-declaration]
        dbst->filename = rb_tainted_str_new2(name);
                         ^
common.c:1548:19: warning: implicit declaration of function 'rb_tainted_str_new2' is invalid in C99 [-Wimplicit-function-declaration]
        dbst->database = rb_tainted_str_new2(subname);
                         ^
--- env.o ---
/usr/local/include/ruby-3.2/ruby/internal/fl_type.h:118:30: note: expanded from macro 'RB_OBJ_TAINTED'
#define RB_OBJ_TAINTED       RB_OBJ_TAINTED
                             ^
/usr/local/include/ruby-3.2/ruby/internal/fl_type.h:812:1: note: 'RB_OBJ_TAINTED' has been explicitly marked deprecated here
RBIMPL_ATTR_DEPRECATED(("taintedness turned out to be a wrong idea."))
^
/usr/local/include/ruby-3.2/ruby/internal/attr/deprecated.h:36:53: note: expanded from macro 'RBIMPL_ATTR_DEPRECATED'
# define RBIMPL_ATTR_DEPRECATED(msg) __attribute__((__deprecated__ msg))
                                                    ^
env.c:1124:30: warning: implicit declaration of function 'rb_safe_level' is invalid in C99 [-Wimplicit-function-declaration]
    if (!OBJ_TAINTED(obj) && rb_safe_level() >= 4) {
                             ^
env.c:1196:31: warning: implicit declaration of function 'rb_tainted_str_new2' is invalid in C99 [-Wimplicit-function-declaration]
--- lock.o ---
    rb_hash_aset(a, rb_tainted_str_new2("st_objs_wait"), INT2NUM(statp->st_objs_wait));
                                                         ~~~~~~~ ~~~~~~~^~~~~~~~~~~~
lock.c:188:78: warning: implicit conversion loses integer precision: 'uintmax_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32]
    rb_hash_aset(a, rb_tainted_str_new2("st_lockers_nowait"), INT2NUM(statp->st_lockers_nowait));
                                                              ~~~~~~~ ~~~~~~~^~~~~~~~~~~~~~~~~
lock.c:191:76: warning: implicit conversion loses integer precision: 'uintmax_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32]
    rb_hash_aset(a, rb_tainted_str_new2("st_lockers_wait"), INT2NUM(statp->st_lockers_wait));
                                                            ~~~~~~~ ~~~~~~~^~~~~~~~~~~~~~~
lock.c:275:5: warning: implicit declaration of function 'rb_secure' is invalid in C99 [-Wimplicit-function-declaration]
    rb_secure(2);
    ^
--- common.o ---
common.c:1573:6: warning: implicit declaration of function 'RBASIC_SET_CLASS_RAW' is invalid in C99 [-Wimplicit-function-declaration]
            RBASIC_SET_CLASS_RAW(obj, bdb_cBtree);
            ^
common.c:1310:11: warning: variable 'hash_arg' set but not used [-Wunused-but-set-variable]
    VALUE hash_arg = Qnil;
          ^
common.c:1638:26: warning: implicit declaration of function 'RCLASS_M_TBL' is invalid in C99 [-Wimplicit-function-declaration]
        if (cl == bdb_cBtree || RCLASS_M_TBL(cl) == RCLASS_M_TBL(bdb_cBtree)) {
                                ^
common.c:1692:2: warning: 'rb_iterate' is deprecated: by: rb_block_call since 1.9 [-Wdeprecated-declarations]
        rb_iterate(rb_each, argv[0], bdb_i_s_create, res);
        ^
/usr/local/include/ruby-3.2/ruby/internal/iterator.h:269:1: note: 'rb_iterate' has been explicitly marked deprecated here
RBIMPL_ATTR_DEPRECATED(("by: rb_block_call since 1.9"))
^
--- env.o ---
        rb_hash_aset(argv[argc - 1], rb_tainted_str_new2("env"), obj);
                                     ^
env.c:1199:31: warning: implicit declaration of function 'rb_tainted_str_new2' is invalid in C99 [-Wimplicit-function-declaration]
        rb_hash_aset(argv[argc - 1], rb_tainted_str_new2("txn"), obj);
                                     ^
env.c:1209:18: warning: implicit declaration of function 'rb_tainted_str_new2' is invalid in C99 [-Wimplicit-function-declaration]
    bdb_errstr = rb_tainted_str_new2(msg);
                 ^
env.c:1306:11: warning: 'rb_iterate' is deprecated: by: rb_block_call since 1.9 [-Wdeprecated-declarations]
    res = rb_iterate(rb_each, opt, bdb_env_i_options, stobj);
          ^
/usr/local/include/ruby-3.2/ruby/internal/iterator.h:269:1: note: 'rb_iterate' has been explicitly marked deprecated here
RBIMPL_ATTR_DEPRECATED(("by: rb_block_call since 1.9"))
^
/usr/local/include/ruby-3.2/ruby/internal/attr/deprecated.h:36:53: note: expanded from macro 'RBIMPL_ATTR_DEPRECATED'
--- lock.o ---
lock.c:288:18: warning: implicit conversion loses integer precision: 'long' to 'u_int32_t' (aka 'unsigned int') [-Wshorten-64-to-32]
    objet.size = RSTRING_LEN(a);
               ~ ^~~~~~~~~~~~~~
/usr/local/include/ruby-3.2/ruby/internal/core/rstring.h:52:27: note: expanded from macro 'RSTRING_LEN'
#define RSTRING_LEN       RSTRING_LEN
                          ^
--- common.o ---
/usr/local/include/ruby-3.2/ruby/internal/attr/deprecated.h:36:53: note: expanded from macro 'RBIMPL_ATTR_DEPRECATED'
# define RBIMPL_ATTR_DEPRECATED(msg) __attribute__((__deprecated__ msg))
                                                    ^
common.c:1763:2: warning: 'rb_iterate' is deprecated: by: rb_block_call since 1.9 [-Wdeprecated-declarations]
        rb_iterate(rb_each, argv[argc - 1], bdb_queue_i_search_re_len, restobj);
        ^
/usr/local/include/ruby-3.2/ruby/internal/iterator.h:269:1: note: 'rb_iterate' has been explicitly marked deprecated here
RBIMPL_ATTR_DEPRECATED(("by: rb_block_call since 1.9"))
^
/usr/local/include/ruby-3.2/ruby/internal/attr/deprecated.h:36:53: note: expanded from macro 'RBIMPL_ATTR_DEPRECATED'
# define RBIMPL_ATTR_DEPRECATED(msg) __attribute__((__deprecated__ msg))
                                                    ^
common.c:1766:35: warning: implicit declaration of function 'rb_tainted_str_new2' is invalid in C99 [-Wimplicit-function-declaration]
--- env.o ---
# define RBIMPL_ATTR_DEPRECATED(msg) __attribute__((__deprecated__ msg))
                                                    ^
env.c:1306:36: warning: incompatible function pointer types passing 'VALUE (VALUE, VALUE)' (aka 'unsigned long (unsigned long, unsigned long)') to parameter of type 'rb_block_call_func_t' (aka 'unsigned long (*)(unsigned long, unsigned long, int, const unsigned long *, unsigned long)') [-Wincompatible-function-pointer-types]
    res = rb_iterate(rb_each, opt, bdb_env_i_options, stobj);
                                   ^~~~~~~~~~~~~~~~~
/usr/local/include/ruby-3.2/ruby/internal/iterator.h:283:75: note: passing argument to parameter 'proc' here
VALUE rb_iterate(VALUE (*func1)(VALUE), VALUE data1, rb_block_call_func_t proc, VALUE data2);
                                                                          ^
env.c:1346:5: warning: 'HAVE_ST_DB_ENV_SET_ENV_NOTIFY' is not defined, evaluates to 0 [-Wundef]
#if HAVE_ST_DB_ENV_SET_ENV_NOTIFY
    ^
--- common.o ---
            rb_hash_aset(argv[argc - 1], rb_tainted_str_new2("set_re_len"), INT2NUM(rest->re_len));
                                         ^
common.c:1770:35: warning: implicit declaration of function 'rb_tainted_str_new2' is invalid in C99 [-Wimplicit-function-declaration]
            rb_hash_aset(argv[argc - 1], rb_tainted_str_new2("set_re_pad"), INT2NUM(rest->re_pad));
                                         ^
common.c:1780:28: warning: implicit declaration of function 'rb_tainted_str_new2' is invalid in C99 [-Wimplicit-function-declaration]
        rb_hash_aset(nargv[argc], rb_tainted_str_new2("set_re_len"), INT2NUM(DEFAULT_RECORD_LENGTH));
                                  ^
common.c:1805:5: warning: implicit declaration of function 'rb_secure' is invalid in C99 [-Wimplicit-function-declaration]
    rb_secure(4);
    ^
--- lock.o ---
lock.c:360:20: warning: implicit conversion loses integer precision: 'long' to 'u_int32_t' (aka 'unsigned int') [-Wshorten-64-to-32]
        list->obj->size = RSTRING_LEN(value);
                        ~ ^~~~~~~~~~~~~~~~~~
/usr/local/include/ruby-3.2/ruby/internal/core/rstring.h:52:27: note: expanded from macro 'RSTRING_LEN'
#define RSTRING_LEN       RSTRING_LEN
                          ^
lock.c:380:18: warning: implicit conversion loses integer precision: 'VALUE' (aka 'unsigned long') to 'db_timeout_t' (aka 'unsigned int') [-Wshorten-64-to-32]
        list->timeout = rb_Integer(value);
                      ~ ^~~~~~~~~~~~~~~~~
--- env.o ---
env.c:1397:2: warning: 'rb_iterate' is deprecated: by: rb_block_call since 1.9 [-Wdeprecated-declarations]
        rb_iterate(rb_each, argv[argc - 1], bdb_env_s_i_options, (VALUE)&flags);
        ^
/usr/local/include/ruby-3.2/ruby/internal/iterator.h:269:1: note: 'rb_iterate' has been explicitly marked deprecated here
RBIMPL_ATTR_DEPRECATED(("by: rb_block_call since 1.9"))
^
/usr/local/include/ruby-3.2/ruby/internal/attr/deprecated.h:36:53: note: expanded from macro 'RBIMPL_ATTR_DEPRECATED'
# define RBIMPL_ATTR_DEPRECATED(msg) __attribute__((__deprecated__ msg))
                                                    ^
env.c:1397:38: warning: incompatible function pointer types passing 'VALUE (VALUE, int *)' (aka 'unsigned long (unsigned long, int *)') to parameter of type 'rb_block_call_func_t' (aka 'unsigned long (*)(unsigned long, unsigned long, int, const unsigned long *, unsigned long)') [-Wincompatible-function-pointer-types]
        rb_iterate(rb_each, argv[argc - 1], bdb_env_s_i_options, (VALUE)&flags);
                                            ^~~~~~~~~~~~~~~~~~~
/usr/local/include/ruby-3.2/ruby/internal/iterator.h:283:75: note: passing argument to parameter 'proc' here
VALUE rb_iterate(VALUE (*func1)(VALUE), VALUE data1, rb_block_call_func_t proc, VALUE data2);
                                                                          ^
--- common.o ---
common.c:1803:20: warning: variable 'res' set but not used [-Wunused-but-set-variable]
    volatile VALUE res = Qnil;
                   ^
common.c:1831:45: warning: comparison of integers of different signs: 'int' and 'u_int32_t' (aka 'unsigned int') [-Wsign-compare]
        if (dbst->type == DB_QUEUE && dbst->re_len < data.size) {
                                      ~~~~~~~~~~~~ ^ ~~~~~~~~~
--- env.o ---
env.c:1405:5: warning: 'HAVE_ST_DB_ENV_SET_ENV_NOTIFY' is not defined, evaluates to 0 [-Wundef]
#if HAVE_ST_DB_ENV_SET_ENV_NOTIFY
    ^
--- bdb.o ---
bdb.c:672:5: warning: 'HAVE_CONST_BDB_TXN_COMMIT' is not defined, evaluates to 0 [-Wundef]
#if HAVE_CONST_BDB_TXN_COMMIT
    ^
--- lock.o ---
lock.c:416:2: warning: 'rb_iterate' is deprecated: by: rb_block_call since 1.9 [-Wdeprecated-declarations]
        rb_iterate(rb_each, b, bdb_lockid_each, listobj);
        ^
--- delegator.o ---
4 warnings generated.
--- bdb.o ---
bdb.c:960:18: warning: implicit declaration of function 'rb_tainted_str_new' is invalid in C99 [-Wimplicit-function-declaration]
    bdb_errstr = rb_tainted_str_new(0, 0);
                 ^
--- common.o ---
common.c:1863:13: warning: variable 'txnid' set but not used [-Wunused-but-set-variable]
    DB_TXN *txnid;
            ^
common.c:1888:5: warning: implicit declaration of function 'rb_secure' is invalid in C99 [-Wimplicit-function-declaration]
    rb_secure(4);
    ^
common.c:1879:20: warning: variable 'a0' set but not used [-Wunused-but-set-variable]
    volatile VALUE a0 = Qnil;
                   ^
common.c:1901:48: warning: comparison of integers of different signs: 'int' and 'u_int32_t' (aka 'unsigned int') [-Wsign-compare]
    if (dbst->type == DB_QUEUE && dbst->re_len < data.size) {
                                  ~~~~~~~~~~~~ ^ ~~~~~~~~~
common.c:1916:15: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
                a = INT2NUM((long)key.data);
                    ~~~~~~~ ^~~~~~~~~~~~~~
common.c:2022:9: warning: variable 'flagss' set but not used [-Wunused-but-set-variable]
    int flagss;
        ^
--- log.o ---
log.c:58:17: warning: implicit conversion loses integer precision: 'long' to 'u_int32_t' (aka 'unsigned int') [-Wshorten-64-to-32]
    data.size = RSTRING_LEN(a);
              ~ ^~~~~~~~~~~~~~
/usr/local/include/ruby-3.2/ruby/internal/core/rstring.h:52:27: note: expanded from macro 'RSTRING_LEN'
#define RSTRING_LEN       RSTRING_LEN
                          ^
log.c:174:23: warning: implicit declaration of function 'rb_tainted_str_new2' is invalid in C99 [-Wimplicit-function-declaration]
    rb_hash_aset(res, rb_tainted_str_new2("st_magic"), INT2NUM(bdb_stat->st_magic));
                      ^
log.c:176:76: warning: implicit conversion loses integer precision: 'roff_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32]
    rb_hash_aset(res, rb_tainted_str_new2("st_regsize"), INT2NUM(bdb_stat->st_regsize));
                                                         ~~~~~~~ ~~~~~~~~~~^~~~~~~~~~
--- env.o ---
env.c:1521:2: warning: implicit declaration of function 'rb_secure' is invalid in C99 [-Wimplicit-function-declaration]
        rb_secure(4);
        ^
env.c:1524:2: warning: implicit declaration of function 'rb_secure' is invalid in C99 [-Wimplicit-function-declaration]
        rb_secure(1);
        ^
env.c:1624:19: warning: implicit declaration of function 'rb_tainted_str_new2' is invalid in C99 [-Wimplicit-function-declaration]
    envst->home = rb_tainted_str_new2(db_home);
                  ^
env.c:1661:5: warning: implicit declaration of function 'rb_secure' is invalid in C99 [-Wimplicit-function-declaration]
    rb_secure(2);
    ^
env.c:1757:9: warning: incompatible function pointer types passing 'VALUE (VALUE)' (aka 'unsigned long (unsigned long)') to parameter of type 'rb_block_call_func_t' (aka 'unsigned long (*)(unsigned long, unsigned long, int, const unsigned long *, unsigned long)') [-Wincompatible-function-pointer-types]
                             rb_yield, obj);
--- lock.o ---
/usr/local/include/ruby-3.2/ruby/internal/iterator.h:269:1: note: 'rb_iterate' has been explicitly marked deprecated here
RBIMPL_ATTR_DEPRECATED(("by: rb_block_call since 1.9"))
^
/usr/local/include/ruby-3.2/ruby/internal/attr/deprecated.h:36:53: note: expanded from macro 'RBIMPL_ATTR_DEPRECATED'
# define RBIMPL_ATTR_DEPRECATED(msg) __attribute__((__deprecated__ msg))
                                                    ^
lock.c:416:25: warning: incompatible function pointer types passing 'VALUE (VALUE, VALUE)' (aka 'unsigned long (unsigned long, unsigned long)') to parameter of type 'rb_block_call_func_t' (aka 'unsigned long (*)(unsigned long, unsigned long, int, const unsigned long *, unsigned long)') [-Wincompatible-function-pointer-types]
        rb_iterate(rb_each, b, bdb_lockid_each, listobj);
                               ^~~~~~~~~~~~~~~
/usr/local/include/ruby-3.2/ruby/internal/iterator.h:283:75: note: passing argument to parameter 'proc' here
--- recnum.o ---
--- common.o ---
common.c:2131:9: warning: variable 'flagss' set but not used [-Wunused-but-set-variable]
    int flagss;
        ^
common.c:2185:20: warning: variable 'b' set but not used [-Wunused-but-set-variable]
    volatile VALUE b = Qnil;
                   ^
common.c:2219:32: warning: implicit conversion loses integer precision: 'long' to 'db_timeout_t' (aka 'unsigned int') [-Wshorten-64-to-32]
        dtf->cdata->compact_timeout = NUM2LONG(value);
                                    ~ ^~~~~~~~~~~~~~~
/usr/local/include/ruby-3.2/ruby/internal/arithmetic/long.h:51:22: note: expanded from macro 'NUM2LONG'
#define NUM2LONG     RB_NUM2LONG          /**< @old{RB_NUM2LONG} */
                     ^
/usr/local/include/ruby-3.2/ruby/internal/arithmetic/long.h:57:22: note: expanded from macro 'RB_NUM2LONG'
#define RB_NUM2LONG  rb_num2long_inline   /**< @alias{rb_num2long_inline} */
                     ^
common.c:2258:31: error: use of undeclared identifier 'rb_cData'
--- log.o ---
log.c:194:75: warning: implicit conversion loses integer precision: 'uintmax_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32]
    rb_hash_aset(res, rb_tainted_str_new2("st_wcount"), INT2NUM(bdb_stat->st_wcount));
                                                        ~~~~~~~ ~~~~~~~~~~^~~~~~~~~
log.c:196:80: warning: implicit conversion loses integer precision: 'uintmax_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32]
    rb_hash_aset(res, rb_tainted_str_new2("st_wcount_fill"), INT2NUM(bdb_stat->st_wcount_fill));
                                                             ~~~~~~~ ~~~~~~~~~~^~~~~~~~~~~~~~
log.c:198:75: warning: implicit conversion loses integer precision: 'uintmax_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32]
    rb_hash_aset(res, rb_tainted_str_new2("st_scount"), INT2NUM(bdb_stat->st_scount));
                                                        ~~~~~~~ ~~~~~~~~~~^~~~~~~~~
--- env.o ---
                             ^~~~~~~~
/usr/local/include/ruby-3.2/ruby/internal/iterator.h:324:90: note: passing argument to parameter 'proc' here
VALUE rb_block_call(VALUE obj, ID mid, int argc, const VALUE *argv, rb_block_call_func_t proc, VALUE data2);
                                                                                         ^
env.c:1831:20: warning: implicit declaration of function 'rb_tainted_str_new2' is invalid in C99 [-Wimplicit-function-declaration]
                rb_ary_push(res, rb_tainted_str_new2(dirs[i]));
                                 ^
env.c:1847:13: warning: implicit declaration of function 'rb_tainted_str_new2' is invalid in C99 [-Wimplicit-function-declaration]
            return rb_tainted_str_new2(strval);
                   ^
env.c:1862:13: warning: implicit declaration of function 'rb_tainted_str_new2' is invalid in C99 [-Wimplicit-function-declaration]
            return rb_tainted_str_new2(strval);
                   ^
--- lock.o ---
VALUE rb_iterate(VALUE (*func1)(VALUE), VALUE data1, rb_block_call_func_t proc, VALUE data2);
                                                                          ^
lock.c:427:11: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
                                list, RARRAY_LEN(a), NULL);
                                      ^~~~~~~~~~~~~
/usr/local/include/ruby-3.2/ruby/internal/core/rarray.h:68:36: note: expanded from macro 'RARRAY_LEN'
#define RARRAY_LEN                 rb_array_len                 /**< @alias{rb_array_len} */
                                   ^
--- common.o ---
            dtobj = Data_Make_Struct(rb_cData, struct data_flags, 0, free, dtf);
                                     ^
common.c:2261:6: warning: 'rb_iterate' is deprecated: by: rb_block_call since 1.9 [-Wdeprecated-declarations]
            rb_iterate(rb_each, c, bdb_compact_i, dtobj);
            ^
/usr/local/include/ruby-3.2/ruby/internal/iterator.h:269:1: note: 'rb_iterate' has been explicitly marked deprecated here
RBIMPL_ATTR_DEPRECATED(("by: rb_block_call since 1.9"))
^
/usr/local/include/ruby-3.2/ruby/internal/attr/deprecated.h:36:53: note: expanded from macro 'RBIMPL_ATTR_DEPRECATED'
# define RBIMPL_ATTR_DEPRECATED(msg) __attribute__((__deprecated__ msg))
                                                    ^
common.c:2283:26: warning: implicit declaration of function 'rb_tainted_str_new2' is invalid in C99 [-Wimplicit-function-declaration]
    rb_hash_aset(result, rb_tainted_str_new2("end"), bdb_test_load_key(obj, &end));
                         ^
--- log.o ---
log.c:201:80: warning: implicit conversion loses integer precision: 'uintmax_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32]
    rb_hash_aset(res, rb_tainted_str_new2("st_region_wait"), INT2NUM(bdb_stat->st_region_wait));
                                                             ~~~~~~~ ~~~~~~~~~~^~~~~~~~~~~~~~
log.c:202:82: warning: implicit conversion loses integer precision: 'uintmax_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32]
    rb_hash_aset(res, rb_tainted_str_new2("st_region_nowait"), INT2NUM(bdb_stat->st_region_nowait));
                                                               ~~~~~~~ ~~~~~~~~~~^~~~~~~~~~~~~~~~
log.c:332:8: warning: implicit declaration of function 'rb_tainted_str_new' is invalid in C99 [-Wimplicit-function-declaration]
        res = rb_tainted_str_new(data.data, data.size);
              ^
log.c:501:19: warning: implicit declaration of function 'rb_tainted_str_new2' is invalid in C99 [-Wimplicit-function-declaration]
--- env.o ---
env.c:1964:13: warning: implicit declaration of function 'rb_tainted_str_new2' is invalid in C99 [-Wimplicit-function-declaration]
            return rb_tainted_str_new2(strval);
                   ^
env.c:1985:60: warning: passing 'int *' to parameter of type 'u_int32_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign]
        bdb_test_error(envst->envp->rep_get_priority(envst->envp, &size));
                                                                  ^~~~~
env.c:1937:17: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
        return INT2NUM(shm_key);
               ~~~~~~~ ^~~~~~~
env.c:1979:17: warning: implicit conversion loses integer precision: 'time_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
        return INT2NUM(timeval);
               ~~~~~~~ ^~~~~~~
compiling recnum.c
--- common.o ---
common.c:2314:20: warning: variable 'b' set but not used [-Wunused-but-set-variable]
    volatile VALUE b = Qnil;
                   ^
common.c:2377:5: warning: implicit declaration of function 'rb_secure' is invalid in C99 [-Wimplicit-function-declaration]
    rb_secure(4);
    ^
common.c:2505:20: warning: variable 'c' set but not used [-Wunused-but-set-variable]
    volatile VALUE c = Qnil;
                   ^
common.c:2506:20: warning: variable 'd' set but not used [-Wunused-but-set-variable]
    volatile VALUE d = Qnil;
                   ^
common.c:2554:5: warning: implicit declaration of function 'rb_secure' is invalid in C99 [-Wimplicit-function-declaration]
    rb_secure(4);
    ^
common.c:2552:20: warning: variable 'b' set but not used [-Wunused-but-set-variable]
    volatile VALUE b = Qnil;
                   ^
common.c:2822:20: warning: variable 'res' set but not used [-Wunused-but-set-variable]
    volatile VALUE res = Qnil;
                   ^
--- log.o ---
        rb_ary_push(res, rb_tainted_str_new2(*file));
                         ^
log.c:540:12: warning: implicit declaration of function 'rb_tainted_str_new2' is invalid in C99 [-Wimplicit-function-declaration]
    return rb_tainted_str_new2(name);
           ^
log.c:614:11: warning: implicit declaration of function 'rb_tainted_str_new' is invalid in C99 [-Wimplicit-function-declaration]
    res = rb_tainted_str_new(data.data, data.size);
          ^
log.c:691:5: warning: incompatible function pointer types passing 'VALUE (VALUE, VALUE)' (aka 'unsigned long (unsigned long, unsigned long)') to parameter of type 'VALUE (*)(VALUE)' (aka 'unsigned long (*)(unsigned long)') [-Wincompatible-function-pointer-types]
    rb_define_method(bdb_cEnv, "log_curlsn", bdb_s_log_curlsn, 0);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/ruby-3.2/ruby/internal/anyargs.h:288:135: note: expanded from macro 'rb_define_method'
--- env.o ---
env.c:2003:5: warning: initializing 'char *' with an expression of type 'const char [10]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
    "cachesize",
    ^~~~~~~~~~~
env.c:2006:5: warning: initializing 'char *' with an expression of type 'const char [10]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
    "data_dirs",
    ^~~~~~~~~~~
env.c:2009:5: warning: initializing 'char *' with an expression of type 'const char [6]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
    "flags",
    ^~~~~~~
env.c:2012:5: warning: initializing 'char *' with an expression of type 'const char [5]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
    "home",
    ^~~~~~
env.c:2015:5: warning: initializing 'char *' with an expression of type 'const char [9]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
    "lg_bsize",
    ^~~~~~~~~~
--- common.o ---
common.c:2943:20: warning: variable 'res' set but not used [-Wunused-but-set-variable]
    volatile VALUE res = Qnil;
                   ^
common.c:3057:2: warning: implicit declaration of function 'rb_secure' is invalid in C99 [-Wimplicit-function-declaration]
        rb_secure(4);
        ^
common.c:3298:5: warning: 'rb_iterate' is deprecated: by: rb_block_call since 1.9 [-Wdeprecated-declarations]
    rb_iterate(each_pair, other, bdb_update_i, obj);
    ^
/usr/local/include/ruby-3.2/ruby/internal/iterator.h:269:1: note: 'rb_iterate' has been explicitly marked deprecated here
RBIMPL_ATTR_DEPRECATED(("by: rb_block_call since 1.9"))
^
/usr/local/include/ruby-3.2/ruby/internal/attr/deprecated.h:36:53: note: expanded from macro 'RBIMPL_ATTR_DEPRECATED'
# define RBIMPL_ATTR_DEPRECATED(msg) __attribute__((__deprecated__ msg))
                                                    ^
common.c:3312:5: warning: implicit declaration of function 'rb_secure' is invalid in C99 [-Wimplicit-function-declaration]
--- log.o ---
#define rb_define_method(klass, mid, func, arity)           RBIMPL_ANYARGS_DISPATCH_rb_define_method((arity), (func))((klass), (mid), (func), (arity))
                                                                                                                                      ^~~~~~
/usr/local/include/ruby-3.2/ruby/internal/anyargs.h:277:1: note: passing argument to parameter here
RBIMPL_ANYARGS_DECL(rb_define_method, VALUE, const char *)
^
/usr/local/include/ruby-3.2/ruby/internal/anyargs.h:255:72: note: expanded from macro 'RBIMPL_ANYARGS_DECL'
RBIMPL_ANYARGS_ATTRSET(sym) static void sym ## _00(__VA_ARGS__, VALUE(*)(VALUE), int); \
                                                                       ^
--- env.o ---
env.c:2018:5: warning: initializing 'char *' with an expression of type 'const char [7]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
    "lg_dir",
    ^~~~~~~~
env.c:2021:5: warning: initializing 'char *' with an expression of type 'const char [7]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
    "lg_max",
    ^~~~~~~~
env.c:2024:5: warning: initializing 'char *' with an expression of type 'const char [13]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
    "lg_regionmax",
    ^~~~~~~~~~~~~~
env.c:2027:5: warning: initializing 'char *' with an expression of type 'const char [10]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
    "lk_detect",
    ^~~~~~~~~~~
env.c:2030:5: warning: initializing 'char *' with an expression of type 'const char [15]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
    "lk_max_lockers",
    ^~~~~~~~~~~~~~~~
--- common.o ---
    rb_secure(4);
    ^
common.c:3362:5: warning: 'rb_iterate' is deprecated: by: rb_block_call since 1.9 [-Wdeprecated-declarations]
    rb_iterate(each_pair, argv[0], bdb_update_i, obj);
    ^
/usr/local/include/ruby-3.2/ruby/internal/iterator.h:269:1: note: 'rb_iterate' has been explicitly marked deprecated here
RBIMPL_ATTR_DEPRECATED(("by: rb_block_call since 1.9"))
^
/usr/local/include/ruby-3.2/ruby/internal/attr/deprecated.h:36:53: note: expanded from macro 'RBIMPL_ATTR_DEPRECATED'
# define RBIMPL_ATTR_DEPRECATED(msg) __attribute__((__deprecated__ msg))
                                                    ^
common.c:3560:10: warning: 'RB_OBJ_TAINTED' is deprecated: taintedness turned out to be a wrong idea. [-Wdeprecated-declarations]
    if (!OBJ_TAINTED(obj) && rb_safe_level() >= 4)
         ^
/usr/local/include/ruby-3.2/ruby/internal/fl_type.h:151:25: note: expanded from macro 'OBJ_TAINTED'
#define OBJ_TAINTED     RB_OBJ_TAINTED     /**< @old{RB_OBJ_TAINTED} */
                        ^
--- env.o ---
env.c:2033:5: warning: initializing 'char *' with an expression of type 'const char [13]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
    "lk_max_locks",
    ^~~~~~~~~~~~~~
env.c:2036:5: warning: initializing 'char *' with an expression of type 'const char [15]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
    "lk_max_objects",
    ^~~~~~~~~~~~~~~~
env.c:2039:5: warning: initializing 'char *' with an expression of type 'const char [12]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
    "mp_mmapsize",
    ^~~~~~~~~~~~~
env.c:2042:5: warning: initializing 'char *' with an expression of type 'const char [11]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
    "open_flags",
    ^~~~~~~~~~~~
env.c:2048:5: warning: initializing 'char *' with an expression of type 'const char [8]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
    "shm_key",
    ^~~~~~~~~
--- common.o ---
/usr/local/include/ruby-3.2/ruby/internal/fl_type.h:118:30: note: expanded from macro 'RB_OBJ_TAINTED'
#define RB_OBJ_TAINTED       RB_OBJ_TAINTED
                             ^
/usr/local/include/ruby-3.2/ruby/internal/fl_type.h:812:1: note: 'RB_OBJ_TAINTED' has been explicitly marked deprecated here
RBIMPL_ATTR_DEPRECATED(("taintedness turned out to be a wrong idea."))
^
/usr/local/include/ruby-3.2/ruby/internal/attr/deprecated.h:36:53: note: expanded from macro 'RBIMPL_ATTR_DEPRECATED'
# define RBIMPL_ATTR_DEPRECATED(msg) __attribute__((__deprecated__ msg))
                                                    ^
common.c:3560:30: warning: implicit declaration of function 'rb_safe_level' is invalid in C99 [-Wimplicit-function-declaration]
    if (!OBJ_TAINTED(obj) && rb_safe_level() >= 4)
                             ^
common.c:3600:24: warning: implicit declaration of function 'rb_tainted_str_new2' is invalid in C99 [-Wimplicit-function-declaration]
--- env.o ---
env.c:2054:5: warning: initializing 'char *' with an expression of type 'const char [12]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
    "txn_timeout",
    ^~~~~~~~~~~~~
env.c:2055:5: warning: initializing 'char *' with an expression of type 'const char [13]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
    "lock_timeout",
    ^~~~~~~~~~~~~~
env.c:2058:5: warning: initializing 'char *' with an expression of type 'const char [8]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
    "tmp_dir",
    ^~~~~~~~~
env.c:2061:5: warning: initializing 'char *' with an expression of type 'const char [7]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
    "tx_max",
    ^~~~~~~~
env.c:2064:5: warning: initializing 'char *' with an expression of type 'const char [13]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
    "rep_priority", 
    ^~~~~~~~~~~~~~
--- common.o ---
    rb_hash_aset(hash, rb_tainted_str_new2("hash_magic"), INT2NUM(bdb_stat->hash_magic));
                       ^
common.c:3621:77: warning: implicit conversion loses integer precision: 'uintmax_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32]
    rb_hash_aset(hash, rb_tainted_str_new2("hash_bfree"), INT2NUM(bdb_stat->hash_bfree));
                                                          ~~~~~~~ ~~~~~~~~~~^~~~~~~~~~
common.c:3623:81: warning: implicit conversion loses integer precision: 'uintmax_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32]
    rb_hash_aset(hash, rb_tainted_str_new2("hash_big_bfree"), INT2NUM(bdb_stat->hash_big_bfree));
                                                              ~~~~~~~ ~~~~~~~~~~^~~~~~~~~~~~~~
common.c:3625:81: warning: implicit conversion loses integer precision: 'uintmax_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32]
    rb_hash_aset(hash, rb_tainted_str_new2("hash_ovfl_free"), INT2NUM(bdb_stat->hash_ovfl_free));
--- env.o ---
env.c:2067:5: warning: initializing 'char *' with an expression of type 'const char [11]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
    "rep_nsites",
    ^~~~~~~~~~~~
env.c:2070:5: warning: initializing 'char *' with an expression of type 'const char [13]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
    "tx_timestamp",
    ^~~~~~~~~~~~~~
env.c:2330:5: warning: 'HAVE_ST_DB_ENV_REPMGR_SITE_LIST' is not defined, evaluates to 0 [-Wundef]
#if HAVE_ST_DB_ENV_REPMGR_SITE_LIST
    ^
env.c:2454:61: warning: passing 'int *' to parameter of type 'u_int32_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign]
    bdb_test_error(envst->envp->rep_get_nsites(envst->envp, &offon));
                                                            ^~~~~~
--- common.o ---
                                                              ~~~~~~~ ~~~~~~~~~~^~~~~~~~~~~~~~
common.c:3627:80: warning: implicit conversion loses integer precision: 'uintmax_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32]
    rb_hash_aset(hash, rb_tainted_str_new2("hash_dup_free"), INT2NUM(bdb_stat->hash_dup_free));
                                                             ~~~~~~~ ~~~~~~~~~~^~~~~~~~~~~~~
common.c:3669:24: warning: implicit declaration of function 'rb_tainted_str_new2' is invalid in C99 [-Wimplicit-function-declaration]
    rb_hash_aset(hash, rb_tainted_str_new2("bt_magic"), INT2NUM(bdb_stat->bt_magic));
                       ^
common.c:3697:58: warning: implicit declaration of function 'rb_tainted_str_new' is invalid in C99 [-Wimplicit-function-declaration]
    rb_hash_aset(hash, rb_tainted_str_new2("bt_re_pad"), rb_tainted_str_new(&pad, 1));
                                                         ^
--- env.o ---
env.c:2479:63: warning: passing 'int *' to parameter of type 'u_int32_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign]
    bdb_test_error(envst->envp->rep_get_priority(envst->envp, &offon));
                                                              ^~~~~~
env.c:2574:21: warning: implicit declaration of function 'rb_tainted_str_new2' is invalid in C99 [-Wimplicit-function-declaration]
    rb_hash_aset(a, rb_tainted_str_new2("st_bulk_fills"), INT2NUM(bs->st_bulk_fills));
                    ^
env.c:2574:71: warning: implicit conversion loses integer precision: 'uintmax_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32]
    rb_hash_aset(a, rb_tainted_str_new2("st_bulk_fills"), INT2NUM(bs->st_bulk_fills));
                                                          ~~~~~~~ ~~~~^~~~~~~~~~~~~
env.c:2577:75: warning: implicit conversion loses integer precision: 'uintmax_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32]
--- common.o ---
common.c:3672:80: warning: implicit conversion loses integer precision: 'uintmax_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32]
    rb_hash_aset(hash, rb_tainted_str_new2("bt_dup_pgfree"), INT2NUM(bdb_stat->bt_dup_pgfree));
                                                             ~~~~~~~ ~~~~~~~~~~^~~~~~~~~~~~~
common.c:3675:80: warning: implicit conversion loses integer precision: 'uintmax_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32]
    rb_hash_aset(hash, rb_tainted_str_new2("bt_int_pgfree"), INT2NUM(bdb_stat->bt_int_pgfree));
                                                             ~~~~~~~ ~~~~~~~~~~^~~~~~~~~~~~~
common.c:3677:81: warning: implicit conversion loses integer precision: 'uintmax_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32]
    rb_hash_aset(hash, rb_tainted_str_new2("bt_leaf_pgfree"), INT2NUM(bdb_stat->bt_leaf_pgfree));
                                                              ~~~~~~~ ~~~~~~~~~~^~~~~~~~~~~~~~
--- env.o ---
    rb_hash_aset(a, rb_tainted_str_new2("st_bulk_overflows"), INT2NUM(bs->st_bulk_overflows));
                                                              ~~~~~~~ ~~~~^~~~~~~~~~~~~~~~~
env.c:2580:73: warning: implicit conversion loses integer precision: 'uintmax_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32]
    rb_hash_aset(a, rb_tainted_str_new2("st_bulk_records"), INT2NUM(bs->st_bulk_records));
                                                            ~~~~~~~ ~~~~^~~~~~~~~~~~~~~
env.c:2583:75: warning: implicit conversion loses integer precision: 'uintmax_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32]
    rb_hash_aset(a, rb_tainted_str_new2("st_bulk_transfers"), INT2NUM(bs->st_bulk_transfers));
                                                              ~~~~~~~ ~~~~^~~~~~~~~~~~~~~~~
env.c:2586:78: warning: implicit conversion loses integer precision: 'uintmax_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32]
--- common.o ---
common.c:3693:81: warning: implicit conversion loses integer precision: 'uintmax_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32]
    rb_hash_aset(hash, rb_tainted_str_new2("bt_over_pgfree"), INT2NUM(bdb_stat->bt_over_pgfree));
                                                              ~~~~~~~ ~~~~~~~~~~^~~~~~~~~~~~~~
common.c:3739:24: warning: implicit declaration of function 'rb_tainted_str_new2' is invalid in C99 [-Wimplicit-function-declaration]
    rb_hash_aset(hash, rb_tainted_str_new2("qs_magic"), INT2NUM(bdb_stat->qs_magic));
                       ^
common.c:3758:58: warning: implicit declaration of function 'rb_tainted_str_new' is invalid in C99 [-Wimplicit-function-declaration]
    rb_hash_aset(hash, rb_tainted_str_new2("qs_re_pad"), rb_tainted_str_new(&pad, 1));
                                                         ^
common.c:3797:25: warning: implicit declaration of function 'rb_tainted_str_new' is invalid in C99 [-Wimplicit-function-declaration]
--- env.o ---
    rb_hash_aset(a, rb_tainted_str_new2("st_client_rerequests"), INT2NUM(bs->st_client_rerequests));
                                                                 ~~~~~~~ ~~~~^~~~~~~~~~~~~~~~~~~~
env.c:2589:76: warning: implicit conversion loses integer precision: 'uintmax_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32]
    rb_hash_aset(a, rb_tainted_str_new2("st_client_svc_miss"), INT2NUM(bs->st_client_svc_miss));
                                                               ~~~~~~~ ~~~~^~~~~~~~~~~~~~~~~~
env.c:2592:75: warning: implicit conversion loses integer precision: 'uintmax_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32]
    rb_hash_aset(a, rb_tainted_str_new2("st_client_svc_req"), INT2NUM(bs->st_client_svc_req));
                                                              ~~~~~~~ ~~~~^~~~~~~~~~~~~~~~~
env.c:2598:80: warning: implicit conversion loses integer precision: 'db_ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
--- common.o ---
    hash = rb_assoc_new(rb_tainted_str_new(&pad, 1), INT2NUM(bdb_stat->qs_re_len));
                        ^
common.c:3887:5: warning: implicit declaration of function 'rb_secure' is invalid in C99 [-Wimplicit-function-declaration]
    rb_secure(4);
    ^
common.c:3911:5: warning: implicit declaration of function 'rb_secure' is invalid in C99 [-Wimplicit-function-declaration]
    rb_secure(2);
    ^
common.c:3939:5: warning: implicit declaration of function 'rb_secure' is invalid in C99 [-Wimplicit-function-declaration]
    rb_secure(2);
    ^
common.c:4007:17: warning: variable 'c' set but not used [-Wunused-but-set-variable]
    VALUE a, b, c;
                ^
common.c:4225:5: warning: implicit declaration of function 'rb_secure' is invalid in C99 [-Wimplicit-function-declaration]
    rb_secure(4);
    ^
common.c:4393:23: warning: implicit declaration of function 'rb_tainted_str_new2' is invalid in C99 [-Wimplicit-function-declaration]
            rb_ary_push(res, rb_tainted_str_new2(filename));
--- env.o ---
    rb_hash_aset(a, rb_tainted_str_new2("st_election_cur_winner"), INT2NUM(bs->st_election_cur_winner));
                                                                   ~~~~~~~ ~~~~^~~~~~~~~~~~~~~~~~~~~~
env.c:2620:70: warning: implicit conversion loses integer precision: 'uintmax_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32]
    rb_hash_aset(a, rb_tainted_str_new2("st_elections"), INT2NUM(bs->st_elections));
                                                         ~~~~~~~ ~~~~^~~~~~~~~~~~
env.c:2621:74: warning: implicit conversion loses integer precision: 'uintmax_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32]
    rb_hash_aset(a, rb_tainted_str_new2("st_elections_won"), INT2NUM(bs->st_elections_won));
                                                             ~~~~~~~ ~~~~^~~~~~~~~~~~~~~~
env.c:2622:67: warning: implicit conversion loses integer precision: 'db_ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
--- common.o ---
                             ^
common.c:4399:23: warning: implicit declaration of function 'rb_tainted_str_new2' is invalid in C99 [-Wimplicit-function-declaration]
            rb_ary_push(res, rb_tainted_str_new2(dbname));
                             ^
common.c:4466:13: warning: implicit declaration of function 'rb_tainted_str_new2' is invalid in C99 [-Wimplicit-function-declaration]
            return rb_tainted_str_new2(strval);
                   ^
common.c:4490:5: warning: initializing 'char *' with an expression of type 'const char [10]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
    "bt_minkey",
    ^~~~~~~~~~~
common.c:4493:5: warning: initializing 'char *' with an expression of type 'const char [10]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
    "cachesize",
    ^~~~~~~~~~~
common.c:4496:5: warning: initializing 'char *' with an expression of type 'const char [7]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
--- env.o ---
    rb_hash_aset(a, rb_tainted_str_new2("st_env_id"), INT2NUM(bs->st_env_id));
                                                      ~~~~~~~ ~~~~^~~~~~~~~
env.c:2625:75: warning: implicit conversion loses integer precision: 'uintmax_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32]
    rb_hash_aset(a, rb_tainted_str_new2("st_log_duplicated"), INT2NUM(bs->st_log_duplicated));
                                                              ~~~~~~~ ~~~~^~~~~~~~~~~~~~~~~
env.c:2626:71: warning: implicit conversion loses integer precision: 'uintmax_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32]
    rb_hash_aset(a, rb_tainted_str_new2("st_log_queued"), INT2NUM(bs->st_log_queued));
                                                          ~~~~~~~ ~~~~^~~~~~~~~~~~~
env.c:2627:75: warning: implicit conversion loses integer precision: 'uintmax_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32]
    rb_hash_aset(a, rb_tainted_str_new2("st_log_queued_max"), INT2NUM(bs->st_log_queued_max));
--- common.o ---
    "dbname",
    ^~~~~~~~
common.c:4499:5: warning: initializing 'char *' with an expression of type 'const char [4]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
    "env",
    ^~~~~
common.c:4502:5: warning: initializing 'char *' with an expression of type 'const char [10]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
    "h_ffactor",
    ^~~~~~~~~~~
common.c:4505:5: warning: initializing 'char *' with an expression of type 'const char [8]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
    "h_nelem",
    ^~~~~~~~~
common.c:4508:5: warning: initializing 'char *' with an expression of type 'const char [7]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
    "lorder",
    ^~~~~~~~
common.c:4511:5: warning: initializing 'char *' with an expression of type 'const char [9]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
    "pagesize",
    ^~~~~~~~~~
--- env.o ---
                                                              ~~~~~~~ ~~~~^~~~~~~~~~~~~~~~~
env.c:2628:77: warning: implicit conversion loses integer precision: 'uintmax_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32]
    rb_hash_aset(a, rb_tainted_str_new2("st_log_queued_total"), INT2NUM(bs->st_log_queued_total));
                                                                ~~~~~~~ ~~~~^~~~~~~~~~~~~~~~~~~
env.c:2629:72: warning: implicit conversion loses integer precision: 'uintmax_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32]
    rb_hash_aset(a, rb_tainted_str_new2("st_log_records"), INT2NUM(bs->st_log_records));
                                                           ~~~~~~~ ~~~~^~~~~~~~~~~~~~
env.c:2630:74: warning: implicit conversion loses integer precision: 'uintmax_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32]
    rb_hash_aset(a, rb_tainted_str_new2("st_log_requested"), INT2NUM(bs->st_log_requested));
--- common.o ---
common.c:4514:5: warning: initializing 'char *' with an expression of type 'const char [13]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
    "q_extentsize",
    ^~~~~~~~~~~~~~
common.c:4517:5: warning: initializing 'char *' with an expression of type 'const char [9]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
    "re_delim",
    ^~~~~~~~~~
common.c:4520:5: warning: initializing 'char *' with an expression of type 'const char [7]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
    "re_len",
    ^~~~~~~~
common.c:4523:5: warning: initializing 'char *' with an expression of type 'const char [7]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
    "re_pad",
    ^~~~~~~~
common.c:4526:5: warning: initializing 'char *' with an expression of type 'const char [10]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
    "re_source",
    ^~~~~~~~~~~
--- env.o ---
                                                             ~~~~~~~ ~~~~^~~~~~~~~~~~~~~~
env.c:2631:67: warning: implicit conversion loses integer precision: 'db_ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
    rb_hash_aset(a, rb_tainted_str_new2("st_master"), INT2NUM(bs->st_master));
                                                      ~~~~~~~ ~~~~^~~~~~~~~
env.c:2632:75: warning: implicit conversion loses integer precision: 'uintmax_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32]
    rb_hash_aset(a, rb_tainted_str_new2("st_master_changes"), INT2NUM(bs->st_master_changes));
                                                              ~~~~~~~ ~~~~^~~~~~~~~~~~~~~~~
env.c:2633:72: warning: implicit conversion loses integer precision: 'uintmax_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32]
    rb_hash_aset(a, rb_tainted_str_new2("st_msgs_badgen"), INT2NUM(bs->st_msgs_badgen));
                                                           ~~~~~~~ ~~~~^~~~~~~~~~~~~~
--- common.o ---
common.c:4529:5: warning: initializing 'char *' with an expression of type 'const char [6]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
    "flags",
    ^~~~~~~
common.c:4532:5: warning: initializing 'char *' with an expression of type 'const char [11]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
    "open_flags",
    ^~~~~~~~~~~~
--- env.o ---
env.c:2634:75: warning: implicit conversion loses integer precision: 'uintmax_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32]
    rb_hash_aset(a, rb_tainted_str_new2("st_msgs_processed"), INT2NUM(bs->st_msgs_processed));
                                                              ~~~~~~~ ~~~~^~~~~~~~~~~~~~~~~
env.c:2635:73: warning: implicit conversion loses integer precision: 'uintmax_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32]
    rb_hash_aset(a, rb_tainted_str_new2("st_msgs_recover"), INT2NUM(bs->st_msgs_recover));
                                                            ~~~~~~~ ~~~~^~~~~~~~~~~~~~~
env.c:2636:79: warning: implicit conversion loses integer precision: 'uintmax_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32]
    rb_hash_aset(a, rb_tainted_str_new2("st_msgs_send_failures"), INT2NUM(bs->st_msgs_send_failures));
                                                                  ~~~~~~~ ~~~~^~~~~~~~~~~~~~~~~~~~~
env.c:2637:70: warning: implicit conversion loses integer precision: 'uintmax_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32]
    rb_hash_aset(a, rb_tainted_str_new2("st_msgs_sent"), INT2NUM(bs->st_msgs_sent));
                                                         ~~~~~~~ ~~~~^~~~~~~~~~~~
env.c:2638:69: warning: implicit conversion loses integer precision: 'uintmax_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32]
    rb_hash_aset(a, rb_tainted_str_new2("st_newsites"), INT2NUM(bs->st_newsites));
                                                        ~~~~~~~ ~~~~^~~~~~~~~~~
env.c:2648:71: warning: implicit conversion loses integer precision: 'uintmax_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32]
    rb_hash_aset(a, rb_tainted_str_new2("st_nthrottles"), INT2NUM(bs->st_nthrottles));
                                                          ~~~~~~~ ~~~~^~~~~~~~~~~~~
env.c:2649:69: warning: implicit conversion loses integer precision: 'uintmax_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32]
    rb_hash_aset(a, rb_tainted_str_new2("st_outdated"), INT2NUM(bs->st_outdated));
                                                        ~~~~~~~ ~~~~^~~~~~~~~~~
env.c:2651:74: warning: implicit conversion loses integer precision: 'uintmax_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32]
    rb_hash_aset(a, rb_tainted_str_new2("st_pg_duplicated"), INT2NUM(bs->st_pg_duplicated));
                                                             ~~~~~~~ ~~~~^~~~~~~~~~~~~~~~
env.c:2654:71: warning: implicit conversion loses integer precision: 'uintmax_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32]
    rb_hash_aset(a, rb_tainted_str_new2("st_pg_records"), INT2NUM(bs->st_pg_records));
                                                          ~~~~~~~ ~~~~^~~~~~~~~~~~~
env.c:2657:73: warning: implicit conversion loses integer precision: 'uintmax_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32]
    rb_hash_aset(a, rb_tainted_str_new2("st_pg_requested"), INT2NUM(bs->st_pg_requested));
                                                            ~~~~~~~ ~~~~^~~~~~~~~~~~~~~
env.c:2663:73: warning: implicit conversion loses integer precision: 'uintmax_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32]
    rb_hash_aset(a, rb_tainted_str_new2("st_txns_applied"), INT2NUM(bs->st_txns_applied));
                                                            ~~~~~~~ ~~~~^~~~~~~~~~~~~~~
env.c:2819:12: warning: implicit declaration of function 'rb_tainted_str_new2' is invalid in C99 [-Wimplicit-function-declaration]
    return rb_tainted_str_new2(dir);
           ^
env.c:2882:5: warning: 'HAVE_ST_DB_ENV_SET_ENV_NOTIFY' is not defined, evaluates to 0 [-Wundef]
#if HAVE_ST_DB_ENV_SET_ENV_NOTIFY
    ^
env.c:2995:5: warning: incompatible function pointer types passing 'VALUE (VALUE, VALUE)' (aka 'unsigned long (unsigned long, unsigned long)') to parameter of type 'VALUE (*)(VALUE)' (aka 'unsigned long (*)(unsigned long)') [-Wincompatible-function-pointer-types]
    rb_define_method(bdb_cEnv, "rep_get_nsites", bdb_env_rep_get_nsites, 0);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/ruby-3.2/ruby/internal/anyargs.h:288:135: note: expanded from macro 'rb_define_method'
#define rb_define_method(klass, mid, func, arity)           RBIMPL_ANYARGS_DISPATCH_rb_define_method((arity), (func))((klass), (mid), (func), (arity))
                                                                                                                                      ^~~~~~
/usr/local/include/ruby-3.2/ruby/internal/anyargs.h:277:1: note: passing argument to parameter here
RBIMPL_ANYARGS_DECL(rb_define_method, VALUE, const char *)
^
/usr/local/include/ruby-3.2/ruby/internal/anyargs.h:255:72: note: expanded from macro 'RBIMPL_ANYARGS_DECL'
RBIMPL_ANYARGS_ATTRSET(sym) static void sym ## _00(__VA_ARGS__, VALUE(*)(VALUE), int); \
                                                                       ^
env.c:2996:5: warning: incompatible function pointer types passing 'VALUE (VALUE, VALUE)' (aka 'unsigned long (unsigned long, unsigned long)') to parameter of type 'VALUE (*)(VALUE)' (aka 'unsigned long (*)(unsigned long)') [-Wincompatible-function-pointer-types]
    rb_define_method(bdb_cEnv, "rep_nsites", bdb_env_rep_get_nsites, 0);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/ruby-3.2/ruby/internal/anyargs.h:288:135: note: expanded from macro 'rb_define_method'
#define rb_define_method(klass, mid, func, arity)           RBIMPL_ANYARGS_DISPATCH_rb_define_method((arity), (func))((klass), (mid), (func), (arity))
                                                                                                                                      ^~~~~~
/usr/local/include/ruby-3.2/ruby/internal/anyargs.h:277:1: note: passing argument to parameter here
RBIMPL_ANYARGS_DECL(rb_define_method, VALUE, const char *)
^
/usr/local/include/ruby-3.2/ruby/internal/anyargs.h:255:72: note: expanded from macro 'RBIMPL_ANYARGS_DECL'
RBIMPL_ANYARGS_ATTRSET(sym) static void sym ## _00(__VA_ARGS__, VALUE(*)(VALUE), int); \
                                                                       ^
env.c:3001:5: warning: incompatible function pointer types passing 'VALUE (VALUE, VALUE)' (aka 'unsigned long (unsigned long, unsigned long)') to parameter of type 'VALUE (*)(VALUE)' (aka 'unsigned long (*)(unsigned long)') [-Wincompatible-function-pointer-types]
    rb_define_method(bdb_cEnv, "rep_get_priority", bdb_env_rep_get_priority, 0);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/ruby-3.2/ruby/internal/anyargs.h:288:135: note: expanded from macro 'rb_define_method'
#define rb_define_method(klass, mid, func, arity)           RBIMPL_ANYARGS_DISPATCH_rb_define_method((arity), (func))((klass), (mid), (func), (arity))
                                                                                                                                      ^~~~~~
/usr/local/include/ruby-3.2/ruby/internal/anyargs.h:277:1: note: passing argument to parameter here
RBIMPL_ANYARGS_DECL(rb_define_method, VALUE, const char *)
^
/usr/local/include/ruby-3.2/ruby/internal/anyargs.h:255:72: note: expanded from macro 'RBIMPL_ANYARGS_DECL'
RBIMPL_ANYARGS_ATTRSET(sym) static void sym ## _00(__VA_ARGS__, VALUE(*)(VALUE), int); \
                                                                       ^
env.c:3002:5: warning: incompatible function pointer types passing 'VALUE (VALUE, VALUE)' (aka 'unsigned long (unsigned long, unsigned long)') to parameter of type 'VALUE (*)(VALUE)' (aka 'unsigned long (*)(unsigned long)') [-Wincompatible-function-pointer-types]
    rb_define_method(bdb_cEnv, "rep_priority", bdb_env_rep_get_priority, 0);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/ruby-3.2/ruby/internal/anyargs.h:288:135: note: expanded from macro 'rb_define_method'
#define rb_define_method(klass, mid, func, arity)           RBIMPL_ANYARGS_DISPATCH_rb_define_method((arity), (func))((klass), (mid), (func), (arity))
                                                                                                                                      ^~~~~~
/usr/local/include/ruby-3.2/ruby/internal/anyargs.h:277:1: note: passing argument to parameter here
RBIMPL_ANYARGS_DECL(rb_define_method, VALUE, const char *)
^
/usr/local/include/ruby-3.2/ruby/internal/anyargs.h:255:72: note: expanded from macro 'RBIMPL_ANYARGS_DECL'
RBIMPL_ANYARGS_ATTRSET(sym) static void sym ## _00(__VA_ARGS__, VALUE(*)(VALUE), int); \
                                                                       ^
env.c:3011:5: warning: incompatible function pointer types passing 'VALUE (VALUE)' (aka 'unsigned long (unsigned long)') to parameter of type 'VALUE (*)(VALUE, VALUE)' (aka 'unsigned long (*)(unsigned long, unsigned long)') [-Wincompatible-function-pointer-types]
    rb_define_method(bdb_cEnv, "rep_timeout", bdb_env_rep_intern_timeout, 1);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/ruby-3.2/ruby/internal/anyargs.h:288:135: note: expanded from macro 'rb_define_method'
#define rb_define_method(klass, mid, func, arity)           RBIMPL_ANYARGS_DISPATCH_rb_define_method((arity), (func))((klass), (mid), (func), (arity))
                                                                                                                                      ^~~~~~
/usr/local/include/ruby-3.2/ruby/internal/anyargs.h:277:1: note: passing argument to parameter here
RBIMPL_ANYARGS_DECL(rb_define_method, VALUE, const char *)
^
/usr/local/include/ruby-3.2/ruby/internal/anyargs.h:256:72: note: expanded from macro 'RBIMPL_ANYARGS_DECL'
RBIMPL_ANYARGS_ATTRSET(sym) static void sym ## _01(__VA_ARGS__, VALUE(*)(VALUE, VALUE), int); \
                                                                       ^
env.c:3012:5: warning: incompatible function pointer types passing 'VALUE (VALUE)' (aka 'unsigned long (unsigned long)') to parameter of type 'VALUE (*)(VALUE, VALUE)' (aka 'unsigned long (*)(unsigned long, unsigned long)') [-Wincompatible-function-pointer-types]
    rb_define_method(bdb_cEnv, "rep_timeout?", bdb_env_rep_intern_timeout, 1);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/ruby-3.2/ruby/internal/anyargs.h:288:135: note: expanded from macro 'rb_define_method'
#define rb_define_method(klass, mid, func, arity)           RBIMPL_ANYARGS_DISPATCH_rb_define_method((arity), (func))((klass), (mid), (func), (arity))
                                                                                                                                      ^~~~~~
/usr/local/include/ruby-3.2/ruby/internal/anyargs.h:277:1: note: passing argument to parameter here
RBIMPL_ANYARGS_DECL(rb_define_method, VALUE, const char *)
^
/usr/local/include/ruby-3.2/ruby/internal/anyargs.h:256:72: note: expanded from macro 'RBIMPL_ANYARGS_DECL'
RBIMPL_ANYARGS_ATTRSET(sym) static void sym ## _01(__VA_ARGS__, VALUE(*)(VALUE, VALUE), int); \
                                                                       ^
env.c:3015:5: warning: incompatible function pointer types passing 'VALUE (int, VALUE *, VALUE)' (aka 'unsigned long (int, unsigned long *, unsigned long)') to parameter of type 'VALUE (*)(VALUE)' (aka 'unsigned long (*)(unsigned long)') [-Wincompatible-function-pointer-types]
    rb_define_method(bdb_cEnv, "rep_stat", bdb_env_rep_stat, 0);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/ruby-3.2/ruby/internal/anyargs.h:288:135: note: expanded from macro 'rb_define_method'
#define rb_define_method(klass, mid, func, arity)           RBIMPL_ANYARGS_DISPATCH_rb_define_method((arity), (func))((klass), (mid), (func), (arity))
                                                                                                                                      ^~~~~~
/usr/local/include/ruby-3.2/ruby/internal/anyargs.h:277:1: note: passing argument to parameter here
RBIMPL_ANYARGS_DECL(rb_define_method, VALUE, const char *)
^
/usr/local/include/ruby-3.2/ruby/internal/anyargs.h:255:72: note: expanded from macro 'RBIMPL_ANYARGS_DECL'
RBIMPL_ANYARGS_ATTRSET(sym) static void sym ## _00(__VA_ARGS__, VALUE(*)(VALUE), int); \
                                                                       ^
env.c:3025:5: warning: incompatible function pointer types passing 'VALUE (VALUE, VALUE)' (aka 'unsigned long (unsigned long, unsigned long)') to parameter of type 'VALUE (*)(VALUE)' (aka 'unsigned long (*)(unsigned long)') [-Wincompatible-function-pointer-types]
    rb_define_method(bdb_cEnv, "rep_get_clockskew", bdb_env_rep_get_clockskew, 0);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/ruby-3.2/ruby/internal/anyargs.h:288:135: note: expanded from macro 'rb_define_method'
#define rb_define_method(klass, mid, func, arity)           RBIMPL_ANYARGS_DISPATCH_rb_define_method((arity), (func))((klass), (mid), (func), (arity))
                                                                                                                                      ^~~~~~
/usr/local/include/ruby-3.2/ruby/internal/anyargs.h:277:1: note: passing argument to parameter here
RBIMPL_ANYARGS_DECL(rb_define_method, VALUE, const char *)
^
/usr/local/include/ruby-3.2/ruby/internal/anyargs.h:255:72: note: expanded from macro 'RBIMPL_ANYARGS_DECL'
RBIMPL_ANYARGS_ATTRSET(sym) static void sym ## _00(__VA_ARGS__, VALUE(*)(VALUE), int); \
                                                                       ^
env.c:3026:5: warning: incompatible function pointer types passing 'VALUE (VALUE, VALUE)' (aka 'unsigned long (unsigned long, unsigned long)') to parameter of type 'VALUE (*)(VALUE)' (aka 'unsigned long (*)(unsigned long)') [-Wincompatible-function-pointer-types]
    rb_define_method(bdb_cEnv, "rep_clockskew", bdb_env_rep_get_clockskew, 0);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/ruby-3.2/ruby/internal/anyargs.h:288:135: note: expanded from macro 'rb_define_method'
#define rb_define_method(klass, mid, func, arity)           RBIMPL_ANYARGS_DISPATCH_rb_define_method((arity), (func))((klass), (mid), (func), (arity))
                                                                                                                                      ^~~~~~
/usr/local/include/ruby-3.2/ruby/internal/anyargs.h:277:1: note: passing argument to parameter here
RBIMPL_ANYARGS_DECL(rb_define_method, VALUE, const char *)
^
/usr/local/include/ruby-3.2/ruby/internal/anyargs.h:255:72: note: expanded from macro 'RBIMPL_ANYARGS_DECL'
RBIMPL_ANYARGS_ATTRSET(sym) static void sym ## _00(__VA_ARGS__, VALUE(*)(VALUE), int); \
                                                                       ^
env.c:3030:5: warning: incompatible function pointer types passing 'VALUE (VALUE, VALUE)' (aka 'unsigned long (unsigned long, unsigned long)') to parameter of type 'VALUE (*)(VALUE)' (aka 'unsigned long (*)(unsigned long)') [-Wincompatible-function-pointer-types]
    rb_define_method(bdb_cEnv, "rep_get_request", bdb_env_rep_get_request, 0);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/ruby-3.2/ruby/internal/anyargs.h:288:135: note: expanded from macro 'rb_define_method'
#define rb_define_method(klass, mid, func, arity)           RBIMPL_ANYARGS_DISPATCH_rb_define_method((arity), (func))((klass), (mid), (func), (arity))
                                                                                                                                      ^~~~~~
/usr/local/include/ruby-3.2/ruby/internal/anyargs.h:277:1: note: passing argument to parameter here
RBIMPL_ANYARGS_DECL(rb_define_method, VALUE, const char *)
^
/usr/local/include/ruby-3.2/ruby/internal/anyargs.h:255:72: note: expanded from macro 'RBIMPL_ANYARGS_DECL'
RBIMPL_ANYARGS_ATTRSET(sym) static void sym ## _00(__VA_ARGS__, VALUE(*)(VALUE), int); \
                                                                       ^
env.c:3031:5: warning: incompatible function pointer types passing 'VALUE (VALUE, VALUE)' (aka 'unsigned long (unsigned long, unsigned long)') to parameter of type 'VALUE (*)(VALUE)' (aka 'unsigned long (*)(unsigned long)') [-Wincompatible-function-pointer-types]
    rb_define_method(bdb_cEnv, "rep_request", bdb_env_rep_get_request, 0);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/ruby-3.2/ruby/internal/anyargs.h:288:135: note: expanded from macro 'rb_define_method'
#define rb_define_method(klass, mid, func, arity)           RBIMPL_ANYARGS_DISPATCH_rb_define_method((arity), (func))((klass), (mid), (func), (arity))
                                                                                                                                      ^~~~~~
/usr/local/include/ruby-3.2/ruby/internal/anyargs.h:277:1: note: passing argument to parameter here
RBIMPL_ANYARGS_DECL(rb_define_method, VALUE, const char *)
^
/usr/local/include/ruby-3.2/ruby/internal/anyargs.h:255:72: note: expanded from macro 'RBIMPL_ANYARGS_DECL'
RBIMPL_ANYARGS_ATTRSET(sym) static void sym ## _00(__VA_ARGS__, VALUE(*)(VALUE), int); \
                                                                       ^
--- bdb.o ---
6 warnings generated.
--- sequence.o ---
compiling sequence.c
--- recnum.o ---
In file included from recnum.c:1:
In file included from ./bdb.h:1:
/usr/local/include/db5/db.h:2725:5: warning: 'DB_DBM_HSEARCH' is not defined, evaluates to 0 [-Wundef]
#if DB_DBM_HSEARCH != 0
    ^
/usr/local/include/db5/db.h:3081:5: warning: 'DB_DBM_HSEARCH' is not defined, evaluates to 0 [-Wundef]
#if DB_DBM_HSEARCH != 0
    ^
/usr/local/include/db5/db.h:3102:5: warning: 'DB_DBM_HSEARCH' is not defined, evaluates to 0 [-Wundef]
#if DB_DBM_HSEARCH != 0
    ^
--- sequence.o ---
In file included from sequence.c:1:
--- common.o ---
91 warnings and 1 error generated.
*** [common.o] Error code 1

make[1]: stopped in /magus/work/usr/mports/databases/ruby-bdb/work/bdb-0.6.6/src
--- sequence.o ---
In file included from ./bdb.h:1:
/usr/local/include/db5/db.h:2725:5: warning: 'DB_DBM_HSEARCH' is not defined, evaluates to 0 [-Wundef]
#if DB_DBM_HSEARCH != 0
    ^
/usr/local/include/db5/db.h:3081:5: warning: 'DB_DBM_HSEARCH' is not defined, evaluates to 0 [-Wundef]
#if DB_DBM_HSEARCH != 0
    ^
/usr/local/include/db5/db.h:3102:5: warning: 'DB_DBM_HSEARCH' is not defined, evaluates to 0 [-Wundef]
#if DB_DBM_HSEARCH != 0
    ^
--- docs/doc/index.html ---
Parsing sources...
  5% [ 1/18]  arraylike.rd
 11% [ 2/18]  bdb.rb
 16% [ 3/18]  common.rb
--- all ---
--- cursor.o ---
10 warnings generated.
--- docs/doc/index.html ---
 22% [ 4/18]  comxxx.rb
 27% [ 5/18]  cursor.rb
 33% [ 6/18]  cursor.rd
 38% [ 7/18]  env.rb
--- all ---
--- recnum.o ---
recnum.c:45:16: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
        a = INT2NUM(i + beg);
            ~~~~~~~ ~~^~~~~
recnum.c:64:24: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
    position = INT2NUM(offset);
               ~~~~~~~ ^~~~~~
recnum.c:115:5: warning: implicit declaration of function 'rb_secure' is invalid in C99 [-Wimplicit-function-declaration]
    rb_secure(4);
    ^
recnum.c:159:19: warning: comparison of integers of different signs: 'unsigned long' and 'long' [-Wsign-compare]
    if (beg + len > dbst->len) {
        ~~~~~~~~~ ^ ~~~~~~~~~
recnum.c:172:13: warning: comparison of integers of different signs: 'VALUE' (aka 'unsigned long') and 'long' [-Wsign-compare]
    if (beg >= dbst->len) {
        ~~~ ^  ~~~~~~~~~
recnum.c:173:24: warning: comparison of integers of different signs: 'long' and 'VALUE' (aka 'unsigned long') [-Wsign-compare]
        for (i = dbst->len; i < beg; i++) {
                            ~ ^ ~~~
recnum.c:174:23: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
            tmp[0] = INT2NUM(i);
                     ~~~~~~~ ^
recnum.c:179:23: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
            tmp[0] = INT2NUM(i);
                     ~~~~~~~ ^
recnum.c:188:32: warning: comparison of integers of different signs: 'long' and 'unsigned long' [-Wsign-compare]
            for (i = dbst->len - 1; i >= (beg + len); i--) {
                                    ~ ^   ~~~~~~~~~
recnum.c:189:20: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
                tmp[0] = INT2NUM(i);
                         ~~~~~~~ ^
recnum.c:191:29: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
                tmp[0] = INT2NUM(i + rlen - len);
                         ~~~~~~~ ~~~~~~~~~^~~~~
recnum.c:197:23: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
            tmp[0] = INT2NUM(i);
                     ~~~~~~~ ^
recnum.c:203:20: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
                tmp[0] = INT2NUM(i);
                         ~~~~~~~ ^
recnum.c:205:29: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
                tmp[0] = INT2NUM(i + rlen - len);
                         ~~~~~~~ ~~~~~~~~~^~~~~
recnum.c:208:45: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
            bdb_intern_shift_pop(obj, DB_LAST, len - rlen);
            ~~~~~~~~~~~~~~~~~~~~               ~~~~^~~~~~
recnum.c:253:17: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
        for (i = dbst->len; i < beg; i++) {
               ~ ~~~~~~^~~
recnum.c:259:23: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
    argv[0] = INT2NUM(beg);
              ~~~~~~~ ^~~
recnum.c:317:25: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
    tmp = INT2NUM(dbst->len);
          ~~~~~~~ ~~~~~~^~~
recnum.c:338:19: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
    pos = INT2NUM(idx);
          ~~~~~~~ ^~~
recnum.c:353:25: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
        tmp[0] = INT2NUM(dbst->len);
                 ~~~~~~~ ~~~~~~^~~
recnum.c:368:28: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
    tmp[0] = INT2NUM(dbst->len);
             ~~~~~~~ ~~~~~~^~~
recnum.c:388:29: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
            tmp[0] = INT2NUM(dbst->len);
                     ~~~~~~~ ~~~~~~^~~
recnum.c:450:23: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
            tmp[0] = INT2NUM(i);
                     ~~~~~~~ ^
recnum.c:452:25: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
            tmp[0] = INT2NUM(i + argc);
                     ~~~~~~~ ~~^~~~~~
recnum.c:456:23: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
            tmp[0] = INT2NUM(i);
                     ~~~~~~~ ^
recnum.c:472:26: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
    return INT2NUM(dbst->len);
           ~~~~~~~ ~~~~~~^~~
recnum.c:515:19: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
        tmp[0] = INT2NUM(i);
                 ~~~~~~~ ^
recnum.c:517:19: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
        tmp[0] = INT2NUM(j);
                 ~~~~~~~ ^
recnum.c:519:19: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
        tmp[0] = INT2NUM(i);
                 ~~~~~~~ ^
recnum.c:521:19: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
        tmp[0] = INT2NUM(j);
                 ~~~~~~~ ^
recnum.c:610:16: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
        tmp = INT2NUM(i1);
              ~~~~~~~ ^~
recnum.c:613:27: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
            bdb_del(obj, INT2NUM(i1));
                         ~~~~~~~ ^~
recnum.c:643:19: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
    tmp = INT2NUM(pos);
          ~~~~~~~ ^~~
recnum.c:660:16: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
        tmp = INT2NUM(i1);
              ~~~~~~~ ^~
--- docs/doc/index.html ---
 44% [ 8/18]  env.rd
--- all ---
recnum.c:746:21: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
        tmp[0] = INT2NUM(i + beg);
                 ~~~~~~~ ~~^~~~~
recnum.c:779:16: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
        tmp = INT2NUM(i);
              ~~~~~~~ ^
recnum.c:827:20: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
    arg1 = INT2NUM(pos);
           ~~~~~~~ ^~~
--- lock.o ---
25 warnings generated.
--- docs/doc/index.html ---
 50% [ 9/18]  exception.rb
--- all ---
--- recnum.o ---
recnum.c:879:16: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
        tmp = INT2NUM(i);
              ~~~~~~~ ^
recnum.c:882:27: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
            bdb_del(obj, INT2NUM(i));
                         ~~~~~~~ ^
recnum.c:903:16: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
        tmp = INT2NUM(i);
              ~~~~~~~ ^
recnum.c:907:20: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
    return INT2NUM(j);
           ~~~~~~~ ^
--- sequence.o ---
sequence.c:151:9: warning: 'rb_iterate' is deprecated: by: rb_block_call since 1.9 [-Wdeprecated-declarations]
        rb_iterate(rb_each, options, bdb_seq_i_options, res);
        ^
/usr/local/include/ruby-3.2/ruby/internal/iterator.h:269:1: note: 'rb_iterate' has been explicitly marked deprecated here
RBIMPL_ATTR_DEPRECATED(("by: rb_block_call since 1.9"))
^
/usr/local/include/ruby-3.2/ruby/internal/attr/deprecated.h:36:53: note: expanded from macro 'RBIMPL_ATTR_DEPRECATED'
# define RBIMPL_ATTR_DEPRECATED(msg) __attribute__((__deprecated__ msg))
                                                    ^
sequence.c:151:38: warning: incompatible function pointer types passing 'VALUE (VALUE, VALUE)' (aka 'unsigned long (unsigned long, unsigned long)') to parameter of type 'rb_block_call_func_t' (aka 'unsigned long (*)(unsigned long, unsigned long, int, const unsigned long *, unsigned long)') [-Wincompatible-function-pointer-types]
        rb_iterate(rb_each, options, bdb_seq_i_options, res);
                                     ^~~~~~~~~~~~~~~~~
/usr/local/include/ruby-3.2/ruby/internal/iterator.h:283:75: note: passing argument to parameter 'proc' here
VALUE rb_iterate(VALUE (*func1)(VALUE), VALUE data1, rb_block_call_func_t proc, VALUE data2);
                                                                          ^
--- docs/doc/index.html ---
 55% [10/18]  hashlike.rd
--- all ---
sequence.c:273:56: warning: implicit conversion loses integer precision: 'uintmax_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32]
    rb_hash_aset(res, rb_str_new2("wait"), INT2NUM(sta.st_wait));
                                           ~~~~~~~ ~~~~^~~~~~~
sequence.c:274:58: warning: implicit conversion loses integer precision: 'uintmax_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32]
    rb_hash_aset(res, rb_str_new2("nowait"), INT2NUM(sta.st_nowait));
                                             ~~~~~~~ ~~~~^~~~~~~~~
sequence.c:275:59: warning: implicit conversion loses integer precision: 'db_seq_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
    rb_hash_aset(res, rb_str_new2("current"), INT2NUM(sta.st_current));
                                              ~~~~~~~ ~~~~^~~~~~~~~~
sequence.c:276:57: warning: implicit conversion loses integer precision: 'db_seq_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
    rb_hash_aset(res, rb_str_new2("value"), INT2NUM(sta.st_value));
                                            ~~~~~~~ ~~~~^~~~~~~~
sequence.c:277:62: warning: implicit conversion loses integer precision: 'db_seq_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
    rb_hash_aset(res, rb_str_new2("last_value"), INT2NUM(sta.st_last_value));
                                                 ~~~~~~~ ~~~~^~~~~~~~~~~~~
sequence.c:278:55: warning: implicit conversion loses integer precision: 'db_seq_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
    rb_hash_aset(res, rb_str_new2("min"), INT2NUM(sta.st_min));
                                          ~~~~~~~ ~~~~^~~~~~
sequence.c:279:55: warning: implicit conversion loses integer precision: 'db_seq_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
    rb_hash_aset(res, rb_str_new2("max"), INT2NUM(sta.st_max));
                                          ~~~~~~~ ~~~~^~~~~~
--- docs/doc/index.html ---
 61% [11/18]  lock.rb
 66% [12/18]  lock.rd
 72% [13/18]  log.rb
 77% [14/18]  log.rd
 83% [15/18]  sequence.rb
 88% [16/18]  sequence.rd
 94% [17/18]  transaction.rb
--- all ---
--- recnum.o ---
recnum.c:951:5: warning: incompatible function pointer types passing 'VALUE (int, VALUE *, VALUE)' (aka 'unsigned long (int, unsigned long *, unsigned long)') to parameter of type 'VALUE (*)(VALUE)' (aka 'unsigned long (*)(unsigned long)') [-Wincompatible-function-pointer-types]
    rb_define_method(bdb_cRecnum, "map", bdb_sary_collect, 0);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/ruby-3.2/ruby/internal/anyargs.h:288:135: note: expanded from macro 'rb_define_method'
#define rb_define_method(klass, mid, func, arity)           RBIMPL_ANYARGS_DISPATCH_rb_define_method((arity), (func))((klass), (mid), (func), (arity))
                                                                                                                                      ^~~~~~
/usr/local/include/ruby-3.2/ruby/internal/anyargs.h:277:1: note: passing argument to parameter here
RBIMPL_ANYARGS_DECL(rb_define_method, VALUE, const char *)
^
/usr/local/include/ruby-3.2/ruby/internal/anyargs.h:255:72: note: expanded from macro 'RBIMPL_ANYARGS_DECL'
RBIMPL_ANYARGS_ATTRSET(sym) static void sym ## _00(__VA_ARGS__, VALUE(*)(VALUE), int); \
                                                                       ^
--- docs/doc/index.html ---
100% [18/18]  transaction.rd

Generating Darkfish format into /magus/work/usr/mports/databases/ruby-bdb/work/bdb-0.6.6/docs/doc...

You can visit the home page at: ]8;;file:///magus/work/usr/mports/databases/ruby-bdb/work/bdb-0.6.6/docs/doc/index.html\file:///magus/work/usr/mports/databases/ruby-bdb/work/bdb-0.6.6/docs/doc/index.html]8;;\
--- all ---
--- log.o ---
16 warnings generated.
--- sequence.o ---
12 warnings generated.
--- recnum.o ---
45 warnings generated.
--- env.o ---
109 warnings generated.
1 error

make[1]: stopped in /magus/work/usr/mports/databases/ruby-bdb/work/bdb-0.6.6/src
*** [all] Error code 2

make: stopped in /magus/work/usr/mports/databases/ruby-bdb/work/bdb-0.6.6
--- docs/doc/index.html ---

  Files:       18

  Classes:     17 (1 undocumented)
  Modules:      1 (0 undocumented)
  Constants:    0 (0 undocumented)
  Attributes:   0 (0 undocumented)
  Methods:    270 (0 undocumented)

  Total:      288 (1 undocumented)
   99.65% documented

  Elapsed: 0.5s

1 error

make: stopped in /magus/work/usr/mports/databases/ruby-bdb/work/bdb-0.6.6
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Stop.
make: stopped in /usr/mports/databases/ruby-bdb

Links

Depends On

Depend Of

Nothing

Categories

CVEs

  • Loading CVE information...

LLM Analysis