Opened 11 years ago
Closed 10 months ago
#1147 closed defect (invalid)
sendfile 1.7.29 feature test should fail on OpenBSD but passes
| Reported by: | Christian Kellermann | Owned by: | certainty |
|---|---|---|---|
| Priority: | major | Milestone: | someday |
| Component: | extensions | Version: | 4.9.x |
| Keywords: | sendfile feature test openbsd | Cc: | |
| Estimated difficulty: | medium |
Description
The sendfile-bsd-test in sendfile's setup file compiles on OpenBSD but would not link as the sendfile symbol is not part of OpenBSD's libc.
However since the test is done with try-compile comile-only: #t the test passes where it shouldn't.
As Peter Bex noted the test fails on NetBSD which also has no sendfile function available, but this may be related to a real compilation error (missing or wrong include file etc.)
Change History (3)
comment:1 Changed 11 years ago by
comment:2 Changed 9 years ago by
| Estimated difficulty: | → medium |
|---|
comment:3 Changed 10 months ago by
| Resolution: | → invalid |
|---|---|
| Status: | new → closed |
This egg no longer uses try-compile. If it's still an issue, please reopen.
Note: See
TracTickets for help on using
tickets.

The test fails on NetBSD with this error:
error: ‘NULL’ undeclared (first use in this function). I think that's because it's missing#include <stdlib.h>.