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

the -H argument compatibility #147

Open
ljhmily opened this issue Dec 9, 2022 · 0 comments
Open

the -H argument compatibility #147

ljhmily opened this issue Dec 9, 2022 · 0 comments

Comments

@ljhmily
Copy link

ljhmily commented Dec 9, 2022

version 4.0.3, while compile at centos 7 or centos 8, it's glibc lowest support is 2.14, and it's not support with centos 6
./xxxx: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by ./xxxx)

and if compile with centos 6, it's not support -H argument.
shc shll=bash
shc [-i]=-c
shc [-x]=exec '%s' "$@"
shc [-l]=
shc opts=
shc: cc /root/xxxx.sh.x.c -o /root/xxxx
/root/xxxx.sh.x.c:684: error: invalid use of undefined type 'struct seccomp_data'
/root/xxxx.sh.x.c:686: error: 'SECCOMP_RET_KILL' undeclared here (not in a function)
/root/xxxx.sh.x.c:689: error: invalid use of undefined type 'struct seccomp_data'
/root/xxxx.sh.x.c:692: error: 'SECCOMP_RET_ALLOW' undeclared here (not in a function)
/root/xxxx.sh.x.c: In function 'seccomp_hardening':
/root/xxxx.sh.x.c:711: error: 'SECCOMP_MODE_FILTER' undeclared (first use in this function)
/root/xxxx.sh.x.c:711: error: (Each undeclared identifier is reported only once
/root/xxxx.sh.x.c:711: error: for each function it appears in.)
shc: Success

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