On 03/25/2017 04:01 PM, Tim Tassonis wrote:
Hi again
On my full lfs 8.0 rebuild, I have built shadow 4.4 as specified on
the lfs page, however I did it the "blfs way" of first installing pam.
When building shadow, I got the following error:
su.c:376:3: error: too few arguments to function 'snprintf'
snprintf (kill_msg, _(" ...killed.\n"));
^~~~~~~~
In blfs, there is following sed to prevent this:
sed -i -e '/snprintf/s@_msg,@_msg, 256,@' src/su.c &&
Is this error only happening due to pam being used or should this sed
be included in the plain lfs instructions of shadow as well?
Cheers
Tim
Hi Tim,
If you look at the "Command Explanations" section of the Shadow-4.4
page, you'll see:
*sed -i -e '/snprintf/s@_msg,@_msg, 256,@' src/su.c*: Fix a build error
that only occurs if Linux-PAM-1.3.0
<http://www.linuxfromscratch.org/blfs/view/stable/postlfs/linux-pam.html>
is detected by *configure*.
So it's only if PAM is installed that the sed command required.
Also, you shouldn't deviate from the LFS build order - it'll only get
you in trouble ;)
Best regards
Michael
--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page
Do not top post on this list.
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?
http://en.wikipedia.org/wiki/Posting_style