Who have compiled the PHP successfully with uClibc?

Dear all,

Recently, I am working with emdded linux in a mips platform. And the system is compiled with uClibc, now I wanna my thttp server support PHP, can parse the PHP scripts. When I compiled PHP, there are some errors, I am trying to crack them now.

Who have compile the PHP successfully with uClibc? Would you like to let me know your steps?

Thanks in advance..

Jason --

Reply to
Jason
Loading thread data ...

It depends on your version of uClibc and the web-server.

But, yes, I compiled it (for x86) under uClibc 0.9.19 and to be used with busybox' (0.61.pre?) httpd with the following snippet:

--- snip ---------------------- #!/bin/sh # #

if [ "x$UCLIBC_ROOT" == "x" -o "x$UCLIBC_USR" == "x" ]; then echo "Please set UCLIBC_* before configuring" exit 1 fi

for f in config.cache config.h config.log config.status; do if [ -e $f ]; then rm $f fi done

PATH="${UCLIBC_USR}/bin":$PATH \ CFLAGS="-ldl -march=i486 -L${UCLIBC_ROOT}/lib -I${UCLIBC_ROOT}/include

-DNO_LARGEFILE_SOURCE" \ CPPFLAGS="-I${UCLIBC_USR}/include -DNO_LARGEFILE_SOURCE" \ LDFLAGS="-L${UCLIBC_USR}/lib" \ ./configure \ --prefix=/usr \ --disable-all \ --build=i386-pc-linux-gnu \ --host=i486-linux \ --target=i486-linux \ --disable-all \ --with-pcre-regex \ --enable-dba \ --with-flatfile \ --with-mcrypt \ --with-gettext=${UCLIBC_USR} \ --with-zlib=${UCLIBC_USR} \ --without-openssl \ # --with-openssl=${UCLIBC_USR} \

echo "*" echo "* recommend:" echo "* ----------" echo "* E3PATH make clean" echo "* E3PATH make" echo "*"

--- snap ---------------------- As you can see, you need to get your path'es right and then PHP (4.3.1) works fine... BTW. I compiled uClibs w/o LARGEFILE!

Salut, Joerg

--
gpg/pgp key # 0xe40a9d7a
fingerprint d4f8 b448 835b 7bcf 4161  ce35 7e8b ab47 e40a 9d7a
Reply to
Joerg Schmitz-Linneweber

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.