I've had some free time, so I've taken a new look at this thread's problem.
Remember: we are trying to make an autofs/automount package for FreeSco.
With the same binaries and kernel, we've got something that works under ZipSlack, but not on FreeSco.
I've retried with FreeSco's last release (0.3.4) and autofs-3.1.3 and the problem remains the same:
automount aborts with the message "automount[4032]: cannot open lookup module file (Not an ELF file)".
I've taken a look at automount's sources.
The error happens when automount tries to load library lookup_file.so:
* dlopen(fnbuf, RTLD_NOW);
On FreeSco, I've putten that file in /pkg/usr/lib/autofs, and there is the symlink /usr/lib/autofs (so same location as on ZipSlack)
I've added some debug messages, and fnbuf contains the string "/usr/lib/autofs//lookup_file.so".
I don't know why there are 2 "/" after autofs, but the path is ok...
dlopen still fails... and dlerror returns the error string "not an ELF file".
So the problem is not compilation...
Even if I move, rename or delete lookup_file.so, dlerror still returns "not an ELF file" (instead of "file not found" or something like that...)
Don't you think there is something strange here?
Do you have any ideas on what the problem could be, or what other tests I could to in order to investigate the problem?
Thanks.
Download autofs-3.1.3 sources here: <a href='ftp://ftp.kernel.org/pub/linux/daemons/autofs/v3/autofs-3.1.3.tar.gz' target='_blank'>ftp://ftp.kernel.org/pub/linux/daemons/au...fs-3.1.3.tar.gz</a>