doubt cross compiling php

From: Date: Tue, 15 Jun 2010 23:02:31 +0000
Subject: doubt cross compiling php
Groups: php.install 
Request: Send a blank email to php-install+get-19936@lists.php.net to get a copy of this message
HI this its the first time i use this way to post a doubt so.. if im doing wrong please tellme this is my problem: im trying to make a cross compile of php for arm plattaform while i was compile it got stop for this trouble: Configuring extensions checking whether to enable LIBXML support... yes checking libxml2 install dir... no checking for xml2-config path... configure: error: xml2-config not found. Please check your libxml2 installation. so i downloaded that package and tried to compile with these instrutions: export CROSS_COMPILE=arm-none-linux-gnueabi- export CC=${CROSS_COMPILE}"gcc" export CXX=${CROSS_COMPILE}"g++" ./configure --host=arm-linux --target=arm --prefix=/opt/install-arm make but when it finish make it throws me this: ./.libs/libxml2.so: undefined reference to `gzopen' ./.libs/libxml2.so: undefined reference to `gzclose' ./.libs/libxml2.so: undefined reference to `deflate' ./.libs/libxml2.so: undefined reference to `gzrewind' ./.libs/libxml2.so: undefined reference to `gzwrite' ./.libs/libxml2.so: undefined reference to `crc32' ./.libs/libxml2.so: undefined reference to `deflateEnd' ./.libs/libxml2.so: undefined reference to `gzdopen' ./.libs/libxml2.so: undefined reference to `deflateInit2_' ./.libs/libxml2.so: undefined reference to `gzread' collect2: ld returned 1 exit status make[2]: *** [xmllint] Error 1 make[2]: se sale del directorio `/home/felipe/Escritorio/libxml2-2.6.19' make[1]: *** [all-recursive] Error 1 make[1]: se sale del directorio `/home/felipe/Escritorio/libxml2-2.6.19' make: *** [all] Error 2 i checked when i was compiling the output and i noted this: checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes appending configuration tag "F77" to libtool Checking zlib checking zlib.h usability... yes checking zlib.h presence... yes checking for zlib.h... yes checking for gzread in -lz... no Checking headers checking for dirent.h that defines DIR... yes checking for library containing opendir... none required checking for ANSI C header files... (cached) yes checking fcntl.h usability... yes so.. could be the problem zlib package?? why if its reading that package it doesnt use it?? i changed the code lines: export CROSS_COMPILE=arm-none-linux-gnueabi- export CC=${CROSS_COMPILE}"gcc" export CXX=${CROSS_COMPILE}"g++" ./configure --host=arm-linux --target=arm --with-zlib-dir=/opt/zlib --prefix=/opt/install-arm but the result was the same... after that i changes the code lines again export CC=${CROSS_COMPILE}"gcc" export CXX=${CROSS_COMPILE}"g++" ./configure --host=arm-linux --target=arm --without zlib-dir --prefix=/opt/install-arm when i did that it doesnt throws me mistakes but neigther creates me the compiles files then.... what should i do?? im so confused helpp!!!! _________________________________________________________________ Explore the seven wonders of the world http://search.msn.com/results.aspx?q=7+wonders+world&mkt=en-US&form=QBRE

« previous php.install (#19936) next »