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

Bug 218490

Summary: [PATCH] sys-kernel/kccmp-0.2 fails to compile with gcc-4.3
Product: Gentoo Linux Reporter: Martin Väth <martin>
Component: [OLD] GCC PortingAssignee: Mike Pagano <mpagano>
Status: RESOLVED FIXED    
Severity: normal CC: esigra, kernel
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 198121    
Attachments: Fix include for gcc-4.3

Description Martin Väth 2008-04-19 21:58:29 UTC
sys-kernel/kccmp-0.2 fails to compile with gcc-4.3
Comment 1 Martin Väth 2008-04-19 21:59:04 UTC
Created attachment 150327 [details, diff]
Fix include for gcc-4.3
Comment 2 Mike Pagano gentoo-dev 2008-04-24 01:57:32 UTC
Can you give me a bit of info on your setup? gcc 4.3.0 compiles kccmp on my system.

Comment 3 Martin Väth 2008-04-24 10:29:51 UTC
I guess the reason is that I USE -qt4: Perhaps the qt4 headers have the missing
include in them (I did not download qt4 just for checking...). The error which I get is rather obvious:

main.cpp: In function ‘int main(int, char**)’:
main.cpp:64: error: ‘exit’ was not declared in this scope
make: *** [obj/main.o] Error 1

Anyway, here is an emerge --info with which compilation fails:

Portage 2.1.4.4 (default/linux/amd64/2008.0/desktop, gcc-4.3.0, glibc-2.6.1-r0, 2.6.24-hardened x86_64)
=================================================================
System uname: 2.6.24-hardened x86_64 AMD Athlon(tm) 64 Processor 3000+
Timestamp of tree: Wed, 23 Apr 2008 16:45:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.4
dev-lang/python:     2.4.4-r9
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.2
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.24
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -fno-ident -pipe"
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"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=native -O2 -fno-ident -pipe"
DISTDIR="/big/distdir.mv/distfiles"
FEATURES="candy ccache collision-protect distlocks sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="C"
LINGUAS="en de"
MAKEOPTS="-j2"
PKGDIR="/big/gentoo/x86_64"
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="/gentoo64/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="16bit 3dnow 3dnowext 64bit 7zip S3TC X a52 aac aalib ace acpi addbookmarks adplug aften akode alsa amarok amd64 amr amrnb amrr amrwb aotuv archive arpack async athena audiofile avfs avg bash-completion bcmath berkdb bgpas4 bigpatch binary-drivers binfilter bittorrent bl blas boost branding bzip2 caps cblas ccache cdaudio cdda cdparanoia cdr cdrom cdsound cg chasen checkpath chipcard cmdsubmenu color-console colordiff compress config_wizard connectionstatus cpio crypt css cube curl curlwrappers custom-cflags cvs d darcs dbus de_tvtoday demo device-mapper dga discard-path divx dnd dnotify dolby-record-switch doomsday double-precision dri dtaus dts dv dvbplayer dvd dvdr dvdread dynamic dynamicplugin ecc emacs emovix encode equalizer ermt escreen eurofile exif extra-algorithms extras fam fame fat fbcon ffmpeg filter firefox fix-connected-rt flac flv fmod force-cgi-redirect force-reg fortran fortran95 ftp gd gdbm geldkarte gencertdaily gif gimp ginac git gkrellm glade glgd glibc-omitfp glitz glsa glut gmail gmedia gmp gmtsuppl gmttria gnet gnus gnutella gpg gpm grammar gre grub gs gsm gtk gzip gzip-el hal hardened hbci hddtemp hdri hwmixer ibam iconv id3 id3tag idea ieee1394 ilbc image imagemagick imap int64 ipfilter ipsec iptv irda iris java java-external java6 jbig jce jpeg jpeg2k kde kdecards kdehiddenvisibility kmid kpathsea lame latex libcaca libffi libgcrypt libsamplerate libssh2 libtommath lights lirc live log4j login-watch logitech-mouse logrotate long-double loop-aes lzma lzo mad math matroska maya-shaderlibrary mbox md5sum memlimit metric midi mikmod mime mimencode mixer mjpeg mmx mmxext mng mode-force mode-paranoid modplug mods motif mounts-check mozilla moznocompose moznoirc moznopango moznoxft mp2 mp3 mp3rtp mp4 mp4live mpeg mpeg2 mplayer mschap mtp mudflap multilib musepack nas nat ncurses nemesi new-interface new-reg-alloc nforce2 nls nocd nodpkg nolvm1 nolvmstatic nowin npp nptl nptlonly nsplugin nuv nvidia nvtv nxclient octave offensive office ogg ogre openal opendoc openexr opengl openstreetmap opera oss otr pager patch pch pcntl pcre pdf perl pic player plib plotutils pmount png pnm pop portage portaudio posix postproc postscript preview-latex print projectx ps pygrub python qa qemu qmax qt3 quicktime radio rar rc5 readline real realmedia realms recode reiser4 reiserfs remix replaygain replytolist resid resolvconf restrict-javascript rle roe rogue rotor rtsp scenarios screen sdl sdl-image sdlaudio seamonkey setup-plugin shout sid skins slang smime sndfile songs sou sox speex spell srt sse sse2 ssl stats stlport stream submenu subtitles subversion suidcheck svg svk sysfs szip tagwriting tcl tcpmd5 teletext tetex tex tex4ht textures themes theora thesaurus threads threadsafe tiff timidity tivo tk tomsfastmath toolkit-scroll-bars transcode truetype tta tv tv_check tv_pick_cgi twolame ui underscores unicode unzip usb userfiles userlocales uudeview uuencode v4l v4l2 vamp vcd vcdx videos visual visualization vlm voice volctrl vorbis vorbis-psy wav wavpack weak-algorithms win32codecs wma wmf wmp wordperfect wxwindows x264 xanim xatrix xcomposite xext xgetdefault xine xiph xlockrc xorg xplanet xpm xrandr xscreensaver xterm xv xvid xvmc yaepg yv12 zip zlib zoran zsh-completion zvbi" ALSA_CARDS="bt87x mpu401 seqdummy serialmidi serial-u16550 via82xx virmidi" ALSA_PCM_PLUGINS="*" 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" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en de" LIRC_DEVICES="pctv" USERLAND="GNU" VIDEO_CARDS="nv nvidia v4l"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

Comment 4 Mike Pagano gentoo-dev 2008-04-27 01:47:22 UTC
Fix committed to tree, reopen if you encounter any issues.