FAQ
From:
Operating system: AIX 5.3
PHP version: 5.4.0
Package: Compile Failure
Bug Type: Bug
Bug description:php_register_internal_extensions error

Description:
------------
./configure --prefix=/bp/d01/usr/home/bpw/bin/php \
--with-apxs2=/bp/d01/usr/home/bpw/bin/apache/bin/apxs \
--with-config-file-path=/bp/d01/usr/home/bpw/bin/apache/conf \
--enable-zip \
--with-zlib-dir=/bp/d01/usr/home/bpw/bin/zlib \
--enable-shared \
--with-libxml-dir=/bp/d01/usr/home/bpw/bin/libxml2 \
--with-mysql=mysqlnd \
--with-mysqli=mysqlnd \
--with-mysqli=mysqlnd \
--with-pdo-mysql=mysqlnd \
--with-mcrypt=/bp/d01/usr/home/bpw/bin/libmcrypt \
--enable-mbstring \
--with-curl=/bp/d01/usr/home/bpw/bin/curl \
--with-oci8=/bp/d01/usr/home/bpw/bin/oracle/db/10.2 \
--with-openssl=/bp/d01/usr/home/bpw/bin/openssl \
--with-ldap=/bp/d01/usr/home/bpw/bin/ldap

ld: 0711-319 WARNING: Exported symbol not defined:
php_register_internal_extensions
ld: 0711-317 ERROR: Undefined symbol: php_register_internal_extensions
collect2: ld returned 8 exit status
make: *** [sapi/cli/php] Error 1


adding "--disable-cli and --disable-cgi" args allows it to compile.



--
Edit bug report at https://bugs.php.net/bug.php?id=61751&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=61751&r=trysnapshot54
Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=61751&r=trysnapshot53
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=61751&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=61751&r=fixed
Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=61751&r=needdocs
Fixed in release: https://bugs.php.net/fix.php?id=61751&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=61751&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=61751&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=61751&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=61751&r=support
Expected behavior: https://bugs.php.net/fix.php?id=61751&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=61751&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=61751&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=61751&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=61751&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=61751&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=61751&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=61751&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=61751&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=61751&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=61751&r=mysqlcfg

Search Discussions

  • Worstnitemare at gmail dot com at Apr 17, 2012 at 6:36 am
    Edit report at https://bugs.php.net/bug.php?id=61751&edit=1

      ID: 61751
      User updated by: worstnitemare@gmail.com
      Reported by: worstnitemare@gmail.com
      Summary: php_register_internal_extensions error
      Status: Open
      Type: Bug
      Package: Compile Failure
      Operating System: AIX 5.3
      PHP Version: 5.4.0
      Block user comment: N
      Private report: N

      New Comment:

    also tried php5.4-201204170330 with the same result.


    Previous Comments:
    ------------------------------------------------------------------------
    [2012-04-17 06:33:44] worstnitemare@gmail.com

    Description:
    ------------
    ./configure --prefix=/bp/d01/usr/home/bpw/bin/php \
    --with-apxs2=/bp/d01/usr/home/bpw/bin/apache/bin/apxs \
    --with-config-file-path=/bp/d01/usr/home/bpw/bin/apache/conf \
    --enable-zip \
    --with-zlib-dir=/bp/d01/usr/home/bpw/bin/zlib \
    --enable-shared \
    --with-libxml-dir=/bp/d01/usr/home/bpw/bin/libxml2 \
    --with-mysql=mysqlnd \
    --with-mysqli=mysqlnd \
    --with-mysqli=mysqlnd \
    --with-pdo-mysql=mysqlnd \
    --with-mcrypt=/bp/d01/usr/home/bpw/bin/libmcrypt \
    --enable-mbstring \
    --with-curl=/bp/d01/usr/home/bpw/bin/curl \
    --with-oci8=/bp/d01/usr/home/bpw/bin/oracle/db/10.2 \
    --with-openssl=/bp/d01/usr/home/bpw/bin/openssl \
    --with-ldap=/bp/d01/usr/home/bpw/bin/ldap

    ld: 0711-319 WARNING: Exported symbol not defined:
    php_register_internal_extensions
    ld: 0711-317 ERROR: Undefined symbol: php_register_internal_extensions
    collect2: ld returned 8 exit status
    make: *** [sapi/cli/php] Error 1


    adding "--disable-cli and --disable-cgi" args allows it to compile.




    ------------------------------------------------------------------------
  • Sixd at Apr 20, 2012 at 6:57 pm
    Edit report at https://bugs.php.net/bug.php?id=61751&edit=1

      ID: 61751
      Updated by: sixd@php.net
      Reported by: worstnitemare@gmail.com
      Summary: php_register_internal_extensions error
    -Status: Open
    +Status: Feedback
      Type: Bug
      Package: Compile Failure
      Operating System: AIX 5.3
      PHP Version: 5.4.0
      Block user comment: N
      Private report: N

      New Comment:

    Are there any earlier configure errors/warnings? Check config.log and see what
    is failing.

    When configure succeeds, you should have main/internal_functions.c and
    main/internal_functions_cli.c, both declaring php_register_internal_extensions.

    Have your configure options worked in previous versions? See
    https://bugs.php.net/bug.php?id=61450


    Previous Comments:
    ------------------------------------------------------------------------
    [2012-04-17 06:36:19] worstnitemare@gmail.com

    also tried php5.4-201204170330 with the same result.

    ------------------------------------------------------------------------
    [2012-04-17 06:33:44] worstnitemare@gmail.com

    Description:
    ------------
    ./configure --prefix=/bp/d01/usr/home/bpw/bin/php \
    --with-apxs2=/bp/d01/usr/home/bpw/bin/apache/bin/apxs \
    --with-config-file-path=/bp/d01/usr/home/bpw/bin/apache/conf \
    --enable-zip \
    --with-zlib-dir=/bp/d01/usr/home/bpw/bin/zlib \
    --enable-shared \
    --with-libxml-dir=/bp/d01/usr/home/bpw/bin/libxml2 \
    --with-mysql=mysqlnd \
    --with-mysqli=mysqlnd \
    --with-mysqli=mysqlnd \
    --with-pdo-mysql=mysqlnd \
    --with-mcrypt=/bp/d01/usr/home/bpw/bin/libmcrypt \
    --enable-mbstring \
    --with-curl=/bp/d01/usr/home/bpw/bin/curl \
    --with-oci8=/bp/d01/usr/home/bpw/bin/oracle/db/10.2 \
    --with-openssl=/bp/d01/usr/home/bpw/bin/openssl \
    --with-ldap=/bp/d01/usr/home/bpw/bin/ldap

    ld: 0711-319 WARNING: Exported symbol not defined:
    php_register_internal_extensions
    ld: 0711-317 ERROR: Undefined symbol: php_register_internal_extensions
    collect2: ld returned 8 exit status
    make: *** [sapi/cli/php] Error 1


    adding "--disable-cli and --disable-cgi" args allows it to compile.




    ------------------------------------------------------------------------
  • Worstnitemare at gmail dot com at Apr 30, 2012 at 12:45 am
    Edit report at https://bugs.php.net/bug.php?id=61751&edit=1

      ID: 61751
      Comment by: worstnitemare@gmail.com
      Reported by: worstnitemare@gmail.com
      Summary: php_register_internal_extensions error
      Status: Feedback
      Type: Bug
      Package: Compile Failure
      Operating System: AIX 5.3
      PHP Version: 5.4.0
      Block user comment: N
      Private report: N

      New Comment:

    Thanks for the reply...

    I have tried shorting down the config to this.

    ./configure --prefix=/bp/d01/usr/home/bpw/bin/php \
    --with-apxs2=/bp/d01/usr/home/bpw/bin/apache/bin/apxs \
    --with-config-file-path=/bp/d01/usr/home/bpw/bin/apache/conf \
    --enable-zip \
    --with-zlib-dir=/bp/d01/usr/home/bpw/bin/zlib \
    --enable-shared \
    --with-libxml-dir=/bp/d01/usr/home/bpw/bin/libxml2

    The config is successful as per previous config but fails on the "make" with the
    same error. I dont believe i made that clear in my original post, sorry.

    config.log doesnt appear to reveal any standouts?

    Earlier versions were never compiled with CLI support.

    I checked the 2 files mentioned and they both have -

    PHPAPI int php_register_internal_extensions(TSRMLS_D)
    {
      return php_register_extensions(php_builtin_extensions, EXTCOUNT
    TSRMLS_CC);
    }

    Thanks.


    Previous Comments:
    ------------------------------------------------------------------------
    [2012-04-20 18:57:32] sixd@php.net

    Are there any earlier configure errors/warnings? Check config.log and see what
    is failing.

    When configure succeeds, you should have main/internal_functions.c and
    main/internal_functions_cli.c, both declaring php_register_internal_extensions.

    Have your configure options worked in previous versions? See
    https://bugs.php.net/bug.php?id=61450

    ------------------------------------------------------------------------
    [2012-04-17 06:36:19] worstnitemare@gmail.com

    also tried php5.4-201204170330 with the same result.

    ------------------------------------------------------------------------
    [2012-04-17 06:33:44] worstnitemare@gmail.com

    Description:
    ------------
    ./configure --prefix=/bp/d01/usr/home/bpw/bin/php \
    --with-apxs2=/bp/d01/usr/home/bpw/bin/apache/bin/apxs \
    --with-config-file-path=/bp/d01/usr/home/bpw/bin/apache/conf \
    --enable-zip \
    --with-zlib-dir=/bp/d01/usr/home/bpw/bin/zlib \
    --enable-shared \
    --with-libxml-dir=/bp/d01/usr/home/bpw/bin/libxml2 \
    --with-mysql=mysqlnd \
    --with-mysqli=mysqlnd \
    --with-mysqli=mysqlnd \
    --with-pdo-mysql=mysqlnd \
    --with-mcrypt=/bp/d01/usr/home/bpw/bin/libmcrypt \
    --enable-mbstring \
    --with-curl=/bp/d01/usr/home/bpw/bin/curl \
    --with-oci8=/bp/d01/usr/home/bpw/bin/oracle/db/10.2 \
    --with-openssl=/bp/d01/usr/home/bpw/bin/openssl \
    --with-ldap=/bp/d01/usr/home/bpw/bin/ldap

    ld: 0711-319 WARNING: Exported symbol not defined:
    php_register_internal_extensions
    ld: 0711-317 ERROR: Undefined symbol: php_register_internal_extensions
    collect2: ld returned 8 exit status
    make: *** [sapi/cli/php] Error 1


    adding "--disable-cli and --disable-cgi" args allows it to compile.




    ------------------------------------------------------------------------
  • Sixd at Apr 30, 2012 at 9:15 pm
    Edit report at https://bugs.php.net/bug.php?id=61751&edit=1

      ID: 61751
      Updated by: sixd@php.net
      Reported by: worstnitemare@gmail.com
      Summary: php_register_internal_extensions error
    -Status: Feedback
    +Status: Open
      Type: Bug
      Package: Compile Failure
      Operating System: AIX 5.3
      PHP Version: 5.4.0
      Block user comment: N
      Private report: N



    Previous Comments:
    ------------------------------------------------------------------------
    [2012-04-30 00:44:53] worstnitemare@gmail.com

    Thanks for the reply...

    I have tried shorting down the config to this.

    ./configure --prefix=/bp/d01/usr/home/bpw/bin/php \
    --with-apxs2=/bp/d01/usr/home/bpw/bin/apache/bin/apxs \
    --with-config-file-path=/bp/d01/usr/home/bpw/bin/apache/conf \
    --enable-zip \
    --with-zlib-dir=/bp/d01/usr/home/bpw/bin/zlib \
    --enable-shared \
    --with-libxml-dir=/bp/d01/usr/home/bpw/bin/libxml2

    The config is successful as per previous config but fails on the "make" with the
    same error. I dont believe i made that clear in my original post, sorry.

    config.log doesnt appear to reveal any standouts?

    Earlier versions were never compiled with CLI support.

    I checked the 2 files mentioned and they both have -

    PHPAPI int php_register_internal_extensions(TSRMLS_D)
    {
      return php_register_extensions(php_builtin_extensions, EXTCOUNT
    TSRMLS_CC);
    }

    Thanks.

    ------------------------------------------------------------------------
    [2012-04-20 18:57:32] sixd@php.net

    Are there any earlier configure errors/warnings? Check config.log and see what
    is failing.

    When configure succeeds, you should have main/internal_functions.c and
    main/internal_functions_cli.c, both declaring php_register_internal_extensions.

    Have your configure options worked in previous versions? See
    https://bugs.php.net/bug.php?id=61450

    ------------------------------------------------------------------------
    [2012-04-17 06:36:19] worstnitemare@gmail.com

    also tried php5.4-201204170330 with the same result.

    ------------------------------------------------------------------------
    [2012-04-17 06:33:44] worstnitemare@gmail.com

    Description:
    ------------
    ./configure --prefix=/bp/d01/usr/home/bpw/bin/php \
    --with-apxs2=/bp/d01/usr/home/bpw/bin/apache/bin/apxs \
    --with-config-file-path=/bp/d01/usr/home/bpw/bin/apache/conf \
    --enable-zip \
    --with-zlib-dir=/bp/d01/usr/home/bpw/bin/zlib \
    --enable-shared \
    --with-libxml-dir=/bp/d01/usr/home/bpw/bin/libxml2 \
    --with-mysql=mysqlnd \
    --with-mysqli=mysqlnd \
    --with-mysqli=mysqlnd \
    --with-pdo-mysql=mysqlnd \
    --with-mcrypt=/bp/d01/usr/home/bpw/bin/libmcrypt \
    --enable-mbstring \
    --with-curl=/bp/d01/usr/home/bpw/bin/curl \
    --with-oci8=/bp/d01/usr/home/bpw/bin/oracle/db/10.2 \
    --with-openssl=/bp/d01/usr/home/bpw/bin/openssl \
    --with-ldap=/bp/d01/usr/home/bpw/bin/ldap

    ld: 0711-319 WARNING: Exported symbol not defined:
    php_register_internal_extensions
    ld: 0711-317 ERROR: Undefined symbol: php_register_internal_extensions
    collect2: ld returned 8 exit status
    make: *** [sapi/cli/php] Error 1


    adding "--disable-cli and --disable-cgi" args allows it to compile.




    ------------------------------------------------------------------------
  • Php at manujbhatia dot net at May 18, 2012 at 1:24 pm
    Edit report at https://bugs.php.net/bug.php?id=61751&edit=1

      ID: 61751
      Comment by: php@manujbhatia.net
      Reported by: worstnitemare@gmail.com
      Summary: php_register_internal_extensions error
      Status: Open
      Type: Bug
      Package: Compile Failure
      Operating System: AIX 5.3
      PHP Version: 5.4.0
      Block user comment: N
      Private report: N

      New Comment:

    I was having the same issue with 5.4.3 on AIX 6.1. Modifying the generated
    Makefile as below fixed the issue for me:

    20c20
    < PHP_CLI_OBJS = sapi/cli/php_cli.lo sapi/cli/php_http_parser.lo
    sapi/cli/php_cli_server.lo
    ---
    PHP_CLI_OBJS = sapi/cli/php_cli.lo sapi/cli/php_http_parser.lo
    sapi/cli/php_cli_server.lo $(PHP_BINARY_OBJS)
    24c24
    < PHP_CGI_OBJS = sapi/cgi/cgi_main.lo sapi/cgi/fastcgi.lo
    ---
    PHP_CGI_OBJS = sapi/cgi/cgi_main.lo sapi/cgi/fastcgi.lo
    main/internal_functions.lo


    Previous Comments:
    ------------------------------------------------------------------------
    [2012-04-30 00:44:53] worstnitemare@gmail.com

    Thanks for the reply...

    I have tried shorting down the config to this.

    ./configure --prefix=/bp/d01/usr/home/bpw/bin/php \
    --with-apxs2=/bp/d01/usr/home/bpw/bin/apache/bin/apxs \
    --with-config-file-path=/bp/d01/usr/home/bpw/bin/apache/conf \
    --enable-zip \
    --with-zlib-dir=/bp/d01/usr/home/bpw/bin/zlib \
    --enable-shared \
    --with-libxml-dir=/bp/d01/usr/home/bpw/bin/libxml2

    The config is successful as per previous config but fails on the "make" with the
    same error. I dont believe i made that clear in my original post, sorry.

    config.log doesnt appear to reveal any standouts?

    Earlier versions were never compiled with CLI support.

    I checked the 2 files mentioned and they both have -

    PHPAPI int php_register_internal_extensions(TSRMLS_D)
    {
      return php_register_extensions(php_builtin_extensions, EXTCOUNT
    TSRMLS_CC);
    }

    Thanks.

    ------------------------------------------------------------------------
    [2012-04-20 18:57:32] sixd@php.net

    Are there any earlier configure errors/warnings? Check config.log and see what
    is failing.

    When configure succeeds, you should have main/internal_functions.c and
    main/internal_functions_cli.c, both declaring php_register_internal_extensions.

    Have your configure options worked in previous versions? See
    https://bugs.php.net/bug.php?id=61450

    ------------------------------------------------------------------------
    [2012-04-17 06:36:19] worstnitemare@gmail.com

    also tried php5.4-201204170330 with the same result.

    ------------------------------------------------------------------------
    [2012-04-17 06:33:44] worstnitemare@gmail.com

    Description:
    ------------
    ./configure --prefix=/bp/d01/usr/home/bpw/bin/php \
    --with-apxs2=/bp/d01/usr/home/bpw/bin/apache/bin/apxs \
    --with-config-file-path=/bp/d01/usr/home/bpw/bin/apache/conf \
    --enable-zip \
    --with-zlib-dir=/bp/d01/usr/home/bpw/bin/zlib \
    --enable-shared \
    --with-libxml-dir=/bp/d01/usr/home/bpw/bin/libxml2 \
    --with-mysql=mysqlnd \
    --with-mysqli=mysqlnd \
    --with-mysqli=mysqlnd \
    --with-pdo-mysql=mysqlnd \
    --with-mcrypt=/bp/d01/usr/home/bpw/bin/libmcrypt \
    --enable-mbstring \
    --with-curl=/bp/d01/usr/home/bpw/bin/curl \
    --with-oci8=/bp/d01/usr/home/bpw/bin/oracle/db/10.2 \
    --with-openssl=/bp/d01/usr/home/bpw/bin/openssl \
    --with-ldap=/bp/d01/usr/home/bpw/bin/ldap

    ld: 0711-319 WARNING: Exported symbol not defined:
    php_register_internal_extensions
    ld: 0711-317 ERROR: Undefined symbol: php_register_internal_extensions
    collect2: ld returned 8 exit status
    make: *** [sapi/cli/php] Error 1


    adding "--disable-cli and --disable-cgi" args allows it to compile.




    ------------------------------------------------------------------------
  • Worstnitemare at gmail dot com at Jun 16, 2012 at 11:55 pm
    Edit report at https://bugs.php.net/bug.php?id=61751&edit=1

      ID: 61751
      Comment by: worstnitemare@gmail.com
      Reported by: worstnitemare@gmail.com
      Summary: php_register_internal_extensions error
      Status: Open
      Type: Bug
      Package: Compile Failure
      Operating System: AIX 5.3
      PHP Version: 5.4.0
      Block user comment: N
      Private report: N

      New Comment:

    Hi,

    You legend... I had time to make the changes you suggested and everything worked
    a treat.

    Thanks heaps as its very much appreciated.


    Previous Comments:
    ------------------------------------------------------------------------
    [2012-05-18 13:24:30] php@manujbhatia.net

    I was having the same issue with 5.4.3 on AIX 6.1. Modifying the generated
    Makefile as below fixed the issue for me:

    20c20
    < PHP_CLI_OBJS = sapi/cli/php_cli.lo sapi/cli/php_http_parser.lo
    sapi/cli/php_cli_server.lo
    ---
    PHP_CLI_OBJS = sapi/cli/php_cli.lo sapi/cli/php_http_parser.lo
    sapi/cli/php_cli_server.lo $(PHP_BINARY_OBJS)
    24c24
    < PHP_CGI_OBJS = sapi/cgi/cgi_main.lo sapi/cgi/fastcgi.lo
    ---
    PHP_CGI_OBJS = sapi/cgi/cgi_main.lo sapi/cgi/fastcgi.lo
    main/internal_functions.lo

    ------------------------------------------------------------------------
    [2012-04-30 00:44:53] worstnitemare@gmail.com

    Thanks for the reply...

    I have tried shorting down the config to this.

    ./configure --prefix=/bp/d01/usr/home/bpw/bin/php \
    --with-apxs2=/bp/d01/usr/home/bpw/bin/apache/bin/apxs \
    --with-config-file-path=/bp/d01/usr/home/bpw/bin/apache/conf \
    --enable-zip \
    --with-zlib-dir=/bp/d01/usr/home/bpw/bin/zlib \
    --enable-shared \
    --with-libxml-dir=/bp/d01/usr/home/bpw/bin/libxml2

    The config is successful as per previous config but fails on the "make" with the
    same error. I dont believe i made that clear in my original post, sorry.

    config.log doesnt appear to reveal any standouts?

    Earlier versions were never compiled with CLI support.

    I checked the 2 files mentioned and they both have -

    PHPAPI int php_register_internal_extensions(TSRMLS_D)
    {
      return php_register_extensions(php_builtin_extensions, EXTCOUNT
    TSRMLS_CC);
    }

    Thanks.

    ------------------------------------------------------------------------
    [2012-04-20 18:57:32] sixd@php.net

    Are there any earlier configure errors/warnings? Check config.log and see what
    is failing.

    When configure succeeds, you should have main/internal_functions.c and
    main/internal_functions_cli.c, both declaring php_register_internal_extensions.

    Have your configure options worked in previous versions? See
    https://bugs.php.net/bug.php?id=61450

    ------------------------------------------------------------------------
    [2012-04-17 06:36:19] worstnitemare@gmail.com

    also tried php5.4-201204170330 with the same result.

    ------------------------------------------------------------------------
    [2012-04-17 06:33:44] worstnitemare@gmail.com

    Description:
    ------------
    ./configure --prefix=/bp/d01/usr/home/bpw/bin/php \
    --with-apxs2=/bp/d01/usr/home/bpw/bin/apache/bin/apxs \
    --with-config-file-path=/bp/d01/usr/home/bpw/bin/apache/conf \
    --enable-zip \
    --with-zlib-dir=/bp/d01/usr/home/bpw/bin/zlib \
    --enable-shared \
    --with-libxml-dir=/bp/d01/usr/home/bpw/bin/libxml2 \
    --with-mysql=mysqlnd \
    --with-mysqli=mysqlnd \
    --with-mysqli=mysqlnd \
    --with-pdo-mysql=mysqlnd \
    --with-mcrypt=/bp/d01/usr/home/bpw/bin/libmcrypt \
    --enable-mbstring \
    --with-curl=/bp/d01/usr/home/bpw/bin/curl \
    --with-oci8=/bp/d01/usr/home/bpw/bin/oracle/db/10.2 \
    --with-openssl=/bp/d01/usr/home/bpw/bin/openssl \
    --with-ldap=/bp/d01/usr/home/bpw/bin/ldap

    ld: 0711-319 WARNING: Exported symbol not defined:
    php_register_internal_extensions
    ld: 0711-317 ERROR: Undefined symbol: php_register_internal_extensions
    collect2: ld returned 8 exit status
    make: *** [sapi/cli/php] Error 1


    adding "--disable-cli and --disable-cgi" args allows it to compile.




    ------------------------------------------------------------------------
  • Thotsaphon_tun at freewillsolutions dot com at Oct 18, 2012 at 11:12 am
    Edit report at https://bugs.php.net/bug.php?id=61751&edit=1

      ID: 61751
      Comment by: thotsaphon_tun at freewillsolutions dot com
      Reported by: worstnitemare@gmail.com
      Summary: php_register_internal_extensions error
      Status: Open
      Type: Bug
      Package: Compile Failure
      Operating System: AIX 5.3
      PHP Version: 5.4.0
      Block user comment: N
      Private report: N

      New Comment:

    Found problem about this too when build PHP5.4.7 with apache2.4.3 on aix7.1tl1sp4

    ld: 0711-317 ERROR: Undefined symbol: php_register_internal_extensions
    collect2: ld returned 8 exit status
    make: *** [sapi/cli/php] Error 1

    After modify Makefile like comment "[2012-05-18 13:24 UTC] php@manujbhatia.net "
    20c20
    < PHP_CLI_OBJS = sapi/cli/php_cli.lo sapi/cli/php_http_parser.lo
    sapi/cli/php_cli_server.lo
    ---
    PHP_CLI_OBJS = sapi/cli/php_cli.lo sapi/cli/php_http_parser.lo
    sapi/cli/php_cli_server.lo $(PHP_BINARY_OBJS)
    24c24
    < PHP_CGI_OBJS = sapi/cgi/cgi_main.lo sapi/cgi/fastcgi.lo
    ---
    PHP_CGI_OBJS = sapi/cgi/cgi_main.lo sapi/cgi/fastcgi.lo
    main/internal_functions.lo


    make and install succeed :)


    Previous Comments:
    ------------------------------------------------------------------------
    [2012-06-16 23:55:14] worstnitemare@gmail.com

    Hi,

    You legend... I had time to make the changes you suggested and everything worked
    a treat.

    Thanks heaps as its very much appreciated.

    ------------------------------------------------------------------------
    [2012-05-18 13:24:30] php@manujbhatia.net

    I was having the same issue with 5.4.3 on AIX 6.1. Modifying the generated
    Makefile as below fixed the issue for me:

    20c20
    < PHP_CLI_OBJS = sapi/cli/php_cli.lo sapi/cli/php_http_parser.lo
    sapi/cli/php_cli_server.lo
    ---
    PHP_CLI_OBJS = sapi/cli/php_cli.lo sapi/cli/php_http_parser.lo
    sapi/cli/php_cli_server.lo $(PHP_BINARY_OBJS)
    24c24
    < PHP_CGI_OBJS = sapi/cgi/cgi_main.lo sapi/cgi/fastcgi.lo
    ---
    PHP_CGI_OBJS = sapi/cgi/cgi_main.lo sapi/cgi/fastcgi.lo
    main/internal_functions.lo

    ------------------------------------------------------------------------
    [2012-04-30 00:44:53] worstnitemare@gmail.com

    Thanks for the reply...

    I have tried shorting down the config to this.

    ./configure --prefix=/bp/d01/usr/home/bpw/bin/php \
    --with-apxs2=/bp/d01/usr/home/bpw/bin/apache/bin/apxs \
    --with-config-file-path=/bp/d01/usr/home/bpw/bin/apache/conf \
    --enable-zip \
    --with-zlib-dir=/bp/d01/usr/home/bpw/bin/zlib \
    --enable-shared \
    --with-libxml-dir=/bp/d01/usr/home/bpw/bin/libxml2

    The config is successful as per previous config but fails on the "make" with the
    same error. I dont believe i made that clear in my original post, sorry.

    config.log doesnt appear to reveal any standouts?

    Earlier versions were never compiled with CLI support.

    I checked the 2 files mentioned and they both have -

    PHPAPI int php_register_internal_extensions(TSRMLS_D)
    {
      return php_register_extensions(php_builtin_extensions, EXTCOUNT
    TSRMLS_CC);
    }

    Thanks.

    ------------------------------------------------------------------------
    [2012-04-20 18:57:32] sixd@php.net

    Are there any earlier configure errors/warnings? Check config.log and see what
    is failing.

    When configure succeeds, you should have main/internal_functions.c and
    main/internal_functions_cli.c, both declaring php_register_internal_extensions.

    Have your configure options worked in previous versions? See
    https://bugs.php.net/bug.php?id=61450

    ------------------------------------------------------------------------
    [2012-04-17 06:36:19] worstnitemare@gmail.com

    also tried php5.4-201204170330 with the same result.

    ------------------------------------------------------------------------


    The remainder of the comments for this report are too long. To view
    the rest of the comments, please view the bug report online at

         https://bugs.php.net/bug.php?id=61751
  • Fhburkha at blue-bird dot com at Nov 27, 2012 at 3:23 pm
    Edit report at https://bugs.php.net/bug.php?id=61751&edit=1

      ID: 61751
      Comment by: fhburkha at blue-bird dot com
      Reported by: worstnitemare@gmail.com
      Summary: php_register_internal_extensions error
      Status: Open
      Type: Bug
      Package: Compile Failure
      Operating System: AIX 5.3
      PHP Version: 5.4.0
      Block user comment: N
      Private report: N

      New Comment:

    The solution from php@manujbhatia.net worked for me!

    Building 5.4.9 on AIX 5.3. Thanks very much.


    Previous Comments:
    ------------------------------------------------------------------------
    [2012-10-18 11:12:24] thotsaphon_tun at freewillsolutions dot com

    Found problem about this too when build PHP5.4.7 with apache2.4.3 on aix7.1tl1sp4

    ld: 0711-317 ERROR: Undefined symbol: php_register_internal_extensions
    collect2: ld returned 8 exit status
    make: *** [sapi/cli/php] Error 1

    After modify Makefile like comment "[2012-05-18 13:24 UTC] php@manujbhatia.net "
    20c20
    < PHP_CLI_OBJS = sapi/cli/php_cli.lo sapi/cli/php_http_parser.lo
    sapi/cli/php_cli_server.lo
    ---
    PHP_CLI_OBJS = sapi/cli/php_cli.lo sapi/cli/php_http_parser.lo
    sapi/cli/php_cli_server.lo $(PHP_BINARY_OBJS)
    24c24
    < PHP_CGI_OBJS = sapi/cgi/cgi_main.lo sapi/cgi/fastcgi.lo
    ---
    PHP_CGI_OBJS = sapi/cgi/cgi_main.lo sapi/cgi/fastcgi.lo
    main/internal_functions.lo


    make and install succeed :)

    ------------------------------------------------------------------------
    [2012-06-16 23:55:14] worstnitemare@gmail.com

    Hi,

    You legend... I had time to make the changes you suggested and everything worked
    a treat.

    Thanks heaps as its very much appreciated.

    ------------------------------------------------------------------------
    [2012-05-18 13:24:30] php@manujbhatia.net

    I was having the same issue with 5.4.3 on AIX 6.1. Modifying the generated
    Makefile as below fixed the issue for me:

    20c20
    < PHP_CLI_OBJS = sapi/cli/php_cli.lo sapi/cli/php_http_parser.lo
    sapi/cli/php_cli_server.lo
    ---
    PHP_CLI_OBJS = sapi/cli/php_cli.lo sapi/cli/php_http_parser.lo
    sapi/cli/php_cli_server.lo $(PHP_BINARY_OBJS)
    24c24
    < PHP_CGI_OBJS = sapi/cgi/cgi_main.lo sapi/cgi/fastcgi.lo
    ---
    PHP_CGI_OBJS = sapi/cgi/cgi_main.lo sapi/cgi/fastcgi.lo
    main/internal_functions.lo

    ------------------------------------------------------------------------
    [2012-04-30 00:44:53] worstnitemare@gmail.com

    Thanks for the reply...

    I have tried shorting down the config to this.

    ./configure --prefix=/bp/d01/usr/home/bpw/bin/php \
    --with-apxs2=/bp/d01/usr/home/bpw/bin/apache/bin/apxs \
    --with-config-file-path=/bp/d01/usr/home/bpw/bin/apache/conf \
    --enable-zip \
    --with-zlib-dir=/bp/d01/usr/home/bpw/bin/zlib \
    --enable-shared \
    --with-libxml-dir=/bp/d01/usr/home/bpw/bin/libxml2

    The config is successful as per previous config but fails on the "make" with the
    same error. I dont believe i made that clear in my original post, sorry.

    config.log doesnt appear to reveal any standouts?

    Earlier versions were never compiled with CLI support.

    I checked the 2 files mentioned and they both have -

    PHPAPI int php_register_internal_extensions(TSRMLS_D)
    {
      return php_register_extensions(php_builtin_extensions, EXTCOUNT
    TSRMLS_CC);
    }

    Thanks.

    ------------------------------------------------------------------------
    [2012-04-20 18:57:32] sixd@php.net

    Are there any earlier configure errors/warnings? Check config.log and see what
    is failing.

    When configure succeeds, you should have main/internal_functions.c and
    main/internal_functions_cli.c, both declaring php_register_internal_extensions.

    Have your configure options worked in previous versions? See
    https://bugs.php.net/bug.php?id=61450

    ------------------------------------------------------------------------


    The remainder of the comments for this report are too long. To view
    the rest of the comments, please view the bug report online at

         https://bugs.php.net/bug.php?id=61751
  • Dreddy at spectraenergy dot com at Mar 10, 2014 at 3:00 pm
    Edit report at https://bugs.php.net/bug.php?id=61751&edit=1

      ID: 61751
      Comment by: dreddy@spectraenergy.com
      Reported by: worstnitemare@gmail.com
      Summary: php_register_internal_extensions error
      Status: Open
      Type: Bug
      Package: Compile Failure
      Operating System: AIX 5.3
      PHP Version: 5.4.0
      Block user comment: N
      Private report: N

      New Comment:

    Same problem building PHP CLI 5.5.9 on AIX 6.1, fix worked great!


    Previous Comments:
    ------------------------------------------------------------------------
    [2013-01-03 17:51:07] kevin dot sample at cpa dot state dot tx dot us

    Encountered the same bug with PHP 5.4.10 on AIX 6.1 and the above fix worked perfectly. Thanks!

    ------------------------------------------------------------------------
    [2012-11-27 15:22:37] fhburkha at blue-bird dot com

    The solution from php@manujbhatia.net worked for me!

    Building 5.4.9 on AIX 5.3. Thanks very much.

    ------------------------------------------------------------------------
    [2012-10-18 11:12:24] thotsaphon_tun at freewillsolutions dot com

    Found problem about this too when build PHP5.4.7 with apache2.4.3 on aix7.1tl1sp4

    ld: 0711-317 ERROR: Undefined symbol: php_register_internal_extensions
    collect2: ld returned 8 exit status
    make: *** [sapi/cli/php] Error 1

    After modify Makefile like comment "[2012-05-18 13:24 UTC] php@manujbhatia.net "
    20c20
    < PHP_CLI_OBJS = sapi/cli/php_cli.lo sapi/cli/php_http_parser.lo
    sapi/cli/php_cli_server.lo
    ---
    PHP_CLI_OBJS = sapi/cli/php_cli.lo sapi/cli/php_http_parser.lo
    sapi/cli/php_cli_server.lo $(PHP_BINARY_OBJS)
    24c24
    < PHP_CGI_OBJS = sapi/cgi/cgi_main.lo sapi/cgi/fastcgi.lo
    ---
    PHP_CGI_OBJS = sapi/cgi/cgi_main.lo sapi/cgi/fastcgi.lo
    main/internal_functions.lo


    make and install succeed :)

    ------------------------------------------------------------------------
    [2012-06-16 23:55:14] worstnitemare@gmail.com

    Hi,

    You legend... I had time to make the changes you suggested and everything worked
    a treat.

    Thanks heaps as its very much appreciated.

    ------------------------------------------------------------------------
    [2012-05-18 13:24:30] php@manujbhatia.net

    I was having the same issue with 5.4.3 on AIX 6.1. Modifying the generated
    Makefile as below fixed the issue for me:

    20c20
    < PHP_CLI_OBJS = sapi/cli/php_cli.lo sapi/cli/php_http_parser.lo
    sapi/cli/php_cli_server.lo
    ---
    PHP_CLI_OBJS = sapi/cli/php_cli.lo sapi/cli/php_http_parser.lo
    sapi/cli/php_cli_server.lo $(PHP_BINARY_OBJS)
    24c24
    < PHP_CGI_OBJS = sapi/cgi/cgi_main.lo sapi/cgi/fastcgi.lo
    ---
    PHP_CGI_OBJS = sapi/cgi/cgi_main.lo sapi/cgi/fastcgi.lo
    main/internal_functions.lo

    ------------------------------------------------------------------------


    The remainder of the comments for this report are too long. To view
    the rest of the comments, please view the bug report online at

         https://bugs.php.net/bug.php?id=61751
  • Kaplan at Nov 23, 2015 at 4:47 pm
    Edit report at https://bugs.php.net/bug.php?id=61751&edit=1

      ID: 61751
      Updated by: kaplan@php.net
      Reported by: worstnitemare@gmail.com
      Summary: php_register_internal_extensions error
    -Status: Open
    +Status: Closed
      Type: Bug
      Package: Compile Failure
      Operating System: AIX 5.3
      PHP Version: 5.4.0
      Block user comment: N
      Private report: N

      New Comment:

    Automatic comment on behalf of kaplanlior@gmail.com
    Revision: http://git.php.net/?p=php-src.git;a=commit;h=d6b78a351127285c907bc30cab79eed0b7941330
    Log: Fixed bug #61751 (SAPI build problem on AIX: Undefined symbol: php_register_internal_extensions)


    Previous Comments:
    ------------------------------------------------------------------------
    [2015-07-07 03:05:04] uncle dot ziba@gmail.com

    bug still exists with 5.6.10 on AIX 6.1 with xlC 12 compiler.

    ------------------------------------------------------------------------
    [2015-06-26 09:43:10] egav@hotmail.com

    Same problem building PHP CLI 5.6.10 on AIX 7.1. This issue is still open, since 3 years!

    ------------------------------------------------------------------------
    [2014-03-10 15:00:12] dreddy@spectraenergy.com

    Same problem building PHP CLI 5.5.9 on AIX 6.1, fix worked great!

    ------------------------------------------------------------------------
    [2013-01-03 17:51:07] kevin dot sample at cpa dot state dot tx dot us

    Encountered the same bug with PHP 5.4.10 on AIX 6.1 and the above fix worked perfectly. Thanks!

    ------------------------------------------------------------------------
    [2012-11-27 15:22:37] fhburkha at blue-bird dot com

    The solution from php@manujbhatia.net worked for me!

    Building 5.4.9 on AIX 5.3. Thanks very much.

    ------------------------------------------------------------------------


    The remainder of the comments for this report are too long. To view
    the rest of the comments, please view the bug report online at

         https://bugs.php.net/bug.php?id=61751

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupphp-bugs @
categoriesphp
postedApr 17, '12 at 6:33a
activeNov 23, '15 at 4:47p
posts11
users3
websitephp.net

People

Translate

site design / logo © 2017 Grokbase