Compile/build problem in Red Hat 9.0
I am trying to build the SE-Linux 2.4 kernel on Red Hat 9.0. The make does not generate any obvious errors, (but there are .o files missing, and when we try to compile dummy.c by hand, it fails), but the make module_install fails.
Here is the tail end of the console for the make module_install (sorry, I didn't capture the make console)
make[2]: Entering directory '/tmp/linux-2.4/drivers/net' mkdir -p /lib/modules/2.4.21-selinux2/kernel/drivers/net/ cp dummy.o /lib/modules/2.4.21-selinux2/kernel/drivers/net/
cp: cannot stat 'dummy.o': No such file or directory make[2]: *** [_modinst_] Error 1
Anybody have any idea what I can do to resolve this?
Richard (Rick) Wanner B.Sc. GCFW
Consultant
Security Engineering & Evaluation Group
InfoSec Centre of Expertise (COE)
CGI Information Systems & Management Consultants Inc.
Ottawa, Canada
Email: [email protected]
Tel: (613) 234-2155
Cell: (613) 220-2045
Fax: (613) 234-6934
Confidentiality Notice: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.
Looks like the net drivers haven't been built, or not built properly - its just the kernel, not an SELinux specific problem. Go back and 'make menuconfig' - making sure the appropriate net modules are enabled. Then run the usual:
make dep
make bzImage
make modules
make install
make modules_install
Checking that each completes successfully.
Kerry
Signature · 3 lines
Kerry Thompson, CCNA CISSP Information Systems Security Consultant http://www.crypt.gen.nz [email protected]
Quoted 40 lines · Richard Herbert Wanner
I am trying to build the SE-Linux 2.4 kernel on Red Hat 9.0. The make does not generate any obvious errors, (but there are .o files missing, and when we try to compile
dummy.cby hand, it fails), but the makemodule_installfails.Here is the tail end of the console for the make
module_install(sorry, I didn't capture the make console)make[2]: Entering directory '
/tmp/linux-2.4/drivers/net' mkdir -p/lib/modules/2.4.21-selinux2/kernel/drivers/net/cp dummy.o/lib/modules/2.4.21-selinux2/kernel/drivers/net/
cp: cannot stat 'dummy.o': No such file or directory make[2]: *** [_modinst_] Error 1Anybody have any idea what I can do to resolve this?
Richard (Rick) Wanner B.Sc. GCFW
Consultant
Security Engineering & Evaluation Group
InfoSec Centre of Expertise (COE)
CGI Information Systems & Management Consultants Inc.
Ottawa, Canada
Email: [email protected]
Tel: (613) 234-2155
Cell: (613) 220-2045
Quoted 12 lines
Fax: (613) 234-6934
Confidentiality Notice: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original 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.
Quoted 12 lines
-----Original Message-----
From: Kerry Thompson [mailto:[email protected]]
Sent: Tuesday, October 14, 2003 8:38 PMLooks like the net drivers haven't been built, or not built properly - its just the kernel, not an SELinux specific problem. Go back and 'make menuconfig' - making sure the appropriate net modules are enabled. Then run the usual:
Quoted 7 lines
make dep
make bzImage
make modules
make install
makemodules_installChecking that each completes successfully.
Thanks. These steps are quite a bit different from the ones in the docs in the usr package. Did I miss something? The 2.6 docs and the 2.4 docs look the same, am I using the wrong ones?
The docs in the usr package in the 2.4 bundle say.
cd linux-2.4 make menuconfig make make modules_install make install
Thanks again.
Rick
--
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.
Quoted 10 lines · Richard Herbert Wanner
Thanks. These steps are quite a bit different from the ones in the docs in the usr package. Did I miss something? The 2.6 docs and the 2.4 docs look the same, am I using the wrong ones?
The docs in the usr package in the 2.4 bundle say.
cd linux-2.4 make menuconfig make make modules_install make install
Sorry, the 2.4 and 2.6 SELinux share the same userland archive, including build instructions, but the instructions currently only describe what to do for 2.6. The kernel build process has changed for 2.6, hence the difference.
Signature · 8 lines
Stephen Smalley <[email protected]> National Security Agency -- 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.