出大事了,我每次编译都失败,班长哥哥帮忙啊,快帮忙啊,我郁闷那!!

出大事了,我每次编译都失败,班长哥哥帮忙啊,快帮忙啊,我郁闷那!!

我装PHP和MYSQL都失败,编译时出现以下错误,谁能帮忙写一个成功运行过的./configure啊???

错误如下::::::
make[3]: Nothing to be done for `all-p'.
make[3]: Leaving directory `/root/mysql/php-4.2.0/sapi/cgi'
make[2]: Leaving directory `/root/mysql/php-4.2.0/sapi/cgi'
make[1]: Leaving directory `/root/mysql/php-4.2.0/sapi'
Making all in TSRM
make[1]: Entering directory `/root/mysql/php-4.2.0/TSRM'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/root/mysql/php-4.2.0/TSRM'
Making all in regex
make[1]: Entering directory `/root/mysql/php-4.2.0/regex'
make[2]: Entering directory `/root/mysql/php-4.2.0/regex'
make[2]: Nothing to be done for `all-p'.
make[2]: Leaving directory `/root/mysql/php-4.2.0/regex'
make[1]: Leaving directory `/root/mysql/php-4.2.0/regex'
Making all in .
make[1]: Entering directory `/root/mysql/php-4.2.0'
/bin/sh /root/mysql/php-4.2.0/libtool --silent --mode=link gcc  -I. -I/root/mysql/php-4.2.0/ -I/root/mysql/php-4.2.0/main -I/root/mysql/php-4.2.0 -I/root/mysql/php-4.2.0/Zend -I/root/mysql/php-4.2.0/ext/mysql/libmysql -I/root/mysql/php-4.2.0/ext/xml/expat  -I/root/mysql/php-4.2.0/TSRM -g -O2 -prefer-non-pic -static   -o libphp4.la -rpath /root/mysql/php-4.2.0/libs    stub.lo  Zend/libZend.la sapi/cgi/libsapi.la main/libmain.la regex/libregex.la /root/mysql/php-4.2.0/ext/ctype/libctype.la /root/mysql/php-4.2.0/ext/mysql/libmysql.la /root/mysql/php-4.2.0/ext/pcre/libpcre.la /root/mysql/php-4.2.0/ext/posix/libposix.la /root/mysql/php-4.2.0/ext/session/libsession.la /root/mysql/php-4.2.0/ext/standard/libstandard.la /root/mysql/php-4.2.0/ext/xml/libxml.la TSRM/libtsrm.la -lpam -lcrypt -lresolv -lm -ldl -lnsl -lresolv -lcrypt -ldl
/bin/sh /root/mysql/php-4.2.0/libtool --silent --mode=link gcc -I. -I/root/mysql/php-4.2.0/ -I/root/mysql/php-4.2.0/main -I/root/mysql/php-4.2.0 -I/root/mysql/php-4.2.0/Zend -I/root/mysql/php-4.2.0/ext/mysql/libmysql -I/root/mysql/php-4.2.0/ext/xml/expat  -I/root/mysql/php-4.2.0/TSRM -g -O2   -o php -export-dynamic       stub.lo libphp4.la
./.libs/libphp4.a(my_malloc.o)(.text+0xbd): In function `my_malloc':
/root/mysql/php-4.2.0/ext/mysql/libmysql/my_malloc.c:24: undefined reference to `errno'
./.libs/libphp4.a(my_realloc.o)(.text+0xb4): In function `my_realloc':
/root/mysql/php-4.2.0/ext/mysql/libmysql/my_realloc.c:44: undefined reference to `errno'
./.libs/libphp4.a(my_error.o)(.text+0x275): In function `my_error':
/root/mysql/php-4.2.0/ext/mysql/libmysql/my_error.c:32: undefined reference to `errno'
./.libs/libphp4.a(my_lib.o)(.text+0x37a): In function `my_dir':
/root/mysql/php-4.2.0/ext/mysql/libmysql/my_lib.c:162: undefined reference to `errno'
./.libs/libphp4.a(my_lib.o)(.text+0x546): In function `my_stat':
/root/mysql/php-4.2.0/ext/mysql/libmysql/my_lib.c:585: undefined reference to `errno'
./.libs/libphp4.a(my_getwd.o)(.text+0xbd):/root/mysql/php-4.2.0/ext/mysql/libmysql/my_getwd.c:43: more undefined references to `errno' follow
collect2: ld returned 1 exit status
make[1]: *** [php] Error 1
make[1]: Leaving directory `/root/mysql/php-4.2.0'
make: *** [all-recursive] Error 1


看到了么???能忍么??咋老这样呢????帮忙啊!~~~      
哈哈,终于有同病相怜的人了!

我无论是ZHCON,还是ORACLE,还是其它的,没有一个是configure和make install成功的!
郁闷撒~~~~~~~~      
如果楼主的操作系统是 fc3 请尝试:
#echo "0" > /selinux/enforce
然后再 ./configure      
我也是碰上这个问题。
在php的configure中并没有加mysql。可还是在make apache时报这个错(php倒是可以正常编译过去)
apache的configure如下:
./configure --prefix=www\
--activate-module=src/modules/php4/libphp4.a      
由于我使用的数据库是oracle,没用到mysql
编译php时加
--with-mysql=no
就可以正常编译成功了