Building custom php

Discussion in 'Install/Configuration' started by Kurogane, Aug 19, 2010.

  1. Kurogane

    Kurogane New Member

    I have a problem to installing php 5.2.14

    Here the logs.

    Code:
    **LOG_DETAIL** retrieved from /home/litespeed/phpbuild/buildphp_1282247153.1.log
    
    ==============================================
    Start building PHP 5.2.14 with LSAPI
    ==============================================
    Thu Aug 19 13:46:23 CST 2010
    
    Changing to build directory /home/litespeed/phpbuild/php-5.2.14
    Forcing buildconf
    buildconf: checking installation...
    buildconf: autoconf version 2.65 (ok)
    buildconf: Your version of autoconf likely contains buggy cache code.
               Running vcsclean for you.
               To avoid this, install autoconf-2.13.
    Can't figure out your VCS, not cleaning.
    rebuilding configure
    ext/pdo_dblib/config.m4:55: warning: AC_CACHE_VAL(pdo_inc_path, ...): suspicious cache-id, must contain _cv_ to be cached
    ../../lib/autoconf/general.m4:1998: AC_CACHE_VAL is expanded from...
    ../../lib/autoconf/general.m4:2019: AC_CACHE_CHECK is expanded from...
    aclocal.m4:2741: PHP_CHECK_PDO_INCLUDES is expanded from...
    ext/pdo_firebird/config.m4:43: warning: AC_CACHE_VAL(pdo_inc_path, ...): suspicious cache-id, must contain _cv_ to be cached
    ext/pdo_mysql/config.m4:135: warning: AC_CACHE_VAL(pdo_inc_path, ...): suspicious cache-id, must contain _cv_ to be cached
    ext/pdo_oci/config.m4:231: warning: AC_CACHE_VAL(pdo_inc_path, ...): suspicious cache-id, must contain _cv_ to be cached
    ext/pdo_odbc/config.m4:42: warning: AC_CACHE_VAL(pdo_inc_path, ...): suspicious cache-id, must contain _cv_ to be cached
    ext/pdo_pgsql/config.m4:109: warning: AC_CACHE_VAL(pdo_inc_path, ...): suspicious cache-id, must contain _cv_ to be cached
    ext/pdo_sqlite/config.m4:14: warning: AC_CACHE_VAL(pdo_inc_path, ...): suspicious cache-id, must contain _cv_ to be cached
    ext/sqlite/config.m4:50: warning: AC_CACHE_VAL(pdo_inc_path, ...): suspicious cache-id, must contain _cv_ to be cached
    rebuilding main/php_config.h.in
    autoheader-2.65: WARNING: Using auxiliary files such as `acconfig.h', `config.h.bot'
    autoheader-2.65: WARNING: and `config.h.top', to define templates for `config.h.in'
    autoheader-2.65: WARNING: is deprecated and discouraged.
    autoheader-2.65: 
    autoheader-2.65: WARNING: Using the third argument of `AC_DEFINE' and
    autoheader-2.65: WARNING: `AC_DEFINE_UNQUOTED' allows one to define a template without
    autoheader-2.65: WARNING: `acconfig.h':
    autoheader-2.65: 
    autoheader-2.65: WARNING:   AC_DEFINE([NEED_FUNC_MAIN], 1,
    autoheader-2.65: 		[Define if a function `main' is needed.])
    autoheader-2.65: 
    autoheader-2.65: WARNING: More sophisticated templates can also be produced, see the
    autoheader-2.65: WARNING: documentation.
    ext/pdo_dblib/config.m4:55: warning: AC_CACHE_VAL(pdo_inc_path, ...): suspicious cache-id, must contain _cv_ to be cached
    ../../lib/autoconf/general.m4:1998: AC_CACHE_VAL is expanded from...
    ../../lib/autoconf/general.m4:2019: AC_CACHE_CHECK is expanded from...
    aclocal.m4:2741: PHP_CHECK_PDO_INCLUDES is expanded from...
    ext/pdo_firebird/config.m4:43: warning: AC_CACHE_VAL(pdo_inc_path, ...): suspicious cache-id, must contain _cv_ to be cached
    ext/pdo_mysql/config.m4:135: warning: AC_CACHE_VAL(pdo_inc_path, ...): suspicious cache-id, must contain _cv_ to be cached
    ext/pdo_oci/config.m4:231: warning: AC_CACHE_VAL(pdo_inc_path, ...): suspicious cache-id, must contain _cv_ to be cached
    ext/pdo_odbc/config.m4:42: warning: AC_CACHE_VAL(pdo_inc_path, ...): suspicious cache-id, must contain _cv_ to be cached
    ext/pdo_pgsql/config.m4:109: warning: AC_CACHE_VAL(pdo_inc_path, ...): suspicious cache-id, must contain _cv_ to be cached
    ext/pdo_sqlite/config.m4:14: warning: AC_CACHE_VAL(pdo_inc_path, ...): suspicious cache-id, must contain _cv_ to be cached
    ext/sqlite/config.m4:50: warning: AC_CACHE_VAL(pdo_inc_path, ...): suspicious cache-id, must contain _cv_ to be cached
    Configuring PHP build (2-3 minutes)
    ./configure '--prefix=/home/litespeed/lsphp5' '--with-curl' '--with-gd' '--enable-gd-native-ttf' '--with-ttf' '--with-gettext' '--with-jpeg' '--with-freetype' '--with-kerberos' '--with-openssl' '--with-mcrypt' '--with-mhash' '--with-mysql' '--with-mysqli' '--with-pcre-regex' '--with-pdo-mysql' '--with-pear' '--with-png' '--with-zlib' '--enable-zip' '--with-iconv' '--enable-bcmath' '--enable-calendar' '--enable-ftp' '--enable-magic-quotes' '--enable-sockets' '--with-imagick' '--enable-mbstring' '--enable-shmop' '--enable-track-vars' '--enable-sysvsem' '--enable-sysvshm' '--with-litespeed' '--enable-suhosin'
    cat: confdefs.h: No such file or directory
    ./configure: line 387: ac_fn_c_try_run: command not found
    ./configure: line 403: 5: Bad file descriptor
    ./configure: line 404: 6: Bad file descriptor
    cat: confdefs.h: No such file or directory
    ./configure: line 443: ac_fn_c_try_run: command not found
    cat: confdefs.h: No such file or directory
    ./configure: line 443: ac_fn_c_try_run: command not found
    cat: confdefs.h: No such file or directory
    ./configure: line 443: ac_fn_c_try_run: command not found
    cat: confdefs.h: No such file or directory
    ./configure: line 443: ac_fn_c_try_run: command not found
    cat: confdefs.h: No such file or directory
    ./configure: line 443: ac_fn_c_try_run: command not found
    cat: confdefs.h: No such file or directory
    ./configure: line 443: ac_fn_c_try_run: command not found
    cat: confdefs.h: No such file or directory
    ./configure: line 443: ac_fn_c_try_run: command not found
    cat: confdefs.h: No such file or directory
    ./configure: line 443: ac_fn_c_try_run: command not found
    ./configure: line 466: 5: Bad file descriptor
    ./configure: line 467: 6: Bad file descriptor
    ./configure: line 469: 5: Bad file descriptor
    ./configure: line 470: 6: Bad file descriptor
    cat: confdefs.h: No such file or directory
    ./configure: line 509: ac_fn_c_try_run: command not found
    cat: confdefs.h: No such file or directory
    ./configure: line 509: ac_fn_c_try_run: command not found
    cat: confdefs.h: No such file or directory
    ./configure: line 509: ac_fn_c_try_run: command not found
    ./configure: line 531: 5: Bad file descriptor
    ./configure: line 532: 6: Bad file descriptor
    ./configure: line 607: 5: Bad file descriptor
    ./configure: line 608: 6: Bad file descriptor
    ./configure: line 609: 5: Bad file descriptor
    ./configure: line 610: 6: Bad file descriptor
    ./configure: line 640: 5: Bad file descriptor
    ./configure: line 641: 6: Bad file descriptor
    ./configure: line 866: 5: Bad file descriptor
    ./configure: line 867: 6: Bad file descriptor
    ./configure: line 897: 5: Bad file descriptor
    ./configure: line 898: 6: Bad file descriptor
    ./configure: line 1198: 5: Bad file descriptor
    ./configure: line 1199: 6: Bad file descriptor
    ./configure: line 1227: 5: Bad file descriptor
    ./configure: line 1228: 6: Bad file descriptor
    ./configure: line 2043: 5: Bad file descriptor
    ./configure: line 2044: 6: Bad file descriptor
    ./configure: line 2055: 5: Bad file descriptor
    ./configure: line 2056: 6: Bad file descriptor
    ./configure: line 2072: 5: Bad file descriptor
    ./configure: line 2073: 6: Bad file descriptor
    ./configure: line 2225: 5: Bad file descriptor
    ./configure: line 2226: 6: Bad file descriptor
    ./configure: line 3053: 5: Bad file descriptor
    ./configure: line 3054: 6: Bad file descriptor
    ./configure: line 3084: 5: Bad file descriptor
    ./configure: line 3085: 6: Bad file descriptor
    ./configure: line 3912: 5: Bad file descriptor
    ./configure: line 3913: 6: Bad file descriptor
    ./configure: line 3944: 5: Bad file descriptor
    ./configure: line 3945: 6: Bad file descriptor
    ./configure: line 4245: 5: Bad file descriptor
    ./configure: line 4246: 6: Bad file descriptor
    ./configure: line 4274: 5: Bad file descriptor
    ./configure: line 4275: 6: Bad file descriptor
    ./configure: line 5090: 5: Bad file descriptor
    ./configure: line 5091: 6: Bad file descriptor
    ./configure: line 5102: 5: Bad file descriptor
    ./configure: line 5103: 6: Bad file descriptor
    ./configure: line 5119: 5: Bad file descriptor
    ./configure: line 5120: 6: Bad file descriptor
    ./configure: line 5273: 5: Bad file descriptor
    ./configure: line 5274: 6: Bad file descriptor
    ./configure: line 5598: 5: Bad file descriptor
    ./configure: line 5599: 6: Bad file descriptor
    ./configure: line 5627: 5: Bad file descriptor
    ./configure: line 5628: 6: Bad file descriptor
    ./configure: line 5671: 5: Bad file descriptor
    ./configure: line 5672: 6: Bad file descriptor
    ./configure: line 5678: 5: Bad file descriptor
    ./configure: line 5679: 6: Bad file descriptor
    ./configure: line 5696: 5: Bad file descriptor
    ./configure: line 5697: 6: Bad file descriptor
    ./configure: line 5955: 5: Bad file descriptor
    ./configure: line 5956: 6: Bad file descriptor
    ./configure: line 6165: 5: Bad file descriptor
    ./configure: line 6166: 6: Bad file descriptor
    ./configure: line 6174: 5: Bad file descriptor
    ./configure: line 6175: 6: Bad file descriptor
    ./configure: line 6192: 5: Bad file descriptor
    ./configure: line 6193: 6: Bad file descriptor
    ./configure: line 6420: 5: Bad file descriptor
    ./configure: line 6421: 6: Bad file descriptor
    ./configure: line 6669: 5: Bad file descriptor
    ./configure: line 6670: 6: Bad file descriptor
    ./configure: line 6676: 5: Bad file descriptor
    ./configure: line 6677: 6: Bad file descriptor
    ./configure: line 6694: 5: Bad file descriptor
    ./configure: line 6695: 6: Bad file descriptor
    **********
    **********
    **********
    ./configure: line 7876: 5: Bad file descriptor
    ./configure: line 7877: 6: Bad file descriptor
    
    And never ends!!
  2. Kurogane

    Kurogane New Member

    Nobody knows the problem?
  3. mistwang

    mistwang LiteSpeed Staff

    should be your build tool chain, try installing autoconf 2.13
  4. Kurogane

    Kurogane New Member

    I can't install autoconf 2.13 becuase if i install it broke my system and i have too but too many packages use autoconf 2.65 the system itself have auto block not install a very old version.
  5. NiteWave

    NiteWave Administrator

    not sure this helps:
    in http://www.litespeedtech.com/support/wiki/doku.php?id=litespeed_wiki:php:lsapi
    step 4:
    -- this is for manual build.

    for build php through lsws admin console,to simplify the issue, you can change current build options from
    to
    see if same error occurs.

    your server is 64-bit instead of 32-bit? then in the build option, add
  6. Kurogane

    Kurogane New Member

    It same whether manually or via web too many Bad file descriptor errors.
  7. NiteWave

    NiteWave Administrator

    which OS version of your server?
    uname -a
    and the output of
    ~>ls -l /bin/sh /bin/bash
  8. Kurogane

    Kurogane New Member

    which OS version of your server? Gentoo

    uname -a

    Code:
    Linux-2.6.35-gentoo-r2-x86_64 #1 SMP Sun Aug 15 00:14:14 CST 2010 x86_64 Intel(R) Xeon(R) CPU E5520  @ 2.27GHz
    ls -l /bin/sh /bin/bash


    Code:
    -rwxr-xr-x 1 root root 901368 Aug 16 20:15 /bin/bash
    lrwxrwxrwx 1 root root      4 Aug 16 20:15 /bin/sh -> bash
  9. mistwang

    mistwang LiteSpeed Staff

    Install it to /usr/local instead of overwrite the system default installed uner /usr, by default, autoconf will be installed to /usr/local

Share This Page