mibII/ipv6.c:2146: error: expected '{' at end of input make[2]: *** [mibII/ipv6.lo] Error 1 make[2]: Leaving directory `/var/tmp/portage/net-analyzer/net-snmp-5.4.2.1/work/net-snmp-5.4.2.1/agent/mibgroup' make[1]: *** [subdirs] Error 1 make[1]: Leaving directory `/var/tmp/portage/net-analyzer/net-snmp-5.4.2.1/work/net-snmp-5.4.2.1/agent' make: *** [subdirs] Error 1 (FULL BUILD LOG WILL BE ATTACHED) (thanks!) Reproducible: Always Actual Results: compile failure Expected Results: ideally it should bring me a beer while it compiles, but merely finishing compiling would solve the bug :) Portage 2.2_rc23-r2 (default/linux/x86/2008.0/desktop, gcc-4.3.3, glibc-2.9_p20081201-r2, 2.6.28-gentoo-r1 i686) ================================================================= System uname: Linux-2.6.28-gentoo-r1-i686-Intel-R-_Pentium-R-_4_CPU_3.00GHz-with-glibc2.0 Timestamp of tree: Thu, 26 Feb 2009 12:35:01 +0000 ccache version 2.4 [disabled] app-shells/bash: 3.2_p48-r1 dev-java/java-config: 2.1.7 dev-lang/python: 2.5.4-r2 dev-python/pycrypto: 2.0.1-r6 dev-util/ccache: 2.4-r8 dev-util/cmake: 2.6.2-r1 sys-apps/baselayout: 2.0.0-r1 sys-apps/openrc: 0.4.2 sys-apps/sandbox: 1.3.7 sys-devel/autoconf: 2.13, 2.63 sys-devel/automake: 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.19.1 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6a virtual/os-headers: 2.6.28-r1 ACCEPT_KEYWORDS="x86 ~x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=pentium4 -pipe -U_FORTIFY_SOURCE" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/4.2/env /usr/kde/4.2/share/config /usr/kde/4.2/shutdown /usr/share/config" 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/terminfo /etc/udev/rules.d" CXXFLAGS="-O2 -march=pentium4 -pipe -U_FORTIFY_SOURCE" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks fixpackages parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LDFLAGS="-Wl,-O1" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" 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="/root/portage" PORTDIR_OVERLAY="/root/portdir_overlay" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X aac aalib acl acpi alsa amrnb amrwb audiofile berkdb bindist bl bluetooth branding bzip2 cairo ccache cdaudio cddb cdio cdparanoia cdr cdrom cli cracklib crypt cups dbus dga directfb dri dts dv dvb dvd dvdr dvdread eds embedded emboss enca encode esd evo fam ffmpeg firefox firefox3 flac flash font-server fontconfig fontforge foomaticdb fortran ftp gdbm ggi gif gnome gnutls gpm groupwise grub gstreamer gtk hal iconv ipv6 isdnlog jack java jpeg kde kdebuild kdecards kdeenablefinal kdehiddenvisibility kdepim kdeprefix kdm kdrive ladspa libcaca libnotify lirc live logrotate lzo mad md5sum mdnsresponder-compat midi mmx mmxext mp2 mp3 mpeg mudflap musepack nas ncurses nemesi networkmanager nls nptl nptlonly ogg openal opengl openmp oss pam pcre pdf perl png ppds pppd prediction pulseaudio python qq qt3 qt3support qt4 quicktime radio rar readline reflection rtc samba sasl sdl session silc speech spell spl srt sse sse2 ssl startup-notification svg svga sysfs tcl tcpd tiff tk truetype unicode usb v4l v4l2 vorbis win32codecs winpopup x264 x86 xanim xchatdccserver xft xine xinerama xinetd xml xorg xscreensaver xulrunner xv xvid xvmc zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="vesa ati" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Created attachment 183448 [details] build log detailing full build and compile failure
Thank you for report, Andrew. Please show us USE flags you are trying to build net-snmp with (emerge -pv net-snmp). With USE=ipv6 I failed to reproduce this problem...
(In reply to comment #2) > Thank you for report, Andrew. Please show us USE flags you are trying to build > net-snmp with (emerge -pv net-snmp). With USE=ipv6 I failed to reproduce this > problem... > [ebuild N ] net-analyzer/net-snmp-5.4.2.1 USE="X perl python ssl tcpd -diskio -doc -elf -extensible -ipv6 -lm_sensors -mfd-rewrites -minimal -rpm (-selinux) -sendmail -smux" 0 kB It breaks in a different spot if I drop it in package.use -ipv6. I've done some testing locally and my toolchain appears solid (emerge -e world built 1050 some packages 3 days ago without a problem). I keep the system up, revdep, and depclean so it should be pretty consistent. Also I'm not doing any serious ricer optimizations anywhere. Are we using the same GCC? # gcc -v Using built-in specs. Target: i686-pc-linux-gnu Configured with: /var/tmp/portage/sys-devel/gcc-4.3.3/work/gcc-4.3.3/configure --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/4.3.3 --includedir=/usr/lib/gcc/i686-pc-linux-gnu/4.3.3/include --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/4.3.3 --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/4.3.3/man --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/4.3.3/info --with-gxx-include-dir=/usr/lib/gcc/i686-pc-linux-gnu/4.3.3/include/g++-v4 --host=i686-pc-linux-gnu --build=i686-pc-linux-gnu --disable-altivec --disable-fixed-point --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --enable-secureplt --disable-multilib --enable-libmudflap --disable-libssp --enable-libgomp --enable-cld --disable-libgcj --with-arch=i686 --enable-languages=c,c++,treelang,fortran --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --with-bugurl=http://bugs.gentoo.org/ --with-pkgversion='Gentoo 4.3.3 p1.0, pie-10.1.5' Thread model: posix gcc version 4.3.3 (Gentoo 4.3.3 p1.0, pie-10.1.5)
After irc discussion we decided to close bug. net-snmp builds here for me and for some other people too.
This line is the result of `perl -MExtUtils::Embed -e ccopts` checking for Perl CFLAGS... -fno-strict-aliasing -pipe -I/usr/src/linux/include <snip> -I/usr/lib/perl5/5.10.0/i686-linux/CORE That's perl 5.10 (from perl-experimental overlay probably, I just hit the same problem), and it suggests to use kernel includes (while current portage does not, and compilation works fine with it) Reopening for reassign, that one is rather for perl
I've removed -Dlocincpth="/usr/src/linux/include" from the ebuild. I don't know why it was added at all. Thanks