Hi,Just to clarify this a bit, I only get a problem when cross-compiling. If I buildnatively then there is no problem. I did a comparison between the native Makefileand the Makefile for cross-compilation and spotted that the flag for the flexlibrary was missing from the cross-compilation Makefile.Regards,James Allwright
From: Diego Elio Pettenò <flameeyes@flameeyes.eu>
To: James Allwright <jamesallwright@yahoo.co.uk>; pam-developers@lists.fedorahosted.org
Sent: Monday, 10 June 2013, 10:51
Subject: Re: [Pam-developers] Linux-PAM-1.1.6 : Undocumented dependency on flex when cross-compiling
It issue a warning that it's hard to notice it. I'm pretty sure we had a thread on this topic recently.
On Mon, Jun 10, 2013 at 9:59 AM, Dmitry V. Levin <ldv@altlinux.org> wrote:Hi,
On Mon, Jun 10, 2013 at 09:39:30AM +0100, James Allwright wrote:
> Hi,
>
> I hope that at least one of you maintains Linux-PAM and that I am sending this
> to the right place.
The right place is the mailing list, but, unfortunately, there are no hints
in the source code about that.
> I have discovered a problem with Linux-PAM-1.1.6 that does not seem to be
> documented and which I presume is not generally known. I am trying to
> cross-compile PAM-Linux (for powerpc in my case). The software configures
> OK, but then when I try to compile it, I get the compilation error below.
> On investigating this, the problem seems to be that I need a flex library
> compiled for powerpc. I was able to solve the problem by getting suitable
> flex libraries compiled for powerpc and setting LDFLAGS to point to them.
>
> It took me some time to work this out. I suggest it would be helpful if
> configure checked for the presence of a suitable library and issued a
> warning message.
> Regards,
configure.in uses AM_PROG_LEX macro, I suppose it issues a warning
on systems that have no lex.
--
ldv
_______________________________________________
Pam-developers mailing list
Pam-developers@lists.fedorahosted.org
https://lists.fedorahosted.org/mailman/listinfo/pam-developers