[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: smbk5pwd overlay assert/crash
2012/1/27 "Tiziano Müller" <tiziano.mueller@stepping-stone.ch>:
> Hi Clément
>
>
> Thanks for the reply, but u nfortunately the Makefile has a number of
> problems:
>
> * The content of HEIMDAL_LIB ends up in the linker whether or not DO_KRB5 is
> given, making the compiler link against -lkrb5 -lkadm5srv which fails if
> heimdal is not installed
>
> * CFLAGS are ignored for compiling
>
> * While the header files from the openldap source tree are used, it still
> looks for the libraries in the system which are either not yet installed or
> if they are the symlinks "libldap_r.so -> libldap_r-2.4.so.2" do not
> necessarily exist, resulting in build failure. Concrete, the following is
> needed in LDAP_LIB: "-L../../../libraries/libldap_r"
>
Yes you are right. My complete make command is the following:
make %{?_smp_mflags} "DEFS=-DDO_SAMBA -DDO_SHADOW"
"LDAP_LIB=-L%{_builddir}/%{real_name}-%{real_version}/libraries/liblber/.libs/
-L%{_builddir}/%{real_name}-%{real_version}/libraries/libldap_r/.libs/
-lldap_r -llber" "prefix=%{ldapserverdir}"
You can find it in LDAP Tool Box RPM spec file, see
http://tools.ltb-project.org/projects/ltb/repository/entry/openldap-rpm/trunk/SPECS/openldap-ltb.spec
Clément.