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.
On Wed, 13 Mar 2002, Edson Ap. Seabra wrote:> 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:Cross compilation is not currently supported - noone has sent us patches to get it working. -d
Actually I sent a patch back in 2000-12-18, but I guess it was to ugly to get accepted or something. Others have found it useful though. /Johan ----- Original Message ----- From: "Damien Miller" <djm at mindrot.org> To: "Edson Ap. Seabra" <seabra at cyclades.com> Cc: <openssh-unix-dev at mindrot.org> Sent: den 13 mars 2002 22:33 Subject: Re: CrossCompiling Openssh.> On Wed, 13 Mar 2002, Edson Ap. Seabra wrote: > > > 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: > > Cross compilation is not currently supported - noone has sent us > patches to get it working. > > -d > > _______________________________________________ > openssh-unix-dev at mindrot.org mailing list > http://www.mindrot.org/mailman/listinfo/openssh-unix-dev >