Intro  Base  More  Read  Use  Last 30  60  90  All Articles  RSS


Intro

Base

More

Read

Use

Last:
30


60

90

All
Days

Base: sysvinit-2.84   Print


Base Nav: first previous next last All Tab 2 spacerspacer
Source code is available here.

Run these commands:

cd /sources &&
tar -xjf sysvinit-2.84.tar.bz2 &&
cd sysvinit-2.84 &&
make -C src &&
make -C src install

The output should look something like this:

make: Entering directory `/sources/sysvinit-2.84/src'
cc -c -Wall -O2 -D_GNU_SOURCE init.c
In file included from init.c:63:
init.h:34: warning: conflicting types for built-in function
'log'
cc -c -Wall -O2 -D_GNU_SOURCE -DINIT_MAIN utmp.c -o
init_utmp.o
In file included from utmp.c:21:
init.h:34: warning: conflicting types for built-in function
'log'
cc -s  -o init init.o init_utmp.o
cc -Wall -O2 -D_GNU_SOURCE   -c -o halt.o halt.c
cc -Wall -O2 -D_GNU_SOURCE   -c -o ifdown.o ifdown.c
cc -Wall -O2 -D_GNU_SOURCE   -c -o hddown.o hddown.c
cc -c -Wall -O2 -D_GNU_SOURCE utmp.c
In file included from utmp.c:21:
init.h:34: warning: conflicting types for built-in function
'log'
cc -s -o halt halt.o ifdown.o hddown.o utmp.o
cc -Wall -O2 -D_GNU_SOURCE   -c -o dowall.o dowall.c
cc -Wall -O2 -D_GNU_SOURCE   -c -o shutdown.o shutdown.c
cc -s -o shutdown dowall.o shutdown.o utmp.o
cc -Wall -O2 -D_GNU_SOURCE  -s	killall5.c   -o killall5
cc -Wall -O2 -D_GNU_SOURCE   -c -o runlevel.o runlevel.c
cc -s -o runlevel runlevel.o
cc -Wall -O2 -D_GNU_SOURCE   -c -o sulogin.o sulogin.c
sulogin.c: In function `main':
sulogin.c:347: warning: 'p' might be used uninitialized in
this function
cc -s  -o sulogin sulogin.o -lcrypt
cc -Wall -O2 -D_GNU_SOURCE   -c -o utmpdump.o utmpdump.c
cc -s -o utmpdump utmpdump.o
cc -Wall -O2 -D_GNU_SOURCE   -c -o last.o last.c
cc -s -o last last.o
cc -Wall -O2 -D_GNU_SOURCE   -c -o mesg.o mesg.c
cc -s -o mesg mesg.o
cc -Wall -O2 -D_GNU_SOURCE   -c -o wall.o wall.c
cc -s -o wall dowall.o wall.o
make: Leaving directory `/sources/sysvinit-2.84/src'
make: Entering directory `/sources/sysvinit-2.84/src'
install -o root -g root -m 755 halt init killall5 sulogin \
		runlevel shutdown /sbin
# These are not installed by default
install -o root -g root -m 555 utmpdump wall /usr/bin
# install -o root -g root -m 755 etc/initscript.sample /etc
install -o root -g root -m 755 mesg last /usr/bin
cd /sbin; ln -sf halt reboot; chown root.root reboot
cd /sbin; ln -sf halt poweroff; chown root.root poweroff
cd /sbin; ln -sf init telinit; chown root.root telinit
cd /bin; ln -sf ../sbin/killall5 pidof; chown root.root
pidof
cd /usr/bin; ln -sf last lastb; chown root.root lastb
install -o root -g root -m 644 initreq.h /usr/include
install -o root -g root -m 644 ../man/*.8
/usr/share/man/man8
install -o root -g root -m 644 ../man/*.5
/usr/share/man/man5
install -o root -g root -m 644 ../man/wall.1
/usr/share/man/man1
.
.
.
init.h:34: warning: conflicting types for built-in function
'log'
cc -s  -o init init.o init_utmp.o
cc -Wall -O2 -D_GNU_SOURCE   -c -o halt.o halt.c
cc -Wall -O2 -D_GNU_SOURCE   -c -o ifdown.o ifdown.c
cc -Wall -O2 -D_GNU_SOURCE   -c -o hddown.o hddown.c
cc -c -Wall -O2 -D_GNU_SOURCE utmp.c
In file included from utmp.c:21:
init.h:34: warning: conflicting types for built-in function
'log'
cc -s -o halt halt.o ifdown.o hddown.o utmp.o
cc -Wall -O2 -D_GNU_SOURCE   -c -o dowall.o dowall.c
cc -Wall -O2 -D_GNU_SOURCE   -c -o shutdown.o shutdown.c
cc -s -o shutdown dowall.o shutdown.o utmp.o
cc -Wall -O2 -D_GNU_SOURCE  -s	killall5.c   -o killall5
cc -Wall -O2 -D_GNU_SOURCE   -c -o runlevel.o runlevel.c
cc -s -o runlevel runlevel.o
cc -Wall -O2 -D_GNU_SOURCE   -c -o sulogin.o sulogin.c
sulogin.c: In function `main':
sulogin.c:347: warning: 'p' might be used uninitialized in
this function
cc -s  -o sulogin sulogin.o -lcrypt
cc -Wall -O2 -D_GNU_SOURCE   -c -o utmpdump.o utmpdump.c
cc -s -o utmpdump utmpdump.o
cc -Wall -O2 -D_GNU_SOURCE   -c -o last.o last.c
cc -s -o last last.o
cc -Wall -O2 -D_GNU_SOURCE   -c -o mesg.o mesg.c
cc -s -o mesg mesg.o
cc -Wall -O2 -D_GNU_SOURCE   -c -o wall.o wall.c
cc -s -o wall dowall.o wall.o
make: Leaving directory `/sources/sysvinit-2.84/src'
make: Entering directory `/sources/sysvinit-2.84/src'
install -o root -g root -m 755 halt init killall5 sulogin \
		runlevel shutdown /sbin
# These are not installed by default
install -o root -g root -m 555 utmpdump wall /usr/bin
# install -o root -g root -m 755 etc/initscript.sample /etc
install -o root -g root -m 755 mesg last /usr/bin
cd /sbin; ln -sf halt reboot; chown root.root reboot
cd /sbin; ln -sf halt poweroff; chown root.root poweroff
cd /sbin; ln -sf init telinit; chown root.root telinit
cd /bin; ln -sf ../sbin/killall5 pidof; chown root.root
pidof
cd /usr/bin; ln -sf last lastb; chown root.root lastb
install -o root -g root -m 644 initreq.h /usr/include
install -o root -g root -m 644 ../man/*.8
/usr/share/man/man8
install -o root -g root -m 644 ../man/*.5
/usr/share/man/man5
install -o root -g root -m 644 ../man/wall.1
/usr/share/man/man1
install -o root -g root -m 644 ../man/last.1 ../man/lastb.1
../man/mesg.1 \
		/usr/share/man/man1
#
# This part is skipped on debian systems, the
# debian.preinst script takes care of it.
make: Leaving directory `/sources/sysvinit-2.84/src'


~~~
Please read our Terms of Use and our Privacy Policy
A tip o' the hat to the folks at Linux From Scratch, who provided a lot of the know-how and framing for the NoNIC OS.

Copyright 2006-2009 NoNIC.org

Created by:
MCJ
MCJ CMS