Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 225893 - net-analyzer/net-snmp-5.4.1-r4 fails to compile with missing operand error
Summary: net-analyzer/net-snmp-5.4.1-r4 fails to compile with missing operand error
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-11 12:26 UTC by Mark Haney
Modified: 2008-06-25 13:13 UTC (History)
2 users (show)

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


Attachments
Build log (build.log,185.12 KB, text/plain)
2008-06-16 14:57 UTC, Mark Haney
Details
Config log (config.log,1.45 MB, text/plain)
2008-06-16 14:58 UTC, Mark Haney
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Haney 2008-06-11 12:26:33 UTC
Updating net-snmp on my x86 box has emerge bombing on compile with a 'no right operand error'.

Reproducible: Always

Steps to Reproduce:
1.emerge -u net-snmp
2. emerge fails.
3.

Actual Results:  
ucd-snmp/disk.c:233:36: error: operator '||' has no right operand
ucd-snmp/disk.c:300:36: error: operator '||' has no right operand
ucd-snmp/disk.c:436:19: error: #if with no expression
ucd-snmp/disk.c:459:36: error: operator '||' has no right operand
ucd-snmp/disk.c:530:19: error: #if with no expression
ucd-snmp/disk.c:556:36: error: operator '||' has no right operand
make[2]: *** [ucd-snmp/disk.lo] Error 1
make[2]: Leaving directory `/var/tmp/portage/net-analyzer/net-snmp-5.4.1-r4/work/net-snmp-5.4.1/agent/mibgroup'
make[1]: *** [subdirs] Error 1
make[1]: Leaving directory `/var/tmp/portage/net-analyzer/net-snmp-5.4.1-r4/work/net-snmp-5.4.1/agent'
make: *** [subdirs] Error 1
 *
 * ERROR: net-analyzer/net-snmp-5.4.1-r4 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 3327:  Called die
 * The specific snippet of code:
 *       emake -j1 || die "emake failed";
 *  The die message:
 *   emake failed
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/net-analyzer/net-snmp-5.4.1-r4/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-analyzer/net-snmp-5.4.1-r4/temp/environment'.
 *

This is the output I get when updating.

Expected Results:  
net-snmp should compile fine.

emerge --info:

Portage 2.1.4.4 (default/linux/x86/2008.0, gcc-4.2.4, glibc-2.6.1-r0, 2.6.16-gentoo i686)
=================================================================
System uname: 2.6.16-gentoo i686 Intel(R) Pentium(R) 4 CPU 2.40GHz
Timestamp of tree: Wed, 11 Jun 2008 10:45:01 +0000
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.3.6-r6, 2.4.4-r13
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
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.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-pipe -O2 -march=i686"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/4.0/env /usr/kde/4.0/share/config /usr/kde/4.0/shutdown /usr/share/config /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-pipe -O2 -march=i686"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ http://distro.ibiblio.org/pub/linux/distributions/gentoo/"
MAKEOPTS="-j2"
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="/usr/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="acl berkdb bzip2 cdr clamav cli cracklib crypt ctype cups dbm dri dvdr ethereal fortran ftp gd gdbm gnome gpm gtk gtk2 hal howl iconv ipv6 isdnlog java javascript kerberos ldap midi mudflap mysql mysqli ncurses nls nptl nptlonly openmp pam pcre perl pppd python readline reflection samba session spl sqlite ssl symlink tcpd unicode usb x86 xml xorg 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 mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so 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" USERLAND="GNU" VIDEO_CARDS="fbdev glint i810 mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa vga via vmware voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2008-06-11 13:24:39 UTC
Could you please also post the output of `emerge -vp =net-analyzer/net-snmp-5.4.1-r4`.
Comment 2 Mark Haney 2008-06-11 13:27:41 UTC
noc5 ~ # emerge -vp =net-analyzer/net-snmp-5.4.1-r4

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     U ] net-analyzer/net-snmp-5.4.1-r4 [5.4.1-r3] USE="ipv6 perl python ssl tcpd -X -diskio -doc -elf -extensible -lm_sensors -mfd-rewrites -minimal -rpm (-selinux) -sendmail -smux" 0 kB

Comment 3 Peter Volkov (RETIRED) gentoo-dev 2008-06-16 14:41:28 UTC
I failed to reproduce this problem. Please, attach config.log from build directory and full build log...
Comment 4 Mark Haney 2008-06-16 14:57:47 UTC
Created attachment 157099 [details]
Build log
Comment 5 Mark Haney 2008-06-16 14:58:11 UTC
Created attachment 157101 [details]
Config log
Comment 6 Peter Volkov (RETIRED) gentoo-dev 2008-06-16 18:51:59 UTC
Thank you for report. I localized this problem and it occurs to be bug in autoconf-2.61 which had broken AC_FUNC_GETMNTENT macros. Fortunately this bug is fixed in autoconf 2.62. I'll call maintainers for autoconf-2.62 stabilization. Also I've added dependency >=autoconf-2.62 for this issue in net-snmp-5.4.1.1. 

Fixed in net-snmp-5.4.1.1.
Comment 7 Mark Haney 2008-06-17 12:06:32 UTC
Well, I was going to test this on my system to see if it's fixed (I'm sure it is, but want to double check and I get this:

Calculating dependencies -
!!! Multiple versions within a single package slot have been
!!! pulled into the dependency graph:

sys-devel/autoconf:2.5

  ('installed', '/', 'sys-devel/autoconf-2.62', 'nomerge') pulled in by
    ('ebuild', '/', 'net-analyzer/net-snmp-5.4.1.1', 'merge')

  ('ebuild', '/', 'sys-devel/autoconf-2.61-r1', 'merge') pulled in by
    ('ebuild', '/', 'net-analyzer/net-snmp-5.4.1.1', 'merge')



What does that mean?
Comment 8 Peter Volkov (RETIRED) gentoo-dev 2008-06-18 16:31:45 UTC
Zmedico, could you help us here? I've added >=autoconf-2.62 dependency to net-snmp, and autotools.eclass pulls in >=autoconf-2.61 dependency.  Now when I have autoconf-2.62 masked I receive different error with the same portage version:

camobap ~ # emerge -va net-snmp

These are the packages that would be merged, in order:

Calculating dependencies |
!!! All ebuilds that could satisfy ">=sys-devel/autoconf-2.62" have been masked.
!!! One of the following masked packages is required to complete your request:
- sys-devel/autoconf-9999 (masked by: missing keyword)
- sys-devel/autoconf-2.62 (masked by: ~x86 keyword)

For more information, see MASKED PACKAGES section in the emerge man page or
refer to the Gentoo Handbook.
(dependency required by "net-analyzer/net-snmp-5.4.1.1" [ebuild])

Why do we have different error messages? What could affect this? The only differences I see are python versions. I have 2.5.2 installed, while Mark has 2.3 and 2.4...

Mark, in any case you should unmask autoconf-2.62, but also mask it after installation as it has some known regressions at the moment, that why it is and stay unstable for some time.
Comment 9 Zac Medico gentoo-dev 2008-06-18 17:33:11 UTC
(In reply to comment #7)
> !!! Multiple versions within a single package slot have been
> !!! pulled into the dependency graph:
> 
> sys-devel/autoconf:2.5
> 
>   ('installed', '/', 'sys-devel/autoconf-2.62', 'nomerge') pulled in by
>     ('ebuild', '/', 'net-analyzer/net-snmp-5.4.1.1', 'merge')
> 
>   ('ebuild', '/', 'sys-devel/autoconf-2.61-r1', 'merge') pulled in by
>     ('ebuild', '/', 'net-analyzer/net-snmp-5.4.1.1', 'merge')

This is a case of bug 1343 that's only triggered when you have autoconf-2.62 both installed and masked at the same time. People won't see something like this unless they have a masked package installed. The correct solution (until 1343 is solved automatically) is to either unmask autoconf-2.62 or else mask it and downgrade.
Comment 10 Mark Haney 2008-06-25 13:13:38 UTC
The latest autoconf update seems to have fixed the dependency problem as well as the problem compiling net-snmp.  Great work guys!