CrossCompiling Openssh.

Edson Ap. Seabra seabra at cyclades.com
Thu Mar 14 06:54:57 EST 2002


Hi,

I am trying to cross compile openssh-3.1p1 for PPC.

I am using linux host Hard Hat 6.2. In this machine I could
compile and install the openssh.

When I run the configure enabling "cross compile" It gives
the following error:

checking for logwtmp... yes
checking for strftime... yes
checking for GLOB_ALTDIRFUNC support... yes
checking for gl_matchc field in glob_t... no
checking whether struct dirent allocates space for d_name...
configure: error: c
an not run test program while cross compiling


This is the configure command that is  issued from a Make
file:

CC=/opt/hardhat/devkit/ppc/8xx/bin/ppc_8xx-gcc
RANLIB="/opt/hardhat/devkit/ppc/8
xx/bin/ppc_8xx-ranlib"
AR="/opt/hardhat/devkit/ppc/8xx/bin/ppc_8xx-ar" LD="/opt/
hardhat/devkit/ppc/8xx/bin/ppc_8xx-gcc"
NM="/opt/hardhat/devkit/ppc/8xx/bin/ppc_
8xx-nm" STRIP="/opt/hardhat/devkit/ppc/8xx/bin/ppc_8xx-strip
--remove-section=.n
ote --remove-section=.comment"
OBJCOPY="/opt/hardhat/devkit/ppc/8xx/bin/ppc_8xx-
objcopy"
OBJDUMP="/opt/hardhat/devkit/ppc/8xx/bin/ppc_8xx-objdump"
MAKE="make" \
                 ./configure --prefix=/ \
                                --sysconfdir=/etc/ssh \

--with-ssl-dir=/home/edson/tslinux/openssl \

--with-openssl-src=/home/edson/tslinux/openssl \
                                --without-pam \
                                --disable-utmpx
--disable-wtmpx \
                                --host=powerpc-hardhat-linux
\

--build=powerpc-hardhat-linux \
                                --with-ldflags="-s" \
                                --with-cflags="" \
                                --with-random=/dev/urandom

Any  clue will be appreciated.

Thanks in advance,

Edson.




More information about the openssh-unix-dev mailing list