It looks like it's trying something specific; assuming it's really not supported on DragonFly, you could look in the file and see if it has a fallback for other operating systems that don't support this feature and add DragonFly to that fallback.
On Thu, Feb 13, 2014 at 4:01 AM, lhmwzy <[email protected]> wrote: > > LuaJIT-2.1-20140109 > > use GNU make to make > > the error info: > lj_mcode.c:123:2: error: #error "Missing OS support for explicit placement > of executable memory" > lj_mcode.c: In function 'mcode_protect': > lj_mcode.c:197:5: warning: implicit declaration of function > 'mcode_setprot' [-Wimplicit-function-declaration] > lj_mcode.c: In function 'mcode_alloc': > lj_mcode.c:235:7: warning: implicit declaration of function > 'mcode_alloc_at' [-Wimplicit-function-declaration] > lj_mcode.c:235:45: error: 'MCPROT_RW' undeclared (first use in this > function) > lj_mcode.c:235:45: note: each undeclared identifier is reported only once > for each function it appears in > lj_mcode.c:240:7: warning: implicit declaration of function 'mcode_free' > [-Wimplicit-function-declaration] > lj_mcode.c: In function 'mcode_allocarea': > lj_mcode.c:275:15: error: 'MCPROT_RW' undeclared (first use in this > function) > lj_mcode.c: In function 'lj_mcode_reserve': > lj_mcode.c:304:22: error: 'MCPROT_RW' undeclared (first use in this > function) > lj_mcode.c: In function 'lj_mcode_commit': > lj_mcode.c:313:20: error: 'MCPROT_RX' undeclared (first use in this > function) > lj_mcode.c: In function 'lj_mcode_abort': > lj_mcode.c:320:22: error: 'MCPROT_RX' undeclared (first use in this > function) > lj_mcode.c: In function 'lj_mcode_patch': > lj_mcode.c:332:24: error: 'MCPROT_RX' undeclared (first use in this > function) > lj_mcode.c:340:24: error: 'MCPROT_RW' undeclared (first use in this > function) > Makefile:642: recipe for target 'lj_mcode.o' failed > > try LuaJIT-2.0.2 > the error info : > lj_mcode.c:122:2: error: #error "Missing OS support for explicit placement > of executable memory" > lj_mcode.c: In function 'mcode_protect': > lj_mcode.c:187:5: warning: implicit declaration of function > 'mcode_setprot' [-Wimplicit-function-declaration] > lj_mcode.c: In function 'mcode_alloc': > lj_mcode.c:224:7: warning: implicit declaration of function > 'mcode_alloc_at' [-Wimplicit-function-declaration] > lj_mcode.c:224:45: error: 'MCPROT_RW' undeclared (first use in this > function) > lj_mcode.c:224:45: note: each undeclared identifier is reported only once > for each function it appears in > lj_mcode.c:229:7: warning: implicit declaration of function 'mcode_free' > [-Wimplicit-function-declaration] > lj_mcode.c: In function 'mcode_allocarea': > lj_mcode.c:264:15: error: 'MCPROT_RW' undeclared (first use in this > function) > lj_mcode.c: In function 'lj_mcode_reserve': > lj_mcode.c:293:22: error: 'MCPROT_RW' undeclared (first use in this > function) > lj_mcode.c: In function 'lj_mcode_commit': > lj_mcode.c:302:20: error: 'MCPROT_RX' undeclared (first use in this > function) > lj_mcode.c: In function 'lj_mcode_abort': > lj_mcode.c:308:20: error: 'MCPROT_RX' undeclared (first use in this > function) > lj_mcode.c: In function 'lj_mcode_patch': > lj_mcode.c:320:24: error: 'MCPROT_RX' undeclared (first use in this > function) > lj_mcode.c:328:24: error: 'MCPROT_RW' undeclared (first use in this > function) > > My os: > uname -a: > DragonFly . 3.6-RELEASE DragonFly v3.6.0.24.gf2d5f-RELEASE #4: Tue Feb 11 > 14:22:27 UTC 2014 lhm@.:/usr/obj/usr/src/sys/ > lhmwzy x86_64 > > Any suggestion? >
