On 06/08/15 13:14, [email protected] wrote:
Hello,I can't find any solution concerning a compile error. Searched the web, but haven't found anything, that's why I have to bother you. It would be great if you could me out with the following compile error: Book-Version: 3.0.0-SYSVINIT 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: 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 My last commands: 568 tar -xf kmod-18.tar.xz 569 cd kmod-18 570 cp -v libkmod/libkmod.c{,.orig} 571 sed '/dirname_default_prefix /s@/lib/modules@/tools&@' libkmod/libkmod.c.orig > libkmod/libkmod.c 572 ./configure --prefix=/tools --build=${CLFS_HOST} --host=${CLFS_TARGET} --with-xz --with-zlib 573 make 574 make install 575 ln -sfv kmod /tools/bin/lsmod 576 for tool in depmod insmod modprobe modinfo rmmod; do ln -sv ../bin/kmod /tools/sbin/${tool}; done 577 cd ../ 578 yes | rm -r kmod-18 579 ls -la kmod-18.tar.xz 580 tar -xf shadow-4.2.1.tar.xz 581 cd shadow-4.2.1 582 cp -v src/Makefile.in{,.orig} 583 sed -e 's/groups$(EXEEXT) //' -e 's/= nologin$(EXEEXT)/= /' -e 's/\(^suidu*bins = \).*/\1/' src/Makefile.in.orig > src/Makefile.in 584 cat > config.cache << "EOF" shadow_cv_passwd_dir=/tools/bin EOF 585 ./configure --prefix=/tools --build=${CLFS_HOST} --host=${CLFS_TARGET} --cache-file=config.cache --enable-subordinate-ids=no 586 echo "#define ENABLE_SUBUIDS 1" >> config.h 587 make Thanks. Best regards, Toni _______________________________________________ Clfs-support mailing list [email protected] http://lists.clfs.org/listinfo.cgi/clfs-support-clfs.org
I thinks it is a typo try echo #define ENABLE_SUBIDS 1" >> config.h regards Martin _______________________________________________ Clfs-support mailing list [email protected] http://lists.clfs.org/listinfo.cgi/clfs-support-clfs.org
