I am currently trying to get python to run on my NAS which is a Zyxel NSA325.
I did manage to get python 2.7 and pip running and I was able to successfully install the watchdog module with pip. I followed these instructions to get python and pip running btw.
When I run a python script that uses the watchdog module I get a weir error, tough.
/usr/local/zy-pkgs/ffproot/ffp/bin/python2.7: '/ffp/lib/libc.so' is not an ELF file
I googled what the header of a ELF file is supposed to look like and apparently it starts with
7f 45 4c 46 which translates to
.ELF. So I did a quick
cat /ffp/lib/libc.so and the result was:
/* GNU ld script * Use the shared library, but some functions are only in * the static library, so try that secondarily. */ OUTPUT_FORMAT("elf32-littlearm", "elf32-bigarm", "elf32-littlearm") GROUP ( libc.so.0 uclibc_nonshared.a AS_NEEDED ( ld-uClibc.so.0 ) )
Clearly this is not an ELF file. So I spent some more time researching and I think it is a linker script.
But now I'm out of ideas. Why is there a linker script in a .so file? Is that right? How can I fix it?
# uname -a Linux NSA325-v2 126.96.36.199 #2 Fri Jun 23 11:03:47 CST 2017 armv5tel GNU/Linux