Skip to Main Content

Berkeley DB Family

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Compiling errors while I compile db-18.1.40

user13362274Oct 16 2025

In db_1.18.40, file ./build_unix/env/env_config.c, I have these many Icompilation errors:

../src/env/env_config.c:77:49: error: initialization of 'int (*)(void)' from incompatible pointer type 'int (*)(DB_ENV *, const char *)' {aka 'int (*)(struct __db_env *, const char *)'} [-Wincompatible-pointer-types]
77 | { "add_data_dir", CFG_DIR, __env_add_data_dir },
| ^~~~~~~~~~~~~~~~~~
../src/env/env_config.c:77:49: note: (near initialization for 'config_descs[0].func')
In file included from ./db_int.h:1291,
from ../src/env/env_config.c:11:
../src/dbinc_auto/env_ext.h:54:6: note: '__env_add_data_dir' declared here
54 | int __env_add_data_dir __P((DB_ENV *, const char *));
| ^~~~~~~~~~~~~~~~~~
../src/env/env_config.c:78:49: error: initialization of 'int (*)(void)' from incompatible pointer type 'int (*)(DB_ENV *, const char *)' {aka 'int (*)(struct __db_env *, const char *)'} [-Wincompatible-pointer-types]
78 | { "db_data_dir", CFG_DIR, __env_set_data_dir },
| ^~~~~~~~~~~~~~~~~~
../src/env/env_config.c:78:49: note: (near initialization for 'config_descs[1].func')
../src/dbinc_auto/env_ext.h:53:6: note: '__env_set_data_dir' declared here
53 | int __env_set_data_dir __P((DB_ENV *, const char *));
| ^~~~~~~~~~~~~~~~~~
../src/env/env_config.c:79:49: error: initialization of 'int (*)(void)' from incompatible pointer type 'int (*)(DB_ENV *, const char *)' {aka 'int (*)(struct __db_env *, const char *)'} [-Wincompatible-pointer-types]
79 | { "db_log_dir", CFG_DIR, __log_set_lg_dir },
I don't understand how these errors happened. I don't understand word aka.

Somebody can help me ?

Comments
Post Details
Added on Oct 16 2025
0 comments
21 views