LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > External Applications > PHP > can't build PHP (4.4.8) on Cpanel 11 centos

Reply
 
Thread Tools Display Modes
  #1  
Old 02-22-2008, 03:23 AM
aww aww is offline
Senior Member
 
Join Date: May 2007
Posts: 237
Default can't build PHP (4.4.8) on Cpanel 11 centos

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:

Quote:
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.
Reply With Quote
  #2  
Old 02-22-2008, 03:30 AM
aww aww is offline
Senior Member
 
Join Date: May 2007
Posts: 237
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)

Quote:
wget http://us3.php.net/get/php-4.4.8.tar...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/package...espeed-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:
Quote:
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
Reply With Quote
  #3  
Old 02-22-2008, 04:06 AM
aww aww is offline
Senior Member
 
Join Date: May 2007
Posts: 237
Ah, I bet this has to do with me upgrading to openssl 0.9.8g

Quote:
/php-4.4.8/ext/openssl/openssl.c:2885: undefined reference to `EVP_CIPHER_CTX_block_size'
Reply With Quote
  #4  
Old 02-24-2008, 06:30 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
cPanel set the permission of "gcc" to only allow "root" user to run it. it is good for security, but break the build tool.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 01:25 AM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.