Skip to content

Navigation Menu

Sign in
Sign up

Fix build on FreeBSD/OpenBSD: ENODATA not defined in errno.h - #2968

Open
michael-o wants to merge 1 commit into
snowflakedb:main from
michael-o:portable-ENODATA
Open

Fix build on FreeBSD/OpenBSD: ENODATA not defined in errno.h #2968
michael-o wants to merge 1 commit into
snowflakedb:main from
michael-o:portable-ENODATA

Conversation

@michael-o

@michael-o michael-o commented Jul 21, 2026

Copy link
Copy Markdown

ENODATA is an XSI/SVID extension and is not guaranteed by POSIX; FreeBSD and OpenBSD do not define it in errno.h, breaking the build of the vendored nanoarrow_ipc.c (nanoarrow 0.3.0) on those platforms.

Add a portable fallback definition, matching the fix proposed upstream in apache/arrow-nanoarrow#906. This is a stopgap until Snowflake re-vendors a nanoarrow release containing that fix.

Upstream-PR: apache/arrow-nanoarrow#906

This fixes #2967

Please answer these questions before submitting your pull requests. Thanks!

  1. What GitHub issue is this PR addressing? Make sure that there is an accompanying issue to your PR.

    Fixes SNOW-3818968: Does not compile out of the box on FreeBSD due to \"ENODATA not defined in errno.h\" #2967

  2. Fill out the following pre-review checklist:

    • I am adding a new automated test(s) to verify correctness of my new code
    • I am adding new logging messages
    • I am adding a new telemetry message
    • I am modifying authorization mechanisms
    • I am adding new credentials
    • I am modifying OCSP code
    • I am adding a new dependency
  3. Please describe how your code solves the related issue.

    Makes compile and run.

ENODATA is an XSI/SVID extension and is not guaranteed by POSIX;
FreeBSD and OpenBSD do not define it in errno.h, breaking the build
of the vendored nanoarrow_ipc.c (nanoarrow 0.3.0) on those platforms.
Add a portable fallback definition, matching the fix proposed
upstream in apache/arrow-nanoarrow#906. This is a stopgap until
Snowflake re-vendors a nanoarrow release containing that fix.
Upstream-PR: apache/arrow-nanoarrow#906
This fixes snowflakedb#2967 
michael-o requested a review from a team as a code owner July 21, 2026 11:10

github-actions Bot commented Jul 21, 2026
edited
Loading

Copy link
Copy Markdown

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

Copy link
Copy Markdown
Author

I have read the CLA Document and I hereby sign the CLA

Copy link
Copy Markdown
Author

recheck

Copy link
Copy Markdown
Author

FTR: Upstream PR has been merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

SNOW-3818968: Does not compile out of the box on FreeBSD due to \"ENODATA not defined in errno.h\"

1 participant

AltStyle によって変換されたページ (->オリジナル) /