[oe] [meta-oe][PATCHv3 1/3] net-snmp: fix failure when starting on system without pci bus

Paul Eggleton paul.eggleton at linux.intel.com
Wed Apr 17 12:27:21 UTC 2013


On Wednesday 17 April 2013 13:12:08 Jack Mitchell wrote:
> On 17/04/13 13:01, Jack Mitchell wrote:
> > From: Jack Mitchell <jack.mitchell at dbbroadcast.co.uk>
> > 
> > The snmpd daemon cannot start on platforms without a pci bus:
> > 
> > snmpd[15460]: pcilib: Cannot open /proc/bus/pci
> > snmpd[15460]: pcilib: Cannot find any working access method.
> > 
> > snmpd should not depend on a PCI bus and should simply move on.
> > 
> > Signed-off-by: Jack Mitchell <jack.mitchell at dbbroadcast.co.uk>
> > ---
> > 
> >   .../recipes-extended/net-snmp/files/ifmib.patch    | 66
> >   ++++++++++++++++++++++ .../recipes-extended/net-snmp/net-snmp_5.7.1.bb 
> >     |  1 +
> >   2 files changed, 67 insertions(+)
> >   create mode 100644 meta-oe/recipes-extended/net-snmp/files/ifmib.patch
> 
> I've pushed to my github here to try solve the patches failing.
> 
> git://github.com/CommunistCode/meta-oe.git

FWIW, I get the same build failure I got with the old recipe:

| arm-poky-linux-gnueabi-libtool: link: arm-poky-linux-gnueabi-gcc -march=armv5te -marm -mthumb-interwork -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed --sysroot=/home/paul/poky/poky/build/tmp/sysroots/qemuarm -fno-strict-aliasing -O2 -pipe -g -feliminate-unused-debug-types -Ulinux -Dlinux=linux -o .libs/snmpd .libs/snmpd.o -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed  ./.libs/libnetsnmpagent.so ./.libs/libnetsnmpmibs.so /home/paul/poky/poky/build/tmp/work/armv5te-poky-linux-gnueabi/net-snmp/5.7.2-r0/net-snmp-5.7.2/agent/.libs/libnetsnmpagent.so /home/paul/poky/poky/build/tmp/work/armv5te-poky-linux-gnueabi/net-snmp/5.7.2-r0/net-snmp-5.7.2/snmplib/.libs/libnetsnmp.so -lpci -ldl ../snmplib/.libs/libnetsnmp.so -lcrypto -lm
| .libs/snmpd.o: In function `main':
| /home/paul/poky/poky/build/tmp/work/armv5te-poky-linux-gnueabi/net-snmp/5.7.2-r0/net-snmp-5.7.2/agent/snmpd.c:459: undefined reference to `netsnmp_sd_listen_fds'
| collect2: error: ld returned 1 exit status
| make[1]: *** [snmpd] Error 1
| make[1]: Leaving directory `/home/paul/poky/poky/build/tmp/work/armv5te-poky-linux-gnueabi/net-snmp/5.7.2-r0/net-snmp-5.7.2/agent'
| make: *** [subdirs] Error 1
| ERROR: oe_runmake failed
| ERROR: Function failed: do_compile (see /home/paul/poky/poky/build/tmp/work/armv5te-poky-linux-gnueabi/net-snmp/5.7.2-r0/temp/log.do_compile.4144 for further information)

Not that that should in any way block this patchset from going in since
this hasn't changed, but there does appear to be a problem somewhere :(

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre




More information about the Openembedded-devel mailing list