Problem making the kernel w/ the SELinux modules added
I am running Red Hat 7.1 and am attempting to compile the SELinux additions into the kernel, I get the following error message when it gets to part of the SELinux section:
make[3]: Entering directory `/usr/src/selinux/module/selinux_plug/ss' gcc -o checkpolicy ebitmap.cp.o queue.cp.o hashtab.cp.o symtab.cp.o sidtab.cp.o avtab.cp.o policydb.cp.o services.cp.o y.tab.cp.o lex.yy.cp.o checkpolicy.cp.o -lfl/usr/bin/ld: cannot find -lfl
collect2: ld returned 1 exit status
make[3]: *** [checkpolicy] Error 1
make[3]: Leaving directory `/usr/src/selinux/module/selinux_plug/ss' make[2]: *** [_subdir_ss] Error 2
make[2]: Leaving directory `/usr/src/selinux/module/selinux_plug' make[1]: *** [_subdir_selinux_plug] Error 2
make[1]: Leaving directory `/usr/src/lsm/security'
make: *** [_dir_security] Error 2
Thanks,
Ryan
--
You have received this message because you are subscribed to the selinux list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Ryan,
I got this same error. It happens when linux is compiled for the wrong cpu. The default Processor Type is Pentium III, if you have an older processor then this you need to specify your processor in config.
I had an old pentium, after selecting that (and recompiling) checkpolicy ran without problems.
Conan
Quoted 18 lines
I am running Red Hat 7.1 and am attempting to compile the SELinux additions into the kernel, I get the following error message when it gets to part of the SELinux section:
make[3]: Entering directory `/usr/src/selinux/module/selinux_plug/ss' gcc -o checkpolicy ebitmap.cp.o queue.cp.o hashtab.cp.o symtab.cp.o sidtab.cp.o avtab.cp.o policydb.cp.o services.cp.o y.tab.cp.o lex.yy.cp.o checkpolicy.cp.o -lfl
/usr/bin/ld: cannot find -lfl
collect2: ld returned 1 exit status
make[3]: *** [checkpolicy] Error 1
make[3]: Leaving directory `/usr/src/selinux/module/selinux_plug/ss' make[2]: *** [_subdir_ss] Error 2
make[2]: Leaving directory `/usr/src/selinux/module/selinux_plug' make[1]: *** [_subdir_selinux_plug] Error 2
make[1]: Leaving directory `/usr/src/lsm/security'
make: *** [_dir_security] Error 2
Quoted 9 lines
Thanks,
Ryan--
You have received this message because you are subscribed to the selinux list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
--
You have received this message because you are subscribed to the selinux list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
I had that same problem (with the CPU's) earlier, because the default kernel in Red Hat 7.1 defaults to PIII, but I have an AMD K62. So when I would attempt to compile, I would get similar errors to this.
So, I just keep telling it to make over and over, and eventually it finishes compiling. AMD K62 is specified on the new kernel, so I didn't know what the problem could be.
/usr/bin/ld: cannot find -lfl
collect2: ld returned 1 exit status
That's the part of the error that tripped me up.
Thanks,
Ryan
Quoted 38 lines · Conan Callen
Ryan,
I got this same error. It happens when linux is compiled for the wrong cpu. The default Processor Type is Pentium III, if you have an older processor then this you need to specify your processor in config.
I had an old pentium, after selecting that (and recompiling) checkpolicy ran without problems.
Conan
Quoted 27 lines
I am running Red Hat 7.1 and am attempting to compile the SELinux additions into the kernel, I get the following error message when it gets to part of the SELinux section:
make[3]: Entering directory `/usr/src/selinux/module/selinux_plug/ss' gcc -o checkpolicy ebitmap.cp.o queue.cp.o hashtab.cp.o symtab.cp.o sidtab.cp.o avtab.cp.o policydb.cp.o services.cp.o y.tab.cp.o lex.yy.cp.o checkpolicy.cp.o -lfl
/usr/bin/ld: cannot find -lfl
collect2: ld returned 1 exit status
make[3]: *** [checkpolicy] Error 1
make[3]: Leaving directory `/usr/src/selinux/module/selinux_plug/ss' make[2]: *** [_subdir_ss] Error 2
make[2]: Leaving directory `/usr/src/selinux/module/selinux_plug' make[1]: *** [_subdir_selinux_plug] Error 2
make[1]: Leaving directory `/usr/src/lsm/security'
make: *** [_dir_security] Error 2Thanks,
Ryan--
You have received this message because you are subscribed to the selinux list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Quoted 6 lines · Ryan Senior
I am running Red Hat 7.1 and am attempting to compile the SELinux additions into the kernel, I get the following error message when it gets to part of the SELinux section:
/usr/bin/ld: cannot find -lfl
collect2: ld returned 1 exit status
'fl' refers to the flex library. On my RedHat 7.1 systems, libfl.a is in /usr/lib.
As a side note, the 2.4.14 kernel is out, so a new SELinux release shouldn't be too far in the future.
--
Stephen D. Smalley, NAI Labs
[email protected]
--
You have received this message because you are subscribed to the selinux 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 · Ryan Senior
I am running Red Hat 7.1 and am attempting to compile the SELinux additions into the kernel, I get the following error message when it gets to part of the SELinux section:
make[3]: Entering directory `/usr/src/selinux/module/selinux_plug/ss' gcc -o checkpolicy ebitmap.cp.o queue.cp.o hashtab.cp.o symtab.cp.o sidtab.cp.o avtab.cp.o policydb.cp.o services.cp.o y.tab.cp.o lex.yy.cp.o checkpolicy.cp.o -lfl
/usr/bin/ld: cannot find -lfl
collect2: ld returned 1 exit status
By the way, the error that you are encountering is during the linking of the checkpolicy program. checkpolicy is a separate userspace program that draws heavily from the security server sources (plus the policy scanner and parser). In the current release (and older releases), it lives in the security server directory and is compiled during the kernel build, but it has now been separated out in our internal tree and will be built separately in future releases.
--
Stephen D. Smalley, NAI Labs
[email protected]
--
You have received this message because you are subscribed to the selinux list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.