Skip to content

depends: define __BSD_VISIBLE for FreeBSD bdb build - #26994

Merged
maflcko merged 1 commit into
bitcoin:masterfrom
fanquake:freebsd_bsd_visible_bdb
Feb 8, 2023
Merged

depends: define __BSD_VISIBLE for FreeBSD bdb build#26994
maflcko merged 1 commit into
bitcoin:masterfrom
fanquake:freebsd_bsd_visible_bdb

Conversation

@fanquake

Copy link
Copy Markdown
Member

Required for additional definitions (IPC_R & friends), to be available, when compiling under C11, which would otherwise cause compile fails.

See: maflcko/bitcoin-core-nightly#4.

Required for additional definitions (IPC_R & friends), to be available,
when compiling under C11.

See: maflcko/bitcoin-core-nightly#4.
@DrahtBot

DrahtBot commented Jan 30, 2023

Copy link
Copy Markdown
Contributor

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Reviews

See the guideline for information on the review process.

Type Reviewers
ACK hebasto

If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.

@hebasto hebasto left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 0e02f72, tested on FreeBSD 13.1:

$ gmake -C depends bdb
...
Postprocessing bdb...
Caching bdb...
gmake: Leaving directory '/usr/home/hebasto/bitcoin/depends'

Comment thread depends/packages/bdb.mk
$(package)_config_opts_android=--with-pic
$(package)_cflags+=-Wno-error=implicit-function-declaration -Wno-error=format-security
$(package)_cppflags_freebsd=-D_XOPEN_SOURCE=600
$(package)_cppflags_freebsd=-D_XOPEN_SOURCE=600 -D__BSD_VISIBLE=1

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe document that this can be removed along with the bdb removal?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we'll delete this file entirely if/when bdb is removed, so probably self-documenting?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe document that this can be removed along with the bdb removal?

It seems inevitable as file name is bdb.mk :)

@maflcko
maflcko merged commit 07a23b4 into bitcoin:master Feb 8, 2023
@fanquake
fanquake deleted the freebsd_bsd_visible_bdb branch February 8, 2023 15:39
@bitcoin bitcoin locked and limited conversation to collaborators Feb 8, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants