Hello,

I'm trying to build PowerDNS 3.2 on CentOS 6.4 x86_64 using http://www.monshouwer.eu/download/3rd_party/pdns-server/el6/SRPMS/pdns-server-3.2-1.el6.MIND.src.rpm based NOT on standard el6/centos 6 LDAP libraries, but on those installed by LTB project's RPMs (see: http://ltb-project.org/wiki/download#openldap).

So, I've also changed requirements in pdns-server.spec from:

   Requires: openldap
   BuildRequires: openldap-devel

to:

   Requires: openldap-ltb
   BuildRequires: openldap-ltb-debuginfo

and I've tried adding:

    CXXFLAGS="${CXXFLAGS} -I/usr/local/openldap/include"
    LDFLAGS="${LDFLAGS} -L/usr/local/openldap/lib64 -lldap -llber"

or:

   LDAP_CPPFLAGS_CONFIG="-I/usr/local/openldap/include"
   LDAP_LIBS_CONFIG="-l/usr/local/openldap/lib64 -lldap -llber"

before the following lines:

    %build
    %configure \
        --sysconfdir=%{_sysconfdir}/powerdns \
        --libdir=%{_libdir} \
        --with-sqlite3 \
        --with-socketdir=/var/run/pdns-server \
        --with-modules="" \
        --with-dynmodules="pipe gmysql gpgsql gsqlite3 ldap"
    %{__make}

but I can't get it to work:

   ...
   checking ldap.h usability... yes
   checking ldap.h presence... yes
   checking for ldap.h... yes
   checking lber.h usability... yes
   checking lber.h presence... yes
   checking for lber.h... yes
   checking for ldap_set_option in -lldap_r... no
   checking for ldap_set_option in -lldap... no
   configure: error: ldap library (libldap) not found
   error: Bad exit status from /var/tmp/rpm-tmp.rgFu3Y (%build)


   RPM build errors:
        Bad exit status from /var/tmp/rpm-tmp.rgFu3Y (%build)

Can you please guide me on how to adapt the spec file so as to build correctly using the custom ldap libraries / headers?

Please advise.

Thanks and regards,
Nick


_______________________________________________
Pdns-users mailing list
[email protected]
http://mailman.powerdns.com/mailman/listinfo/pdns-users

Reply via email to