LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 08-06-2015, 10:01 AM   #1
freshbash
LQ Newbie
 
Registered: Aug 2015
Posts: 6

Rep: Reputation: Disabled
CLFS 3.0.0, Chapter 7.6. Shadow-4.2.1 compile error


Hey there,
I can't find any solution concerning a compile error (http://www.clfs.org/view/CLFS-3.0.0-...ot/shadow.html).

Book-Version: 3.0.0-SYSVINIT (CROSS lfs)
The host distribution: Debian Wheezy 7.8
The architecture of the host and target: Both x86_64
${CLFS_HOST}: x86_64-cross-linux-gnu
${CLFS_TARGET}: x86_64-unknown-linux-gnu
${BUILD64}: -m64
The package or section in which the problem was encountered: 7.6. (Book-Chapter), Shadow-4.2.1
Note whether you have deviated from the book at all: No, I haven't.
The exact error message or symptom received:

While compiling shadow-4.2.1 I get the following error:
Code:
libtool: link: x86_64-unknown-linux-gnu-gcc -m64 -g -O2 -o userdel userdel.o  ../libmisc/libmisc.a ../lib/.libs/libshadow.a
x86_64-unknown-linux-gnu-gcc -m64 -DHAVE_CONFIG_H -I. -I.. -I../lib -I../libmisc -DLOCALEDIR="/tools/share/locale"   -g -O2 -MT usermod.o -MD -MP -MF
.deps/usermod.Tpo -c -o usermod.o usermod.c
usermod.c: In function 'process_flags':
usermod.c:1364:10: error: 'vflg' undeclared (first use in this function)
  if (   (vflg || Vflg)
          ^
usermod.c:1364:10: note: each undeclared identifier is reported only once for each function it appears in
usermod.c:1364:18: error: 'Vflg' undeclared (first use in this function)
  if (   (vflg || Vflg)
                  ^
usermod.c:1365:10: error: 'is_sub_uid' undeclared (first use in this function)
      && !is_sub_uid) {
          ^
usermod.c:1372:10: error: 'wflg' undeclared (first use in this function)
  if (   (wflg || Wflg)
          ^
usermod.c:1372:18: error: 'Wflg' undeclared (first use in this function)
  if (   (wflg || Wflg)
                  ^
usermod.c:1373:10: error: 'is_sub_gid' undeclared (first use in this function)
      && !is_sub_gid) {
          ^
make[2]: *** [usermod.o] Error 1
make[2]: Leaving directory `/mnt/clfs/sources/shadow-4.2.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/mnt/clfs/sources/shadow-4.2.1'
make: *** [all] Error 2
I tried everything, but nothing helped. Also tried with shadow 4.1.4 with no success.

Can anybody help?
 
Old 08-07-2015, 04:55 AM   #2
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
can you post the output of the version.sh script
 
Old 08-07-2015, 06:34 AM   #3
freshbash
LQ Newbie
 
Registered: Aug 2015
Posts: 6

Original Poster
Rep: Reputation: Disabled
The problem is solved - it was a typo in the manual:
Instead of
echo "#define ENABLE_SUBUIDS 1" >> config.h
you need to type in:
echo "#define ENABLE_SUBIDS 1" >> config.h
 
Old 08-07-2015, 06:38 AM   #4
freshbash
LQ Newbie
 
Registered: Aug 2015
Posts: 6

Original Poster
Rep: Reputation: Disabled
[solved]

Solved
 
Old 08-07-2015, 08:14 AM   #5
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
Use the thread tools to mark this solved.
 
  


Reply



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
CLFS Chapter 7 Can't Login. :-( David2010 Linux From Scratch 6 05-24-2012 03:27 PM
[CLFS] E2fsprogs in chapter 7.5 - Can't find libblkid SkepticalMystic Linux From Scratch 1 10-01-2010 01:36 AM
gcc compile error in chapter 6.12 efus Linux From Scratch 4 03-12-2010 11:27 AM
CLFS Texinfo Compile Error fatsheep Linux From Scratch 1 10-21-2006 02:44 PM

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

All times are GMT -5. The time now is 09:34 PM.

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