#1843: NetBSD fails compiling sysmem.c
----------------------+-----------------------------------------------------
 Reporter:  doughera  |       Owner:        
     Type:  bug       |      Status:  new   
 Priority:  normal    |   Milestone:  2.10  
Component:  none      |     Version:  2.10.0
 Severity:  medium    |    Keywords:        
     Lang:            |       Patch:        
 Platform:            |  
----------------------+-----------------------------------------------------
 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.

-- 
Ticket URL: <https://trac.parrot.org/parrot/ticket/1843>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets

Reply via email to