Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 539462 - <app-admin/setools-3.8.8-r6 - error: ‘class_perm_node_t’ has no member named ‘class’
Summary: <app-admin/setools-3.8.8-r6 - error: ‘class_perm_node_t’ has no member named ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: SELinux (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: SE Linux Bugs
URL:
Whiteboard:
Keywords:
: 540496 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-02-09 13:04 UTC by Konstantin
Modified: 2015-05-10 10:20 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch for fix. (setools-libsepol.patch,2.74 KB, patch)
2015-02-09 13:05 UTC, Konstantin
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Konstantin 2015-02-09 13:04:09 UTC
In header.

Reproducible: Always
Comment 1 Konstantin 2015-02-09 13:05:03 UTC
Created attachment 395970 [details, diff]
Patch for fix.
Comment 2 Konstantin 2015-02-09 13:06:09 UTC
emerge --info setools
Portage 2.2.15 (python 3.4.2-final-0, hardened/linux/amd64/selinux, gcc-4.9.2, glibc-2.20-r1, 3.18.5-sbs x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.18.5-sbs-x86_64-Intel-R-_Core-TM-_i3_CPU_M_350_@_2.27GHz-with-gentoo-2.2
KiB Mem:     2810716 total,    184896 free
KiB Swap:    6143996 total,   6031044 free
Timestamp of tree: Sun, 08 Feb 2015 16:30:01 +0000
sh bash 4.3_p33-r1
ld GNU ld (Gentoo 2.24 p1.4) 2.24
app-shells/bash:          4.3_p33-r1
dev-java/java-config:     2.2.0
dev-lang/perl:            5.20.1-r4
dev-lang/python:          2.7.9-r2, 3.4.2
dev-util/cmake:           3.1.0
dev-util/pkgconfig:       0.28-r2
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.13.9
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.69
sys-devel/automake:       1.11.6-r1, 1.15
sys-devel/binutils:       2.24-r3
sys-devel/gcc:            4.9.2
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.5
sys-devel/make:           4.1-r1
sys-kernel/linux-headers: 3.18 (virtual/os-headers)
sys-libs/glibc:           2.20-r1::security-sbs
Repositories: gentoo lxde-new security-sbs security-testing mate-overlay gnome
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native -mtune=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=native -mtune=native"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox selinux sesandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/lxde-new /usr/local/portage/security-sbs /usr/local/portage/security-testing /var/lib/layman/mate /var/lib/layman/gnome"
USE="X aac acl alsa amd64 audit berkdb bluetooth branding bzip2 cairo caja cli cmake cracklib crypt crywrap cups cxx dbus dhcpcd dri egl evdev exif flac fontconfig foomatic gdbm gdbus glib gmp gnome-keyring gnutls graphite gstreamer gtk gtk3 hardened iconv icu imlib infinality introspection ios ipod ipv6 java jpeg justify lcms libmpeg2 libnotify libproxy math mmx mmxext modemmanager modules mp3 mtp multilib natspec ncurses networkmanager nls nptl ntpl obex ogg open_perms opengl openmp os-prober pam pax_kernel pcre peer_perms pic plymouth png policykit popcnt powermanagement ppp pulseaudio python python2_7 python3_4 readline selinux session shared-glapi sna socialweb spell sse sse2 sse3 sse4_1 sse4_2 ssl ssse3 startup-notification svg symlink systemd tcpd theora thesaurus threads tiff tracker truetype ubac udev udisks unicode upower urandom v4l v4l2 vaapi vala vorbis wavpack wayland x264 xattr xdg xinerama xml xorg xtpax xvid zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="ru" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="intel i965" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
USE_PYTHON="2.7"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC

=================================================================
                        Package Settings
=================================================================

app-admin/setools-3.3.8-r5 was built with the following:
USE="X java (python) -debug" ABI_X86="64" PYTHON_TARGETS="python2_7"
Comment 3 Konstantin 2015-02-09 13:11:23 UTC
Backtrace of bug:

>>> Compiling source in /var/tmp/portage/app-admin/setools-3.3.8-r5/work/setools-3.3.8 ...
make -j3 LD=x86_64-pc-linux-gnu-ld.bfd 
make  all-recursive
make[1]: Entering directory '/var/tmp/portage/app-admin/setools-3.3.8-r5/work/setools-3.3.8'
Making all in libqpol
make[2]: Entering directory '/var/tmp/portage/app-admin/setools-3.3.8-r5/work/setools-3.3.8/libqpol'
Making all in src
make[3]: Entering directory '/var/tmp/portage/app-admin/setools-3.3.8-r5/work/setools-3.3.8/libqpol/src'
/bin/sh ../../ylwrap policy_parse.y y.tab.c policy_parse.c y.tab.h `echo policy_parse.c | sed -e s/cc$/hh/ -e s/cpp$/hpp/ -e s/cxx$/hxx/ -e s/c++$/h++/ -e s/c$/h/` y.output policy_parse.output -- bison -y -d 
updating policy_parse.h
make  all-am
make[4]: Entering directory '/var/tmp/portage/app-admin/setools-3.3.8-r5/work/setools-3.3.8/libqpol/src'
x86_64-pc-linux-gnu-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../..    -fno-strict-aliasing -I./../include -I/usr/lib64/../include -I/usr/include -I/usr/include -fpic -O2 -pipe -march=native -mtune=native -c -o avrule_query.o avrule_query.c
x86_64-pc-linux-gnu-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../..    -fno-strict-aliasing -I./../include -I/usr/lib64/../include -I/usr/include -I/usr/include -fpic -O2 -pipe -march=native -mtune=native -c -o bool_query.o bool_query.c
x86_64-pc-linux-gnu-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../..    -fno-strict-aliasing -I./../include -I/usr/lib64/../include -I/usr/include -I/usr/include -fpic -O2 -pipe -march=native -mtune=native -c -o class_perm_query.o class_perm_query.c
x86_64-pc-linux-gnu-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../..    -fno-strict-aliasing -I./../include -I/usr/lib64/../include -I/usr/include -I/usr/include -fpic -O2 -pipe -march=native -mtune=native -c -o cond_query.o cond_query.c
x86_64-pc-linux-gnu-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../..    -fno-strict-aliasing -I./../include -I/usr/lib64/../include -I/usr/include -I/usr/include -fpic -O2 -pipe -march=native -mtune=native -c -o constraint_query.o constraint_query.c
x86_64-pc-linux-gnu-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../..    -fno-strict-aliasing -I./../include -I/usr/lib64/../include -I/usr/include -I/usr/include -fpic -O2 -pipe -march=native -mtune=native -c -o context_query.o context_query.c
x86_64-pc-linux-gnu-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../..    -fno-strict-aliasing -I./../include -I/usr/lib64/../include -I/usr/include -I/usr/include -fpic -O2 -pipe -march=native -mtune=native -c -o expand.o expand.c
x86_64-pc-linux-gnu-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../..    -fno-strict-aliasing -I./../include -I/usr/lib64/../include -I/usr/include -I/usr/include -fpic -O2 -pipe -march=native -mtune=native -c -o fs_use_query.o fs_use_query.c
x86_64-pc-linux-gnu-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../..    -fno-strict-aliasing -I./../include -I/usr/lib64/../include -I/usr/include -I/usr/include -fpic -O2 -pipe -march=native -mtune=native -c -o genfscon_query.o genfscon_query.c
x86_64-pc-linux-gnu-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../..    -fno-strict-aliasing -I./../include -I/usr/lib64/../include -I/usr/include -I/usr/include -fpic -O2 -pipe -march=native -mtune=native -c -o isid_query.o isid_query.c
x86_64-pc-linux-gnu-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../..    -fno-strict-aliasing -I./../include -I/usr/lib64/../include -I/usr/include -I/usr/include -fpic -O2 -pipe -march=native -mtune=native -c -o iterator.o iterator.c
x86_64-pc-linux-gnu-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../..    -fno-strict-aliasing -I./../include -I/usr/lib64/../include -I/usr/include -I/usr/include -fpic -O2 -pipe -march=native -mtune=native -c -o mls_query.o mls_query.c
x86_64-pc-linux-gnu-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../..    -fno-strict-aliasing -I./../include -I/usr/lib64/../include -I/usr/include -I/usr/include -fpic -O2 -pipe -march=native -mtune=native -c -o mlsrule_query.o mlsrule_query.c
iterator.c: In function ‘ebitmap_state_get_cur_polcap’:
iterator.c:653:2: warning: return discards ‘const’ qualifier from pointer target type
  return sepol_polcap_getname(es->cur);
  ^
x86_64-pc-linux-gnu-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../..    -fno-strict-aliasing -I./../include -I/usr/lib64/../include -I/usr/include -I/usr/include -fpic -O2 -pipe -march=native -mtune=native -c -o module.o module.c
x86_64-pc-linux-gnu-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../..    -fno-strict-aliasing -I./../include -I/usr/lib64/../include -I/usr/include -I/usr/include -fpic -O2 -pipe -march=native -mtune=native -c -o module_compiler.o module_compiler.c
x86_64-pc-linux-gnu-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../..    -fno-strict-aliasing -I./../include -I/usr/lib64/../include -I/usr/include -I/usr/include -fpic -O2 -pipe -march=native -mtune=native -c -o netifcon_query.o netifcon_query.c
x86_64-pc-linux-gnu-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../..    -fno-strict-aliasing -I./../include -I/usr/lib64/../include -I/usr/include -I/usr/include -fpic -O2 -pipe -march=native -mtune=native -c -o nodecon_query.o nodecon_query.c
x86_64-pc-linux-gnu-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../..    -fno-strict-aliasing -I./../include -I/usr/lib64/../include -I/usr/include -I/usr/include -fpic -O2 -pipe -march=native -mtune=native -c -o permissive_query.o permissive_query.c
x86_64-pc-linux-gnu-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../..    -fno-strict-aliasing -I./../include -I/usr/lib64/../include -I/usr/include -I/usr/include -fpic -O2 -pipe -march=native -mtune=native -c -o polcap_query.o polcap_query.c
x86_64-pc-linux-gnu-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../..    -fno-strict-aliasing -I./../include -I/usr/lib64/../include -I/usr/include -I/usr/include -fpic -O2 -pipe -march=native -mtune=native -c -o policy.o policy.c
x86_64-pc-linux-gnu-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../..    -fno-strict-aliasing -I./../include -I/usr/lib64/../include -I/usr/include -I/usr/include -fpic -O2 -pipe -march=native -mtune=native -c -o policy_define.o policy_define.c
x86_64-pc-linux-gnu-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../..    -fno-strict-aliasing -I./../include -I/usr/lib64/../include -I/usr/include -I/usr/include -fpic -O2 -pipe -march=native -mtune=native -c -o policy_extend.o policy_extend.c
policy_extend.c: In function ‘qpol_syn_rule_table_insert_sepol_avrule’:
policy_extend.c:846:31: error: ‘class_perm_node_t’ has no member named ‘class’
     key.class_val = class_node->class;
                               ^
policy_extend.c:859:31: error: ‘class_perm_node_t’ has no member named ‘class’
     key.class_val = class_node->class;
                               ^
Makefile:700: recipe for target 'policy_extend.o' failed
make[4]: *** [policy_extend.o] Error 1
make[4]: *** Waiting for unfinished jobs....
policy_define.c: In function ‘define_compute_type_helper’:
policy_define.c:1452:8: error: ‘class_perm_node_t’ has no member named ‘class’
    perm->class = i + 1;
        ^
policy_define.c: In function ‘define_te_avtab_helper’:
policy_define.c:1702:12: error: ‘class_perm_node_t’ has no member named ‘class’
   cur_perms->class = i + 1;
            ^
policy.c: In function ‘union_multiply_declared_symbols’:
policy.c:610:36: warning: passing argument 2 of ‘qpol_type_get_isattr’ from incompatible pointer type
   if (qpol_type_get_isattr(policy, attr, &isattr)) {
                                    ^
In file included from ./../include/qpol/avrule_query.h:37:0,
                 from ./../include/qpol/policy.h:39,
                 from qpol_internal.h:34,
                 from policy.c:29:
./../include/qpol/type_query.h:96:13: note: expected ‘const struct qpol_type_t *’ but argument is of type ‘struct type_datum_t *’
  extern int qpol_type_get_isattr(const qpol_policy_t * policy, const qpol_type_t
             ^
Makefile:700: recipe for target 'policy_define.o' failed
make[4]: *** [policy_define.o] Error 1
make[4]: Leaving directory '/var/tmp/portage/app-admin/setools-3.3.8-r5/work/setools-3.3.8/libqpol/src'
Makefile:581: recipe for target 'all' failed
make[3]: *** [all] Error 2
make[3]: Leaving directory '/var/tmp/portage/app-admin/setools-3.3.8-r5/work/setools-3.3.8/libqpol/src'
Makefile:511: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/var/tmp/portage/app-admin/setools-3.3.8-r5/work/setools-3.3.8/libqpol'
Makefile:571: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/app-admin/setools-3.3.8-r5/work/setools-3.3.8'
Makefile:501: recipe for target 'all' failed
make: *** [all] Error 2
 * ERROR: app-admin/setools-3.3.8-r5::gentoo failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=app-admin/setools-3.3.8-r5::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=app-admin/setools-3.3.8-r5::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/app-admin/setools-3.3.8-r5/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-admin/setools-3.3.8-r5/temp/environment'.
 * Working directory: '/var/tmp/portage/app-admin/setools-3.3.8-r5/work/setools-3.3.8'
 * S: '/var/tmp/portage/app-admin/setools-3.3.8-r5/work/setools-3.3.8'
Comment 4 Jason Zaman gentoo-dev 2015-02-12 18:06:56 UTC
Thanks,

setools-3.3.8-r6.ebuild has been committed to fix this
Comment 5 Sven Vermeulen (RETIRED) gentoo-dev 2015-03-03 18:20:56 UTC
*** Bug 540496 has been marked as a duplicate of this bug. ***
Comment 6 Jason Zaman gentoo-dev 2015-05-10 10:20:50 UTC
2.4 userland is stable now