Discussion:
[linux-lvm] configure fail with option --enable-notivy-dbus
Oliver Rath
2017-05-11 07:01:57 UTC
Permalink
Hi list,

configuring lvm2 failed with --enable-notify-dbus option, but
unfortunatly without no konkrete error-message:

$ ./configure --enable-lvmetad --enable-lvmpolld --enable-udev_sync
--enable-udev_rules --enable-applib --enable-cmdlib
--enable-dbus-service --enable-dmfilemapd --enable-python3_bindings
--enable-notify-dbus

[..]
checking whether to install fsadm... yes
checking whether to install blkdeactivate... yes
checking whether to use dmeventd...
checking for getline in -lc... no
checking for canonicalize_file_name in -lc... no
checking for dlopen in -ldl... no
checking for log10 in -lm... no
configure: error: bailing out


Without the last option, configure runs fine. The git-codebase is from
today, all neede libs shoud be installed, the System is Ubuntu-16.04.

What must I do?

Tfh!
Oliver
Marian Csontos
2017-05-11 07:43:56 UTC
Permalink
Post by Oliver Rath
Hi list,
configuring lvm2 failed with --enable-notify-dbus option, but
$ ./configure --enable-lvmetad --enable-lvmpolld --enable-udev_sync
--enable-udev_rules --enable-applib --enable-cmdlib
--enable-dbus-service --enable-dmfilemapd --enable-python3_bindings
--enable-notify-dbus
[..]
checking whether to install fsadm... yes
checking whether to install blkdeactivate... yes
checking whether to use dmeventd...
checking for getline in -lc... no
checking for canonicalize_file_name in -lc... no
checking for dlopen in -ldl... no
checking for log10 in -lm... no
configure: error: bailing out
################################################################################
AC_CHECK_LIB(m, log10,
[M_LIBS="-lm"], hard_bailout)




This is because of missing log10 function from m library (wherever that
comes from) and has nothing to do with dbus. So enabling or disabling it
should have absolutely no effect.

Were you configuring lvm2 on the same machine using the same environment?
Post by Oliver Rath
Without the last option, configure runs fine. The git-codebase is from
today, all neede libs shoud be installed, the System is Ubuntu-16.04.
What must I do?
Tfh!
Oliver
_______________________________________________
linux-lvm mailing list
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
Bryn M. Reeves
2017-05-11 10:03:38 UTC
Permalink
Post by Marian Csontos
Post by Oliver Rath
Hi list,
configuring lvm2 failed with --enable-notify-dbus option, but
$ ./configure --enable-lvmetad --enable-lvmpolld --enable-udev_sync
--enable-udev_rules --enable-applib --enable-cmdlib
--enable-dbus-service --enable-dmfilemapd --enable-python3_bindings
--enable-notify-dbus
[..]
checking whether to install fsadm... yes
checking whether to install blkdeactivate... yes
checking whether to use dmeventd...
checking for getline in -lc... no
checking for canonicalize_file_name in -lc... no
checking for dlopen in -ldl... no
checking for log10 in -lm... no
configure: error: bailing out
################################################################################
AC_CHECK_LIB(m, log10,
[M_LIBS="-lm"], hard_bailout)
This is because of missing log10 function from m library (wherever that
comes from) and has nothing to do with dbus. So enabling or disabling it
should have absolutely no effect.
Similarly canonicalize_file_name, dlopen, and getline - the first is a
GNUism, and we really should have a fallback if it is not found (there
is a usable gnulib version), but dlopen and getline?

Those are both standard calls now - dlopen is part of POSIX.1-2001 and
getline was added in POSIX.1-2008.

Are you compiling with an old or non-GNU libc?

Regards,
Bryn.
Oliver Rath
2017-05-11 10:10:37 UTC
Permalink
Hi Bryn!

On 11.05.2017 12:03, Bryn M. Reeves wrote:
[..]
Post by Bryn M. Reeves
Post by Marian Csontos
################################################################################
AC_CHECK_LIB(m, log10,
[M_LIBS="-lm"], hard_bailout)
This is because of missing log10 function from m library (wherever that
comes from) and has nothing to do with dbus. So enabling or disabling it
should have absolutely no effect.
Similarly canonicalize_file_name, dlopen, and getline - the first is a
GNUism, and we really should have a fallback if it is not found (there
is a usable gnulib version), but dlopen and getline?
Those are both standard calls now - dlopen is part of POSIX.1-2001 and
getline was added in POSIX.1-2008.
Are you compiling with an old or non-GNU libc?
My used glibc is:

$ LANG=POSIX dpkg-query -l libc6
Desired=Unknown/Install/Remove/Purge/Hold
|
Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture
Description
+++-==============================-====================-====================-==================================================================
ii libc6:amd64 2.23-0ubuntu7 amd64
GNU C Library: Shared libraries
ii libc6:i386 2.23-0ubuntu7 i386
GNU C Library: Shared libraries

and

$ LANG=POSIX dpkg-query -l libc6-dev
Desired=Unknown/Install/Remove/Purge/Hold
|
Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture
Description
+++-==============================-====================-====================-==================================================================
ii libc6-dev:amd64 2.23-0ubuntu7 amd64
GNU C Library: Development Libraries and Header Files
ii libc6-dev:i386 2.23-0ubuntu7 i386
GNU C Library: Development Libraries and Header Files
***@w541:~/gits/lvm2$

Regards,
Oliver
Oliver Rath
2017-05-11 10:05:34 UTC
Permalink
Hi Marian,
[..]
Post by Marian Csontos
################################################################################
AC_CHECK_LIB(m, log10,
[M_LIBS="-lm"], hard_bailout)
This is because of missing log10 function from m library (wherever that
comes from) and has nothing to do with dbus. So enabling or disabling it
should have absolutely no effect.
Ok, that helps. I figured out, that libm is part of libc6, libc6-dev is
installed and has a include file called tgmath.h

$ grep -iR "define log10" /usr/include/
/usr/include/tgmath.h:# define log10(Val) __TGMATH_UNARY_REAL_IMAG (Val,
log10, __clog10)
/usr/include/tgmath.h:# define log10(Val) __TGMATH_UNARY_REAL_ONLY (Val,
log10)
[..]

So it seems all needed files are installed. But the message still remains.
Post by Marian Csontos
Were you configuring lvm2 on the same machine using the same environment?
Yes. At the moment. If you neede further information, just let me know!


Regards,
Oliver
Bryn M. Reeves
2017-05-11 10:12:57 UTC
Permalink
Post by Oliver Rath
Hi Marian,
[..]
Post by Marian Csontos
################################################################################
AC_CHECK_LIB(m, log10,
[M_LIBS="-lm"], hard_bailout)
This is because of missing log10 function from m library (wherever that
comes from) and has nothing to do with dbus. So enabling or disabling it
should have absolutely no effect.
Ok, that helps. I figured out, that libm is part of libc6, libc6-dev is
installed and has a include file called tgmath.h
$ grep -iR "define log10" /usr/include/
/usr/include/tgmath.h:# define log10(Val) __TGMATH_UNARY_REAL_IMAG (Val,
log10, __clog10)
/usr/include/tgmath.h:# define log10(Val) __TGMATH_UNARY_REAL_ONLY (Val,
log10)
[..]
That's a macro for complex log operations. You want the floating point
version from bits/math-finite.h (included by math.h).
Post by Oliver Rath
So it seems all needed files are installed. But the message still remains.
Try compiling the log10 test autoconf uses yourself. It should be something
simple like:

char log10();

int main(int argc, char **argv)
{
return log10();
}

Then compile it with -lm and note any errors (you may get a warning about
redefining a built-in but this is just to test that the symbol can be
found).

Regards,
Bryn.

Loading...