[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: OSX - Compile problems



David White wrote:


Hi

I'm trying to complie openldap with backsql on osx,
everything is fine until I run make, and it exits with the following errors:


/bin/sh /Installers/openldap-2.2.28/libtool --mode=link cc -static -g -O2 -L/usr/local/BerkeleyDB.4.3/lib -o dtest dtest.o liblber.la ../../libraries/liblutil/liblutil.a -lresolv -Lresolv
/Installers/openldap-2.2.28/libtool: line 1: cd: resolv: No such file or directory
libtool: link: cannot determine absolute directory name of `resolv'
make[2]: *** [dtest] Error 1
make[1]: *** [all-common] Error 1
make: *** [all-common] Error 1


I'm configuring with the following:

env LIBS="-Lresolv" ac_cv_func_res_query=no CPPFLAGS="-I/usr/local/ BerkeleyDB.4.3/include" LDFLAGS="-L/usr/local/BerkeleyDB.4.3/ lib" ./configure --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share -- localstatedir=/var --mandir=/usr/share/man --infodir=/usr/share/info --enable-sql

I suspect

   env LIBS="-Lresolv"

is a typo and you mean

   env LIBS="-lresolv"

(lowercase "l" instead of "L"). BTW I don't clearly understand why you need to explicitly request libresolv, it should be picked by configure if requested. All you might need to do is provide its path with "-L"; then, of course, it is preferable if you give an absolute path, and if you provide it in LDFLAGS.

p.


SysNet - via Dossi,8 27100 Pavia Tel: +390382573859 Fax: +390382476497