net-snmp-5.4.1-r3 does not provide hrStorageDescr for mount points. Only memory and swap is visible. net-snmp-5.4.1-r1 compiled in September 6th works. The trouble is that if r1 is recompiled now, it also does not work any more. I have tried to compile it with gcc-4.1.2 as before, but that did not help. I guess there might be something wrong with the headers, otherwise the the old binary package would not work. Any suggestion what to try? Downgrade sys-kernel/linux-headers or something similar? There are few similar reports on net-snmp-user mailing list without a solution. emerge --info: Portage 2.1.4.1 (default-linux/amd64/2007.0, gcc-4.2.2, glibc-2.7-r1, 2.6.20-gentoo-r6 x86_64) ================================================================= System uname: 2.6.20-gentoo-r6 x86_64 Dual-Core AMD Opteron(tm) Processor 2218 Timestamp of tree: Fri, 01 Feb 2008 07:15:01 +0000 distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] ccache version 2.4 [disabled] app-shells/bash: 3.2_p33 dev-java/java-config: 1.3.7, 2.1.4 dev-lang/python: 2.4.4-r8, 2.5.1-r5 dev-python/pycrypto: 2.0.1-r6 dev-util/ccache: 2.4-r7 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.24 virtual/os-headers: 2.6.24 ACCEPT_KEYWORDS="amd64 ~amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -march=k8 -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/kde/svn/env /usr/kde/svn/share/config /usr/kde/svn/shutdown /usr/share/config /var/bind" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/grid-security/certificates /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-O2 -march=k8 -pipe" DISTDIR="/net/teran/d0/nfs/gentoo/distfiles" EMERGE_DEFAULT_OPTS="--with-bdeps y" FEATURES="buildpkg distcc distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LINGUAS="en sl" MAKEOPTS="-j32" PKGDIR="/net/teran/d0/nfs/gentoo/packages/amd64.gcc4" 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/xemacs /usr/portage/local/layman/sunrise /usr/portage/local/layman/pro-audio /usr/portage/local/layman/kde /net/teran/d0/nfs/gentoo/portage.local /net/teran/d0/nfs/gentoo/overlays/xeffects" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="3dnow 3dnowext X Xaw3d a52 aac aalib accessibility accounting acl acpi admin afs aiglx aio alsa amarok amd64 amr amrnb amrwb ansi ao apache2 applet arts asf athena atlas avahi bash-completion beagle berkdb bidi binfilter bitmap-fonts bl blas bluetooth bonjour bonobo branding bzip2 cairo calendar canvas caps cddb cdio cdparanoia cdr cern chm cjk clamav cli colordiff console cpudetection cracklib crciprec crypt css ctype cups curl cyrus daap dba dbm dbox2 dbus dedicated deprecated designer-plugin device-mapper dga dia directfb diskio divx4linux djvu dlloader doc dri dssi dts dv dvb dvd dvdr dvi dxr3 edl eds elf elisp emacs emacs-w3 enblend enca encode esd exif exiv2 expat extensible fame fastcgi fat fbcon festival ffmpeg fftw filepicker firefox fits flac float font-server foomaticdb fortran fping freebox freetts ftp fuse gadu galago gcj gcl gd gdbm gif gimp gimpprint glitz gmp gnokii gnome gnuplot gnutls gphoto2 gpm gps graphviz groupwise gsf gstreamer gtk gtk2 gtkhtml guile hal hdhomerun hfs howl hpn htmlhandbook hyperestraier ical iconv idn ieee1394 ifp imagemagick imap imlib inkjar innodb inotify iodbc ipod ipv6 irda isdnlog ithreads ivtv jack java java5 javascript jfs jingle joystick jpeg jpeg2k junit kde kerberos keyring kig-scripting krb4 ktts ladspa lapack laptop latex lcd lcms ldap ldapsam libcaca libclamav libnotify libsamplerate lirc live lm_sensors logrotate lyx lzo mad maps math matroska mbox md5sum mdnsresponder-compat meanwhile messenger mfd-rewrites mhash midi mikmod mime mjpeg mmx mmxext mng modplug mono mozbranding mozdevelop mozilla mozsvg mp2 mp3 mp4 mpeg mpi mplayer msn mtp mudflap mule musepack musicbrainz mysql mysqli nagios-dns nagios-ntp nagios-ping nas nautilus ncurses nemesi network networking networkmanager newxkb njb nls nptl nptlonly nsplugin ntfs nvidia nxclient objc odbc odk ogg ole openal openexr opengl openmp oscar oss overlays pam pcmcia pcre pda pdf pear perl perlsuid php pic png pnm portaudio posix postfix postgres postgresql postscript povray ppds pppd prediction pulseaudio pvr python qq qt qt-static qt3 qt3support qt4 quicktime quotas radio rar rdesktop reaa readline reflection regex reiser4 reiserfs rpc rtc samba sasl sbcl scanner sdl seamonkey sendmail server session sift silc silvercity skey slang slp smime sms smux sndfile snmp soap solver sound sox speex spell spl sqlite srt sse sse2 ssl ssse3 startup-notification subtitles subversion svg sysvipc t1lib tcltk tcpd teletext tetex tga theora threads thunderbird tiff tk tokenizer transcode truetype truetype-fonts type1-fonts unicode upnp usb utempter utf8 v4l v4l2 vcd vhosts visualization vorbis wavpack webdav wifi wmf wxwindows x264 xanim xattr xcomposite xface xfs xim xine xinerama xml xml2 xmlreader xmlrpc xmlwriter xmp xorg xpm xscreensaver xv xvid xvmc zephyr zip 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 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 proxy auth_digest authn_dbd asis cern_meta charset_lite dbd dumpio ident imagemap log_forensic proxy_ajp proxy_balancer proxy_connect proxy_ftp proxy_http version" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en sl" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i810 mach64 mga neomagic nv r128 radeon rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga via vmware voodoo" Unset: CPPFLAGS, CTARGET, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
The problem is the configure script sees the existence of /etc/filesystems and tries to use it in preference to /etc/fstab, mistakenly assuming that /etc/filesystems contains a list of mounted filesystems. Moving /etc/filesystems aside and emerging net-snmp resolves the problem. A patch to 'configure' should be added to the ebuild that does not prefer /etc/filesystems over /etc/fstab. http://forums.gentoo.org/viewtopic-p-5099291.html?sid=5e6a83d8f11365127d68e6c04390200e#5099291
I don't think /etc/fstab is correct solution. configure checks for /etc/mnttab /etc/mtab /etc/filesystems. On linux system /etc/mtab should be used. Do you have this file, Andrej?
And btw, /etc/mtab could be symlink on /proc/mounts, but check that you /proc is really mounted. Matt, btw, have you reproduced this problem? But I suppose that your hint is correct. Thanks.
Ah yes, it looks like /etc/mtab would be the correct choice as it is automatically generated from /proc/mounts by /etc/init.d/checkroot. I have reproduced the problem and confirmed that my work-around resolves the issue with subsequent builds of net-snmp with/without /etc/filesystems in place. (In reply to comment #3) > And btw, /etc/mtab could be symlink on /proc/mounts, but check that you /proc > is really mounted. > > Matt, btw, have you reproduced this problem? But I suppose that your hint is > correct. Thanks. >
(In reply to comment #4) > Ah yes, it looks like /etc/mtab would be the correct choice as it is > automatically generated from /proc/mounts by /etc/init.d/checkroot. > > I have reproduced the problem and confirmed that my work-around resolves the > issue with subsequent builds of net-snmp with/without /etc/filesystems in > place. Then I suppose that bug is INVALID as net-snmp already checks for /etc/mtab existents and the bug itself looks like misconfiguration... If you disagree, please, reopen.
No, the bug is that the configure script finds /etc/filesystems before it looks for /etc/mtab. The ebuild for net-snmp leaves it in a broken state. So this bug is neither resolved or invalid. I don't seem to have the access required to reopen the bug. > Then I suppose that bug is INVALID as net-snmp already checks for /etc/mtab > existents and the bug itself looks like misconfiguration... If you disagree, > please, reopen. >
I did test the new r4 ebuild with /etc/filesystems removed and /etc/mtab linked to /proc/mounts and it works. Since I do the binary builds in a chroot system before I install them on the cluster, /etc/mtab was empty. net-snmp is the only packages with such problems.
(In reply to comment #6) > No, the bug is that the configure script finds /etc/filesystems before it looks > for /etc/mtab. Um, no. Configure checks for /etc/mtab before: if test "$ac_cv_ETC_MNTTAB" = "unknown"; then for i in /etc/mnttab /etc/mtab /etc/filesystems do if test -f $i; then ac_cv_ETC_MNTTAB="$i" break; fi done (In reply to comment #7) > I did test the new r4 ebuild with /etc/filesystems removed and /etc/mtab linked > to /proc/mounts and it works. Since I do the binary builds in a chroot system > before I install them on the cluster, /etc/mtab was empty. net-snmp is the only > packages with such problems. This is misconfiguration of chroot as there are many things which are broken when /proc is not mounted... That's said, next net-snmp release will add ./configure option to set this file: --with-mnttab=/etc/mtab thus it's worth to add it, I think... Reopening until next release.
At the very least, my ebuild from bug #234036 fixes this issue. It may be fixed in earlier versions or revisions, but I haven't tested it on anything else. sky01 ~ # snmpwalk -v2c -c nagios localhost hrStorageDescr HOST-RESOURCES-MIB::hrStorageDescr.1 = STRING: Physical memory HOST-RESOURCES-MIB::hrStorageDescr.3 = STRING: Virtual memory HOST-RESOURCES-MIB::hrStorageDescr.6 = STRING: Memory buffers HOST-RESOURCES-MIB::hrStorageDescr.7 = STRING: Cached memory HOST-RESOURCES-MIB::hrStorageDescr.8 = STRING: Shared memory HOST-RESOURCES-MIB::hrStorageDescr.10 = STRING: Swap space HOST-RESOURCES-MIB::hrStorageDescr.31 = STRING: / sky01 ~ # emerge -Cp net-snmp >>> These are the packages that would be unmerged: !!! 'net-analyzer/net-snmp' is part of your system profile. !!! Unmerging it may be damaging to your system. net-analyzer/net-snmp selected: 5.4.1.1-r1 protected: none omitted: none >>> 'Selected' packages are slated for removal. >>> 'Protected' and 'omitted' packages will not be removed.
Please report upstream if this is still an issue.