LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 07-20-2009, 01:20 AM   #1
LUB997
Member
 
Registered: Jul 2003
Distribution: openSUSE Linux, Apple Darwin UNIX
Posts: 66

Rep: Reputation: 15
Installation of Sysvinit-2.86 fails on Cross Linux From Scratch


I have been working on building the Cross-Compiled version of Linux from Scratch (CLFX) found at:

http://cross-lfs.org/view/svn/x86/

I have been able to successfully follow all of the instructions up until the section "7.6.1. Installation of Sysvinit" found at:

http://cross-lfs.org/view/svn/x86/boot/sysvinit.html

I have followed the directions exactly. The directions say to issue the following commands:

cp -v src/Makefile src/Makefile.orig
sed -e 's@root@0@g' \
-e "s@/dev/initctl@${CLFS}&@g" \
-e 's@\(mknod \)-m \([0-9]* \)\(.* \)p@\1\3p; chmod \2\3@g' \
-e "s@/usr/lib@/tools/lib@" \
src/Makefile.orig > src/Makefile

make -C src clobber
make -C src CC="${CC}"

make -C src install INSTALL=install ROOT=${CLFS}


I am issuing the commands exactly as the directions say to, and have had no problems getting anything else to build, so I think I have done a good job of following all of the directions up to this point since I haven't encountered problems with any other packages, but this package will not build. Here is the output that I get when I try it:

clfs@ubuntu:/mnt/clfs/sources$ tar -xzvf sysvinit-2.86.tar.gz
sysvinit-2.86/
sysvinit-2.86/README
sysvinit-2.86/contrib/
sysvinit-2.86/contrib/start-stop-daemon.README
sysvinit-2.86/contrib/start-stop-daemon.c
sysvinit-2.86/contrib/TODO
sysvinit-2.86/contrib/alexander.viro
sysvinit-2.86/contrib/zefram-patches
sysvinit-2.86/doc/
sysvinit-2.86/doc/Propaganda
sysvinit-2.86/doc/Install
sysvinit-2.86/doc/bootlogd.README
sysvinit-2.86/doc/Changelog
sysvinit-2.86/doc/sysvinit-2.85.lsm
sysvinit-2.86/doc/sysvinit-2.86.lsm
sysvinit-2.86/man/
sysvinit-2.86/man/halt.8
sysvinit-2.86/man/init.8
sysvinit-2.86/man/initscript.5
sysvinit-2.86/man/inittab.5
sysvinit-2.86/man/killall5.8
sysvinit-2.86/man/last.1
sysvinit-2.86/man/lastb.1
sysvinit-2.86/man/mesg.1
sysvinit-2.86/man/pidof.8
sysvinit-2.86/man/reboot.8
sysvinit-2.86/man/runlevel.8
sysvinit-2.86/man/shutdown.8
sysvinit-2.86/man/sulogin.8
sysvinit-2.86/man/telinit.8
sysvinit-2.86/man/wall.1
sysvinit-2.86/man/poweroff.8
sysvinit-2.86/man/bootlogd.8.todo
sysvinit-2.86/man/bootlogd.8
sysvinit-2.86/man/mountpoint.1
sysvinit-2.86/obsolete/
sysvinit-2.86/obsolete/powerd.README
sysvinit-2.86/obsolete/powerd.c
sysvinit-2.86/obsolete/powerd.cfg
sysvinit-2.86/obsolete/powerd.8
sysvinit-2.86/obsolete/README.RIGHT.NOW
sysvinit-2.86/obsolete/utmpdump.c.OLD
sysvinit-2.86/obsolete/bootlogd.init
sysvinit-2.86/src/
sysvinit-2.86/src/init.c
sysvinit-2.86/src/initreq.h
sysvinit-2.86/src/paths.h
sysvinit-2.86/src/Makefile
sysvinit-2.86/src/dowall.c
sysvinit-2.86/src/halt.c
sysvinit-2.86/src/initscript.sample
sysvinit-2.86/src/killall5.c
sysvinit-2.86/src/utmp.c
sysvinit-2.86/src/mesg.c
sysvinit-2.86/src/reboot.h
sysvinit-2.86/src/runlevel.c
sysvinit-2.86/src/shutdown.c
sysvinit-2.86/src/sulogin.c
sysvinit-2.86/src/utmpdump.c
sysvinit-2.86/src/wall.c
sysvinit-2.86/src/ifdown.c
sysvinit-2.86/src/set.h
sysvinit-2.86/src/init.h
sysvinit-2.86/src/last.c
sysvinit-2.86/src/oldutmp.h
sysvinit-2.86/src/bootlogd.c
sysvinit-2.86/src/hddown.c
sysvinit-2.86/src/mountpoint.c
sysvinit-2.86/COPYRIGHT
sysvinit-2.86/build
clfs@ubuntu:/mnt/clfs/sources$ cd sysvinit-2.86
clfs@ubuntu:/mnt/clfs/sources/sysvinit-2.86$ cp -v src/Makefile src/Makefile.orig
`src/Makefile' -> `src/Makefile.orig'
clfs@ubuntu:/mnt/clfs/sources/sysvinit-2.86$ sed -e 's@root@0@g' \
> -e "s@/dev/initctl@${CLFS}&@g" \
> -e 's@\(mknod \)-m \([0-9]* \)\(.* \)p@\1\3p; chmod \2\3@g' \
> -e "s@/usr/lib@/tools/lib@" \
> src/Makefile.orig > src/Makefile
clfs@ubuntu:/mnt/clfs/sources/sysvinit-2.86$ make -C src clobber
make: Entering directory `/mnt/clfs/sources/sysvinit-2.86/src'
rm -f *.o *.bak
rm -f mountpoint init halt shutdown runlevel killall5 sulogin bootlogd last mesg utmpdump wall
make: Leaving directory `/mnt/clfs/sources/sysvinit-2.86/src'
clfs@ubuntu:/mnt/clfs/sources/sysvinit-2.86$ make -C src CC="${CC}"
make: Entering directory `/mnt/clfs/sources/sysvinit-2.86/src'
Wall -O2 -fomit-frame-pointer -D_GNU_SOURCE -c -o mountpoint.o mountpoint.c
make: Wall: Command not found
make: [mountpoint.o] Error 127 (ignored)
s -o mountpoint mountpoint.o
make: s: Command not found
make: [mountpoint] Error 127 (ignored)
c -Wall -O2 -fomit-frame-pointer -D_GNU_SOURCE init.c
make: c: Command not found
make: [init.o] Error 127 (ignored)
c -Wall -O2 -fomit-frame-pointer -D_GNU_SOURCE -DINIT_MAIN utmp.c -o init_utmp.o
make: c: Command not found
make: [init_utmp.o] Error 127 (ignored)
s -o init init.o init_utmp.o
make: s: Command not found
make: [init] Error 127 (ignored)
Wall -O2 -fomit-frame-pointer -D_GNU_SOURCE -c -o halt.o halt.c
make: Wall: Command not found
make: [halt.o] Error 127 (ignored)
Wall -O2 -fomit-frame-pointer -D_GNU_SOURCE -c -o ifdown.o ifdown.c
make: Wall: Command not found
make: [ifdown.o] Error 127 (ignored)
Wall -O2 -fomit-frame-pointer -D_GNU_SOURCE -c -o hddown.o hddown.c
make: Wall: Command not found
make: [hddown.o] Error 127 (ignored)
c -Wall -O2 -fomit-frame-pointer -D_GNU_SOURCE utmp.c
make: c: Command not found
make: [utmp.o] Error 127 (ignored)
s -o halt halt.o ifdown.o hddown.o utmp.o
make: s: Command not found
make: [halt] Error 127 (ignored)
Wall -O2 -fomit-frame-pointer -D_GNU_SOURCE -c -o dowall.o dowall.c
make: Wall: Command not found
make: [dowall.o] Error 127 (ignored)
Wall -O2 -fomit-frame-pointer -D_GNU_SOURCE -c -o shutdown.o shutdown.c
make: Wall: Command not found
make: [shutdown.o] Error 127 (ignored)
s -o shutdown dowall.o shutdown.o utmp.o
make: s: Command not found
make: [shutdown] Error 127 (ignored)
Wall -O2 -fomit-frame-pointer -D_GNU_SOURCE -c -o runlevel.o runlevel.c
make: Wall: Command not found
make: [runlevel.o] Error 127 (ignored)
s -o runlevel runlevel.o
make: s: Command not found
make: [runlevel] Error 127 (ignored)
Wall -O2 -fomit-frame-pointer -D_GNU_SOURCE -s killall5.c -o killall5
make: Wall: Command not found
make: [killall5] Error 127 (ignored)
Wall -O2 -fomit-frame-pointer -D_GNU_SOURCE -c -o sulogin.o sulogin.c
make: Wall: Command not found
make: [sulogin.o] Error 127 (ignored)
s -o sulogin sulogin.o -lcrypt
make: s: Command not found
make: [sulogin] Error 127 (ignored)
Wall -O2 -fomit-frame-pointer -D_GNU_SOURCE -c -o bootlogd.o bootlogd.c
make: Wall: Command not found
make: [bootlogd.o] Error 127 (ignored)
s -o bootlogd bootlogd.o -lutil
make: s: Command not found
make: [bootlogd] Error 127 (ignored)
Wall -O2 -fomit-frame-pointer -D_GNU_SOURCE -c -o last.o last.c
make: Wall: Command not found
make: [last.o] Error 127 (ignored)
s -o last last.o
make: s: Command not found
make: [last] Error 127 (ignored)
Wall -O2 -fomit-frame-pointer -D_GNU_SOURCE -c -o mesg.o mesg.c
make: Wall: Command not found
make: [mesg.o] Error 127 (ignored)
s -o mesg mesg.o
make: s: Command not found
make: [mesg] Error 127 (ignored)
Wall -O2 -fomit-frame-pointer -D_GNU_SOURCE -c -o utmpdump.o utmpdump.c
make: Wall: Command not found
make: [utmpdump.o] Error 127 (ignored)
s -o utmpdump utmpdump.o
make: s: Command not found
make: [utmpdump] Error 127 (ignored)
Wall -O2 -fomit-frame-pointer -D_GNU_SOURCE -c -o wall.o wall.c
make: Wall: Command not found
make: [wall.o] Error 127 (ignored)
s -o wall dowall.o wall.o
make: s: Command not found
make: [wall] Error 127 (ignored)
make: Leaving directory `/mnt/clfs/sources/sysvinit-2.86/src'
clfs@ubuntu:/mnt/clfs/sources/sysvinit-2.86$
clfs@ubuntu:/mnt/clfs/sources/sysvinit-2.86$ make -C src install INSTALL=install ROOT=${CLFS}
make: Entering directory `/mnt/clfs/sources/sysvinit-2.86/src'
for i in mountpoint; do \
install -m 755 $i /mnt/clfs/bin/; \
done
install: cannot stat `mountpoint': No such file or directory
make: *** [install] Error 1
make: Leaving directory `/mnt/clfs/sources/sysvinit-2.86/src'
clfs@ubuntu:/mnt/clfs/sources/sysvinit-2.86$

Does anyone know what is going wrong and what I need to do to get it to build the way it is supposed to?

I am building everything on an Ubuntu 9.6 Live CD running inside of a virtual machine that I set up in VirtualBox on a Windows Vista Ultimate 64-bit operating system installed on a laptop with a Turion64 X2 processor. Since the virtual machine is set up as a 32-bit machine, I am building a 32-bit version of CLFS on the Live Ubuntu CD which is also of course 32-bit since it is running in the virtual machine that I am building CLFS for. Any and all help or suggestions appreciated.
 
Old 07-20-2009, 01:25 AM   #2
LUB997
Member
 
Registered: Jul 2003
Distribution: openSUSE Linux, Apple Darwin UNIX
Posts: 66

Original Poster
Rep: Reputation: 15
Correction: It is an Ubuntu 9.06 Live CD, not Ubuntu 9.6
 
  


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
Cross Linux From Scratch 5.7: Problems Making binutils-2.18 Yaro Linux From Scratch 3 11-12-2008 03:00 AM
thinking about cross linux from scratch... am i ready tommytomthms5 Linux - Newbie 4 12-24-2007 12:12 PM
Cross-compiling Slackware from scratch intens Slackware 7 01-15-2007 02:26 AM
LXer: Distribution Release: Cross Linux From Scratch 1.0.0 LXer Syndicated Linux News 0 09-27-2006 03:21 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:01 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