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

LD_PRELOAD undefined symbol: memfd_create #96

Open
kp-tux opened this issue Nov 23, 2022 · 4 comments
Open

LD_PRELOAD undefined symbol: memfd_create #96

kp-tux opened this issue Nov 23, 2022 · 4 comments

Comments

@kp-tux
Copy link

kp-tux commented Nov 23, 2022

Hi, great project!
I successfully compiled the project, but when executing this statement:

LD_PRELOAD=./libbytehound.so ./bytehound serverv

i got:
./bytehound: symbol lookup error: ./libbytehound.so: undefined symbol: memfd_create

and every program is like this
Did I do something wrong?

Information about env:
In docker container (uname -r = 5.10.104-linuxkit)
already install gcc g++

@koute
Copy link
Owner

koute commented Nov 23, 2022

What's your libc version?

@ig0rsky
Copy link

ig0rsky commented Nov 26, 2022

@koute: Same issue with libc 2.26

@koute
Copy link
Owner

koute commented Nov 26, 2022

Currently at least libc 2.27 is required. (Which by itself is almost half a decade old, is the libc in the oldest still publicly supported Ubuntu version, and is older than the libc in Debian's oldstable.)

@quwenzhe
Copy link

quwenzhe commented Dec 23, 2022

➜ ldd --version
ldd (GNU libc) 2.27

➜ LD_PRELOAD=./libbytehound.so ./my_service
./cloud-proxy: symbol lookup error: ./libbytehound.so: undefined symbol: memfd_create

I have update libc to 2.2.7, but the issue is happen.

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

4 participants