Skip to Main Content

Security Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

PHP Compile w/ Directory Server / LDAP Support

807573Dec 23 2003 — edited Dec 23 2003
Hi,

I am trying to compile PHP with LDAP support via the Sun ONE Directory
Server. I am running into a problem where some functions aren't being found
in the include or shared libraries. Here's my configure command:

export
LD_LIBRARY_PATH="/usr/lib:/usr/local/nss-3.8/lib:/usr/local/nspr-4.3/lib:/us
r/local/mysql/lib:/usr/local/lib/sparcv9:/data/sunone_php/servers/lib:/data/
sunone_php/servers/lib/sasl"

./configure --with-mysql=/usr/local/mysql \
--with-nsapi=/data/sunone_php/webservers \
--enable-libgcc \
--with-zlib-dir=/usr/local \
--with-openssl=/usr/local/ssl \
--with-ldap=/data/sunone_php/servers

The configure command completes successfully with no errors. The make
however, fails with:

Undefined first referenced
symbol in file
sasl_client_step
/data/sunone_php/servers/lib/libldap50.so
sasl_encode
/data/sunone_php/servers/lib/libldap50.so
sasl_getprop
/data/sunone_php/servers/lib/libldap50.so
sasl_setprop
/data/sunone_php/servers/lib/libldap50.so
sasl_decode
/data/sunone_php/servers/lib/libldap50.so
sasl_client_new
/data/sunone_php/servers/lib/libldap50.so
sasl_client_init
/data/sunone_php/servers/lib/libldap50.so
sasl_set_alloc
/data/sunone_php/servers/lib/libldap50.so
sasl_dispose
/data/sunone_php/servers/lib/libldap50.so
sasl_client_start
/data/sunone_php/servers/lib/libldap50.so
ld: fatal: Symbol referencing errors. No output written to sapi/cli/php
collect2: ld returned 1 exit status
*** Error code 1
make: Fatal error: Command failed for target `sapi/cli/php'


I added /data/sunone_php/servers/lib/sasl to the library path in the hopes
that it would find the functions there, but still no dice. I've also tried
compiling my own copy of sasl and pointing to it, but I'm not sure which
version to use and that didn't work either.

If I configure without LDAP, everything works fine. I desparately need to
get this going as we aren't going to be able to use PHP without LDAP support
and we have deadlines approaching quickly.

Any help or ideas would be greatly appreciated.

Thanks,
Cameron

Comments

Gianni Ceresa

Because it is in a dashboard prompt, what behavior do you expect?
Your prompt could have various visual appearances but in the end only 2 possible values: why to write a query that will perform an operation to only return a long list of only 2 possible values?
Not even going into the logic of the query, what you are trying to do is a huge waste of resources for something that will probably not work as you expect because you have a different need than what you are trying to do.
With only 2 possible values, your prompt should not be "SQL Result" sourced but defined using "Custom Values" where you enter 'Sold' and 'Not sold' .

1 - 1
Locked Post
New comments cannot be posted to this locked post.

Post Details