Bug #17915: cannot compile php with openldap support
From: smilic@EUnet.yu
Operating system: Solaris 2.8
PHP version: 4.2.1
PHP Bug Type: Compile Failure
Bug description: cannot compile php with openldap support
PHP 4.2.1 cannot be compiled with openldap support.
Compilation fails on ext/ldap/ldap.c, producing
error in line 2030:
ldap.c:2030: `tsrm_ls' undeclared (first use in
this function)
Line 2030 uses TSRMLS_CC, which is defined in TSRM/TSRM.h
to be
#define TSRMLS_C tsrm_ls
#define TSRMLS_CC , TSRMLS_C
But, tsrm_ls has never been defined ! Although TSRMLS_CC
has been used in other places in ldap.c, only in line
2030 it creates problem. It looks that source of the
problem is that function is defined as:
int _ldap_rebind_proc ...
so it is not PHP function, and tsrm_ls is not implicitly
defined. Adding following line in ldap.c, just before
line 2030:
void ***tsrm_ls; /* Added by smilic@EUnet.yu */
fixes the problem.
Regards,
Sasa Milic
--
Edit bug report at http://bugs.php.net/?id=17915&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=17915&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=17915&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=17915&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=17915&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=17915&r=support
Expected behavior: http://bugs.php.net/fix.php?id=17915&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=17915&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=17915&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=17915&r=globals
Thread (3 messages)
- smilic at EUnet dot yu