Do you have a question? Post it now! No Registration Necessary
Subject
- Posted on
September 24, 2003, 1:15 am

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 --
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 --

Re: Who have compiled the PHP successfully with uClibc?

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="$/bin":$PATH \
CFLAGS="-ldl -march=i486 -L$/lib -I$/include
-DNO_LARGEFILE_SOURCE" \
CPPFLAGS="-I$/include -DNO_LARGEFILE_SOURCE" \
LDFLAGS="-L$/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=$ \
--with-zlib=$ \
--without-openssl \
# --with-openssl=$ \
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
gpg/pgp key # 0xe40a9d7a
fingerprint d4f8 b448 835b 7bcf 4161 ce35 7e8b ab47 e40a 9d7a
Site Timeline
- » Problem regrading EP405, PCI and IRQ
- — Next thread in » Embedded Linux
-
- » ANN: OpenSIMpad 0.8.1 released
- — Previous thread in » Embedded Linux
-
- » Crosscompiling for ARM: reloc type R_ARM_ABS32 is not supported for PIC - ...
- — Newest thread in » Embedded Linux
-
- » Quanta corrente potrà fornire?
- — The site's Newest Thread. Posted in » Electronics Hobby (Italian)
-