|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2012-03-22 16:34 UTC] hakim at agl dot fr
Description:
------------
Trying to compile PHP 5.4.0 with Oracle Instant Client 11.2 and I receive the following error:
~# ./configure ...
--with-oci8=instantclient,/usr/lib/oracle/11.2/client64/lib \
...
~# make
....
/bin/sh /data/pkgs/ws/php-5.4.0/libtool --silent --preserve-dup-deps --mode=compile /data/pkgs/ws/php-5.4.0/meta_ccld -DLDAP_DEPRECATED=1 -Iext/ldap/ -I/data/pkgs/ws/php-5.4.0/ext/ldap/ -DPHP_ATOM_INC -I/data/pkgs/ws/php-5.4.0/include -I/data/pkgs/ws/php-5.4.0/main -I/data/pkgs/ws/php-5.4.0 -I/data/pkgs/ws/php-5.4.0/ext/date/lib -I/data/pkgs/ws/php-5.4.0/ext/ereg/regex -I/usr/include/libxml2 -I/usr/kerberos/include -I/usr/include/freetype2 -I/data/pkgs/ws/php-5.4.0/ext/mbstring/oniguruma -I/data/pkgs/ws/php-5.4.0/ext/mbstring/libmbfl -I/data/pkgs/ws/php-5.4.0/ext/mbstring/libmbfl/mbfl -I/usr//include/mysql -I/usr/include/mysql -I/usr/include/oracle/11.2/client64 -I/data/pkgs/ws/php-5.4.0/ext/sqlite3/libsqlite -I/data/pkgs/ws/php-5.4.0/TSRM -I/data/pkgs/ws/php-5.4.0/Zend -D_REENTRANT -I/usr/include -g -O2 -fvisibility=hidden -pthread -DZTS -c /data/pkgs/ws/php-5.4.0/ext/ldap/ldap.c -o ext/ldap/ldap.lo
Dans le fichier inclus à partir de /data/pkgs/ws/php-5.4.0/ext/ldap/php_ldap.h:30,
à partir de /data/pkgs/ws/php-5.4.0/ext/ldap/ldap.c:45:
/usr/include/oracle/11.2/client64/ldap.h:68:1: attention : « LBER_CLASS_UNIVERSAL » redéfini
Dans le fichier inclus à partir de /data/pkgs/ws/php-5.4.0/ext/ldap/php_ldap.h:27,
à partir de /data/pkgs/ws/php-5.4.0/ext/ldap/ldap.c:45:
/usr/include/lber.h:52:1: attention : ceci est la localisation d'une précédente définition
Dans le fichier inclus à partir de /data/pkgs/ws/php-5.4.0/ext/ldap/php_ldap.h:30,
à partir de /data/pkgs/ws/php-5.4.0/ext/ldap/ldap.c:45:
/usr/include/oracle/11.2/client64/ldap.h:69:1: attention : « LBER_CLASS_APPLICATION » redéfini
Dans le fichier inclus à partir de /data/pkgs/ws/php-5.4.0/ext/ldap/php_ldap.h:27,
à partir de /data/pkgs/ws/php-5.4.0/ext/ldap/ldap.c:45:
/usr/include/lber.h:53:1: attention : ceci est la localisation d'une précédente définition
Dans le fichier inclus à partir de /data/pkgs/ws/php-5.4.0/ext/ldap/php_ldap.h:30,
à partir de /data/pkgs/ws/php-5.4.0/ext/ldap/ldap.c:45:
/usr/include/oracle/11.2/client64/ldap.h:70:1: attention : « LBER_CLASS_CONTEXT » redéfini
Dans le fichier inclus à partir de /data/pkgs/ws/php-5.4.0/ext/ldap/php_ldap.h:27,
à partir de /data/pkgs/ws/php-5.4.0/ext/ldap/ldap.c:45:
/usr/include/lber.h:54:1: attention : ceci est la localisation d'une précédente définition
Dans le fichier inclus à partir de /data/pkgs/ws/php-5.4.0/ext/ldap/php_ldap.h:30,
à partir de /data/pkgs/ws/php-5.4.0/ext/ldap/ldap.c:45:
/usr/include/oracle/11.2/client64/ldap.h:71:1: attention : « LBER_CLASS_PRIVATE » redéfini
Dans le fichier inclus à partir de /data/pkgs/ws/php-5.4.0/ext/ldap/php_ldap.h:27,
à partir de /data/pkgs/ws/php-5.4.0/ext/ldap/ldap.c:45:
/usr/include/lber.h:55:1: attention : ceci est la localisation d'une précédente définition
Dans le fichier inclus à partir de /data/pkgs/ws/php-5.4.0/ext/ldap/php_ldap.h:30,
à partir de /data/pkgs/ws/php-5.4.0/ext/ldap/ldap.c:45:
/usr/include/oracle/11.2/client64/ldap.h:72:1: attention : « LBER_CLASS_MASK » redéfini
Dans le fichier inclus à partir de /data/pkgs/ws/php-5.4.0/ext/ldap/php_ldap.h:27,
à partir de /data/pkgs/ws/php-5.4.0/ext/ldap/ldap.c:45:
/usr/include/lber.h:56:1: attention : ceci est la localisation d'une précédente définition
Dans le fichier inclus à partir de /data/pkgs/ws/php-5.4.0/ext/ldap/php_ldap.h:30,
à partir de /data/pkgs/ws/php-5.4.0/ext/ldap/ldap.c:45:
/usr/include/oracle/11.2/client64/ldap.h:75:1: attention : « LBER_PRIMITIVE » redéfini
Dans le fichier inclus à partir de /data/pkgs/ws/php-5.4.0/ext/ldap/php_ldap.h:27,
à partir de /data/pkgs/ws/php-5.4.0/ext/ldap/ldap.c:45:
/usr/include/lber.h:59:1: attention : ceci est la localisation d'une précédente définition
Dans le fichier inclus à partir de /data/pkgs/ws/php-5.4.0/ext/ldap/php_ldap.h:30,
à partir de /data/pkgs/ws/php-5.4.0/ext/ldap/ldap.c:45:
/usr/include/oracle/11.2/client64/ldap.h:76:1: attention : « LBER_CONSTRUCTED » redéfini
Dans le fichier inclus à partir de /data/pkgs/ws/php-5.4.0/ext/ldap/php_ldap.h:27,
à partir de /data/pkgs/ws/php-5.4.0/ext/ldap/ldap.c:45:
/usr/include/lber.h:60:1: attention : ceci est la localisation d'une précédente définition
Dans le fichier inclus à partir de /data/pkgs/ws/php-5.4.0/ext/ldap/php_ldap.h:30,
à partir de /data/pkgs/ws/php-5.4.0/ext/ldap/ldap.c:45:
/usr/include/oracle/11.2/client64/ldap.h:77:1: attention : « LBER_ENCODING_MASK » redéfini
Dans le fichier inclus à partir de /data/pkgs/ws/php-5.4.0/ext/ldap/php_ldap.h:27,
à partir de /data/pkgs/ws/php-5.4.0/ext/ldap/ldap.c:45:
/usr/include/lber.h:61:1: attention : ceci est la localisation d'une précédente définition
Dans le fichier inclus à partir de /data/pkgs/ws/php-5.4.0/ext/ldap/php_ldap.h:30,
à partir de /data/pkgs/ws/php-5.4.0/ext/ldap/ldap.c:45:
/usr/include/oracle/11.2/client64/ldap.h:79:1: attention : « LBER_BIG_TAG_MASK » redéfini
Dans le fichier inclus à partir de /data/pkgs/ws/php-5.4.0/ext/ldap/php_ldap.h:27,
à partir de /data/pkgs/ws/php-5.4.0/ext/ldap/ldap.c:45:
/usr/include/lber.h:63:1: attention : ceci est la localisation d'une précédente définition
Dans le fichier inclus à partir de /data/pkgs/ws/php-5.4.0/ext/ldap/php_ldap.h:30,
à partir de /data/pkgs/ws/php-5.4.0/ext/ldap/ldap.c:45:
/usr/include/oracle/11.2/client64/ldap.h:80:1: attention : « LBER_MORE_TAG_MASK » redéfini
Dans le fichier inclus à partir de /data/pkgs/ws/php-5.4.0/ext/ldap/php_ldap.h:27,
à partir de /data/pkgs/ws/php-5.4.0/ext/ldap/ldap.c:45:
/usr/include/lber.h:64:1: attention : ceci est la localisation d'une précédente définition
Dans le fichier inclus à partir de /data/pkgs/ws/php-5.4.0/ext/ldap/php_ldap.h:30,
à partir de /data/pkgs/ws/php-5.4.0/ext/ldap/ldap.c:45:
/usr/include/oracle/11.2/client64/ldap.h:88:1: attention : « LBER_ERROR » redéfini
Dans le fichier inclus à partir de /data/pkgs/ws/php-5.4.0/ext/ldap/php_ldap.h:27,
à partir de /data/pkgs/ws/php-5.4.0/ext/ldap/ldap.c:45:
/usr/include/lber.h:74:1: attention : ceci est la localisation d'une précédente définition
Dans le fichier inclus à partir de /data/pkgs/ws/php-5.4.0/ext/ldap/php_ldap.h:30,
à partir de /data/pkgs/ws/php-5.4.0/ext/ldap/ldap.c:45:
/usr/include/oracle/11.2/client64/ldap.h:89:1: attention : « LBER_DEFAULT » redéfini
Dans le fichier inclus à partir de /data/pkgs/ws/php-5.4.0/ext/ldap/php_ldap.h:27,
à partir de /data/pkgs/ws/php-5.4.0/ext/ldap/ldap.c:45:
/usr/include/lber.h:75:1: attention : ceci est la localisation d'une précédente définition
Dans le fichier inclus à partir de /data/pkgs/ws/php-5.4.0/ext/ldap/php_ldap.h:30,
à partir de /data/pkgs/ws/php-5.4.0/ext/ldap/ldap.c:45:
/usr/include/oracle/11.2/client64/ldap.h:92:1: attention : « LBER_BOOLEAN » redéfini
Dans le fichier inclus à partir de /data/pkgs/ws/php-5.4.0/ext/ldap/php_ldap.h:27,
à partir de /data/pkgs/ws/php-5.4.0/ext/ldap/ldap.c:45:
/usr/include/lber.h:78:1: attention : ceci est la localisation d'une précédente définition
Dans le fichier inclus à partir de /data/pkgs/ws/php-5.4.0/ext/ldap/php_ldap.h:30,
à partir de /data/pkgs/ws/php-5.4.0/ext/ldap/ldap.c:45:
/usr/include/oracle/11.2/client64/ldap.h:93:1: attention : « LBER_INTEGER » redéfini
Dans le fichier inclus à partir de /data/pkgs/ws/php-5.4.0/ext/ldap/php_ldap.h:27,
à partir de /data/pkgs/ws/php-5.4.0/ext/ldap/ldap.c:45:
/usr/include/lber.h:79:1: attention : ceci est la localisation d'une précédente définition
Dans le fichier inclus à partir de /data/pkgs/ws/php-5.4.0/ext/ldap/php_ldap.h:30,
à partir de /data/pkgs/ws/php-5.4.0/ext/ldap/ldap.c:45:
/usr/include/oracle/11.2/client64/ldap.h:94:1: attention : « LBER_BITSTRING » redéfini
Dans le fichier inclus à partir de /data/pkgs/ws/php-5.4.0/ext/ldap/php_ldap.h:27,
à partir de /data/pkgs/ws/php-5.4.0/ext/ldap/ldap.c:45:
/usr/include/lber.h:80:1: attention : ceci est la localisation d'une précédente définition
Dans le fichier inclus à partir de /data/pkgs/ws/php-5.4.0/ext/ldap/php_ldap.h:30,
à partir de /data/pkgs/ws/php-5.4.0/ext/ldap/ldap.c:45:
/usr/include/oracle/11.2/client64/ldap.h:95:1: attention : « LBER_OCTETSTRING » redéfini
Dans le fichier inclus à partir de /data/pkgs/ws/php-5.4.0/ext/ldap/php_ldap.h:27,
à partir de /data/pkgs/ws/php-5.4.0/ext/ldap/ldap.c:45:
/usr/include/lber.h:81:1: attention : ceci est la localisation d'une précédente définition
Dans le fichier inclus à partir de /data/pkgs/ws/php-5.4.0/ext/ldap/php_ldap.h:30,
à partir de /data/pkgs/ws/php-5.4.0/ext/ldap/ldap.c:45:
/usr/include/oracle/11.2/client64/ldap.h:96:1: attention : « LBER_NULL » redéfini
Dans le fichier inclus à partir de /data/pkgs/ws/php-5.4.0/ext/ldap/php_ldap.h:27,
à partir de /data/pkgs/ws/php-5.4.0/ext/ldap/ldap.c:45:
/usr/include/lber.h:82:1: attention : ceci est la localisation d'une précédente définition
Dans le fichier inclus à partir de /data/pkgs/ws/php-5.4.0/ext/ldap/php_ldap.h:30,
à partir de /data/pkgs/ws/php-5.4.0/ext/ldap/ldap.c:45:
/usr/include/oracle/11.2/client64/ldap.h:97:1: attention : « LBER_ENUMERATED » redéfini
Dans le fichier inclus à partir de /data/pkgs/ws/php-5.4.0/ext/ldap/php_ldap.h:27,
à partir de /data/pkgs/ws/php-5.4.0/ext/ldap/ldap.c:45:
/usr/include/lber.h:83:1: attention : ceci est la localisation d'une précédente définition
Dans le fichier inclus à partir de /data/pkgs/ws/php-5.4.0/ext/ldap/php_ldap.h:30,
à partir de /data/pkgs/ws/php-5.4.0/ext/ldap/ldap.c:45:
/usr/include/oracle/11.2/client64/ldap.h:98:1: attention : « LBER_SEQUENCE » redéfini
Dans le fichier inclus à partir de /data/pkgs/ws/php-5.4.0/ext/ldap/php_ldap.h:27,
à partir de /data/pkgs/ws/php-5.4.0/ext/ldap/ldap.c:45:
/usr/include/lber.h:84:1: attention : ceci est la localisation d'une précédente définition
Dans le fichier inclus à partir de /data/pkgs/ws/php-5.4.0/ext/ldap/php_ldap.h:30,
à partir de /data/pkgs/ws/php-5.4.0/ext/ldap/ldap.c:45:
/usr/include/oracle/11.2/client64/ldap.h:99:1: attention : « LBER_SET » redéfini
Dans le fichier inclus à partir de /data/pkgs/ws/php-5.4.0/ext/ldap/php_ldap.h:27,
à partir de /data/pkgs/ws/php-5.4.0/ext/ldap/ldap.c:45:
/usr/include/lber.h:85:1: attention : ceci est la localisation d'une précédente définition
In file included from /data/pkgs/ws/php-5.4.0/ext/ldap/php_ldap.h:30,
from /data/pkgs/ws/php-5.4.0/ext/ldap/ldap.c:45:
/usr/include/oracle/11.2/client64/ldap.h:183: erreur: redefinition of 'struct berval'
make: *** [ext/ldap/ldap.lo] Erreur 1
~#
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 22:00:02 2025 UTC |
I tried to remove '--with-ldap' and make finished successfully the ldap packages installed: ~# yum list | grep ldap mozldap.x86_64 6.0.5-1.el5 installed nss_ldap.i386 253-42.el5 installed nss_ldap.x86_64 253-42.el5 installed openldap.i386 2.3.43-12.el5_7.9 installed openldap.x86_64 2.3.43-12.el5_7.9 installed openldap-devel.i386 2.3.43-12.el5_7.9 installed openldap-devel.x86_64 2.3.43-12.el5_7.9 installed python-ldap.x86_64 2.2.0-2.1 installed ~# ldconfig -p | grep ldap libssldap60.so (libc6,x86-64) => /usr/lib64/libssldap60.so libprldap60.so (libc6,x86-64) => /usr/lib64/libprldap60.so libnss_ldap.so.2 (libc6,x86-64) => /lib64/libnss_ldap.so.2 libnss_ldap.so.2 (libc6) => /lib/libnss_ldap.so.2 libnss_ldap.so (libc6,x86-64) => /usr/lib64/libnss_ldap.so libnss_ldap.so (libc6) => /usr/lib/libnss_ldap.so libldap60.so (libc6,x86-64) => /usr/lib64/libldap60.so libldap_r-2.4.so.2 (libc6,x86-64) => /usr/lib64/libldap_r-2.4.so.2 libldap_r-2.3.so.0 (libc6,x86-64) => /usr/lib64/libldap_r-2.3.so.0 libldap_r-2.3.so.0 (libc6) => /usr/lib/libldap_r-2.3.so.0 libldap-2.4.so.2 (libc6,x86-64) => /usr/lib64/libldap-2.4.so.2 libldap-2.3.so.0 (libc6,x86-64) => /usr/lib64/libldap-2.3.so.0 libldap-2.3.so.0 (libc6) => /usr/lib/libldap-2.3.so.0 and when try to compile with disable oci8 and enable ldap the make finish with success.