Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 466242 - net-analyzer/net-snmp-5.7.2 not starting on VPS or Raspberry Pi - pcilib: Cannot open /proc/bus/pci
Summary: net-analyzer/net-snmp-5.7.2 not starting on VPS or Raspberry Pi - pcilib: Can...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: ARM Linux
: Normal normal (vote)
Assignee: Gentoo Netmon project
URL: http://sourceforge.net/p/net-snmp/bug...
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2013-04-17 14:08 UTC by Joerg Neikes
Modified: 2014-04-30 23:25 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joerg Neikes 2013-04-17 14:08:06 UTC
emerge --info
Portage 2.1.11.52 (default/linux/arm/13.0/armv6j, gcc-4.6.3, glibc-2.15-r3, 3.8.7+ armv6l)
=================================================================
System uname: Linux-3.8.7+-armv6l-with-gentoo-2.2
KiB Mem:      498112 total,     18288 free
KiB Swap:    1000444 total,    718344 free
Timestamp of tree: Tue, 16 Apr 2013 11:30:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
distcc 3.1 armv6j-hardfloat-linux-gnueabi [disabled]
app-shells/bash:          4.2_p45
dev-lang/python:          2.7.3-r2, 3.2.3
dev-util/cmake:           2.8.9
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.5.4, 4.6.3
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.8 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo x-portage
ACCEPT_KEYWORDS="arm ~arm"
ACCEPT_LICENSE="*"
CBUILD="armv6j-hardfloat-linux-gnueabi"
CFLAGS="-O2 -pipe -march=armv6j -mfpu=vfp -mfloat-abi=hard"
CHOST="armv6j-hardfloat-linux-gnueabi"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=armv6j -mfpu=vfp -mfloat-abi=hard"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe -march=armv6j"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe -march=armv6j"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="de_DE.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl alsa apng arm authlib berkdb bindist bzip2 cdda cddb cli cracklib crypt cups cxx dri dvd dvdnav embed embedded faac ffmpeg flac fortran gd gdbm gme gmp gpm gtk httpd iconv introspection ipv6 jbig jpeg jpeg2k ldap libass libcaca libkms live lua lzma mad matroska modules mp3 mp3rtp mp4 mpeg mplayer mudflap mysql mysqli ncurses network nls nptl ogg openmp oss pam pcre png pulseaudio python readline rtsp sdl session skins snmp speex sqlite ssl svg tcpd theora tiff truetype twolame udev unicode usb v4l vcdx vlm vorbis wma-fixed xml xorg xosd xv xvid zlib" 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 auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file auhz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid 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" APACHE2_MPMS="prefork" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de en_GB" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3 php5-4" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="fbdev" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHO
Comment 1 Joerg Neikes 2013-04-17 14:08:53 UTC
see http://sourceforge.net/p/net-snmp/bugs/2449/

 * Starting snmpd ...
pcilib: Cannot open /proc/bus/pci
pcilib: Cannot find any working access method.
 * start-stop-daemon: failed to start `/usr/sbin/snmpd'
 * Failed to start snmpd                                                                                                                                                                                 [ !! ]
 * ERROR: snmpd failed to star
Comment 2 Joerg Neikes 2013-04-17 15:24:43 UTC
With this patch it works:

http://sourceforge.net/p/net-snmp/bugs/_discuss/thread/193dc0ef/7eb3/attachment/ifmib.patch

mkdir -p /etc/portage/patches/net-analyzer/net-snmp-5.7.2
cd /etc/portage/patches/net-analyzer/net-snmp-5.7.2/
wget http://sourceforge.net/p/net-snmp/bugs/_discuss/thread/193dc0ef/7eb3/attachment/ifmib.patch

MAKEOPTS="-j1" emerge  net-snmp
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2014-04-30 23:25:20 UTC
That patch seems to have settled into 5.7.3.pre3. Please test.