ID:               38882
 User updated by:  d dot wynne at ljmu dot ac dot uk
 Reported By:      d dot wynne at ljmu dot ac dot uk
-Status:           Feedback
+Status:           Open
 Bug Type:         LDAP related
 Operating System: SuSE 10.1 x86_64
 PHP Version:      4.4.4
 New Comment:

Sticking with:

openldap2-2.3.19
php 4.4.4

Certainly the introduction of ldap:// in front of the hostname stopped
the Segmentatio fault on the ldap_connect. The script still
Segmentation faulted later on as there are lots of ldap_* functions.

I also was unsure of where to put:

-DLDAP_DEPRECATED=1

In php 4.4.4 there is no Makefile in ext/ldap, so in config.m4:

CPPFLAGS="$CPPFLAGS -I$LDAP_INCDIR"

changed to:

CPPFLAGS="$CPPFLAGS -I$LDAP_INCDIR -DLDAP_DEPRECATED=1"

Still Segfaults, but looking at the output of make the
-DLDAP_DEPRECATED=1 didn't seem to be getting passed.

Instead changed the "top-level" Makefile, there are 3 "libtool" lines,
and changed -DLDAP_DEPRECATED to -DLDAP_DEPRECATED=1

 $(LIBTOOL) --mode=compile $(CC)  -D_FORTIFY_SOURCE=2
-DLDAP_DEPRECATED=1 -I/usr/include/apache2-prefork  -DLINUX=2
-D_REENTRANT -D_GNU_SOURCE -I/usr/include   -I/usr/include/apr-1 
-Isapi/apache2handler/
-I/home/cmstechs/cmsdwynn/SuSE/php-4.4.4/sapi/apache2handler/
$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)  -c
/home/cmstechs/cmsdwynn/SuSE/php-4.4.4/sapi/apache2handler/sapi_apache2.c
-o sapi/apache2handler/sapi_apache2.lo
sapi/apache2handler/apache_config.lo:
/home/cmstechs/cmsdwynn/SuSE/php-4.4.4/sapi/apache2handler/apache_config.c
        $(LIBTOOL) --mode=compile $(CC)  -D_FORTIFY_SOURCE=2
-DLDAP_DEPRECATED=1 .....

Again still segfaults.


Previous Comments:
------------------------------------------------------------------------

[2006-10-02 22:11:57] [EMAIL PROTECTED]

See also bug #38819 and the solution inside.
Let us know if it works for you.

------------------------------------------------------------------------

[2006-09-29 15:04:24] d dot wynne at ljmu dot ac dot uk

OK, Built & installed. Presumably now there's some new options or
statements to the /usr/bin/php CLI script with the ldap_connect
statement.

------------------------------------------------------------------------

[2006-09-29 14:45:19] [EMAIL PROTECTED]

`make clean` is required.

------------------------------------------------------------------------

[2006-09-29 14:44:04] d dot wynne at ljmu dot ac dot uk

.....
 Zend/zend_sprintf.lo Zend/zend_ini.lo Zend/zend_qsort.lo
Zend/zend_multibyte.lo
 Zend/zend_strtod.lo Zend/zend_execute.lo sapi/cli/php_cli.lo
sapi/cli/getopt.lo
 main/internal_functions_cli.lo -lcrypt -lcrypt -lsybdb -lldap -llber
-lresolv -
lm -ldl -lnsl -lssl -lcrypto -ldl -ldl -lm -lnsl -lirc -lclntsh -lcrypt
-lcrypt 
 -o sapi/cli/php
ext/standard/info.lo: In function `php_info_print_table_header':
/home/cmstechs/cmsdwynn/SuSE/php-4.4.4/ext/standard/info.c:756:
undefined refere
nce to `ts_resource_ex'
ext/standard/info.lo: In function `php_info_print_table_row':
/home/cmstechs/cmsdwynn/SuSE/php-4.4.4/ext/standard/info.c:800:
undefined refere
nce to `ts_resource_ex'
ext/standard/info.lo: In function `php_print_gpcse_array':
/home/cmstechs/cmsdwynn/SuSE/php-4.4.4/ext/standard/info.c:119:
undefined refere
nce to `executor_globals_id'
ext/standard/info.lo: In function `php_info_write_wrapper':
/home/cmstechs/cmsdwynn/SuSE/php-4.4.4/ext/standard/info.c:67:
undefined referen
ce to `ts_resource_ex'
ext/standard/info.lo: In function `php_print_info':
/home/cmstechs/cmsdwynn/SuSE/php-4.4.4/ext/standard/info.c:624:
undefined refere
nce to `executor_globals_id'
/home/cmstechs/cmsdwynn/SuSE/php-4.4.4/ext/standard/info.c:554:
undefined refere
nce to `sapi_globals_id'

------------------------------------------------------------------------

[2006-09-29 14:06:23] [EMAIL PROTECTED]

>a) The PHP build fails if I do
>--enable-experimental-zts

Please elaborate.

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/38882

-- 
Edit this bug report at http://bugs.php.net/?id=38882&edit=1

Reply via email to