lvm build failures without readline-devel installed?
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
Dave Wysochanski <[email protected]> wrote:
...
Quoted 5 lines
I'm seeing build failures now with readline-devel _not_ installed and a configure line with the readline options absent (only "--enable-debug" and "--with-dmdir" options)
Thanks, Dave!
These are the relevant warnings:
lvm.c:135: warning: implicit declaration of function 'completion_matches' lvm.c:135: warning: nested extern declaration of 'completion_matches' lvm.c:135: warning: assignment makes pointer from integer without a cast lvm.c:138: warning: assignment makes pointer from integer without a cast
In my recent change, I made the mistake of specifying the previously unspecified ACTION_IF_FOUND parameter to AC_CHECK_LIB. That overrode the default action (which would prepend -lreadline to LIBS), so the subsequent check for rl_completion_matches would fail. Then, the work-around C code would redefine it to "completion_matches", which would not be declared, resulting in the warnings above.
The following patch also replaces AC_CHECK_FUNC+AC_DEFINE with an equivalent AC_CHECK_FUNCS call.
I confirmed that this works on a RHEL5 system
with readline-devel not installed.