Thanks for the suggestion, I was able to make the necessary changes and pass the configure and make process. Unfortunately, after uploading and running the app, the app will not run:
# ls -al /tmp -rwxrwxrwx 1 root root 2434012 Aug 12 01:44 stunnel -rw-r--r-- 1 root root 1148 Aug 12 01:37 stunnel.conf -rw-r--r-- 1 root root 1977 Aug 12 01:44 stunnel.pem drwxr-xr-x 1 root root 0 Dec 31 1969 var # cd /tmp # ./stunnel -sh: ./stunnel: not found
The file is obviously there, with execute permissions. What is failing??
Thank you
checking for "/dev/ptmx"... configure: error: cannot check for file existence when cross compiling.
Give me your suggestions.
Check that /dev/ptmx exists on your router; it does on my Buffalo router with Tomato. If it does, then hack the configure script to force the test to return true. A search in the script for ptmx should take you right to the test.
Good luck, Andrew.
# ls -al /tmp -rwxrwxrwx 1 root root 2434012 Aug 12 01:44 stunnel -rw-r--r-- 1 root root 1148 Aug 12 01:37 stunnel.conf -rw-r--r-- 1 root root 1977 Aug 12 01:44 stunnel.pem drwxr-xr-x 1 root root 0 Dec 31 1969 var # cd /tmp # ./stunnel -sh: ./stunnel: not found
The file is obviously there, with execute permissions. What is failing??
I believe this means stunnel depends on a shared library that's not available in Tomato. In fact, I see that the dynamic loader, ld.so, isn't even present in Tomato. So that's the answer: stunnel is incomplete because it depends on shared libraries, which Tomato doesn't have the facilities to load. "not found" is Linux's unhelpful way of telling you that this isn't a valid executable, since it's not complete and can't be completed at run time.
The solution is to recompile stunnel statically, so it doesn't depend on any external libraries. Try running
LDFLAGS=-static ./configure
In order for the linking step to be successful, you may have to install some more -dev packages. The final stunnel file will be a good bit fatter.
A.