Discussion:
[Freeipa-devel] SSSD version pre-0.4 config problems under Ubuntu
Miguel P.C.
2009-05-26 15:06:52 UTC
Permalink
Hi again.

First of all, sorry for the worst error report ever ... :-)
Your ldb.h headers are not installed in a place that GCC searches for
headers by default. You will need to append "-I/usr/include/samba-4.0"
to your CPPFLAGS to tell GCC (and configure) where to find the headers.
This is the try of that with libldb-samba4-dev (with ldb.h in
/usr/include/samba-4.0), after "autoreconf -i -f":
[***@ella]:~$ find /usr/ | grep ldb\.h$
/usr/include/samba-4.0/ldb.h
[***@ella]:~$  CPPFLAGS="-I /usr/include/samba-4.0" ./configure
--prefix=/opt/sssd
[... snip ...]
checking for LDB... yes
checking ldb.h usability... no
checking ldb.h presence... yes
configure: WARNING: ldb.h: present but cannot be compiled
configure: WARNING: ldb.h:     check for missing prerequisite headers?
configure: WARNING: ldb.h: see the Autoconf documentation
configure: WARNING: ldb.h:     section "Present But Cannot Be Compiled"
configure: WARNING: ldb.h: proceeding with the preprocessor's result
configure: WARNING: ldb.h: in the future, the compiler will take precedence
configure: WARNING:     ## --------------------------------------- ##
configure: WARNING:     ## Report this to freeipa-***@redhat.com ##
configure: WARNING:     ## --------------------------------------- ##
checking for ldb.h... yes
checking for ldb_init in -lldb... yes
checking ldb_module.h usability... no
checking ldb_module.h presence... no
checking for ldb_module.h... no
configure: error: LDB header files are not installed
configure: error: ./configure failed for server

I also send attached the full "configure" result, and "config.log"
/usr/include/ldb.h
/usr/include/ldb_handlers.h
but I get exactly the same error.
Any suggestion on what can be done or where should I look to solve the problem?
I doubt it's exactly the same error. Would you gzip your config.log for
each one (specifying which is which) and send them to the list so I can
take a closer look?
Ok. I attach the output for "configure" with libldb-dev.
[***@ella:~]$ find /usr/ | grep ldb\.h$
/usr/include/ldb.h
[***@ella:~/Code/sssd/tmp/sssd]$ ./configure --prefix=/opt/sssd |
tee ../0002-configure_with_libldb-dev_karmic.txt
[... snip ...]
checking for LDB... yes
checking ldb.h usability... no
checking ldb.h presence... no
checking for ldb.h... no
configure: error: LDB header files are not installed
configure: error: ./configure failed for server

Also attach both, configure result and config.log
1.- popt may be included in BUILD.txt as dependency.
You're right. I'll add that.
Thank you.
2.- a proper "make clean" or equivalent would be really good to have
in the root dir in order to ease packaging
With the new automake changes, 'make distclean' should work perfectly.
Also, 'make dist-gzip' should produce an appropriate tarball.
Thanks again!. Really.
I should have re-read Makefile more carefully.

I'll try to re-check everything when I get home.

Regards.

M*
Stephen Gallagher
2009-05-26 15:54:02 UTC
Permalink
Post by Miguel P.C.
Hi again.
First of all, sorry for the worst error report ever ... :-)
Your ldb.h headers are not installed in a place that GCC searches for
headers by default. You will need to append "-I/usr/include/samba-4.0"
to your CPPFLAGS to tell GCC (and configure) where to find the headers.
This is the try of that with libldb-samba4-dev (with ldb.h in
/usr/include/samba-4.0/ldb.h
--prefix=/opt/sssd
[... snip ...]
checking for LDB... yes
checking ldb.h usability... no
checking ldb.h presence... yes
configure: WARNING: ldb.h: present but cannot be compiled
configure: WARNING: ldb.h: check for missing prerequisite headers?
configure: WARNING: ldb.h: see the Autoconf documentation
configure: WARNING: ldb.h: section "Present But Cannot Be Compiled"
configure: WARNING: ldb.h: proceeding with the preprocessor's result
configure: WARNING: ldb.h: in the future, the compiler will take precedence
configure: WARNING: ## --------------------------------------- ##
configure: WARNING: ## --------------------------------------- ##
checking for ldb.h... yes
checking for ldb_init in -lldb... yes
checking ldb_module.h usability... no
checking ldb_module.h presence... no
checking for ldb_module.h... no
configure: error: LDB header files are not installed
configure: error: ./configure failed for server
I also send attached the full "configure" result, and "config.log"
Sorry, in my earlier mail I wasn't descriptive enough. I need the
config.log from the 'server' directory (configure is recursively run in
that directory) as it is the one that will have the errors listed. That
was my error.
Post by Miguel P.C.
/usr/include/ldb.h
/usr/include/ldb_handlers.h
but I get exactly the same error.
Any suggestion on what can be done or where should I look to solve the problem?
I doubt it's exactly the same error. Would you gzip your config.log for
each one (specifying which is which) and send them to the list so I can
take a closer look?
Ok. I attach the output for "configure" with libldb-dev.
/usr/include/ldb.h
tee ../0002-configure_with_libldb-dev_karmic.txt
[... snip ...]
checking for LDB... yes
checking ldb.h usability... no
checking ldb.h presence... no
checking for ldb.h... no
configure: error: LDB header files are not installed
configure: error: ./configure failed for server
Also attach both, configure result and config.log
1.- popt may be included in BUILD.txt as dependency.
You're right. I'll add that.
Thank you.
2.- a proper "make clean" or equivalent would be really good to have
in the root dir in order to ease packaging
With the new automake changes, 'make distclean' should work perfectly.
Also, 'make dist-gzip' should produce an appropriate tarball.
Thanks again!. Really.
I should have re-read Makefile more carefully.
I'll try to re-check everything when I get home.
Regards.
M*
------------------------------------------------------------------------
_______________________________________________
Freeipa-devel mailing list
https://www.redhat.com/mailman/listinfo/freeipa-devel
--
Stephen Gallagher
RHCE 804006346421761

Looking to carve out IT costs?
www.redhat.com/carveoutcosts/
Miguel P.C.
2009-05-27 10:44:55 UTC
Permalink
Hi again,

[... snip ...]
Post by Stephen Gallagher
Sorry, in my earlier mail I wasn't descriptive enough. I need the
config.log from the 'server' directory (configure is recursively run in
that directory) as it is the one that will have the errors listed. That
was my error.
[... snip ...]

Attached.

More info second try was with: libldb-dev_1%3a0.9.3~git20090221-1_i386.deb
In my opinion this should be the one to use under Ubuntu for SSSD. Am I right?

M*
Stephen Gallagher
2009-05-27 19:10:21 UTC
Permalink
Post by Miguel P.C.
Hi again,
[... snip ...]
Post by Stephen Gallagher
Sorry, in my earlier mail I wasn't descriptive enough. I need the
config.log from the 'server' directory (configure is recursively run in
that directory) as it is the one that will have the errors listed. That
was my error.
[... snip ...]
Attached.
More info second try was with: libldb-dev_1%3a0.9.3~git20090221-1_i386.deb
In my opinion this should be the one to use under Ubuntu for SSSD. Am I right?
M*
------------------------------------------------------------------------
_______________________________________________
Freeipa-devel mailing list
https://www.redhat.com/mailman/listinfo/freeipa-devel
Miguel, I did some digging into this problem today, and here's what I've
found.

The correct package to build against will be libldb-dev, not
libldb-samba-4.0-dev, as you suspected. Unfortunately, however, the
libldb-dev package in Ubuntu/Debian has a very serious bug. The ldb.h
header internally requires a header from libreplace, which is not
packaged for Debian.

I spoke with jelmer on IRC and he and Simo are going to work on getting
a new upstream build with fixes ready, and a Debian package will follow
from that.

Until that fixed package is available, I'm afraid we're at a standstill.
--
Stephen Gallagher
RHCE 804006346421761

Looking to carve out IT costs?
www.redhat.com/carveoutcosts/
Loading...