Bug #80926 [NEW]: Unable to compile PDO oci and LDAP

From: Date: Thu, 01 Apr 2021 08:23:06 +0000
Subject: Bug #80926 [NEW]: Unable to compile PDO oci and LDAP
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-233117@lists.php.net to get a copy of this message
From:             tmp6 at turnov dot org
Operating system: Ubuntu 18.04.5 LTS
PHP version:      8.0.3
Package:          Compile Failure
Bug Type:         Bug
Bug description:Unable to compile PDO oci and LDAP

Description:
------------
It's unable to compile LDAP and PDO oci together.

/bin/bash /usr/local/src/php-8.0.3/libtool --silent --preserve-dup-deps
--mode=compile cc -Imain/ -I/usr/local/src/php-8.0.3/main/
-I/usr/local/src/php-8.0.3/include -I/usr/local/src/php-8.0.3/main
-I/usr/local/src/php-8.0.3 -I/usr/local/src/php-8.0.3/ext/date/lib
-I/usr/include/libxml2 -I/usr/local/include/oracle/21.1/client64
-I/usr/local/src/php-8.0.3/TSRM -I/usr/local/src/php-8.0.3/Zend   
-Wno-clobbered -Wall -Wextra -Wno-strict-aliasing
-Wno-implicit-fallthrough -Wno-unused-parameter -Wno-sign-compare -g -O2
-fvisibility=hidden -DZEND_SIGNALS   -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1
-c main/internal_functions_cli.c -o main/internal_functions_cli.lo 
In file included from
/usr/local/src/php-8.0.3/ext/ldap/php_ldap.h:26:0,
                 from main/internal_functions_cli.c:37:
/usr/local/include/oracle/21.1/client64/ldap.h:48:0: warning:
"LBER_CLASS_UNIVERSAL" redefined
 #define LBER_CLASS_UNIVERSAL 0x00

...

In file included from
/usr/local/src/php-8.0.3/ext/ldap/php_ldap.h:23:0,
                 from main/internal_functions_cli.c:37:
/usr/include/lber.h:335:1: note: previous declaration of ‘ber_scanf’
was here
 ber_scanf LDAP_P((
 ^~~~~~~~~
Makefile:1222: recipe for target 'main/internal_functions_cli.lo'
failed
make: *** [main/internal_functions_cli.lo] Error 1


Test script:
---------------
PHPVER=8.0.3
./configure \
--prefix=/opt/php-$PHPVER \
--with-config-file-path=/opt/php-$PHPVER/etc \
--with-config-file-scan-dir=/opt/php-$PHPVER/etc/conf.d \
--with-pdo-oci=shared,instantclient,/usr/local/lib/oracle/21.1/client64/lib
\
--with-ldap



-- 
Edit bug report at https://bugs.php.net/bug.php?id=80926&edit=1
-- 
Fix committed:                    https://bugs.php.net/fix.php?id=80926&r=fixed
Fixed in release:                 https://bugs.php.net/fix.php?id=80926&r=alreadyfixed
Need backtrace:                   https://bugs.php.net/fix.php?id=80926&r=needtrace
Need Reproduce Script:            https://bugs.php.net/fix.php?id=80926&r=needscript
Try newer version:                https://bugs.php.net/fix.php?id=80926&r=oldversion
Not developer issue:              https://bugs.php.net/fix.php?id=80926&r=support
Expected behavior:                https://bugs.php.net/fix.php?id=80926&r=notwrong
Not enough info:                  https://bugs.php.net/fix.php?id=80926&r=notenoughinfo
Submitted twice:                  https://bugs.php.net/fix.php?id=80926&r=submittedtwice
register_globals:                 https://bugs.php.net/fix.php?id=80926&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=80926&r=phptooold
Daylight Savings:                 https://bugs.php.net/fix.php?id=80926&r=dst
IIS Stability:                    https://bugs.php.net/fix.php?id=80926&r=isapi
Install GNU Sed:                  https://bugs.php.net/fix.php?id=80926&r=gnused
Floating point limitations:       https://bugs.php.net/fix.php?id=80926&r=float
No Zend Extensions:               https://bugs.php.net/fix.php?id=80926&r=nozend
MySQL Configuration Error:        https://bugs.php.net/fix.php?id=80926&r=mysqlcfg


Thread (8 messages)

« previous php.bugs (#233117) next »