On March 25, 2017 17:03:33 "Michael D. L." <[email protected]> wrote:
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 TimHi 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.
Thanks for the hint, missed that line.
Also, you shouldn't deviate from the LFS build order - it'll only get you in trouble ;)
Don't worry, this is my 4th full build, I dare to claim that I generally know what I'm doing when I deviate. Building pam (and libtirpc) before shadow is quite a common deviation for people who want to use pam.
Cheers Tim
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
-- 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
