Dear net-snmp community

Andrew has very kindly tried to help me, but I haven't made much progress
to be honest. So, after establishing, that I am missing the libpcre
library, I tried to compile that library from source, hitting yet another
error (to do with "./.libs/libpcre.so: error adding symbols: File in wrong
format", which is also known out there, but no real solution that I could
find).


Anyway, while doing that, I noticed that I _do_ have the libpcre library on
my system. I downloaded a couple of weeks ago the source code for the STB
and compiled it, in that tree there is also the libpcre available!

So, my question is now: how to I tell the ./configure script of net-snmp to
look in that directory for the missing libpcre? I have tried a million
things (LDFLAGS, env variables, --with-sysroot, soft links, all kinds of
stuff), but I simply do not know the syntax to tell configure (or make?) to
go and check out that directory for the libpcre.

So, any help would be highly appreciated!!!

The libpcre on my system are located in my users home directory, under:

*user@host:~$ file
./openvuplus_3.0/build/vusolo4k/tmp/sysroots/vusolo4k/usr/lib/libpcre.so.1.2.4*
*./openvuplus_3.0/build/vusolo4k/tmp/sysroots/vusolo4k/usr/lib/libpcre.so.1.2.4:
ELF 32-bit LSB  shared object, ARM, EABI5 version 1 (SYSV), dynamically
linked, BuildID[sha1]=335b7191beb073ea9f6567442c6269855f4053bc, not
stripped*

So, what is the correct syntax? I simply have not enough knowledge about
the whole build process, to find this out.


Thanks
Thomas



2016-04-24 21:59 GMT+02:00 Thomas Stolt <thomas.st...@gmail.com>:

> Ok, I accept that. My next question would then be: "How do I compile the
> libpcre for that target?".
>
> Sorry, I am not very good at this!
>
>
> Thanks!
>
> 2016-04-24 19:57 GMT+02:00 Andrew <ni...@seti.kr.ua>:
>
>> You have no libpcre compiled for target...
>>
>>
>> 24.04.2016 19:30, Thomas Stolt пишет:
>>
>> Hi net-snmp Experts
>>
>> I am trying to compile the net-snmp agent for an STB, based on ARM
>> processor (VU+ Solo 4K). I can successfully compile the agent when choosing
>> "--mini-agent", but to make sense I would need the agent to support the
>> MIBs as well (host, if, etc). Here is what I did so far:
>>
>>
>> On my Ubuntu box I did:
>> *sudo add-apt-repository ppa:linaro-maintainers/toolchain*
>> *sudo apt-get-update*
>> *sudo apt-get-install gcc-arm-linux-gnueabihf*
>>
>> *git clone git://git.code.sf.net/p/net-snmp/code
>> <http://git.code.sf.net/p/net-snmp/code>*
>> *cd code*
>> *./configure \*
>> *--host=* *arm-linux-gnueabihf \*
>> *--target=* *arm-linux-gnueabihf \*
>> *--build=i686 \*
>> *--disable-manuals \*
>> *–-with-cc=arm-linux-gnueabihf-gcc \*
>> *--with-ar=* *arm-linux-gnueabihf-ar \*
>> *--disable-ipv6 \*
>> *--without-rpm \*
>> *--disable-embedded-perl \*
>> *--disable-deprecated \*
>> *--enable-mini-agent \*
>> *--disable-shared \*
>> *--enable-static*
>>
>> So, that way, the agent compiles (and works) successfully. But, if I
>> remove the *--enable-mini-agent*, it throws me this error:
>>
>> *libtool: link: arm-linux-gnueabihf-gcc -fno-strict-aliasing -g -O2
>> -Ulinux -Dlinux=linux -Wall -Wstrict-prototypes -Wwrite-strings -Wcast-qual
>> -o snmpd snmpd.o ./.libs/libnetsnmpagent.a ./.libs/libnetsnmpmibs.a
>> /home/crayfish/code/agent/.libs/libnetsnmpagent.a
>> /home/crayfish/code/snmplib/.libs/libnetsnmp.a -ldl
>> ../snmplib/.libs/libnetsnmp.a -lm*
>> *./.libs/libnetsnmpmibs.a(proc.o): In function `proc_parse_config':*
>> */home/crayfish/code/agent/mibgroup/ucd-snmp/proc.c:232: undefined
>> reference to `pcre_compile'*
>> *./.libs/libnetsnmpmibs.a(swrun.o): In function
>> `swrun_count_processes_by_regex':*
>> */home/crayfish/code/agent/mibgroup/host/data_access/swrun.c:134:
>> undefined reference to `pcre_exec'*
>> *collect2: error: ld returned 1 exit status*
>> *make[1]: *** [snmpd] Fehler 1*
>> *make[1]: Verzeichnis »/home/crayfish/code/agent« wird verlassen*
>> *make: *** [subdirs] Fehler 1*
>>
>> *I have tried a number of things (guess work really), also the option
>> --without-pcre does not help.*
>>
>> *Any ideas please? I am at a loss now.*
>>
>>
>> *Thanks*
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Find and fix application performance issues faster with Applications Manager
>> Applications Manager provides deep performance insights into multiple tiers 
>> of
>> your business applications. It resolves application problems quickly and
>> reduces your MTTR. Get your free 
>> trial!https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
>>
>>
>>
>> _______________________________________________
>> Net-snmp-users mailing listnet-snmp-us...@lists.sourceforge.net
>> Please see the following page to unsubscribe or change other 
>> options:https://lists.sourceforge.net/lists/listinfo/net-snmp-users
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Find and fix application performance issues faster with Applications
>> Manager
>> Applications Manager provides deep performance insights into multiple
>> tiers of
>> your business applications. It resolves application problems quickly and
>> reduces your MTTR. Get your free trial!
>> https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
>> _______________________________________________
>> Net-snmp-users mailing list
>> Net-snmp-users@lists.sourceforge.net
>> Please see the following page to unsubscribe or change other options:
>> https://lists.sourceforge.net/lists/listinfo/net-snmp-users
>>
>>
>
------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to