php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #4906 LDAP libs directory needs to be specified before the libs
Submitted: 2000-06-08 17:41 UTC Modified: 2002-06-16 08:26 UTC
From: jouvin at lal dot in2p3 dot fr Assigned:
Status: Not a bug Package: Installation problem
PHP Version: 3.0.16 OS: Tru64
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
49 + 30 = ?
Subscribe to this entry?

 
 [2000-06-08 17:41 UTC] jouvin at lal dot in2p3 dot 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-06-16 08:26 UTC] sander@php.net
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.
 
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Thu Aug 18 19:05:43 2022 UTC