Re: LDAP and Oracle 8.1.x link order (was: Re: [PHP-DEV] PHP 4.0 Bug #6650 Updated: ldap_add()..)

From: Date: Thu, 14 Sep 2000 17:45:33 +0000
Subject: Re: LDAP and Oracle 8.1.x link order (was: Re: [PHP-DEV] PHP 4.0 Bug #6650 Updated: ldap_add()..)
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-33255@lists.php.net to get a copy of this message
On Tue, 12 Sep 2000, Stig Venaas wrote: >> If I have understood correctly using Openldap will work with Oracle8.1.x >> (I don't remember from which version the ldap-capabilities were added) >> if the link order is '-llber -lldap -lclntsh'. >> >> With the current configure-system libs are added to the beginning of LIBS >> so it gets defined '-lclntsh -llber -lldap'. So the modification needed is >> to be made into ext/oci8/config.m4 to get '-lclntsh' included in the end. > >The way it is now, the order is determined by the alphabetical order of >the extensions. So an ugly fix would be to call the module OCI8. I'm >not sure how else to fix it, except perhaps some ugly stuff in the >Makefile that inspects the produced LIBS and switch the ordering if >necessary? Not sure how. Wouldn't this change fix it: -8.1) -AC_ADD_LIBRARY_WITH_PATH(clntsh, $OCI8_DIR/lib, OCI8_SHARED_LIBADD) -;; +8.1) +LIBS="-L$OCI8_DIR/lib $LIBS -lclntsh" +;; Dunno what to do to that shared part though.. Maybe there should be a own macro for AC_ADD_LIBRARY_WITH_PATH in the config.m4 for oci8? Like this: AC_DEFUN(AC_ADD_OCI8_LIBRARY_WITH_PATH,[ ifelse($3,,[ if test -n "$2"; then AC_ADD_LIBPATH($2) fi LIBS="$LIBS -lclntsh" ],[ if test "$ext_shared" = "yes"; then $3="[$]$3 -l$1" if test -n "$2"; then AC_ADD_LIBPATH($2,$3) fi else AC_ADD_OCI8_LIBRARY_WITH_PATH($1,$2) fi ]) ]) >I'm hoping that someone that knows the configure stuff better than me can >fix it. Me too. Sascha? Please...or anyone else who really knows what he's doing..=) >> Hmm..this issue has been discussed before but nothing have happened. >> Maybe I should insult someone and this will get fixed? =) Or at least >> discussed why it could not be fixed? > >Yes, could someone please comment? Else insults might be necessary (I >leave that to you Jani :) Hmm..nobody has commented..whom should I insult? =) --Jani

« previous php.dev (#33255) next »