Skip Menu |

This queue is for tickets about the Devel-CoreDump CPAN distribution.

Report information
The Basics
Id: 131116
Status: open
Priority: 0/
Queue: Devel-CoreDump

People
Owner: Nobody in particular
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.02
Fixed in: (no value)



Subject: error: 'CLONE_VM' undeclared
Does not compile anymore on modern Linux and *BSD systems. Excerpt of compilation log: ... cc -c -Isrc -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -DVERSION=\"0.02\" -DXS_VERSION=\"0.02\" -o src/elfcore.o -fPIC "-I/opt/perl-5.26.2D/lib/5.26.2/x86_64-linux-ld/CORE" src/elfcore.c src/elfcore.c: In function 'CreatePipeline': src/elfcore.c:1424:26: error: 'CLONE_VM' undeclared (first use in this function); did you mean 'CTL_VM'? CLONE_VM|CLONE_UNTRACED|SIGCHLD, &args, 0, 0, 0); ^~~~~~~~ CTL_VM src/elfcore.c:1424:26: note: each undeclared identifier is reported only once for each function it appears in make: *** [Makefile:340: src/elfcore.o] Error 1 (/usr/bin/make exited with 512) ...
On 2019-11-30 01:23:07, SREZIC wrote: Show quoted text
> Does not compile anymore on modern Linux and *BSD systems. Excerpt of > compilation log: > > ... > cc -c -Isrc -fwrapv -fno-strict-aliasing -pipe -fstack-protector- > strong -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 > -O2 -DVERSION=\"0.02\" -DXS_VERSION=\"0.02\" -o src/elfcore.o -fPIC > "-I/opt/perl-5.26.2D/lib/5.26.2/x86_64-linux-ld/CORE" src/elfcore.c > src/elfcore.c: In function 'CreatePipeline': > src/elfcore.c:1424:26: error: 'CLONE_VM' undeclared (first use in this > function); did you mean 'CTL_VM'? > CLONE_VM|CLONE_UNTRACED|SIGCHLD, &args, 0, > 0, 0); > ^~~~~~~~ > CTL_VM > src/elfcore.c:1424:26: note: each undeclared identifier is reported > only once for each function it appears in > make: *** [Makefile:340: src/elfcore.o] Error 1 > (/usr/bin/make exited with 512) > ...
Looks like this isn't a new-perl problem, but something else -- I see the same issue on earlier perls also: https://travis-ci.com/karenetheridge/devel-coredump/builds/139837392 I don't see an easy fix, and since sys/prctl.h is linux-only it's hard to do much debugging locally (I am on OSX). I am happy to entertain patches though if anyone sees a fix.