can't build PHP (4.4.8) on Cpanel 11 centos

aww

Well-Known Member
#1
I don't seem to be able to build PHP 4.4.8 from the Litespeed menu on my fairly standard Cpanel 11 centos setup. (this is the first time I've ever tried this feature)

I'm using Litespeed 3.3.5

At first I wanted to try to add curl and openssl ( --with-openssl --with-curl) but I gave up on that for now and just trying standard settings, I get:

Forcing buildconf
using default Zend directory
buildconf: checking installation...
buildconf: autoconf version 2.59 (ok)
buildconf: Your version of autoconf likely contains buggy cache code.
Running cvsclean for you.
To avoid this, install autoconf-2.13.
rebuilding configure
rebuilding main/php_config.h.in
autoheader: WARNING: Using auxiliary files such as `acconfig.h', `config.h.bot'
autoheader: WARNING: and `config.h.top', to define templates for `config.h.in'
autoheader: WARNING: is deprecated and discouraged.
autoheader:
autoheader: WARNING: Using the third argument of `AC_DEFINE' and
autoheader: WARNING: `AC_DEFINE_UNQUOTED' allows to define a template without
autoheader: WARNING: `acconfig.h':
autoheader:
autoheader: WARNING: AC_DEFINE([NEED_FUNC_MAIN], 1,
autoheader: [Define if a function `main' is needed.])
autoheader:
autoheader: WARNING: More sophisticated templates can also be produced, see the
autoheader: WARNING: documentation.
checking for egrep... grep -E
checking for a sed that does not truncate output... /bin/sed
checking build system type... i686-pc-linux-gnuoldld
checking host system type... i686-pc-linux-gnuoldld
shtool:echo:Warning: unable to determine terminal sequence for bold mode
shtool:echo:Warning: unable to determine terminal sequence for bold mode
checking for gcc... gcc
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.
Thanks for any advice - I've been going through some of the other threads with similar problems but can't find a working solution yet.
 

aww

Well-Known Member
#2
Well I must really be doing something wrong because even my manual attempt which worked fine for 4.4.7+lsaspi4.1+curl7.16.4 is failing now too.
This is what I tried to do to get the newest versions (worked with the old)

wget http://us3.php.net/get/php-4.4.8.tar.gz/from/us2.php.net/mirror
rm -rf php-4.4.8
tar zvxf php-4.4.8.tar.gz
cd php-4.4.8/sapi
wget http://www.litespeedtech.com/packages/lsapi/php-litespeed-4.5.tgz
tar zvxf php-litespeed-4.5.tgz
wget http://curl.haxx.se/download/curl-7.18.0.tar.gz
tar zvxf curl-7.18.0.tar.gz

cd ..
touch ac*
./buildconf --force
./configure --with-litespeed --with-config-file-path=../php --with-mysql=/usr --with-zlib --with-zlib-dir=.. --with-gd --with-jpeg-dir=.. --with-png-dir=.. --enable-shmop --enable-track-vars --enable-sockets --enable-sysvsem --enable-sysvshm --enable-magic-quotes --with-openssl --with-curl
make
make install
While everything seems standard up to the Make, this is what I get afterwards:
collect2: ld returned 1 exit status
make: *** [sapi/litespeed/php] Error 1
# make install
collect2: ld returned 1 exit status
make: *** [sapi/litespeed/php] Error 1
 
Top