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 Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: jouvin at lal dot in2p3 dot fr
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2024 The PHP Group
All rights reserved.
Last updated: Mon Oct 14 08:01:27 2024 UTC