Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 133028 - app-admin/setools-2.4 fails
Summary: app-admin/setools-2.4 fails
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Chris PeBenito (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-11 08:27 UTC by Patrizio Bassi
Modified: 2006-09-22 20:53 UTC (History)
2 users (show)

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


Attachments
partial fix (setools_fix.diff,1.05 KB, patch)
2006-05-12 13:15 UTC, Matheus Izvekov
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Patrizio Bassi 2006-05-11 08:27:58 UTC
cc -O3 -mtune=pentium3 -march=pentium3 -pipe -fomit-frame-pointer -mmmx -msse -Wall -O2 -fPIC   -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 apol_tcl_fc.o -c apol_tcl_fc.c
apol_tcl_fc.c: In function ‘Apol_Search_FC_Index_DB’:
apol_tcl_fc.c:181: error: ‘sefs_search_keys_t’ undeclared (first use in this function)
apol_tcl_fc.c:181: error: (Each undeclared identifier is reported only once
apol_tcl_fc.c:181: error: for each function it appears in.)
apol_tcl_fc.c:181: error: expected ‘;’ before ‘search_keys’
apol_tcl_fc.c:185: warning: unused variable ‘result_obj’
apol_tcl_fc.c:184: warning: unused variable ‘retval’
apol_tcl_fc.c:183: warning: unused variable ‘paths’
apol_tcl_fc.c:183: warning: unused variable ‘ranges’
apol_tcl_fc.c:182: warning: unused variable ‘users’
apol_tcl_fc.c:182: warning: unused variable ‘types’
apol_tcl_fc.c:182: warning: unused variable ‘object_classes’
apol_tcl_fc.c: In function ‘Apol_FC_Is_MLS’:
apol_tcl_fc.c:312: warning: unused variable ‘result_obj’
apol_tcl_fc.c:311: warning: unused variable ‘retval’
make[1]: *** [apol_tcl_fc.o] Error 1
make[1]: Leaving directory `/mnt/Dati/Gentoo/tmp/portage/setools-2.4/work/setools-2.4/libapol'
make: *** [libapol-tcl] Error 2

!!! ERROR: app-admin/setools-2.4 failed.
Call stack:
  ebuild.sh, line 1527:   Called dyn_compile
  ebuild.sh, line 930:   Called src_compile
  setools-2.4.ebuild, line 57:   Called die

!!! (no error message)
!!! If you need support, post the topmost build error, and the call stack if relevant.


Portage 2.1_pre10-r5 (!/usr/portage/profiles/default-linux/x86/2006.0, gcc-4.1.0, glibc-2.4-r2, 2.6.16.14 i686)
=================================================================
System uname: 2.6.16.14 i686 Pentium III (Katmai)
Gentoo Base System version 1.12.0_pre19
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [disabled]
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r1
dev-util/confcache:  0.4.2
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.91.0.6-r1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.16
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -mtune=pentium3 -march=pentium3 -pipe -fomit-frame-pointer -mmmx -msse"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/mail/dspam /opt/openjms/config /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config /var/bind /var/qmail/control /var/run/dspam"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-O3 -mtune=pentium3 -march=pentium3 -pipe -fomit-frame-pointer -mmmx -msse"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks fixpackages metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://www.die.unipd.it/pub/Linux/distributions/gentoo-sources/ http://gentoo.ngi.it"
LANG="it_IT.utf8"
LC_ALL="it_IT.utf8"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--enable-new-dtags -Wl,-Bdirect -Wl,--as-needed -Wl,-hashvals -Wl,-zdynsort"
LINGUAS="it"
MAKEOPTS="-j2"
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="/mnt/Dati/Gentoo/tmp/"
PORTDIR="/mnt/Dati/Gentoo/portage/"
PORTDIR_OVERLAY="/usr/local/portage/myportage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 X X509 Xaw3d a52 aac aalib accessibility acl acpi activefilter adns alsa apache2 apm arts asf audiofile avi bash-completion berkdb bidi bitmap-fonts bootsplash browserplugin bzip2 cairo caps cdda cddb cdio cdparanoia cdr cgi chroot clamav cli client codecs crypt css cups curl dba dbus dga dhcp directfb djbfft dri edl eds emboss encode ethereal exif expat extraengine faac faad fam fastbuild fbcon ffmpeg fftw firefox flac flash foomaticdb foreign-package fortran ftp gcj gd gdbm geometry ggi gif gimp gimpprint glibc-omitfp glut glx gnokii gnome gnutls gphoto2 gpm graphviz gs gstreamer gtk gtk2 gtkhtml guile h264 hal iconv idea idn imagemagick imap imlib innodb ipod irda irmc isdnlog jack java javascript jikes jit joystick jpeg jpeg2k junit justify kde kdeenablefinal kerberos kqemu lame lcd lcms ldap libcaca libclamav libg++ libgda libusb libwww lirc live lm_sensors lua lzo mad mailwrapper matroska md5sum mdb mhash mikmod mime mmx mmx2 mmxext mng mono motif mozcalendar mozdevelop mozilla mozsvg mozxmlterm mp3 mp4 mp4live mpeg mpeg2 mpeg4 mplayer mpm-prefork msn msnextras musepack mysql mysqli mythtv nagios-dns nagios-ntp nagios-ping nagios-ssh ncurses neXt network ngui nls nntp no_wxgtk1 nobsh nopie nossp noxalan nptl nptlonly nsplugin oav odbc ogg openal opengl openssl operanom2 oss pam pcre pda pdf pdflib pdo pear perl php png pnp postgres ppds pppd pthreads python qemu-fast qhull qt quicktime quotas readline real reflection rrdtool rtc ruby samba scanner sdl server session sftplogging sguil slang slp snortsam soap sockets socks5 softmmu softquota spamassassin speex spell spl sqlite3 sse ssl subject-rewrite svg svga tcltk tcpd tetex tga theora threads tiff tokenizer truetype truetype-fonts trusted type1-fonts udev unicode usb userlocales vidix vorbis win32codecs wma wmf wmv wsconvert wxwindows x264 xanim xchatdccserver xchattext xcomposite xine xinerama xml xml2 xmlrpc xmms xorg xosd xpm xprint xsl xv xvid xvm xvmc zlib elibc_glibc input_devices_keyboard input_devices_mouse input_devices_evdev input_devices_joystick kernel_linux linguas_it userland_GNU video_cards_r128 video_cards_i128 video_cards_fbdev video_cards_vesa video_cards_vga video_cards_ati"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Matheus Izvekov 2006-05-12 13:15:18 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.
Comment 2 Matheus Izvekov 2006-05-12 13:16:37 UTC
Aditionally, the ebuild will need to depend on sys-libs/libselinux, as it uses some includes provided by that package
Comment 3 Matheus Izvekov 2006-05-12 13:20:26 UTC
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
Comment 4 Patrizio Bassi 2006-09-10 09:11:49 UTC
so strange, bug is still open after all this time :(
Comment 5 Chris PeBenito (RETIRED) gentoo-dev 2006-09-10 09:29:18 UTC
can't reproduce this.  what versions of tcl and tk do you have
Comment 6 Patrizio Bassi 2006-09-10 10:06:15 UTC
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

Comment 7 Chris PeBenito (RETIRED) gentoo-dev 2006-09-11 16:50:41 UTC
I've added the attached patch and additional fix to hopefully take care of these problems.
Comment 8 Chris PeBenito (RETIRED) gentoo-dev 2006-09-11 16:55:01 UTC
the above is committed to cvs
Comment 9 Patrizio Bassi 2006-09-12 03:59:18 UTC
i confirm it's fixed. Thanks, good job.
Comment 10 Jukka Palko 2006-09-22 20:53:45 UTC
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