Opened 3 years ago

Last modified 3 months ago

#64195 assigned defect

ngs: malloc.c:22:87: error: use of undeclared identifier 'MAP_ANONYMOUS'

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: herbygillot (Herby Gillot)
Priority: Normal Milestone:
Component: ports Version: 2.7.1
Keywords: mavericks Cc:
Port: ngs

Description

https://build.macports.org/builders/ports-10.9_x86_64-builder/builds/169800/steps/install-port/logs/stdio

malloc.c:22:87: error: use of undeclared identifier 'MAP_ANONYMOUS'

On older systems, MAP_ANONYMOUS was called MAP_ANON. You could add a simple:

#ifndef MAP_ANONYMOUS
#define MAP_ANONYMOUS MAP_ANON
#endif

Or I think legacysupport might do it for you too.

Change History (2)

comment:1 Changed 2 years ago by barracuda156

Not to create a separate ticket: is pandoc required for ngs to function or only to build documentation? It introduces dependency on stack, which is currently broken for older OSs. If pandoc dependency is not essential, it makes sense perhaps to make it conditional, and fix building the port for PPC and older Intel.

comment:2 Changed 3 months ago by ryandesign (Ryan Carsten Schmidt)

Please do create a separate ticket for your pandoc question; it has nothing to do with this ticket which is exclusively about MAP_ANONYMOUS.

Since nothing has happened with the MAP_ANONYMOUS issue I've now filed it upstream: https://github.com/ngs-lang/ngs/issues/665

Note: See TracTickets for help on using tickets.