Closed diegofmole closed 2 years ago
Hi @diegofmole, thanks for the bug report. I fixed this in #217, and released StaticX v0.13.6.
python3.8 -m staticx -l /lib/x86_64-linux-gnu/libnss_dns-2.27.so -l /lib/x86_64-linux-gnu/libresolv-2.27.so --strip /src/dist/myapp /strip/dist/myapp --loglevel DEBUG
I must ask, why are you using -l .../libnss_dns-2.27.so -l .../libresolv-2.27.so
to manually add these libc libraries? This should not be needed since v0.11.0, where #139 made it unnecessary (via nssfix). I have a couple requests:
-l
options
In version v0.13.5, main module call the generate one in api.py and that method never execute this line: https://github.com/JonathonReinhart/staticx/blob/v0.13.5/staticx/api.py#L133 So then, when gen.add_library() is called, it fails on this other line with this msg
TypeError: expected str, bytes or os.PathLike object, not NoneType
as None is the value assigned when the StaticxGenerator is createdHere the output I'm getting:
I also debug this by putting several prints in the api.py module and I saw that it never pass through this method that it's where the
self.tmpdir
is instanciated.