Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

php-fpm 8.0 oci8 (build fails) #2993

Closed
duchymor opened this issue Jun 8, 2021 · 2 comments
Closed

php-fpm 8.0 oci8 (build fails) #2993

duchymor opened this issue Jun 8, 2021 · 2 comments
Labels
PHP Extension: oci8 Extension for Oracle Database Stale Type: Bug

Comments

@duchymor
Copy link
Contributor

duchymor commented Jun 8, 2021

Description:

PHP-FPM build fails for version 8.0 with oci8 enabled. As stated here: https://pecl.php.net/package/oci8, version 3.x of oci8 is required for PHP 8.

Expected Behavior:

Build succeeds.

Context information:

Output of git rev-parse HEAD

3d57064466e3232cecc6c47ebdf9ca164b8773c3

Output of docker version

latest

Output of docker-compose version

latest

System info: Mac, Windows or Linux. Include which disto/version

win10

Steps to reproduce the issue:

  1. set PHP_VERSION=8.0
  2. set PHP_FPM_INSTALL_OCI8=true
  3. build PHP_FPM

Stacktrace & Additional info:

#39 24.49 running: make
#39 24.50 /bin/bash /tmp/pear/temp/pear-build-defaultuserq3fQEv/oci8-2.2.0/libtool --mode=compile cc -I. -I/tmp/pear/temp/oci8 -I/tmp/pear/temp/pear-build-defaultuserq3fQEv/oci8-2.2.0/include -I/tmp/pear/temp/pear-build-defaultuserq
3fQEv/oci8-2.2.0/main -I/tmp/pear/temp/oci8 -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 -I/opt
/oracle/instantclient_12_1//sdk/include  -DHAVE_CONFIG_H  -g -O2    -c /tmp/pear/temp/oci8/oci8.c -o oci8.lo
#39 24.59 mkdir .libs
#39 24.59  cc -I. -I/tmp/pear/temp/oci8 -I/tmp/pear/temp/pear-build-defaultuserq3fQEv/oci8-2.2.0/include -I/tmp/pear/temp/pear-build-defaultuserq3fQEv/oci8-2.2.0/main -I/tmp/pear/temp/oci8 -I/usr/local/include/php -I/usr/local/inclu
de/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 -I/opt/oracle/instantclient_12_1//sdk/include -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/oci8/o
ci8.c  -fPIC -DPIC -o .libs/oci8.o
#39 25.59 /bin/bash /tmp/pear/temp/pear-build-defaultuserq3fQEv/oci8-2.2.0/libtool --mode=compile cc -I. -I/tmp/pear/temp/oci8 -I/tmp/pear/temp/pear-build-defaultuserq3fQEv/oci8-2.2.0/include -I/tmp/pear/temp/pear-build-defaultuserq
3fQEv/oci8-2.2.0/main -I/tmp/pear/temp/oci8 -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 -I/opt
/oracle/instantclient_12_1//sdk/include  -DHAVE_CONFIG_H  -g -O2    -c /tmp/pear/temp/oci8/oci8_lob.c -o oci8_lob.lo
#39 25.68  cc -I. -I/tmp/pear/temp/oci8 -I/tmp/pear/temp/pear-build-defaultuserq3fQEv/oci8-2.2.0/include -I/tmp/pear/temp/pear-build-defaultuserq3fQEv/oci8-2.2.0/main -I/tmp/pear/temp/oci8 -I/usr/local/include/php -I/usr/local/inclu
de/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 -I/opt/oracle/instantclient_12_1//sdk/include -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/oci8/o
ci8_lob.c  -fPIC -DPIC -o .libs/oci8_lob.o
#39 26.19 /bin/bash /tmp/pear/temp/pear-build-defaultuserq3fQEv/oci8-2.2.0/libtool --mode=compile cc -I. -I/tmp/pear/temp/oci8 -I/tmp/pear/temp/pear-build-defaultuserq3fQEv/oci8-2.2.0/include -I/tmp/pear/temp/pear-build-defaultuserq
3fQEv/oci8-2.2.0/main -I/tmp/pear/temp/oci8 -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 -I/opt
/oracle/instantclient_12_1//sdk/include  -DHAVE_CONFIG_H  -g -O2    -c /tmp/pear/temp/oci8/oci8_statement.c -o oci8_statement.lo
#39 26.30  cc -I. -I/tmp/pear/temp/oci8 -I/tmp/pear/temp/pear-build-defaultuserq3fQEv/oci8-2.2.0/include -I/tmp/pear/temp/pear-build-defaultuserq3fQEv/oci8-2.2.0/main -I/tmp/pear/temp/oci8 -I/usr/local/include/php -I/usr/local/inclu
de/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 -I/opt/oracle/instantclient_12_1//sdk/include -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/oci8/o
ci8_statement.c  -fPIC -DPIC -o .libs/oci8_statement.o
#39 27.23 /bin/bash /tmp/pear/temp/pear-build-defaultuserq3fQEv/oci8-2.2.0/libtool --mode=compile cc -I. -I/tmp/pear/temp/oci8 -I/tmp/pear/temp/pear-build-defaultuserq3fQEv/oci8-2.2.0/include -I/tmp/pear/temp/pear-build-defaultuserq
3fQEv/oci8-2.2.0/main -I/tmp/pear/temp/oci8 -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 -I/opt
/oracle/instantclient_12_1//sdk/include  -DHAVE_CONFIG_H  -g -O2    -c /tmp/pear/temp/oci8/oci8_collection.c -o oci8_collection.lo
#39 27.32  cc -I. -I/tmp/pear/temp/oci8 -I/tmp/pear/temp/pear-build-defaultuserq3fQEv/oci8-2.2.0/include -I/tmp/pear/temp/pear-build-defaultuserq3fQEv/oci8-2.2.0/main -I/tmp/pear/temp/oci8 -I/usr/local/include/php -I/usr/local/inclu
de/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 -I/opt/oracle/instantclient_12_1//sdk/include -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/oci8/o
ci8_collection.c  -fPIC -DPIC -o .libs/oci8_collection.o
#39 27.75 /bin/bash /tmp/pear/temp/pear-build-defaultuserq3fQEv/oci8-2.2.0/libtool --mode=compile cc -I. -I/tmp/pear/temp/oci8 -I/tmp/pear/temp/pear-build-defaultuserq3fQEv/oci8-2.2.0/include -I/tmp/pear/temp/pear-build-defaultuserq
3fQEv/oci8-2.2.0/main -I/tmp/pear/temp/oci8 -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 -I/opt
/oracle/instantclient_12_1//sdk/include  -DHAVE_CONFIG_H  -g -O2    -c /tmp/pear/temp/oci8/oci8_interface.c -o oci8_interface.lo
#39 27.85  cc -I. -I/tmp/pear/temp/oci8 -I/tmp/pear/temp/pear-build-defaultuserq3fQEv/oci8-2.2.0/include -I/tmp/pear/temp/pear-build-defaultuserq3fQEv/oci8-2.2.0/main -I/tmp/pear/temp/oci8 -I/usr/local/include/php -I/usr/local/inclu
de/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 -I/opt/oracle/instantclient_12_1//sdk/include -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/oci8/o
ci8_interface.c  -fPIC -DPIC -o .libs/oci8_interface.o
#39 28.01 /tmp/pear/temp/oci8/oci8_interface.c: In function 'zif_oci_fetch_all':
#39 28.01 /tmp/pear/temp/oci8/oci8_interface.c:1476:3: warning: implicit declaration of function 'Z_PARAM_ZVAL_DEREF_EX'; did you mean 'Z_PARAM_ZVAL_EX'? [-Wimplicit-function-declaration]
#39 28.01    Z_PARAM_ZVAL_DEREF_EX(array, 0, 1)
#39 28.01    ^~~~~~~~~~~~~~~~~~~~~
#39 28.01    Z_PARAM_ZVAL_EX
#39 28.01 /tmp/pear/temp/oci8/oci8_interface.c:1476:37: error: expected ';' before '_optional'
#39 28.01    Z_PARAM_ZVAL_DEREF_EX(array, 0, 1)
#39 28.01                                      ^
#39 28.01                                      ;
#39 28.06 make: *** [Makefile:219: oci8_interface.lo] Error 1
#39 28.07 ERROR: `make' failed
#39 ERROR: executor failed running [/bin/sh -c if [ ${INSTALL_OCI8} = true ]; then     apt-get install --no-install-recommends -yqq wget     && mkdir /opt/oracle         && cd /opt/oracle         && wget ${ORACLE_INSTANT_CLIENT_MIRR
OR}instantclient-basic-linux.x64-12.1.0.2.0.zip         && wget ${ORACLE_INSTANT_CLIENT_MIRROR}instantclient-sdk-linux.x64-12.1.0.2.0.zip         && unzip /opt/oracle/instantclient-basic-linux.x64-12.1.0.2.0.zip -d /opt/oracle
   && unzip /opt/oracle/instantclient-sdk-linux.x64-12.1.0.2.0.zip -d /opt/oracle         && ln -s /opt/oracle/instantclient_12_1/libclntsh.so.12.1 /opt/oracle/instantclient_12_1/libclntsh.so         && ln -s /opt/oracle/instantclie
nt_12_1/libclntshcore.so.12.1 /opt/oracle/instantclient_12_1/libclntshcore.so         && ln -s /opt/oracle/instantclient_12_1/libocci.so.12.1 /opt/oracle/instantclient_12_1/libocci.so         && rm -rf /opt/oracle/*.zip     && apt-g
et install --no-install-recommends -yqq       libaio-dev       freetds-dev &&     if [ $(php -r "echo PHP_MAJOR_VERSION;") = "5" ]; then       echo 'instantclient,/opt/oracle/instantclient_12_1/' | pecl install oci8-2.0.10;     else
       echo 'instantclient,/opt/oracle/instantclient_12_1/' | pecl install oci8-2.2.0;     fi         && docker-php-ext-configure pdo_oci --with-pdo-oci=instantclient,/opt/oracle/instantclient_12_1,12.1         && docker-php-ext-con
figure pdo_dblib --with-libdir=/lib/x86_64-linux-gnu         && docker-php-ext-install                 pdo_oci         && docker-php-ext-enable                 oci8   ;fi]: exit code: 1
------
 > [34/77] RUN if [ true = true ]; then     apt-get install --no-install-recommends -yqq wget     && mkdir /opt/oracle         && cd /opt/oracle         && wget https://github.com/diogomascarenha/oracle-instantclient/raw/master/inst
antclient-basic-linux.x64-12.1.0.2.0.zip         && wget https://github.com/diogomascarenha/oracle-instantclient/raw/master/instantclient-sdk-linux.x64-12.1.0.2.0.zip         && unzip /opt/oracle/instantclient-basic-linux.x64-12.1.0
.2.0.zip -d /opt/oracle         && unzip /opt/oracle/instantclient-sdk-linux.x64-12.1.0.2.0.zip -d /opt/oracle         && ln -s /opt/oracle/instantclient_12_1/libclntsh.so.12.1 /opt/oracle/instantclient_12_1/libclntsh.so         &&
ln -s /opt/oracle/instantclient_12_1/libclntshcore.so.12.1 /opt/oracle/instantclient_12_1/libclntshcore.so         && ln -s /opt/oracle/instantclient_12_1/libocci.so.12.1 /opt/oracle/instantclient_12_1/libocci.so         && rm -rf /
opt/oracle/*.zip     && apt-get install --no-install-recommends -yqq       libaio-dev       freetds-dev &&     if [ $(php -r "echo PHP_MAJOR_VERSION;") = "5" ]; then       echo 'instantclient,/opt/oracle/instantclient_12_1/' | pecl
install oci8-2.0.10;     else       echo 'instantclient,/opt/oracle/instantclient_12_1/' | pecl install oci8-2.2.0;     fi         && docker-php-ext-configure pdo_oci --with-pdo-oci=instantclient,/opt/oracle/instantclient_12_1,12.1
        && docker-php-ext-configure pdo_dblib --with-libdir=/lib/x86_64-linux-gnu         && docker-php-ext-install                 pdo_oci         && docker-php-ext-enable                 oci8   ;fi:
------
executor failed running [/bin/sh -c if [ ${INSTALL_OCI8} = true ]; then     apt-get install --no-install-recommends -yqq wget     && mkdir /opt/oracle         && cd /opt/oracle         && wget ${ORACLE_INSTANT_CLIENT_MIRROR}instantc
lient-basic-linux.x64-12.1.0.2.0.zip         && wget ${ORACLE_INSTANT_CLIENT_MIRROR}instantclient-sdk-linux.x64-12.1.0.2.0.zip         && unzip /opt/oracle/instantclient-basic-linux.x64-12.1.0.2.0.zip -d /opt/oracle         && unzip
 /opt/oracle/instantclient-sdk-linux.x64-12.1.0.2.0.zip -d /opt/oracle         && ln -s /opt/oracle/instantclient_12_1/libclntsh.so.12.1 /opt/oracle/instantclient_12_1/libclntsh.so         && ln -s /opt/oracle/instantclient_12_1/lib
clntshcore.so.12.1 /opt/oracle/instantclient_12_1/libclntshcore.so         && ln -s /opt/oracle/instantclient_12_1/libocci.so.12.1 /opt/oracle/instantclient_12_1/libocci.so         && rm -rf /opt/oracle/*.zip     && apt-get install
--no-install-recommends -yqq       libaio-dev       freetds-dev &&     if [ $(php -r "echo PHP_MAJOR_VERSION;") = "5" ]; then       echo 'instantclient,/opt/oracle/instantclient_12_1/' | pecl install oci8-2.0.10;     else       echo
 'instantclient,/opt/oracle/instantclient_12_1/' | pecl install oci8-2.2.0;     fi         && docker-php-ext-configure pdo_oci --with-pdo-oci=instantclient,/opt/oracle/instantclient_12_1,12.1         && docker-php-ext-configure pdo_
dblib --with-libdir=/lib/x86_64-linux-gnu         && docker-php-ext-install                 pdo_oci         && docker-php-ext-enable                 oci8   ;fi]: exit code: 1
ERROR: Service 'php-fpm' failed to build : Build failed
@duchymor duchymor changed the title php-fpm 8.0 oci8 php-fpm 8.0 oci8 (build fails) Jun 8, 2021
@bestlong bestlong added the PHP Extension: oci8 Extension for Oracle Database label Jun 11, 2021
@stale
Copy link

stale bot commented Sep 9, 2021

Hi 👋 this issue has been automatically marked as stale 📌 because it has not had recent activity 😴. It will be closed if no further activity occurs. Thank you for your contributions ❤️.

@stale stale bot added the Stale label Sep 9, 2021
@duchymor duchymor mentioned this issue Sep 10, 2021
4 tasks
@stale
Copy link

stale bot commented Oct 1, 2021

Hi again 👋 we would like to inform you that this issue has been automatically closed 🔒 because it had not recent activity during the stale period. We really really appreciate your contributions, and looking forward for more in the future 🎈.

@stale stale bot closed this as completed Oct 1, 2021
@duchymor duchymor mentioned this issue Jan 12, 2022
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PHP Extension: oci8 Extension for Oracle Database Stale Type: Bug
Projects
None yet
Development

No branches or pull requests

2 participants