#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:  new   
 Platform:            |  
----------------------+-----------------------------------------------------
Changes (by doughera):

  * patch:  => new


Comment:

 Replying to [ticket:1843 doughera]:
 > I suspect that OpenBSD and DragonflyBSD will also suffer the same fate.
 OpenBSD 4.8, at least, does have {{{ sysconf }}}, and so will build fine.

 > One workaround would be to make manual identical copies of
 {{{config/gen/platform/freebsd/sysmem.c}}} in the {{{netbsd}}},
 {{{openbsd}}}, and {{{dragonfly}}} directories.

 This workaround was implemented for NetBSD only in commit
 c35e562750c6cac15a07bbdd90128a085f89f15e , so NetBSD will work again in
 2.11.  I'm not sure why OpenBSD and DragonflyBSD were omitted.

 >   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.

 I still think this is the better plan going forward, and have attached a
 patch to implement this strategy.  Since modifying {{{ Configure.pl }}} to
 probe for {{{ sysctl(3) }}} today would have been too much of a hassle, I
 just went with what was easy to test, but it's probably good enough.

-- 
Ticket URL: <https://trac.parrot.org/parrot/ticket/1843#comment:1>
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