Skip to contentSkip to conversation

lvm build failures without readline-devel installed?

linux-lvm Jim Meyering 1 participant 1 message Jul 25, 2008 5 messages not in the archive

lore
Share & tools
lore

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]

#5 lore raw

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)

http://10.11.231.162:8010/waterfall

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.