devel/skalibs: fix build failure on DragonFly#1546
Merged
Conversation
> Generated by the DragonFly agentic build-fix loop and verified in a clean dev-env. Reviewed and accepted by operator `operator` before submission.
## Problem
The build failed on `@2026Q2` — classified `compile-error`, confidence `high`.
DragonFly's `<sys/event.h>` uses the BSD legacy types `u_short` and `u_int`, which are not visible when the compiler is invoked with `-D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700`. The port does not define `__BSD_VISIBLE` or include `<sys/types.h>` with the appropriate visibility macros before including `<sys/event.h>`, causing the types to be unknown.
**Evidence:**
- From the build log (both bundles):
```
In file included from src/include/skalibs/keventbridge.h:11,
from src/libplaynice/keventbridge_end.c:10:
/usr/include/sys/event.h:67:2: error: unknown type name 'u_short'
u_short flags;
^~~~~~~
/usr/include/sys/event.h:68:2: error: unknown type name 'u_int'
u_int fflags;
^~~~~
```
- The compiler command shows `-D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700`, which hides BSD extensions on DragonFly unless `__BSD_VISIBLE` is explicitly defined.
## Fix
Automated fix for the build failure in `devel/skalibs`.
## What changed
1 file changed, +6/-0
- `ports/devel/skalibs/overlay.dops`
## Verification
Built successfully in a DragonFly dev-env (dsynth) for target `@2026Q2`.
Verified 2026-06-01T20:25:22.034067+00:00.
## Provenance
- Operator: operator
- Agent: model=deepseek/deepseek-v4-pro attempts=1 tokens=213427
Signed-off-by: Fred [bot] <github@dragonflybsd.org>
Member
|
As explained by swildner, NEVER define any
|
Member
|
@tuxillo, I suggest add this rule to the LLM prompt 😃 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The build failed on
@2026Q2— classifiedcompile-error, confidencehigh.DragonFly's
<sys/event.h>uses the BSD legacy typesu_shortandu_int, which are not visible when the compiler is invoked with-D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700. The port does not define__BSD_VISIBLEor include<sys/types.h>with the appropriate visibility macros before including<sys/event.h>, causing the types to be unknown.Evidence:
-D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700, which hides BSD extensions on DragonFly unless__BSD_VISIBLEis explicitly defined.Fix
Automated fix for the build failure in
devel/skalibs.What changed
1 file changed, +6/-0
ports/devel/skalibs/overlay.dopsVerification
Built successfully in a DragonFly dev-env (dsynth) for target
@2026Q2.Verified 2026-06-01T20:25:22.034067+00:00.
Provenance