Ticket #1843 (closed bug: fixed)
NetBSD fails compiling sysmem.c
Reported by: | doughera | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | 2.10 |
Component: | none | Version: | 2.10.0 |
Severity: | medium | Keywords: | |
Cc: | Language: | ||
Patch status: | applied | Platform: |
Description
On NetBSD, attempting to build r49810 fails with the following message:
config/gen/platform/generic/sysmem.c: In function 'Parrot_sysmem_amount': config/gen/platform/generic/sysmem.c:44: error: '_SC_AVPHYS_PAGES' undeclared (first use in this function)
I suspect that OpenBSD and DragonflyBSD will also suffer the same fate.
One workaround would be to make manual identical copies of config/gen/platform/freebsd/sysmem.c in the netbsd, openbsd, and dragonfly directories. I think a better fix would be to have Configure.pl check for sysctl(3) and then augment the generic sysmem.c file with the approppriate code protected by the appropriate #ifdef HAS_SYSCTL conditionals.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.