Compiliing PHP 5 from source package error

Discuss general troubleshooting concerns.

Moderators: scrumpy, Dave, leihog

Compiliing PHP 5 from source package error

Postby Ovidiu on Mon May 26, 2008 5:03 pm

This is my error pls help because I really don`t know what to do

I think this is the main problem
------------------------------------------------------------------------------------
/usr/include/linux/errno.h:4:23: asm/errno.h: No such file or directory
------------------------------------------------------------------------------------


Thank you for using PHP.

Notice: Following unknown configure options were used:

--enable-pic
--with-xml
--enable-track-vars
--enable-calender
--enable-pear
--disable-yp

Check './configure --help' for available options

+ make
/bin/sh /usr/src/engarde/BUILD/php-5.2.5/libtool --silent --preserve-dup-deps --mode=compile gcc -Iext/libxml/ -I/usr/src/engarde/BUILD/php-5.2.5/ext/libxml/ -DPHP_ATOM_INC -I/usr/src/engarde/BUILD/php-5.2.5/include -I/usr/src/engarde/BUILD/php-5.2.5/main -I/usr/src/engarde/BUILD/php-5.2.5 -I/usr/include/libxml2 -I/usr/src/engarde/BUILD/php-5.2.5/ext/date/lib -I/usr/include/freetype2 -I/usr/include/imap -I/usr/include/mysql -I/usr/src/engarde/BUILD/php-5.2.5/TSRM -I/usr/src/engarde/BUILD/php-5.2.5/Zend -I/usr/include -O2 -g -march=i686 -fPIC -c /usr/src/engarde/BUILD/php-5.2.5/ext/libxml/libxml.c -o ext/libxml/libxml.lo
In file included from /usr/include/bits/errno.h:25,
from /usr/include/errno.h:36,
from /usr/src/engarde/BUILD/php-5.2.5/Zend/zend_operators.h:25,
from /usr/src/engarde/BUILD/php-5.2.5/Zend/zend.h:651,
from /usr/src/engarde/BUILD/php-5.2.5/main/php.h:34,
from /usr/src/engarde/BUILD/php-5.2.5/ext/libxml/libxml.c:28:
/usr/include/linux/errno.h:4:23: asm/errno.h: No such file or directory
In file included from /usr/include/sys/param.h:24,
from /usr/src/engarde/BUILD/php-5.2.5/main/php.h:205,
from /usr/src/engarde/BUILD/php-5.2.5/ext/libxml/libxml.c:28:
/usr/include/linux/param.h:4:23: asm/param.h: No such file or directory
make: *** [ext/libxml/libxml.lo] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.31587 (%build)


RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.31587 (%build)
Ovidiu
 
Posts: 2
Joined: Mon May 26, 2008 4:45 pm

Re: Compiliing PHP 5 from source package error

Postby wkeys on Tue May 27, 2008 8:53 am

hi
Trying executing the below commands. If your machine is i386

Code: Select all
# cd /usr/include
# ln -sf ../src/linux/include/asm-generic .
# ln -sf ../src/linux/include/asm-i386 asm


Bests
~Bill
wkeys
 
Posts: 283
Joined: Thu Feb 01, 2007 5:43 pm

Re: Compiliing PHP 5 from source package error

Postby Ovidiu on Tue May 27, 2008 4:47 pm

It Worked !!! Thanks "wkeys" :*
Ovidiu
 
Posts: 2
Joined: Mon May 26, 2008 4:45 pm

Re: Compiliing PHP 5 from source package error

Postby bschoenecker on Wed Apr 20, 2011 3:00 pm

I am having a similar problem...

#make

Code: Select all
/bin/sh /tmp/php-5.3.6/libtool --silent --preserve-dup-deps --mode=compile gcc -Iext/date                      /lib -Iext/date/ -I/tmp/php-5.3.6/ext/date/ -DPHP_ATOM_INC -I/tmp/php-5.3.6/include -I/tm                      p/php-5.3.6/main -I/tmp/php-5.3.6 -I/tmp/php-5.3.6/ext/date/lib -I/tmp/php-5.3.6/ext/ereg                      /regex -I/usr/include/libxml2 -I/tmp/php-5.3.6/ext/sqlite3/libsqlite -I/tmp/php-5.3.6/TSR                      M -I/tmp/php-5.3.6/Zend    -I/usr/include -g -O2  -c /tmp/php-5.3.6/ext/date/php_date.c -                      o ext/date/php_date.lo
In file included from /usr/include/bits/errno.h:25,
                 from /usr/include/errno.h:36,
                 from /tmp/php-5.3.6/Zend/zend_operators.h:25,
                 from /tmp/php-5.3.6/Zend/zend.h:755,
                 from /tmp/php-5.3.6/main/php.h:34,
                 from /tmp/php-5.3.6/ext/date/php_date.c:21:
/usr/include/linux/errno.h:4:23: asm/errno.h: No such file or directory
In file included from /usr/include/sys/param.h:24,
                 from /tmp/php-5.3.6/main/php.h:211,
                 from /tmp/php-5.3.6/ext/date/php_date.c:21:
/usr/include/linux/param.h:4:23: asm/param.h: No such file or directory
make: *** [ext/date/php_date.lo] Error 1
bschoenecker
 
Posts: 4
Joined: Wed Apr 13, 2011 9:13 am


Return to General Troubleshooting

Who is online

Users browsing this forum: No registered users and 1 guest

cron