Dallas Clement wrote:
Hello All,
I have successfully cross-compiled OpenSSH, but when I try to start the
sshd process on my target system, it complains as follows:
/home/dallas/openssh_install/etc/sshd_config: No such file or directory.
Sure enough, that directory does not exist because that is where the
makefile installed the files on the host from which I did the
cross-compilation from. The path should have been '/etc/sshd_config'
instead. It looks like the incorrect path is somehow embedded in the
sshd executable.
I am configuring openssh as follows for cross-compilation:
./configure --prefix=/home/dallas/openssh_install \
--with-zlib=/home/dallas/zlib_install \
--with-ssl-dir=/homd/dallas/openssl_install \
CC=i686-unknown-linux-gnu-gcc
If I do a make and then a make install, the various config files are
installed to /home/dallas/openssh_install/etc
However, I would like for the various executables to look for the config
files in the /etc directory on my target system. Does anyone know how to
do this properly?
./configure --sysconfdir
I can see that there is a --sysconfdir option, which if I set
to /etc/ssh, the make install will try to install the config files to
that directory on my cross-compiling host system which I do not want!!
Use "make install-nosysconf" instead.
--
Darren Tucker (dtucker at zip.com.au)
GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4 37C9 C982 80C7 8FF4 FA69
Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.