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

Some files are dynamically linked #3

Closed
Poorunga opened this issue Apr 15, 2020 · 2 comments
Closed

Some files are dynamically linked #3

Poorunga opened this issue Apr 15, 2020 · 2 comments

Comments

@Poorunga
Copy link

Some files are dynamically linked: conmon, fuse-overlayfs, fusermount3, slirp4netns

@Poorunga
Copy link
Author

Can these binaries be statically compiled

@mgoltzsche
Copy link
Owner

mgoltzsche commented Apr 15, 2020

@Poorunga all but fusermount3 were actually statically linked.
In mgoltzsche/podman:1.9.0 fusermount3 is now statically linked as well.

Regarding the linking what may have confused you (confused me once):

  • Within an alpine container ldd <BINARY> lists musl:
$ docker run --rm --entrypoint /bin/sh mgoltzsche/podman:1.8.2 -c 'ldd /usr/libexec/podman/conmon'
	/lib/ld-musl-x86_64.so.1 (0x7f20c0b5f000)
  • Same binary on my Ubuntu host:
$ docker create --name pmtest mgoltzsche/podman:1.8.2
$ docker cp pmtest:/usr/libexec/podman/conmon conmon
$ ldd conmon
	statically linked

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

2 participants