Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

buildme.sh: Add check for extern.h #105

Open
wryMitts opened this issue Mar 31, 2024 · 0 comments
Open

buildme.sh: Add check for extern.h #105

wryMitts opened this issue Mar 31, 2024 · 0 comments

Comments

@wryMitts
Copy link

wryMitts commented Mar 31, 2024

On Alpine/musl, the buildme.sh script could benefit from a check of extern.h:

mv Scan.xsc Scan.c
cc -c  -Iinclude -Isrc -D_REENTRANT -D_GNU_SOURCE -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Wdeclaration-after-statement -Os -fstack-clash-protection -Wformat -Werror=format-security -fno-plt -O2   -DVERSION=\"1.09\" -DXS_VERSION=\"1.09\" -fPIC "-I/usr/lib/perl5/core_perl/CORE"   Scan.c
Scan.xs:1:10: fatal error: EXTERN.h: No such file or directory
    1 | #include "EXTERN.h"
      |          ^~~~~~~~~~
compilation terminated.

This is resolved by running apk add perl-dev
https://pkgs.alpinelinux.org/package/edge/main/x86/perl-dev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant