Summary: | app-admin/setools-2.4 fails | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Patrizio Bassi <patrizio.bassi> |
Component: | New packages | Assignee: | Chris PeBenito (RETIRED) <pebenito> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | jpalko, mizvekov |
Priority: | High | ||
Version: | 2006.0 | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | partial fix |
Description
Patrizio Bassi
2006-05-11 08:27:58 UTC
Created attachment 86670 [details, diff]
partial fix
This fixes the specific problem the submiter posted, but is not enough to get it to compile, it will break further down.
Aditionally, the ebuild will need to depend on sys-libs/libselinux, as it uses some includes provided by that package with those fixes i posted, we get to this: cc -O3 -march=athlon-xp -pipe -fomit-frame-pointer -Wall -O2 -fPIC -D_GNU_SOURCE -o sechecker sechecker_cli.o sechecker.o register_list.o sechk_parse.o `pkg-config --libs libxml-2.0` ./modules/attribs_wo_rules.o ./modules/attribs_wo_types.o ./modules/domain_and_file.o ./modules/domains_wo_roles.o ./modules/find_assoc_types.o ./modules/find_domains.o ./modules/find_file_types.o ./modules/find_net_domains.o ./modules/find_netif_types.o ./modules/find_node_types.o ./modules/find_port_types.o ./modules/imp_range_trans.o ./modules/inc_dom_trans.o ./modules/inc_mount.o ./modules/inc_net_access.o ./modules/roles_wo_allow.o ./modules/roles_wo_types.o ./modules/roles_wo_users.o ./modules/rules_exp_nothing.o ./modules/spurious_audit.o ./modules/types_wo_allow.o ./modules/unreachable_doms.o ./modules/users_wo_roles.o ../libapol/libapol.a -lfl -lm sechecker.o: In function `sechk_lib_check_requirement': sechecker.c:(.text+0x13a5): undefined reference to `selinux_default_context_path' ./modules/unreachable_doms.o: In function `unreachable_doms_print_output': unreachable_doms.c:(.text+0x17e): undefined reference to `selinux_default_context_path' ./modules/unreachable_doms.o: In function `unreachable_doms_init': unreachable_doms.c:(.text+0x1ef5): undefined reference to `selinux_default_context_path' collect2: ld returned 1 exit status make[1]: *** [sechecker] Error 1 make[1]: Leaving directory `/var/tmp/portage/setools-2.4/work/setools-2.4/sechecker' make: *** [sechecker] Error 2 Its probably missing a -lselinux on that line so strange, bug is still open after all this time :( can't reproduce this. what versions of tcl and tk do you have emerge tcl tk -pv These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild R ] dev-lang/tcl-8.4.13 USE="threads -debug" 3,431 kB [ebuild U ] dev-lang/tk-8.4.13 [8.4.12] USE="threads -debug%" 3,176 kB I've added the attached patch and additional fix to hopefully take care of these problems. the above is committed to cvs i confirm it's fixed. Thanks, good job. I whonder if this bug fix is killing my compile attempts. I have a non X system that neither has tcl nor tk. Portage 2.1.1 (selinux/2005.1/amd64, gcc-4.1.1, glibc-2.4-r3, 2.6.16-hardened-r10 x86_64) ================================================================= System uname: 2.6.16-hardened-r10 x86_64 AMD Athlon(tm) 64 Processor 3200+ Gentoo Base System version 1.6.15 Last Sync: Fri, 22 Sep 2006 05:50:01 +0000 app-admin/eselect-compiler: [Not Present] dev-java/java-config: 1.2.11-r1 dev-lang/python: 2.3.5-r2, 2.4.3-r1 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: [Not Present] dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2 sys-devel/binutils: 2.16.1-r3 sys-devel/gcc-config: 1.3.13-r3 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=k8 -O2 -fomit-frame-pointer -frerun-loop-opt -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-march=k8 -O2 -fomit-frame-pointer -frerun-loop-opt -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks fixpackages loadpolicy metadata-transfer sandbox selinux sfperms strict" GENTOO_MIRRORS="ftp://trumpetti.atm.tut.fi/gentoo/ http://gentoo.binarycompass.org ftp://ftp.uninett.no/pub/linux/Gentoo ftp://mirror.pudas.net/gentoo" LINGUAS="" MAKEOPTS="-j1" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage" USE="acpi aim aliaschain amd64 apache2 bash-completion berkdb bidi bzip2 chroot crypt cups curl dcraw doc elibc_glibc emul-linux-x86 ffmpeg gdbm gif gmp gpm icq idea imagemagick innodb input_devices_keyboard input_devices_mouse ipv6 irc jabber java jpeg kernel_linux ldap libclamav loadpolicy mbox mhash mpeg msn mysql ncurses netpbm nls nptl nptlonly oav odbc pam pcre perl png ppds python quotas readline samba sasl selinux semanticfix sftplogging sguil ssl syslog tcpd tiff unicode usb userland_GNU userlocales uudeview winbind xml xml2 yahoo zlib" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY Calculating dependencies... done! [ebuild U ] app-admin/setools-2.4 [2.2] USE="selinux -X -debug" 0 kB .... >>> Unpacking setools-2.4.tar.bz2 to /var/tmp/portage/setools-2.4/work * Applying apol_tcl_fc.c.diff ... [ ok ]>>> Source unpacked. >>> Compiling source in /var/tmp/portage/setools-2.4/work/setools-2.4 ... make -C libapol libapol libapolso env: tclsh: No such file or directory env: tclsh: No such file or directory env: tclsh: No such file or directory make[1]: Entering directory `/var/tmp/portage/setools-2.4/work/setools-2.4/libapol' .... cc -march=k8 -O2 -fomit-frame-pointer -frerun-loop-opt -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Wall -O2 -fPIC -DLIBSELINUX -DLIBSEFS -DLIBAPOL_VERSION_STRING='"2.4"' -DLIBAPOL_POLICY_INSTALL_DIR='"/etc/selinux/strict/policy"' -DLIBAPOL_SELINUX_DIR='"/selinux"' -DLIBAPOL_DEFAULT_POLICY='"/etc/selinux/strict/src/policy/policy.conf"' -I. -o semantic/avsemantics.o -c semantic/avsemantics.c ar cr libapol.a policy.o policy-query.o policy-io.o queue.o util.o clone.o y.tab.o lex.yy.o avl-util.o policy-avl.o render.o analysis.o perm-map.o cond.o infoflow.o poldiff.o relabel_analysis.o dta.o binpol/binpol.o binpol/bpmaps.o binpol/fbuf.o binpol/ebitmap.o semantic/avhash.o semantic/avsemantics.o cc -shared -o libapol.so.2.4 policy.o policy-query.o policy-io.o queue.o util.o clone.o y.tab.o lex.yy.o avl-util.o policy-avl.o render.o analysis.o perm-map.o cond.o infoflow.o poldiff.o relabel_analysis.o dta.o binpol/binpol.o binpol/bpmaps.o binpol/fbuf.o binpol/ebitmap.o semantic/avhash.o semantic/avsemantics.o -lselinux -lfl -Wl,-soname,libapol.so.1 /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../lib64/libfl.a(libyywrap.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../lib64/libfl.a: could not read symbols: Bad value collect2: ld returned 1 exit status make[1]: *** [libapol.so.2.4] Error 1 make[1]: Leaving directory `/var/tmp/portage/setools-2.4/work/setools-2.4/libapol' make: *** [libapol] Error 2 !!! ERROR: app-admin/setools-2.4 failed. Call stack: ebuild.sh, line 1546: Called dyn_compile ebuild.sh, line 937: Called src_compile setools-2.4.ebuild, line 65: Called die |