Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 571798 - sys-apps/openrc-0.20[selinux] fails to build - undefined reference to `selinux_setup'
Summary: sys-apps/openrc-0.20[selinux] fails to build - undefined reference to `selinu...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: OpenRC (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: OpenRC Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-01-14 00:26 UTC by Robert Förster
Modified: 2016-01-14 17:35 UTC (History)
0 users

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


Attachments
build log (build.log,28.05 KB, application/octet-stream)
2016-01-14 00:26 UTC, Robert Förster
Details
openrc-0.20.1-selinux.patch (openrc-0.20.1-selinux.patch,705 bytes, patch)
2016-01-14 16:54 UTC, William Hubbs
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Förster 2016-01-14 00:26:33 UTC
Created attachment 422850 [details]
build log

Portage 2.2.26 (python 3.4.3-final-0, hardened/linux/amd64/selinux, gcc-5.3.0, glibc-2.22-r1, 4.3.3-hardened-r4-Fennis x86_64)
=================================================================
System uname: Linux-4.3.3-hardened-r4-Fennis-x86_64-Intel-R-_Core-TM-2_CPU_T5600_@_1.83GHz-with-gentoo-2.2
KiB Mem:     1012316 total,    234876 free
KiB Swap:    4194300 total,   4184084 free
Timestamp of repository gentoo: Wed, 13 Jan 2016 22:00:01 +0000
sh bash 4.3_p42-r1
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:          4.3_p42-r1::gentoo
dev-lang/perl:            5.22.1::gentoo
dev-lang/python:          2.7.11-r2::gentoo, 3.4.3-r7::gentoo
dev-util/cmake:           3.4.1::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.19.1::gentoo
sys-apps/sandbox:         2.10-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r1::gentoo
sys-devel/automake:       1.13.4-r1::gentoo, 1.14.1-r1::gentoo, 1.15-r1::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            5.3.0::gentoo
sys-devel/gcc-config:     1.8::gentoo
sys-devel/libtool:        2.4.6-r1::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.4::gentoo (virtual/os-headers)
sys-libs/glibc:           2.22-r1::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

dessa
    location: /usr/local/portage
    sync-type: git
    sync-uri: git://git.znc.in/dessa/gentoo.git
    masters: gentoo

kde
    location: /var/lib/layman/kde
    sync-type: laymansync
    sync-uri: git+ssh://git@git.gentoo.org/proj/kde.git
    masters: gentoo
    priority: 50

Installed sets: @kde-plasma-5.5
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
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/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
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="-j1"
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"
USE="X acl amd64 audit berkdb bzip2 cli cracklib crypt cxx dbus dri gdbm glamor gudev hardened iconv ipv6 justify libinput mmx mmxext modules multilib ncurses nls nptl open_perms openmp pam pax_kernel pcre pie policykit pulseaudio qt5 readline seccomp selinux session sse sse2 ssl ssp systemd tcpd udev unconfined unicode urandom wayland xattr xtpax zlib" ABI_X86="64" ALSA_CARDS="hda-intel" 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" CPU_FLAGS_X86="mmx mmxext sse sse2 sse3 ssse3" ELIBC="glibc" KERNEL="linux" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-0" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby23" USERLAND="GNU" VIDEO_CARDS="r300" 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:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 William Hubbs gentoo-dev 2016-01-14 02:35:42 UTC
Please try 0.20.1; this should be fixed in that version.
Comment 2 William Hubbs gentoo-dev 2016-01-14 04:28:58 UTC
Please report back to this bug and let me know if it builds.
Comment 3 Robert Förster 2016-01-14 07:28:05 UTC
it does not. i'm getting the same error with 0.20.1
Comment 4 William Hubbs gentoo-dev 2016-01-14 16:54:01 UTC
Created attachment 422928 [details, diff]
openrc-0.20.1-selinux.patch

This patch should fix the issue. Please drop this in
/etc/portage/patches/sys-apps/openrc and try to rebuild openrc-0.20.1
with selinux.
Let me know if that works.
Comment 5 Robert Förster 2016-01-14 17:25:57 UTC
that does indeed work, thanks.
Comment 6 William Hubbs gentoo-dev 2016-01-14 17:35:41 UTC
https://github.com/openrc/openrc/commit/6da0abc

This will also be included in openrc-0.20.2.