Difficulty compiling setools-1.3-2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I downloaded 'setools-1.3-2.src.rpm'

Using 'rpmbuild -bi', tried to build.

This is near the bottom of the build output
...
gcc  -c replcon.c -DSUPPORTED_FILESYSTEMS='"ext2 ext3"' -Wall -O2 -I/usr/share
-DDEFAULT_POLICY='"/etc/security/selinux/src/policy/policy.conf"'
-DSEINFO_VERSION_NUM='"1.1"' -DSESEARCH_VERSION_NUM='"1.0"'
-DREPLCON_VERSION_NUM='"1.0"' -DFINDCON_VERSION_NUM='"1.0"' -I..
-I../libapol
replcon.c:16:29: selinux/selinux.h: No such file or directory
replcon.c:17:29: selinux/context.h: No such file or directory
replcon.c:299: error: syntax error before "get_security_context"
replcon.c:300: warning: return type defaults to `int'
replcon.c: In function `get_security_context':
replcon.c:301: error: `security_context_t' undeclared (first use in this
function)
replcon.c:301: error: (Each undeclared identifier is reported only once
replcon.c:301: error: for each function it appears in.)
replcon.c:301: error: syntax error before "sec_con"
replcon.c:304: error: `sec_con' undeclared (first use in this function)
-
...

Checking for the first missing file 'selinux.h'

[root@hoho2 user1]# find / -name selinux.h -print
/lib/modules/2.6.6-1.381smp/build/include/config/security/selinux.h
/lib/modules/2.6.6-1.381/build/include/config/security/selinux.h
/lib/modules/2.6.6-1.383/build/include/config/security/selinux.h
/lib/modules/2.6.6-1.376/build/include/config/security/selinux.h
/lib/modules/2.6.6-1.377/build/include/config/security/selinux.h
/lib/modules/2.6.6-1.376smp/build/include/config/security/selinux.h
/lib/modules/2.6.5-1.358smp/build/include/config/security/selinux.h
/lib/modules/2.6.6-1.377smp/build/include/config/security/selinux.h
/lib/modules/2.6.5-1.358/build/include/config/security/selinux.h
/usr/src/linux-2.6.5-1.358/include/config/security/selinux.h
[root@hoho2 user1]#


(I need to trash some of those old kernels..)

Don't see any selinux/selinux.h

Also

[root@hoho2 user1]# find / -name context.h -print
/usr/src/linux-2.6.5-1.358/security/selinux/ss/context.h
/old/usr/local/src/OO/OpenOffice.org1.1_SDK/include/bridges/remote/context.h
[root@hoho2 user1]#

Don't see any selinux/context.h either

-----

The binary of that package is installed

[root@hoho2 sel]# rpm -q setools
setools-1.3-2
[root@hoho2 sel]#

But many of the setools pieces are not in that binary package (apol, awish,..)
Maybe they never got built?

[root@hoho2 sel]# cd /var/cache/yum

[root@hoho2 yum]# ls
base  development  updates-released  updates-testing

[root@hoho2 yum]# find . -name setools\*.rpm -print
./base/packages/setools-1.3-2.i386.rpm

[root@hoho2 yum]# rpm -q -l -p base/packages/setools-1.3-2.i386.rpm
/usr/bin/seinfo
/usr/bin/sepcut
/usr/bin/sesearch
/usr/bin/seuser
/usr/bin/seuseradd
/usr/bin/seuserdel
/usr/bin/seusermod
/usr/share/doc/setools-1.3/KNOWN-BUGS
/usr/share/doc/setools-1.3/README
/usr/share/doc/setools-1.3/apol_help.txt
/usr/share/doc/setools-1.3/apol_perm_mapping_ver12
/usr/share/doc/setools-1.3/apol_perm_mapping_ver15
/usr/share/doc/setools-1.3/apol_perm_mapping_ver16
/usr/share/doc/setools-1.3/apol_perm_mapping_ver17
/usr/share/doc/setools-1.3/dta_help.txt
/usr/share/doc/setools-1.3/iflow_help.txt
/usr/share/doc/setools-1.3/obj_perms_help.txt
/usr/share/doc/setools-1.3/seaudit_help.txt
/usr/share/doc/setools-1.3/sepcut_help.txt
/usr/share/doc/setools-1.3/seuser_help.txt
/usr/share/setools/apol.tcl
/usr/share/setools/apol_help.txt
/usr/share/setools/apol_perm_mapping
/usr/share/setools/apol_perm_mapping_ver12
/usr/share/setools/apol_perm_mapping_ver15
/usr/share/setools/apol_perm_mapping_ver16
/usr/share/setools/apol_perm_mapping_ver17
/usr/share/setools/customize_filter_window.glade
/usr/share/setools/dot_seaudit
/usr/share/setools/dta_help.txt
/usr/share/setools/filter_window.glade
/usr/share/setools/iflow_help.txt
/usr/share/setools/multifilter_window.glade
/usr/share/setools/obj_perms_help.txt
/usr/share/setools/prefer_window.glade
/usr/share/setools/query_window.glade
/usr/share/setools/se_user.tcl
/usr/share/setools/seaudit.glade
/usr/share/setools/seaudit_help.txt
/usr/share/setools/sepcut_help.txt
/usr/share/setools/seuser.conf
/usr/share/setools/seuser_help.txt
[root@hoho2 yum]#

[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux