Bug 225893 - net-analyzer/net-snmp-5.4.1-r4 fails to compile with missing operand error
|
Bug#:
225893
|
Product: Gentoo Linux
|
Version: unspecified
|
Platform: x86
|
|
OS/Version: Linux
|
Status: RESOLVED
|
Severity: normal
|
Priority: P2
|
|
Resolution: FIXED
|
Assigned To: netmon@gentoo.org
|
Reported By: mhaney@ercbroadband.org
|
|
Component: Applications
|
|
|
URL:
|
|
Summary: net-analyzer/net-snmp-5.4.1-r4 fails to compile with missing operand error
|
|
Keywords:
|
|
Status Whiteboard:
|
|
Opened: 2008-06-11 12:26 0000
|
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
Could you please also post the output of `emerge -vp
=net-analyzer/net-snmp-5.4.1-r4`.
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
I failed to reproduce this problem. Please, attach config.log from build
directory and full build log...
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.
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?
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.
(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.
The latest autoconf update seems to have fixed the dependency problem as well
as the problem compiling net-snmp. Great work guys!