Bug #4906 Updated: LDAP libs directory needs to be specified before the libs
| From: | sander@php.net | Date: | Sun, 16 Jun 2002 12:26:47 +0000 |
| Subject: | Bug #4906 Updated: LDAP libs directory needs to be specified before the libs | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-10608@lists.php.net to get a copy of this message | ||
ID: 4906
Updated by: sander@php.net
Reported By: jouvin@lal.in2p3.fr
-Status: Open
+Status: Bogus
Bug Type: Installation problem
Operating System: Tru64
PHP Version: 3.0.16
New Comment:
Thank you for taking the time to report a problem with PHP.
Unfortunately, PHP 3 is no longer supported. Please download
the latest version of PHP 4 from http://www.php.net/downloads.php
If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.
Previous Comments:
------------------------------------------------------------------------
[2000-06-08 17:41:39] jouvin@lal.in2p3.fr
configure is adding -Lldap_dir after -lldap. With Tru64 ld, this leads
to ldap libraries not found. I modified configure so that, like for
other packages -L option is put before related -l. Here is the diff :
*** configure Thu Jun 8 16:38:17 2000
--- configure.original Thu Jun 8 16:38:14 2000
***************
*** 10070,10099 ****
fi
- if test "$LDAP_LIBDIR" != "/usr/lib"; then
- if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/'
>/dev/null ; then
- ai_p="$LDAP_LIBDIR"
- else
- ai_p="
pwd/$LDAP_LIBDIR"
- fi
-
-
- unique=echo $ac_n "$ai_p$ac_c" | tr -c -d a-zA-Z0-9
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "eval $cmd" =
"" ; then
- eval "LIBPATH$unique=set"
-
- EXTRA_LIBS="$EXTRA_LIBS -L$ai_p"
- if test -n "$APXS" ; then
- RPATHS="$RPATHS ${apxs_runpath_switch}$ai_p'"
- else
- RPATHS="$RPATHS ${ld_runpath_switch}$ai_p"
- fi
-
- fi
- fi
-
-
if test uname = "Linux"; then
LDAP_PTHREAD="pthread"
else
--- 10070,10075 ----
***************
*** 10218,10223 ****
--- 10194,10225 ----
EOF
fi
+
+
+ if test "$LDAP_LIBDIR" != "/usr/lib"; then
+
+ if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/'
>/dev/null ; then
+ ai_p="$LDAP_LIBDIR"
+ else
+ ai_p="pwd/$LDAP_LIBDIR"
+ fi
+
+
+ unique=echo $ac_n "$ai_p$ac_c" | tr -c -d a-zA-Z0-9
+ cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
+ if test -n "$unique" && test "eval $cmd" = ""
; then
+ eval "LIBPATH$unique=set"
+
+ EXTRA_LIBS="$EXTRA_LIBS -L$ai_p"
+ if test -n "$APXS" ; then
+ RPATHS="$RPATHS ${apxs_runpath_switch}$ai_p'"
+ else
+ RPATHS="$RPATHS ${ld_runpath_switch}$ai_p"
+ fi
+
+ fi
+
+ fi
if test "$LDAP_INCDIR" != "/usr/include"; then
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=4906&edit=1