./configure on a cross compile environment
| From: | Kamesh Jayachandran | Date: | Wed, 06 Apr 2005 07:57:11 +0000 |
| Subject: | ./configure on a cross compile environment | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-15851@lists.php.net to get a copy of this message | ||
Hi All,
Few weeks back I have checked in the configure.in and few m4 patches so
that NetWare cross compile goes through. I tested the same by checking
out a sources from php5_0 tree and ./buildconf and ./configure with
approproiate --host and --target switches.
When I do the same with whatever the ./configure script comes with
php-5.0.4 I get the error.
./configure --disable-all --enable-ftp --enable-session --enable-bcmath
--enable-calendar --enable-maintainer-zts --host i386-pc-netware
--target i386-pc-netware --build i686-pc-linux-gnu --program-suffix=nlm
CFLAGS="-nostdinc -fpack-struct -DNETWARE
-I/usr/nwsdk/libc_api.2004.09.07/include/ -Xlinker --nlm-kernelspace
-Xlinker --nlm-screenname=PHP"
CC="/usr/cross-gcc/opt/cross/bin/i586-netware-gcc"
CFLAGS=-nostdinc -fpack-struct -DNETWARE
-I/usr/nwsdk/libc_api.2004.09.07/include/ -Xlinker --nlm-kernelspace
-Xlinker --nlm-screenname=PHP
Error message follows
--------------------
configure: warning: CFLAGS=-nostdinc -fpack-struct -DNETWARE
-I/usr/nwsdk/libc_api.2004.09.07/include/ -Xlinker --nlm-kernelspace
-Xlinker --nlm-screenname=PHP: invalid host type
CC=/usr/cross-gcc/opt/cross/bin/i586-netware-gcc
configure: warning: CC=/usr/cross-gcc/opt/cross/bin/i586-netware-gcc:
invalid host type
configure: error: can only configure for one host and one target at a
time
How the ./configure is built while doing the releases?
Even the ./buildconf --force on a released packages dis not help.
With regards
Kamesh Jayachandran