Want to subscribe to topics you're interested in?
Become a Member

[Solved] PHP5.3.29 - You've configured multiple SAPIs to be build

Discussion in 'Bug Reports' started by Matt, May 30, 2018.

  1. Matt

    Matt Moderator Staff Member

    760
    341
    63
    May 25, 2014
    Sheffield, UK
    Ratings:
    +507
    Local Time:
    5:33 PM
    1.7.1
    MariaDB 10
    • CentOS Version: CentOS 7 64bit ?
    • Centmin Mod Version Installed: 123.09beta01
    • Nginx Version Installed: 1.13.12
    Trying to install PHP5.3 as it's required for an old "private" VB3 archive forum.

    Code:
    *************************************************
    * Upgrading PHP
    *************************************************
     ____   _   _  ____       ____                          _                    _
    |  _ \ | | | ||  _ \  _  |  _ \   ___ __      __ _ __  | |  ___    __ _   __| |
    | |_) || |_| || |_) |(_) | | | | / _ \\ \ /\ / /| '_ \ | | / _ \  / _` | / _` |
    |  __/ |  _  ||  __/  _  | |_| || (_) |\ V  V / | | | || || (_) || (_| || (_| |
    |_|    |_| |_||_|    (_) |____/  \___/  \_/\_/  |_| |_||_| \___/  \__,_| \__,_|
                                                                                  
    php 5.3.29 Archive found, skipping download...
    php-5.3.29.tar.gz valid file.
    
    
    *************************************************
    * Updating php.ini...
    *************************************************
    old php.ini will be saved at /usr/local/lib/php.ini-oldversion_300518-120818
    if you have modified your old php.ini i.e. installed and loaded
    APC, Xcache, Memcache or Suhosin - please re-install them after php upgrade
    ...
    
    make: *** No rule to make target `clean'.  Stop.
    Forcing buildconf
    make: *** No rule to make target `clean'.  Stop.
      ____   _   _  ____        ____                __  _                         
     |  _ \ | | | ||  _ \  _   / ___| ___   _ __   / _|(_)  __ _  _   _  _ __  ___
     | |_) || |_| || |_) |(_) | |    / _ \ | '_ \ | |_ | | / _` || | | || '__|/ _ \
     |  __/ |  _  ||  __/  _  | |___| (_) || | | ||  _|| || (_| || |_| || |  |  __/
     |_|    |_| |_||_|    (_)  \____|\___/ |_| |_||_|  |_| \__, | \__,_||_|   \___|
                                                           |___/                   
    ../configure --enable-fpm --enable-intl --enable-pcntl --with-mcrypt --with-snmp --enable-embed=shared --with-mhash --with-zlib --with-gettext --enable-exif --enable-zip --with-bz2 --enable-soap --enable-sockets --enable-sysvmsg --enable-sysvsem --enable-sysvshm --enable-shmop --with-pear --enable-mbstring --with-openssl --with-mysql=mysqlnd --with-libdir=lib64 --with-mysqli=mysqlnd --with-mysql-sock=/var/lib/mysql/mysql.sock --with-curl --with-gd --with-xmlrpc --enable-bcmath --enable-calendar  --enable-ftp --enable-gd-native-ttf --with-freetype-dir=/usr --with-jpeg-dir=/usr --with-png-dir=/usr --with-xpm-dir=/usr --with-vpx-dir=/usr --with-t1lib=/usr --enable-pdo --with-pdo-sqlite --with-pdo-mysql=mysqlnd --enable-inline-optimization --with-imap --with-imap-ssl --with-kerberos --with-readline --with-libedit --with-gmp --with-pspell --with-tidy --with-enchant --with-fpm-user=nginx --with-fpm-group=nginx --disable-fileinfo --with-ldap --with-ldap-sasl --with-config-file-scan-dir=/etc/centminmod/php.d --with-xsl
    loading cache ./config.cache
    checking for Cygwin environment... no
    checking for mingw32 environment... no
    checking for egrep... grep -E
    checking for a sed that does not truncate output... /bin/sed
    checking host system type... x86_64-unknown-linux-gnu
    checking target system type... x86_64-unknown-linux-gnu
    checking for gcc... ccache /usr/bin/gcc
    checking whether the C compiler (ccache /usr/bin/gcc  ) works... yes
    checking whether the C compiler (ccache /usr/bin/gcc  ) is a cross-compiler... no
    checking whether we are using GNU C... yes
    checking whether ccache /usr/bin/gcc accepts -g... yes
    checking how to run the C preprocessor... ccache /usr/bin/gcc -E
    checking for icc... no
    checking for suncc... no
    checking whether ccache /usr/bin/gcc and cc understand -c and -o together... yes
    checking how to run the C preprocessor... ccache /usr/bin/gcc -E
    checking for AIX... no
    checking whether ln -s works... yes
    checking for system library directory... lib64
    checking whether to enable runpaths... yes
    checking if compiler supports -R... no
    checking if compiler supports -Wl,-rpath,... yes
    checking for gawk... gawk
    checking for bison... bison -y
    checking for bison version... invalid
    configure: warning: bison versions supported for regeneration of the Zend/PHP parsers: 1.28 1.35 1.75 1.875 2.0 2.1 2.2 2.3 2.4 2.4.1 2.4.2 2.4.3 2.5 2.5.1 2.6 2.6.1 2.6.2 2.6.4 (found: 3.0.4).
    checking for re2c... re2c
    checking for re2c version... 0.14.3 (ok)
    checking whether to enable computed goto gcc extension with re2c... no
    checking whether to force non-PIC code in shared modules... no
    checking whether /dev/urandom exists... yes
    checking for pthreads_cflags... -pthread
    checking for pthreads_lib...
    
    Configuring SAPI modules
    checking for AOLserver support... no
    checking for Apache 1.x module support via DSO through APXS... no
    checking for Apache 1.x module support... no
    checking whether to enable Apache charset compatibility option... no
    checking for Apache 2.0 filter-module support via DSO through APXS... no
    checking for Apache 2.0 handler-module support via DSO through APXS... no
    checking for Apache 1.x (hooks) module support via DSO through APXS... no
    checking for Apache 1.x (hooks) module support... no
    checking whether to enable Apache charset compatibility option... no
    checking for Caudium support... no
    checking for CLI build... yes
    checking for Continuity support... no
    checking for embedded SAPI library support... shared
    checking for FPM build... yes
    checking for setenv... yes
    checking for clearenv... yes
    checking for setproctitle... no
    checking for library containing socket... none required
    checking for library containing inet_addr... none required
    checking for errno.h... yes
    checking for fcntl.h... yes
    checking for stdio.h... yes
    checking for stdlib.h... yes
    checking for unistd.h... yes
    checking for sys/uio.h... yes
    checking for sys/select.h... yes
    checking for sys/socket.h... yes
    checking for sys/time.h... yes
    checking for arpa/inet.h... yes
    checking for netinet/in.h... yes
    checking for sysexits.h... yes
    checking for prctl... yes
    checking for clock_gettime... yes
    checking for ptrace... yes
    checking whether ptrace works... yes
    checking for proc mem file... mem
    checking if gcc supports __sync_bool_compare_and_swap... yes
    checking for TCP_INFO... yes
    checking for sysconf... yes
    checking for times... yes
    checking for kqueue... no
    checking for port framework... no
    checking for /dev/poll... no
    checking for epoll... yes
    checking for poll... yes
    checking for select... yes
    configure: error:
    +--------------------------------------------------------------------+
    |                        *** ATTENTION ***                           |
    |                                                                    |
    | You've configured multiple SAPIs to be build. You can build only   |
    | one SAPI module and CLI binary at the same time.                   |
    +--------------------------------------------------------------------+
    
    
    php_configure.inc make -j1
    make: *** No targets specified and no makefile found.  Stop.
     
  2. Matt

    Matt Moderator Staff Member

    760
    341
    63
    May 25, 2014
    Sheffield, UK
    Ratings:
    +507
    Local Time:
    5:33 PM
    1.7.1
    MariaDB 10
    So PHP 5.3 won't even build on CentOS7. Wonder if it's possible to put a check into the centmin.sh to error out stating the version won't work on C7?
     
  3. eva2000

    eva2000 Administrator Staff Member

    34,632
    7,655
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,773
    Local Time:
    2:33 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    wow been ages since I even looked at PHP 5.3 ! Wonder if it's related to 123.09beta01 adding PHP EMBED SAPI build for Nginx Unit application server's PHP requirements?

    From PHP 5.6+ Centmin Mod compiles PHP with following SAPIs
    Code (Text):
    php-config --php-sapis
    cli embed fpm cgi
    

    PHP 5.3 might not support multiple SAPI - though I haven't tried PHP EMBED with PHP 5.3 before for PHP-FPM compiles.

    So you can disable PHP EMBED SAPI build via setting in persistent config file /etc/centminmod/custom_config.inc the variable
    Code (Text):
    PHPEMBED='n'
    

    then re-run centmin.sh menu option 5 to recompile your intended PHP 5.3 version number i.e. 5.3.29
     
    • Winner Winner x 1
  4. Matt

    Matt Moderator Staff Member

    760
    341
    63
    May 25, 2014
    Sheffield, UK
    Ratings:
    +507
    Local Time:
    5:33 PM
    1.7.1
    MariaDB 10
    Thanks @eva2000 - it's building now :)
     
  5. eva2000

    eva2000 Administrator Staff Member

    34,632
    7,655
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,773
    Local Time:
    2:33 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    ok let me know how it goes. if it works, i'll have to add a check so PHP 5.3 compiles will auto set PHPEMBED='n'
     
    • Like Like x 1
  6. Matt

    Matt Moderator Staff Member

    760
    341
    63
    May 25, 2014
    Sheffield, UK
    Ratings:
    +507
    Local Time:
    5:33 PM
    1.7.1
    MariaDB 10
    Still failed

    Code:
    /bin/ld: ext/intl/msgformat/msgformat_helpers.o: undefined reference to symbol '[email protected]@CXXABI_1.3'
    //usr/lib64/libstdc++.so.6: error adding symbols: DSO missing from command line
    collect2: error: ld returned 1 exit status
    make: *** [sapi/fpm/php-fpm] Error 1
    
    real    0m6.841s
    user    0m3.424s
    sys     0m3.376s
    
    Wed May 30 12:46:51 UTC 2018
    Error: 2, PHP make failed (123.09beta01.b025)
     
  7. eva2000

    eva2000 Administrator Staff Member

    34,632
    7,655
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,773
    Local Time:
    2:33 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    might be related to using Intel cpu optimised compiler settings which is default in 123.09beta01 GCCINTEL_PHP='y' so set in persistent config file /etc/centminmod/custom_config.inc
    Code (Text):
    PHPEMBED='n'
    GCCINTEL_PHP='n'
    

    then re-run centmin.sh menu option 5 to recompile your intended PHP 5.3 version number i.e. 5.3.29
     
  8. eva2000

    eva2000 Administrator Staff Member

    34,632
    7,655
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,773
    Local Time:
    2:33 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    Last edited: May 30, 2018
  9. eva2000

    eva2000 Administrator Staff Member

    34,632
    7,655
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,773
    Local Time:
    2:33 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    @Matt looks like I managed to fix it in private test 123.09beta01 updated code using outlined PHP 5.3.29 patch by Kurt from cpanel in bug report at PHP :: Bug #48795 :: Building intl 64-bit fails on OS X without needing to disable PHP Intl extension :)
    Code (Text):
    PHP 5.3.29 (cli) (built: May 30 2018 14:17:35)
    Copyright (c) 1997-2014 The PHP Group
    Zend Engine v2.3.0, Copyright (c) 1998-2014 Zend Technologies
        with Zend OPcache v7.0.5, Copyright (c) 1999-2015, by Zend Technologies
    

    Code (Text):
    php-config
    Usage: /usr/local/bin/php-config [OPTION]
    Options:
      --prefix            [/usr/local]
      --includes          [-I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib]
      --ldflags           []
      --libs              [-lcrypt  -lc-client  -lz -lexslt -ltidy -lresolv -lcrypt -ledit -lncurses -laspell -lpspell -lrt -lmcrypt -lltdl -lldap -llber -lstdc++ -lcrypt -lpam -lgmp -lt1 -lfreetype -lX11 -lXpm -lpng -lz -ljpeg -lenchant -lcurl -lbz2 -lz -lrt -lm -ldl -lnsl  -lxml2 -lz -lm -ldl -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lssl -lcrypto -lcurl -lxml2 -lz -lm -ldl -lssl -lcrypto -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lssl -lcrypto -ldl -lm -licui18n -licuuc -licudata -ldl -lm -licuio -lxml2 -lz -lm -ldl -lnetsnmp -lssl -lssl -lcrypto -lm -lxml2 -lz -lm -ldl -lcrypt -lxml2 -lz -lm -ldl -lxml2 -lz -lm -ldl -lxml2 -lz -lm -ldl -lxml2 -lz -lm -ldl -lxslt -lxml2 -lz -ldl -lm -lcrypt ]
      --extension-dir     [/usr/local/lib/php/extensions/no-debug-non-zts-20090626]
      --include-dir       [/usr/local/include/php]
      --man-dir           [/usr/local/man]
      --php-binary        [/usr/local/bin/php]
      --php-sapis         [cli fpm]
      --configure-options [--enable-fpm --enable-intl --enable-pcntl --with-mcrypt --with-snmp --with-mhash --with-zlib --with-gettext --enable-exif --enable-zip --with-bz2 --enable-soap --enable-sockets --enable-sysvmsg --enable-sysvsem --enable-sysvshm --enable-shmop --with-pear --enable-mbstring --with-openssl --with-mysql=mysqlnd --with-libdir=lib64 --with-mysqli=mysqlnd --with-mysql-sock=/var/lib/mysql/mysql.sock --with-curl --with-gd --with-xmlrpc --enable-bcmath --enable-calendar --enable-ftp --enable-gd-native-ttf --with-freetype-dir=/usr --with-jpeg-dir=/usr --with-png-dir=/usr --with-xpm-dir=/usr --with-vpx-dir=/usr --with-t1lib=/usr --enable-pdo --with-pdo-sqlite --with-pdo-mysql=mysqlnd --enable-inline-optimization --with-imap --with-imap-ssl --with-kerberos --with-readline --with-libedit --with-gmp --with-pspell --with-tidy --with-enchant --with-fpm-user=nginx --with-fpm-group=nginx --disable-fileinfo --with-ldap --with-ldap-sasl --with-config-file-scan-dir=/etc/centminmod/php.d --with-xsl]
      --version           [5.3.29]
      --vernum            [50329]
    

    Updated code for Centmin Mod 123.09beta01 Beta Branch - fix CentOS 7 & PHP 5.3 compatibility. Just run update command = cmupdate before trying centmin.sh menu option 5 compile of PHP 5.3.29.
     
    • Like Like x 1
..