Portal Home > Knowledgebase > Articles Database > LiteSpeed PHP Compile error


LiteSpeed PHP Compile error




Posted by zacharooni, 02-04-2008, 10:26 AM
I'm running the latest free version of LSWS, standard install. I am having the hardest time getting PHP to build. No matter what I choose, it always gets the same error in the logs. Right now i'm trying to compile PHP 5.2.5 w/ Suhosin/Mail-header patch. About a minute into building it gives this error: /bin/sh /opt/lsws/phpbuild/php-5.2.5/libtool --silent --preserve-dup-deps --mode=compile gcc -Imain/ -I/opt/lsws/phpbuild/php-5.2.5/main/ -DPHP_ATOM_INC -I/opt/lsws/phpbuild/php-5.2.5/include -I/opt/lsws/phpbuild/php-5.2.5/main -I/opt/lsws/phpbuild/php-5.2.5 -I/usr//include/libxml2 -I/opt/lsws/phpbuild/php-5.2.5/ext/date/lib -I/opt/lsws/phpbuild/php-5.2.5/TSRM -I/opt/lsws/phpbuild/php-5.2.5/Zend -I/usr/include -g -O2 -c /opt/lsws/phpbuild/php-5.2.5/main/reentrancy.c -o main/reentrancy.lo /opt/lsws/phpbuild/php-5.2.5/main/reentrancy.c: In function 'php_readdir_r': /opt/lsws/phpbuild/php-5.2.5/main/reentrancy.c:139: error: too few arguments to function 'readdir_r' make: *** [main/reentrancy.lo] Error 1 Can anyone help me on this?

Posted by paulg1981, 02-04-2008, 10:39 AM
Are you using the web interface to build? I have had the hardest time with the web interface erroring out as well. I finally gave up on it and compile the old fashioned way using instructions from: http://www.usefuljaja.com/2007/4/litespeed-php-install Worked like a charm....and btw litespeed was the best software change I ever made If you still have trouble post in their forum, they have been very responsive for me

Posted by zacharooni, 02-08-2008, 03:44 PM
Sweet! It worked, however Litespeed is messing with me now, trying to create directories it doesn't have access to. Thanks for your help!

Posted by paulg1981, 02-08-2008, 08:29 PM
Glad to hear it worked for you! I have never been sorry I gave up Apache. I do admit the initial config is a little more difficult but man the performance increase more than makes up for it.



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read