Skip to contentSkip to conversation

make quickinstall redhat9 problem

DISCUSSION Stephen Reese 5 participants 8 messages Jul 22, 2003 – Jul 23, 2003 SELinux security module

lore
Share & tools
lore
#0 lore raw

make[1]: Entering directory /home/installs/selinux/tools' make[2]: Entering directory /home/installs/selinux/tools/setools' cd apol; make install
make[3]: Entering directory `/home/installs/selinux/tools/setools/apol' gcc -Wall -g -I/usr/include -DUSE_SORTING -c apol_gui.c apol_gui.c:14:17: tcl.h: No such file or directory apol_gui.c:15:16: tk.h: No such file or directory
In file included from apol_gui.c:16:
../libapol/apol_tcl.h:14:16: tcl.h: No such file or directory ../libapol/apol_tcl.h:15:15: tk.h: No such file or directory In file included from apol_gui.c:16:
../libapol/apol_tcl.h:22: parse error before '*' token ../libapol/apol_tcl.h:28: parse error before "clientData" ../libapol/apol_tcl.h:29: parse error before "clientData" ../libapol/apol_tcl.h:30: parse error before "clientData" ../libapol/apol_tcl.h:31: parse error before "clientData" ../libapol/apol_tcl.h:32: parse error before "clientData" ../libapol/apol_tcl.h:33: parse error before "clientData" ../libapol/apol_tcl.h:34: parse error before "clientData" ../libapol/apol_tcl.h:35: parse error before "clientData" ../libapol/apol_tcl.h:36: parse error before "clientData" ../libapol/apol_tcl.h:37: parse error before "clientData" ../libapol/apol_tcl.h:38: parse error before "clientData" ../libapol/apol_tcl.h:39: parse error before "clientData" ../libapol/apol_tcl.h:40: parse error before "clientData" ../libapol/apol_tcl.h:41: parse error before "clientData" ../libapol/apol_tcl.h:42: parse error before "clientData" ../libapol/apol_tcl.h:43: parse error before "clientData" apol_gui.c:22: parse error before '*' token
apol_gui.c: In function `Tcl_AppInit':
apol_gui.c:26: warning: implicit declaration of function Tcl_Init' apol_gui.c:26: interp' undeclared (first use in this function) apol_gui.c:26: (Each undeclared identifier is reported only once apol_gui.c:26: for each function it appears in.) apol_gui.c:26: TCL_ERROR' undeclared (first use in this function) apol_gui.c:29: warning: implicit declaration of function Tk_Init' apol_gui.c:40: TCL_OK' undeclared (first use in this function) apol_gui.c:42: warning: implicit declaration of function Tcl_DeleteInterp'
apol_gui.c:43: warning: implicit declaration of function Tcl_Exit' apol_gui.c:52: warning: implicit declaration of function Tcl_EvalFile' apol_gui.c: In function `main':
apol_gui.c:93: Tcl_Interp' undeclared (first use in this function) apol_gui.c:93: interp' undeclared (first use in this function) apol_gui.c:110: warning: implicit declaration of function `Tcl_CreateInterp'
apol_gui.c:111: warning: implicit declaration of function `Tk_MainEx' make[3]: *** [apol_gui.o] Error 1
make[3]: Leaving directory `/home/installs/selinux/tools/setools/apol' make[2]: *** [install-apol] Error 2
make[2]: Leaving directory `/home/installs/selinux/tools/setools' make[1]: *** [install] Error 2
make[1]: Leaving directory `/home/installs/selinux/tools'
make: *** [quickinstall] Error 2

I really am not sure what caused it to error?

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.

#1 lore raw
Quoted 7 lines · Stephen Reese

make[1]: Entering directory /home/installs/selinux/tools' make[2]: Entering directory /home/installs/selinux/tools/setools' cd apol; make install
make[3]: Entering directory `/home/installs/selinux/tools/setools/apol' gcc -Wall -g -I/usr/include -DUSE_SORTING -c apol_gui.c apol_gui.c:14:17: tcl.h: No such file or directory apol_gui.c:15:16: tk.h: No such file or directory

[snip]

SETools requires the TCL and TK libraries to be installed. You can either install TCL & TK packages or just build without these tools. SELinux will install just fine without the tools, just comment out the line which builds and installs the tools from the top-level Makefile:

# @echo "Building and installing SELinux tools"

  # cd tools && make install

Kerry

Signature · 10 lines
Kerry Thompson, CCNA CISSP
Information Systems Security Consultant
http://www.crypt.gen.nz  [email protected]



--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.
#2 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 9 lines · Kerry Thompson
Quoted 7 lines · Stephen Reese

make[1]: Entering directory /home/installs/selinux/tools' make[2]: Entering directory /home/installs/selinux/tools/setools' cd apol; make install
make[3]: Entering directory `/home/installs/selinux/tools/setools/apol' gcc -Wall -g -I/usr/include -DUSE_SORTING -c apol_gui.c apol_gui.c:14:17: tcl.h: No such file or directory apol_gui.c:15:16: tk.h: No such file or directory

Quoted 4 lines

[snip]

SETools requires the TCL and TK libraries to be installed. You can either install TCL & TK packages or just build without these tools. SELinux will

Oops, I decided to read the message from the bottom up, and stopped reading before I go to here. Just shows how trying to debug in a hurry is not a good idea :-).

Quoted 5 lines

install just fine without the tools, just comment out the line which builds and installs the tools from the top-level Makefile:

# @echo "Building and installing SELinux tools"

  # cd tools && make install

Good advice.
- --
Sincerely,
Lamont R. Peterson <[email protected]>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE/HKlsg5LkF3+ZgzARAnfUAJ0Yv6cwXBGAkk8VDzJf/YeFppr9JQCfY7Qa JsKDAoYrm/H0vzqRKYdHXrI=
=xWYK
-----END PGP SIGNATURE-----

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.

#3 lore raw
In reply to Stephen Reese

I couldn't get this to compile either.

Using slackware 9 with tcl/* packages installed.

Haven't taken much time to look into it though.

P

Quoted 55 lines · Stephen Reese

make[1]: Entering directory /home/installs/selinux/tools' make[2]: Entering directory /home/installs/selinux/tools/setools' cd apol; make install
make[3]: Entering directory `/home/installs/selinux/tools/setools/apol' gcc -Wall -g -I/usr/include -DUSE_SORTING -c apol_gui.c apol_gui.c:14:17: tcl.h: No such file or directory apol_gui.c:15:16: tk.h: No such file or directory
In file included from apol_gui.c:16:
../libapol/apol_tcl.h:14:16: tcl.h: No such file or directory ../libapol/apol_tcl.h:15:15: tk.h: No such file or directory In file included from apol_gui.c:16:
../libapol/apol_tcl.h:22: parse error before '*' token ../libapol/apol_tcl.h:28: parse error before "clientData" ../libapol/apol_tcl.h:29: parse error before "clientData" ../libapol/apol_tcl.h:30: parse error before "clientData" ../libapol/apol_tcl.h:31: parse error before "clientData" ../libapol/apol_tcl.h:32: parse error before "clientData" ../libapol/apol_tcl.h:33: parse error before "clientData" ../libapol/apol_tcl.h:34: parse error before "clientData" ../libapol/apol_tcl.h:35: parse error before "clientData" ../libapol/apol_tcl.h:36: parse error before "clientData" ../libapol/apol_tcl.h:37: parse error before "clientData" ../libapol/apol_tcl.h:38: parse error before "clientData" ../libapol/apol_tcl.h:39: parse error before "clientData" ../libapol/apol_tcl.h:40: parse error before "clientData" ../libapol/apol_tcl.h:41: parse error before "clientData" ../libapol/apol_tcl.h:42: parse error before "clientData" ../libapol/apol_tcl.h:43: parse error before "clientData" apol_gui.c:22: parse error before '*' token
apol_gui.c: In function `Tcl_AppInit':
apol_gui.c:26: warning: implicit declaration of function Tcl_Init' apol_gui.c:26: interp' undeclared (first use in this function) apol_gui.c:26: (Each undeclared identifier is reported only once apol_gui.c:26: for each function it appears in.) apol_gui.c:26: TCL_ERROR' undeclared (first use in this function) apol_gui.c:29: warning: implicit declaration of function Tk_Init' apol_gui.c:40: TCL_OK' undeclared (first use in this function) apol_gui.c:42: warning: implicit declaration of function Tcl_DeleteInterp'
apol_gui.c:43: warning: implicit declaration of function Tcl_Exit' apol_gui.c:52: warning: implicit declaration of function Tcl_EvalFile' apol_gui.c: In function `main':
apol_gui.c:93: Tcl_Interp' undeclared (first use in this function) apol_gui.c:93: interp' undeclared (first use in this function) apol_gui.c:110: warning: implicit declaration of function `Tcl_CreateInterp'
apol_gui.c:111: warning: implicit declaration of function `Tk_MainEx' make[3]: *** [apol_gui.o] Error 1
make[3]: Leaving directory `/home/installs/selinux/tools/setools/apol' make[2]: *** [install-apol] Error 2
make[2]: Leaving directory `/home/installs/selinux/tools/setools' make[1]: *** [install] Error 2
make[1]: Leaving directory `/home/installs/selinux/tools'
make: *** [quickinstall] Error 2

Quoted 7 lines

I really am not sure what caused it to error?

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.

Pipes
Rapturesecurity.com

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.

#4 lore raw

installing tk and tcl was the trick thanks for the help now I get to figure out where I went wrong with the kernel complile =)

VFS: cannot open root device "Label=/"

but thanks for the other heads up everyone and getting me through the install

-----Original Message-----
From: pipes [mailto:[email protected]]
Sent: Monday, July 21, 2003 10:07 PM
To: Stephen Reese
Cc: [email protected]
Subject: Re: make quickinstall redhat9 problem

I couldn't get this to compile either.

Using slackware 9 with tcl/* packages installed.

Haven't taken much time to look into it though.

P

Quoted 34 lines · Stephen Reese

make[1]: Entering directory /home/installs/selinux/tools' make[2]: Entering directory /home/installs/selinux/tools/setools' cd apol; make install
make[3]: Entering directory `/home/installs/selinux/tools/setools/apol'
gcc -Wall -g -I/usr/include -DUSE_SORTING -c apol_gui.c apol_gui.c:14:17: tcl.h: No such file or directory apol_gui.c:15:16: tk.h: No such file or directory
In file included from apol_gui.c:16:
../libapol/apol_tcl.h:14:16: tcl.h: No such file or directory ../libapol/apol_tcl.h:15:15: tk.h: No such file or directory In file included from apol_gui.c:16:
../libapol/apol_tcl.h:22: parse error before '*' token ../libapol/apol_tcl.h:28: parse error before "clientData" ../libapol/apol_tcl.h:29: parse error before "clientData" ../libapol/apol_tcl.h:30: parse error before "clientData" ../libapol/apol_tcl.h:31: parse error before "clientData" ../libapol/apol_tcl.h:32: parse error before "clientData" ../libapol/apol_tcl.h:33: parse error before "clientData" ../libapol/apol_tcl.h:34: parse error before "clientData" ../libapol/apol_tcl.h:35: parse error before "clientData" ../libapol/apol_tcl.h:36: parse error before "clientData" ../libapol/apol_tcl.h:37: parse error before "clientData" ../libapol/apol_tcl.h:38: parse error before "clientData" ../libapol/apol_tcl.h:39: parse error before "clientData" ../libapol/apol_tcl.h:40: parse error before "clientData" ../libapol/apol_tcl.h:41: parse error before "clientData" ../libapol/apol_tcl.h:42: parse error before "clientData" ../libapol/apol_tcl.h:43: parse error before "clientData" apol_gui.c:22: parse error before '*' token
apol_gui.c: In function `Tcl_AppInit':
apol_gui.c:26: warning: implicit declaration of function Tcl_Init' apol_gui.c:26: interp' undeclared (first use in this function) apol_gui.c:26: (Each undeclared identifier is reported only once

Quoted 8 lines

apol_gui.c:26: for each function it appears in.) apol_gui.c:26: TCL_ERROR' undeclared (first use in this function) apol_gui.c:29: warning: implicit declaration of function Tk_Init' apol_gui.c:40: TCL_OK' undeclared (first use in this function) apol_gui.c:42: warning: implicit declaration of function Tcl_DeleteInterp'
apol_gui.c:43: warning: implicit declaration of function `Tcl_Exit' apol_gui.c:52: warning: implicit declaration of function

`Tcl_EvalFile'

Quoted 14 lines

apol_gui.c: In function `main':
apol_gui.c:93: Tcl_Interp' undeclared (first use in this function) apol_gui.c:93: interp' undeclared (first use in this function) apol_gui.c:110: warning: implicit declaration of function `Tcl_CreateInterp'
apol_gui.c:111: warning: implicit declaration of function `Tk_MainEx' make[3]: *** [apol_gui.o] Error 1
make[3]: Leaving directory `/home/installs/selinux/tools/setools/apol' make[2]: *** [install-apol] Error 2
make[2]: Leaving directory `/home/installs/selinux/tools/setools' make[1]: *** [install] Error 2
make[1]: Leaving directory `/home/installs/selinux/tools'
make: *** [quickinstall] Error 2

Quoted 8 lines

I really am not sure what caused it to error?

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.

Pipes
Rapturesecurity.com

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.

#5 lore raw
Quoted 4 lines · Stephen Reese

installing tk and tcl was the trick thanks for the help now I get to figure out where I went wrong with the kernel complile =)

VFS: cannot open root device "Label=/"

Change your bootloader ( /boot/grub/grub.conf for GRUB ) to use root=/dev/hda1 or wherever your root is rather than using Label=/

Kerry

Signature · 10 lines
Kerry Thompson, CCNA CISSP
Information Systems Security Consultant
http://www.crypt.gen.nz  [email protected]



--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.
#6 lore raw

grub/boot redhat9 problem

kmod: failed to exec /sbinmodprobe -s -k ide-disk, errno2
VFS: Cannot open root device "hda2" or 03:02 Please apend a correct "root" boot option

Kernel panic: VFS: Unable to mount root fs on 03:02

Filesystem Size Used Avail Use% Mounted on

/dev/hda2              25G  1.8G   22G   8% /
/dev/hda1              99M   39M   56M  41% /boot

none 504M 0 504M 0% /dev/shm

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this
file
# NOTICE:  You have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /boot/, eg.
#          root (hd0,0)
#          kernel /vmlinuz-version ro root=/dev/hda2
#          initrd /initrd-version.img
#boot=/dev/hda
default=2
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
title Red Hat Linux (2.4.21-selinux)
	root (hd0,0)
	kernel /vmlinuz-2.4.21-selinux ro root=/dev/hda2
	initrd /initrd-2.4.21-selinux.img
title Red Hat Linux (2.4.20-19.9)
	root (hd0,0)
	kernel /vmlinuz-2.4.20-19.9 ro root=LABEL=/
	initrd /initrd-2.4.20-19.9.img
title Red Hat Linux (2.4.20-19.9smp)
	root (hd0,0)
	kernel /vmlinuz-2.4.20-19.9smp ro root=LABEL=/
	initrd /initrd-2.4.20-19.9smp.img
title Red Hat Linux (2.4.20-18.9)
	root (hd0,0)
	kernel /vmlinuz-2.4.20-18.9 ro root=LABEL=/
	initrd /initrd-2.4.20-18.9.img
title Red Hat Linux (2.4.20-18.9smp)
	root (hd0,0)
	kernel /vmlinuz-2.4.20-18.9smp ro root=LABEL=/
	initrd /initrd-2.4.20-18.9smp.img
title Red Hat Linux (2.4.20-8smp)
	root (hd0,0)
	kernel /vmlinuz-2.4.20-8smp ro root=LABEL=/
	initrd /initrd-2.4.20-8smp.img
title Red Hat Linux-up (2.4.20-8)
	root (hd0,0)
	kernel /vmlinuz-2.4.20-8 ro root=LABEL=/
	initrd /initrd-2.4.20-8.img
-----Original Message-----
From: [email protected] [mailto:[email protected]]
On Behalf Of Kerry Thompson
Sent: Monday, July 21, 2003 10:59 PM
To: [email protected]
Cc: [email protected]
Subject: RE: make quickinstall redhat9 problem
Quoted 4 lines · Stephen Reese

installing tk and tcl was the trick thanks for the help now I get to figure out where I went wrong with the kernel complile =)

VFS: cannot open root device "Label=/"

Change your bootloader ( /boot/grub/grub.conf for GRUB ) to use root=/dev/hda1 or wherever your root is rather than using Label=/

Kerry

Signature · 16 lines
Kerry Thompson, CCNA CISSP
Information Systems Security Consultant
http://www.crypt.gen.nz  [email protected]



--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected]
with the words "unsubscribe selinux" without quotes as the message.


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.
#7 lore raw

Re: grub/boot redhat9 problem

Quoted 4 lines · Stephen Reese

kmod: failed to exec /sbinmodprobe -s -k ide-disk, errno2
VFS: Cannot open root device "hda2" or 03:02 Please apend a correct "root" boot option

Kernel panic: VFS: Unable to mount root fs on 03:02

That's an issue of configuring the modules for a 2.4.21 kernel in a way that doesn't work (kernel is buggy). Compile the IDE drivers into the kernel to solve this.

Also I strongly recommend that you compile and boot a non-SE kernel first before you try to get SE Linux running.

Signature · 11 lines
http://www.coker.com.au/selinux/   My NSA Security Enhanced Linux packages
http://www.coker.com.au/bonnie++/  Bonnie++ hard drive benchmark
http://www.coker.com.au/postal/    Postal SMTP/POP benchmark
http://www.coker.com.au/~russell/  My home page



--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.