LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 10-16-2012, 02:25 PM   #1
Zimo
LQ Newbie
 
Registered: Sep 2012
Posts: 26

Rep: Reputation: Disabled
Util-Linux issue: login selected!


Here it is the output. Everything went fine, all dummy.c worked perfectly, and no problems until this.

Quote:
checking for syscall pivot_root... SYS_pivot_root
configure: error: login selected, but required PAM header file not available
Thanks for answers.
 
Old 10-17-2012, 01:33 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
There's not enough info to work with:

- Which LFS version are you trying to build,
- Are we talking about chapter 6.22 Util-linux-2.21.2,
- Did you have any problems in the previous chapters,
- Post the error and a few lines before it (re-read this chapter: 1.5 - Help
 
Old 10-17-2012, 04:30 AM   #3
Zimo
LQ Newbie
 
Registered: Sep 2012
Posts: 26

Original Poster
Rep: Reputation: Disabled
I'm really sorry, you're right. I am using LFS 7.2, chapter 6.22.1 Util-Linux 2.21.2, and no errors were found in the previous steps. Dummy.c and all the connected tests in the book went fine. The code last output lines are:

Quote:
checking for strnlen... yes
checking for strtoull... yes
checking for sysconf... yes
checking for updwtmp... yes
checking for usleep... yes
checking for warn... yes
checking for warnx... yes
checking for _LARGEFILE_SOURCE value needed for large files... no
checking for openat... yes
checking for fstatat... yes
checking for unlinkat... yes
checking for ioperm... yes
checking for iopl... yes
checking for struct sockaddr.sa_len... no
checking for library containing gethostbyname... none required
checking for library containing socket... none required
checking for dirfd... yes
checking whether program_invocation_short_name is defined... yes
checking whether __progname is defined... yes
checking whether the target supports thread-local storage... yes
checking scanf string alloc modifiers... (%ms) yes
checking for openpty in -lutil... yes
checking for tgetnum in -ltermcap... no
checking for union semun... no
checking for loff_t... yes
checking for cpu_set_t... yes
checking whether CPU_ALLOC is declared... yes
checking crypt.h usability... yes
checking crypt.h presence... yes
checking for crypt.h... yes
checking for udev_new in -ludev... no
checking ncurses.h usability... yes
checking ncurses.h presence... yes
checking for ncurses.h... yes
checking for initscr in -lncursesw... yes
checking ncursesw/ncurses.h usability... no
checking ncursesw/ncurses.h presence... no
checking for ncursesw/ncurses.h... no
checking ncurses/ncurses.h usability... no
checking ncurses/ncurses.h presence... no
checking for ncurses/ncurses.h... no
checking for tgetent in -ltinfo... no
checking for syscall fallocate... SYS_fallocate
checking for valid fallocate() function... yes
checking for syscall unshare... SYS_unshare
checking for unshare... yes
checking for crc32 in -lz... yes
checking for syscall prlimit64... SYS_prlimit64
checking for prlimit... yes
checking for syscall pivot_root... SYS_pivot_root
configure: error: login selected, but required PAM header file not available
Thanks and sorry.
 
Old 10-17-2012, 04:40 AM   #4
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
I do see something strange:
Quote:
configure: error: login selected, but required PAM header file not available
PAM isn't part of building LFS (it is part of BLFS) and building Util-Linux should not look for this file at this stage.

The info you posted does not help in finding the reason for this behaviour. Can you post the following information:
- The created config.log file
 
Old 10-17-2012, 04:55 AM   #5
Zimo
LQ Newbie
 
Registered: Sep 2012
Posts: 26

Original Poster
Rep: Reputation: Disabled
You can download the config.log as attachment of this post: it's too long to be posted here.
Attached Files
File Type: log 2.log (187.5 KB, 17 views)
 
Old 10-17-2012, 06:23 AM   #6
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Quote:
Originally Posted by Zimo View Post
You can download the config.log as attachment of this post: it's too long to be posted here.
First thing I noticed: Why are you building Util-linux 2.22 and not Util-linux-2.21.2 as mentioned in the LFS 7.2 book?

This also raises another question: Which other packages did you build that are not the version used in the LFS book?

My advise: Remove the newer version, get the appropriate Util-linux version and try again.
 
Old 10-17-2012, 09:20 AM   #7
Zimo
LQ Newbie
 
Registered: Sep 2012
Posts: 26

Original Poster
Rep: Reputation: Disabled
You're right. To be honest, I haven't notice the difference: I downloaded the packages from LFS repository and i thought they're perfect..not only this, use md5sum to check packages made no errors. I hope using the previous Util would be enough.. I'll tell you..

EDIT: take a look on that:
http://www.linuxfromscratch.org/lfs/...til-linux.html

here it is different from the book. And they're using 2.22 typing --disable-su,--disable-sulogin, --disable-login when they have to run ./configure .

EDIT2: It's a funny joke.

Last edited by Zimo; 10-17-2012 at 09:24 AM.
 
1 members found this post helpful.
Old 10-17-2012, 09:28 AM   #8
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Quote:
Originally Posted by Zimo View Post
EDIT: take a look on that:
http://www.linuxfromscratch.org/lfs/...til-linux.html

here it is different from the book. And they're using 2.22 typing --disable-su,--disable-sulogin, --disable-login when they have to run ./configure .
That URL points to the SVN version, which will be the follow-up to LFS 7.2 stable.

Do not mix and match these 2 versions.
 
Old 10-17-2012, 10:05 AM   #9
Zimo
LQ Newbie
 
Registered: Sep 2012
Posts: 26

Original Poster
Rep: Reputation: Disabled
Ok with the 2.21.2 version everything seems to be OK.
 
  


Reply

Tags
lfs, util-linux



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Are the programs in util-linux the same version as those in util-linux-ng? harryhaller Slackware - Installation 2 10-07-2011 09:43 AM
I need a script to Delete Selected BackupFiles and Restore selected backup file finalwar Linux - Newbie 3 07-20-2010 02:10 AM
Granting selected user access to selected network interface dexen Linux - Networking 2 10-04-2009 03:51 AM
Util-linux update. Can't login as anyone except root rconan Fedora 0 07-28-2005 03:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 05:39 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration