LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (http://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   Util-Linux issue: login selected! (http://www.linuxquestions.org/questions/linux-from-scratch-13/util-linux-issue-login-selected-4175432562/)

Zimo 10-16-2012 02:25 PM

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.

druuna 10-17-2012 01:33 AM

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

Zimo 10-17-2012 04:30 AM

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.

druuna 10-17-2012 04:40 AM

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

Zimo 10-17-2012 04:55 AM

1 Attachment(s)
You can download the config.log as attachment of this post: it's too long to be posted here.

druuna 10-17-2012 06:23 AM

Quote:

Originally Posted by Zimo (Post 4807993)
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.

Zimo 10-17-2012 09:20 AM

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.

druuna 10-17-2012 09:28 AM

Quote:

Originally Posted by Zimo (Post 4808170)
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.

Zimo 10-17-2012 10:05 AM

Ok with the 2.21.2 version everything seems to be OK.


All times are GMT -5. The time now is 12:52 AM.