Opened 4 weeks ago

Last modified 3 weeks ago

#62216 new defect

db53: error: Support for FCNTL mutexes was removed in BDB 4.8.

Reported by: minusf Owned by:
Priority: Normal Milestone:
Component: ports Version:
Keywords: arm64 bigsur Cc: tgyurci (Teubel György), jmroot (Joshua Root), MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Port: db53

Description

i am trying to build isync and it fails on db53.

i see non-arm64 packages built under https://packages.macports.org/db53/ and i use isync on an intel mac so i imagine this compiles fine on intel but not yet on arm64:

-->  Fetching archive for db53
--->  Attempting to fetch db53-5.3.28_0+sql.darwin_20.arm64.tbz2 from https://lil.fr.packages.macports.org/db53
--->  Attempting to fetch db53-5.3.28_0+sql.darwin_20.arm64.tbz2 from https://packages.macports.org/db53
--->  Attempting to fetch db53-5.3.28_0+sql.darwin_20.arm64.tbz2 from https://cph.dk.packages.macports.org/db53
--->  Fetching distfiles for db53
--->  Verifying checksums for db53
--->  Extracting db53
--->  Applying patches to db53
--->  Configuring db53
Error: Failed to configure db53, consult /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_databases_db53/db53/work/db-5.3.28/build_unix/config.log
Error: Failed to configure db53: configure failure: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_databases_db53/db53/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port isync failed

there are many failed tests in the configure log, but some of them are designed to catch stuff i guess. the last error is:

configure:22024: /usr/bin/clang -o conftest -pipe -Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk -arch arm64  -I/opt/local/include -DSQLITE_ENABLE_COLUMN_METADATA -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk -L/opt/local/lib -Wl,-headerpad_max_install_names -W
l,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk -arch arm64 conftest.c  >&5
configure:22024: $? = 0
configure:22032: result: UNIX/fcntl
configure:22214: error: Support for FCNTL mutexes was removed in BDB 4.8.

Attachments (2)

config.log (160.0 KB) - added by minusf 4 weeks ago.
main.log (25.5 KB) - added by minusf 4 weeks ago.

Download all attachments as: .zip

Change History (5)

comment:1 Changed 4 weeks ago by ryandesign (Ryan Schmidt)

Keywords: arm64 bigsur added
Port: db53 added
Summary: isync build fails on db53 dependency on arm64db53: error: Support for FCNTL mutexes was removed in BDB 4.8.

This was previously reported in #61409 and duplicates. It has been closed as fixed, but with a note that the problem remains on arm64. Please sudo port selfupdate to ensure you have at least the partial fix from that ticket and then sudo port clean db53 and try again and attach the main.log and config.log files so that we can have a full record of what's happening.

comment:2 Changed 4 weeks ago by tgyurci (Teubel György)

Cc: tgyurci added

Changed 4 weeks ago by minusf

Attachment: config.log added

Changed 4 weeks ago by minusf

Attachment: main.log added

comment:3 Changed 3 weeks ago by ryandesign (Ryan Schmidt)

Cc: jmroot MarcusCalhoun-Lopez added

Looks like we may need BerkeleyDB 12.1.6.2 (12.1.6.1.26) or newer for arm64 support.

https://docs.oracle.com/cd/E17076_05/html/installation/upgrade_supparm64.html

The current version is 18.1.40 so we are pretty out of date in MacPorts, having only BerkeleyDB 6.2 at newest in the db62 port.

Our failure to provide current versions of BerkeleyDB in MacPorts may relate to the acquisition of BerkeleyDB by Oracle in 2006 (and the resulting undesirable corporate flavor imparted to the project and its web site—for example, I have no idea how to download old versions of BerkeleyDB from Oracle now or how to browse or download its source code repository) and the switch to the possibly undesirable AGPL license as of BerkeleyDB 6.0.20 in 2013. According to Wikipedia, Linux distributions have phased out BerkeleyDB in favor of LMDB; perhaps MacPorts could embark on a similar effort.

Cc'ing maintainers of db47 and db48 for thoughts. Other db versions in MacPorts are not maintained, which may also contribute to our lack of updates.

Note: See TracTickets for help on using tickets.