#42: Compilation fails when no lex library is present
-------------------------+-------------------------------------------------
Reporter: vogtmark | Owner: pam-developers@…
Type: defect | Status: new
Priority: major | Component: library
Version: 1.2.x | Keywords: lex library yywrap undefined
Blocked By: | reference
| Blocking:
-------------------------+-------------------------------------------------
In case none of the supported lex libraries (-lfl -ll) is present on the
system, compilation fails. The error is:
{{{
pam_conv_l.c:(.text+0x9f7): undefined reference to `yywrap'.
}}}
During configure phase, there is no error. Configure just says:
{{{
checking lex library... none needed
}}}
After looking at the configure script it seems that configure tries
various libs to link against while trying to compile a program requiring a
lex library. If none succeeds, the default "none needed" is returned. This
does not make sense to me. An error should be returned instead if no lex
library is found, since it obviously is required.
--
Ticket URL: <
https://fedorahosted.org/linux-pam/ticket/42>
linux-pam <
http://fedorahosted.org/linux-pam>
The Linux-PAM (Pluggable Authentication Modules) project