Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 378153

Summary: sys-apps/checkpolicy - policy_define.c:2111:2: error: too few arguments to function ‘role_set_expand’
Product: Gentoo Linux Reporter: Andreis Vinogradovs ( slepnoga ) <andreis.vinogradovs>
Component: New packagesAssignee: SE Linux Bugs <selinux>
Status: VERIFIED FIXED    
Severity: major    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: checkpolicy-2.0.16 build.log
checkpolicy-2.0.21 build log
checkpolicy-2.0.16 build log
checkpolicy-2.0.19 build log
checkpolicy-2.0.23 build log

Description Andreis Vinogradovs ( slepnoga ) 2011-08-07 23:33:07 UTC
build fails witch error:
x86_64-pc-linux-gnu-gcc -O2 -pipe -mtune=native -I. -I/usr/include -o checkmodule.o -c checkmodule.c
policy_define.c: In function ‘define_role_trans’:
policy_define.c:2111:2: error: too few arguments to function ‘role_set_expand’
/usr/include/sepol/policydb/expand.h:63:12: note: declared here
make: *** [policy_define.o] Error 1


Reproducible: Always




Affected version 2.0.*
Comment 1 Andreis Vinogradovs ( slepnoga ) 2011-08-07 23:33:24 UTC
emerge --info
Portage 2.2.0_alpha50 (selinux/v2refpolicy/amd64/desktop, gcc-4.5.3, glibc-2.13-r4, 3.0.0-gentoo-1.04 x86_64)
=================================================================
System uname: Linux-3.0.0-gentoo-1.04-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T7100_@_1.80GHz-with-gentoo-2.0.3
Timestamp of tree: Sun, 07 Aug 2011 22:30:01 +0000
app-shells/bash:          4.2_p10
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r2, 3.2-r2
dev-util/cmake:           2.8.5-r2
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.8.3-r1
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.68
sys-devel/automake:       1.10.3, 1.11.1-r1
sys-devel/binutils:       2.21.1
sys-devel/gcc:            4.5.3
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 2.6.38 (virtual/os-headers)
sys-libs/glibc:           2.13-r4
Repositories: gentoo my-dev rion
Installed sets: 
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -mtune=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -mtune=native"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs buildpkg distlocks ebuild-locks fixlafiles fixpackages metadata-transfer news parallel-fetch preserve-libs protect-owned sandbox selinux sesandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv"
FFLAGS=""
GENTOO_MIRRORS="http://gentoo.tups.lv/source"
LANG="ru_RU.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -Wl,--enable-new-dtags -Wl,--sort-common"
LINGUAS="ru"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_COMPRESS="lzma"
PORTAGE_COMPRESS_FLAGS="-9"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/home/slep/slep/portage /home/slep/rion"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acpi addressbook alsa amd64 apng assistant avahi bash-completion berkdb bluetooth branding cairo caps cdda cdr chm cli consolekit cracklib crypt cvs cxx dbus declarative device-mapper djvu dri dts dvd dvdr ebook emboss encode exif extras fam fax fbcon festival ffmpeg firefox flac fontconfig fortran fuse gdu gif gnome-keyring gphoto2 gpm gstreamer gtk hpijs iconv icu idn inotify ipv6 javascript jpeg kde kipi kvm lame laptop lcms ldap ldb libmpeg2 libnl libnotify lm_sensors lxc lzma lzo mad mmap mng mp3 mp4 mpeg mudflap multilib multimedia mysql natspec ncurses network nfs nls nsplugin ofx ogg opengl openmp pam pango pch pcre pdf perl phonon plugins pmu pnat png policykit ppds pppd python qt3support qt4 rdesktop readline reports ris rle samba sasl scanner sdl selinux semantic-desktop servletapi session spell spice sql sqlite ssl startup-notification svg taglib tcpd threads thunar tiff truetype udev unicode usb v4l2 vhost-net vim-syntax vnc vorbis vpx webkit wicd xattr xcb xcomposite xen xml xmlpatterns xorg xulrunner xv xvid xvmc zeroconf zlib" ALSA_CARDS="intel-hda" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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="braindump flow karbon kexi kpresenter krita tables words" CAMERAS="ptp2" ELIBC="glibc" INPUT_DEVICES="evdev mouse keyboard" KERNEL="linux" LINGUAS="ru" NETBEANS_MODULES="cnd ergonomics apisupport dlight enterprise ide php harness java profiler websvccommon" PHP_TARGETS="php5-2 php5-3" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel" 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" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Andreis Vinogradovs ( slepnoga ) 2011-08-07 23:34:28 UTC
Created attachment 282487 [details]
checkpolicy-2.0.16 build.log
Comment 3 Andreis Vinogradovs ( slepnoga ) 2011-08-07 23:35:03 UTC
Created attachment 282489 [details]
checkpolicy-2.0.21 build log
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2011-08-08 20:54:47 UTC
Comment on attachment 282487 [details]
checkpolicy-2.0.16 build.log

I can't read that. Please post a build log created with LANG=C or something.
Comment 5 Andreis Vinogradovs ( slepnoga ) 2011-08-09 05:44:19 UTC
Created attachment 282641 [details]
checkpolicy-2.0.16 build log
Comment 6 Andreis Vinogradovs ( slepnoga ) 2011-08-09 05:45:05 UTC
Created attachment 282643 [details]
checkpolicy-2.0.19 build log
Comment 7 Andreis Vinogradovs ( slepnoga ) 2011-08-09 05:46:34 UTC
Created attachment 282645 [details]
checkpolicy-2.0.23 build log
Comment 8 Sven Vermeulen 2011-08-09 20:37:49 UTC
The role_set_expand function is defined by libsepol. The version identified in the ebuild (for instance, for checkpolicy-2.0.23) must match (in that case libsepol-2.0.42).

Can you verify (or give the output) of "emerge -pv checkpolicy libsepol" ?
Comment 9 Andreis Vinogradovs ( slepnoga ) 2011-08-12 22:27:25 UTC
(In reply to comment #8)
> The role_set_expand function is defined by libsepol. The version identified in
> the ebuild (for instance, for checkpolicy-2.0.23) must match (in that case
> libsepol-2.0.42).
> 
> Can you verify (or give the output) of "emerge -pv checkpolicy libsepol" ?

emerge -pv checkpolicy libsepol

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] sys-libs/libsepol-2.1.0  195 kB
[ebuild   R    ] sys-apps/checkpolicy-2.1.0  USE="-debug" 61 kB

Total: 2 packages (2 reinstalls), Size of downloads: 256 kB
Comment 10 Sven Vermeulen (RETIRED) gentoo-dev 2011-08-13 11:00:13 UTC
So checkpolicy 2.1.0 builds correctly then (as your output shows "R")?
Comment 11 Andreis Vinogradovs ( slepnoga ) 2011-08-15 13:24:45 UTC
(In reply to comment #10)
> So checkpolicy 2.1.0 builds correctly then (as your output shows "R")?

Yes 2.1.0  build fine
Comment 12 Sven Vermeulen (RETIRED) gentoo-dev 2011-08-16 21:41:31 UTC
well, the new userspace utils should be in the main tree (~arch'ed) for a while (looks like beginning of august).