Topic: Remi PHP 5.6 configuration bug

At first I thought this was a php 5.6 bug:

bugs.php.net/bug.php?id=68124

But I found out that this was specific to the remi php5.6 repo. https://bugs.php.net/bug.php?id=68124

Unlike remi php 5.5, installing php 5.6, will has a config file for php that automatically enables DTrace.

After running

sudo yum --enablerepo=remi,remi-php56 install php-devel

If you go to the open the file in the following location:

/usr/include/php/main/php_config.h

You will notice that

/* Defined to 1 if PHP OCI8 DTrace support was enabled during configuration */
#define HAVE_OCI8_DTRACE 1

Which will cause errors if you do not have DTrace installed.

For example when I tried to install the OCI8 extension, it cause the following:

libtool: compile:  cc -I. -I/local/users/appadmin/oci8-2.0.8 -DPHP_ATOM_INC -I/local/users/appadmin/oci8-2.0.8/include -I/local/users/appadmin/oci8-2.0.8/main -I/local/users/appadmin/oci8-2.0.8 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/include/oracle/12.1/client64 -DHAVE_CONFIG_H -g -O2 -c /local/users/appadmin/oci8-2.0.8/oci8.c  -fPIC -DPIC -o .libs/oci8.o
In file included from /local/users/appadmin/oci8-2.0.8/oci8.c:46:
/local/users/appadmin/oci8-2.0.8/php_oci8_int.h:48:29: error: oci8_dtrace_gen.h: No such file or directory
make: *** [oci8.lo] Error 1

A solution would be to comment it out again.

/* Defined to 1 if PHP OCI8 DTrace support was enabled during configuration */
/* #define HAVE_OCI8_DTRACE 1 */

or the other alternative would be to downgrade from PHP 5.6 to PHP 5.5, because remi PHP 5.5 does not have this configuration automatically enabled.

Re: Remi PHP 5.6 configuration bug

Seems a duplicate of https://github.com/remicollet/remirepo/issues/18

Short answer, if you need oci8

yum install php-oci8

Closing this one, we don't need 2 tracker.

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi