Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 300613 - sys-apps/policycoreutils-2.0.69-r1 fails to compile
Summary: sys-apps/policycoreutils-2.0.69-r1 fails to compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Chris PeBenito (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-11 18:37 UTC by Ioannis Aslanidis (RETIRED)
Modified: 2011-02-06 15:37 UTC (History)
2 users (show)

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


Attachments
Add missing include (policycoreutils-2.0.69-fix-includes.patch,386 bytes, patch)
2010-12-03 23:55 UTC, Jacobo Luis Mejías Albertos
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ioannis Aslanidis (RETIRED) gentoo-dev 2010-01-11 18:37:39 UTC
>>> Emerging (1 of 293) sys-apps/policycoreutils-2.0.69-r1
 * policycoreutils-2.0.69.tar.gz RMD160 SHA1 SHA256 size ;-) ...                                                                                                                                                          [ ok ]
 * policycoreutils-extra-1.20.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...                                                                                                                                                     [ ok ]
 * checking ebuild checksums ;-) ...                                                                                                                                                                                      [ ok ]
 * checking auxfile checksums ;-) ...                                                                                                                                                                                     [ ok ]
 * checking miscfile checksums ;-) ...                                                                                                                                                                                    [ ok ]
 * CPV:  sys-apps/policycoreutils-2.0.69-r1                                                                                                                                                                                     
 * REPO: gentoo                                                                                                                                                                                                                 
 * USE:  amd64 elibc_glibc kernel_linux multilib nls userland_GNU                                                                                                                                                               
>>> Unpacking source...                                                                                                                                                                                                         
>>> Unpacking policycoreutils-2.0.69.tar.gz to /var/tmp/portage/sys-apps/policycoreutils-2.0.69-r1/work                                                                                                                         
>>> Unpacking policycoreutils-extra-1.20.tar.bz2 to /var/tmp/portage/sys-apps/policycoreutils-2.0.69-r1/work                                                                                                                    
>>> Source unpacked in /var/tmp/portage/sys-apps/policycoreutils-2.0.69-r1/work                                                                                                                                                 
>>> Compiling source in /var/tmp/portage/sys-apps/policycoreutils-2.0.69-r1/work/policycoreutils-2.0.69 ...                                                                                                                     
 * Compiling policycoreutils                                                                                                                                                                                                    
make -j4 -C /var/tmp/portage/sys-apps/policycoreutils-2.0.69-r1/work/policycoreutils-2.0.69 PYLIBVER=python2.6 AUDIT_LOG_PRIV=y                                                                                                 
make: Entering directory `/var/tmp/portage/sys-apps/policycoreutils-2.0.69-r1/work/policycoreutils-2.0.69'                                                                                                                      
make[1]: Entering directory `/var/tmp/portage/sys-apps/policycoreutils-2.0.69-r1/work/policycoreutils-2.0.69/setfiles'                                                                                                          
cc -Werror -Wall -march=k8 -O3 -pipe -fomit-frame-pointer -W -I/usr/include -DUSE_AUDIT   -c -o setfiles.o setfiles.c                                                                                                           
cc1: warnings being treated as errors                                                                                                                                                                                           
setfiles.c: In function ‘main’:
setfiles.c:730: error: ‘mount_info[3]’ may be used uninitialized in this function
setfiles.c:730: note: ‘mount_info[3]’ was declared here
make[1]: *** [setfiles.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/sys-apps/policycoreutils-2.0.69-r1/work/policycoreutils-2.0.69/setfiles'
make: *** [all] Error 1
make: Leaving directory `/var/tmp/portage/sys-apps/policycoreutils-2.0.69-r1/work/policycoreutils-2.0.69'
 * ERROR: sys-apps/policycoreutils-2.0.69-r1 failed:
 *   (no error message)
 *
 * Call stack:
 *     ebuild.sh, line  48:  Called src_compile
 *   environment, line 3305:  Called die
 * The specific snippet of code:
 *       emake -C "${S}" PYLIBVER="python${PYVER}" AUDIT_LOG_PRIV=y || die;
 *
 * If you need support, post the output of 'emerge --info =sys-apps/policycoreutils-2.0.69-r1',
 * the complete build log and the output of 'emerge -pqv =sys-apps/policycoreutils-2.0.69-r1'.
 * The complete build log is located at '/var/tmp/portage/sys-apps/policycoreutils-2.0.69-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-apps/policycoreutils-2.0.69-r1/temp/environment'.
 * S: '/var/tmp/portage/sys-apps/policycoreutils-2.0.69-r1/work/policycoreutils-2.0.69'



Portage 2.2_rc61 (default/linux/amd64/10.0/desktop, gcc-4.4.2, glibc-2.11-r1, 2.6.31-gentoo-r6 x86_64)
=================================================================
System uname: Linux-2.6.31-gentoo-r6-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q9550_@_2.83GHz-with-gentoo-2.0.1
Timestamp of tree: Mon, 11 Jan 2010 10:45:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p35
dev-java/java-config: 2.1.9-r2
dev-lang/python:     2.6.4
dev-python/pycrypto: 2.1.0
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.8.0
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.0
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.20
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA dlj-1.1"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O3 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb"
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/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=k8 -O3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests buildpkg ccache distlocks fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://gentoo.virginmedia.com/ "
LANG="en_US.UTF-8"
LDFLAGS="-Wl,--as-needed"
LINGUAS="en en_US es es_ES el"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
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="/usr/portage/local/layman/java-overlay /usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="7zip X a52 aac aalib acl acpi alsa amarok amd64 apache2 applet archive artworkextra aspell async audiofile automount background bash-completion berkdb bittorrent bluetooth branding bzip2 cairo ccache cdb cddb cdinstall cdparanoia cdr cdrom cdsound chroot cli color-console consolekit cracklib crypt cups cursors custom-optimization cxx dbus dell directfb disk-partition divx dovecot-sasl dri dts dv dvb dvbplayer dvbsetup dvd dvdarchive dvdchapjump dvdr dvi dvi2tty dvlfriendlyfnames dvlrecscriptaddon dvlvidprefer dxr2 dxr3-audio-denoise eds embedded emboss emoticon emovix enca encode escreen evo exif expat fam fastcgi fbcon ffmpeg fftw firefox firefox3 flac flash fortran ftp gcj gd gdbm gdm geoip gif gimp glep glib glibc-compat20 glibc-omitfp glsa glut gmedia gmp gnome gphoto2 gpm graphviz groupwise grub gstreamer gtk hal icons iconv id3 id3tag ieee1394 imagemagick imap inifile ipfilter ipod iproute2 ipsec ipv6 jabber java java6 javacomm javamail javascript jpeg jpeg2k kde kdebuild kdm lame ldap libffi libnotify libwww live lm_sensors logrotate logviewer mad maildir mailwrapper mikmod mime mmap mmx mmxext mng modules mp2 mp3 mp3tunes mp4 mpeg msn mudflap multilib mysql ncurses network nfs nls nptl nptlonly nsplugin nxclient ogg openal opengl openmp openssh openssl pam pcre pda pdf perl pidgin png pnm postgres ppds pppd python qt3support qt4 quicktime readline realmedia redland reflection rsync rtsp samba sasl sdl session speex spell spl sqlite sqlite3 sse sse2 sse3 ssh ssl ssse3 startup-notification svg sysfs tcpd theora thunar tiff truetype unicode unzip upnp usb v4l v4l2 vcd vhosts videos vorbis webkit x264 xcb xine xinerama xml xorg xscreensaver xulrunner xv xvid zlib" 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" 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 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US es es_ES el" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa via vmware voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Ioannis Aslanidis (RETIRED) gentoo-dev 2010-01-18 10:11:30 UTC
Looks like a gcc-4.4.2 problem. Compiles fine with gcc-4.2.x.
Comment 2 Andrei Ruslantsev 2010-10-14 19:01:14 UTC
(In reply to comment #1)
> Looks like a gcc-4.4.2 problem. Compiles fine with gcc-4.2.x.

It's not the problem only of gcc-4.4.2. I can't emerge policycoreutils with gcc-4.4.3 and gcc-4.4.4. So, it seems to be a gcc-4.4.x problem

Comment 3 Marek Bartosiewicz 2010-11-05 13:41:43 UTC
Same with gcc-4.5.1

* Compiling policycoreutils
make -j3 -C /var/tmp/portage/sys-apps/policycoreutils-2.0.69-r1/work/policycoreutils-2.0.69 PYLIBVER=python2.6 AUDIT_LOG_PRIV=y
make: Wejście do katalogu `/var/tmp/portage/sys-apps/policycoreutils-2.0.69-r1/work/policycoreutils-2.0.69'
make[1]: Wejście do katalogu `/var/tmp/portage/sys-apps/policycoreutils-2.0.69-r1/work/policycoreutils-2.0.69/setfiles'
cc -Werror -Wall -O2 -pipe -march=nocona -msse -msse2 -msse3 -mfpmath=sse -W -I/usr/include -DUSE_AUDIT   -c -o setfiles.o setfiles.c
cc1: warnings being treated as errors
setfiles.c: In function ‘filespec_add’:
setfiles.c:128: error: implicit declaration of function ‘lstat’
setfiles.c: In function ‘match’:
setfiles.c:315: error: implicit declaration of function ‘S_ISLNK’
setfiles.c: In function ‘main’:
setfiles.c:997: error: implicit declaration of function ‘stat’
setfiles.c:1001: error: implicit declaration of function ‘S_ISREG’
make[1]: *** [setfiles.o] Błąd 1
make[1]: Opuszczenie katalogu `/var/tmp/portage/sys-apps/policycoreutils-2.0.69-r1/work/policycoreutils-2.0.69/setfiles'
make: *** [all] Błąd 1
make: Opuszczenie katalogu `/var/tmp/portage/sys-apps/policycoreutils-2.0.69-r1/work/policycoreutils-2.0.69'
emake failed
 * ERROR: sys-apps/policycoreutils-2.0.69-r1 failed:
 *   (no error message)
 *
 * Call stack:
 *     ebuild.sh, line  56:  Called src_compile
 *   environment, line 4385:  Called die
 * The specific snippet of code:
 *       emake -C "${S}" PYLIBVER="python$(python_get_version)" AUDIT_LOG_PRIV=y || die;
 *
 * If you need support, post the output of 'emerge --info =sys-apps/policycoreutils-2.0.69-r1',
 * the complete build log and the output of 'emerge -pqv =sys-apps/policycoreutils-2.0.69-r1'.
 * The complete build log is located at '/var/tmp/portage/sys-apps/policycoreutils-2.0.69-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-apps/policycoreutils-2.0.69-r1/temp/environment'.
 * S: '/var/tmp/portage/sys-apps/policycoreutils-2.0.69-r1/work/policycoreutils-2.0.69'
Comment 4 Marek Bartosiewicz 2010-11-05 14:42:06 UTC
adding:
#include <sys/stat.h>
to setfiles.c solves my problem.
Comment 5 Jacobo Luis Mejías Albertos 2010-12-03 23:55:16 UTC
Created attachment 256285 [details, diff]
Add missing include

This patch add the missing "#include <sys/stat.h>" to file setfiles.c
Comment 6 Chris Richards 2011-01-03 00:51:01 UTC
Patched in policycoreutils 2.0.69-r2.

Thanks for the patch!

I'll also be looking at upgrading the policycoreutils package from upstream soon, but don't want to introduce too many changes at one time, as we are still sorting v2refpolicy out also.
Comment 7 Chris Richards 2011-01-31 23:34:00 UTC
Can we close this?  Fixed in version >= sys-apps/policycoreutils-2.0.69-r2.