I appear to be having problems with my PHP compile ldap linkage...

I am compiling PHP on a working AIX LDAP server that responds correctly to remote 
email address queries from mail clients and to PHP client requests from an 
existing PHP installation from a Sun machine.

The failure is detailed below, but apparently the PHP compile is looking for a 
symbolic that doesn't exist under IBM's LDAP implementation.

I can find next to nothing about the LDAP infrastructure that PHP is expecting; I 
can infer that PHP is expecting OpenLDAP (whatever that is) and perhaps is 
incompatible with IBM's LDAP?

Please help or give a pointer to someone that knows...I'm at a standstill on this...

The details ===============================================

First run through with my compile, I see two errors:

====1) In making zend....
"zend_extensions.c", line 33.16: 1506-068 (W) Operation between types "void*" and
"int" is not allowed.

== but everything completes and goes on....further on:
Target "all" is up to date.

=====2) but ldap fails
Making all in ldap
           /bin/sh /usr/php/php-4.2.1/libtool --silent --mode=compile cc  -I.
-I/usr/php/php-4.2.1/ext/ldap -I/usr/php/php-4.2.1/m
ain -I/usr/php/php-4.2.1 -I/usr/HTTPServer/include -I/usr/php/php-4.2.1/Zend
-I/usr/ldap/include -I/usr/php/php-4.2.1/ext/mysql
/libmysql -I/usr/php/php-4.2.1/ext/xml/expat  -DAIX=43
-DUSE_PTHREAD_SERIALIZED_ACCEPT -DAIX_BIND_PROCESSOR -DUSE_HSREGEX -DUSE
_EXPAT -DNO_DL_NEEDED -I/usr/php/php-4.2.1/TSRM -g -prefer-pic  -c ldap.c
"ldap.c", line 216.9: 1506-045 (S) Undeclared identifier LDAP_OPT_RESTART.
"ldap.c", line 1620.14: 1506-045 (S) Undeclared identifier LDAP_OPT_RESTART.
"ldap.c", line 1620.14: 1506-051 (S) Case expression must be a valid integral
constant.
"ldap.c", line 1715.14: 1506-045 (S) Undeclared identifier LDAP_OPT_RESTART.
"ldap.c", line 1715.14: 1506-051 (S) Case expression must be a valid integral
constant.
"ldap.c", line 1719.29: 1506-068 (W) Operation between types "void*" and "int" is
not allowed.
make: 1254-004 The error code from the last command is 1.
Stop.

So I look in /usr/ldap/include and grep LDAP_OPT_RESTART * and find nothing.

So I have perhaps a bigger question....what ldap is being expected in this build?
The LDAP configure options don't mention any qualification as to what ldap is
expected.
      "--with-ldap[=DIR] Include LDAP support. DIR is the LDAP base install 
directory."
My configure string was:
   ./configure --with-apxs=/usr/HTTPServer/bin/apxs --with-ldap=/usr/ldap
I have a working LDAP server....which serves emaill addresses to IMAP clients just
fine and to which our PHP developer can bind and work data from a previously setup 
Sun machine.

The environment I'm working to install PHP on is an IBM RS/6000 running AIX5.1L.
The webserving SW is IBM's rebranded (to HTTPServer) Apache V1.3.19.  The LDAP is
IBM's SecureWay....but that's just the name....it's actually slapd underneath
everything.  I would really, really, like to have IBM own the HTTP and Apache (be
responsible for generating updates, etc) and only own PHP....rather than compiling
everything and being responsible for all the updates, security, etc.

So, what gives?  Am I right in assuming that the compile is missing some includes
that another LDAP has?

Help.

===
Stewart Dean, Unix System Admin, Henderson Computer Resources
Center of Bard College, Annandale-on-Hudson, New York  12504
[EMAIL PROTECTED]  voice: 845-758-7475, fax: 845-758-7035



-- 
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to