Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DB_File.xs:998:34: error: incompatible function pointer types assigning on macOS Sonoma #60

Open
shogo82148 opened this issue Aug 20, 2024 · 0 comments

Comments

@shogo82148
Copy link
Contributor

When building Perl 5.10.0 on macOS Sonoma, the process fails with the following error.

$ git clone [email protected]:Perl/perl5.git
$ cd perl5
$ git checkout v5.10.0
$ patchperl
$ ./Configure -des
$ make

(snip)

DB_File.xs:998:34: error: incompatible function pointer types assigning to 'u_int32_t (*)(const void *, size_t)' (aka 'unsigned int (*)(const void *, unsigned long)') from 'int (const void *, size_t)' (aka 'int (const void *, unsigned long)') [-Wincompatible-function-pointer-types]
                info->db_HA_hash = hash_cb ;
                                 ^ ~~~~~~~
DB_File.xs:1041:36: error: incompatible function pointer types assigning to 'size_t (*)(const DBT *, const DBT *)' (aka 'unsigned long (*)(const DBT *, const DBT *)') from 'int (const DBT *, const DBT *)' [-Wincompatible-function-pointer-types]
                info->db_BT_prefix = btree_prefix ;
                                   ^ ~~~~~~~~~~~~

(snip)

My environment is:

$ patchperl --version
Devel::PatchPerl 2.08
$ clang --version
Apple clang version 15.0.0 (clang-1500.3.9.4)
Target: arm64-apple-darwin23.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
$ uname -a
Darwin ichinoseshougonoMacBook-Pro.local 23.6.0 Darwin Kernel Version 23.6.0: Mon Jul 29 21:14:30 PDT 2024; root:xnu-10063.141.2~1/RELEASE_ARM64_T6000 arm64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant