net-snmp using RSB
Cen Zhao
cenzhao at fb.com
Tue Jul 21 04:11:45 UTC 2015
Hi Chris,
Thanks for your help, I worked closely with Adit on the same project.
So with the new configure, We were able to compile it. Now we're trying to
figure out how
to use it. Here's a couple of questions:
1. For untaring the files to memory, did you simply create the
file net_snmp_files.tar from /etc/snmpd.conf? That way, when you call
untar, it extracts to /etc/snmpd.conf, and then the agent can use that
Configuration?
2. The sample code from wiki declares a set of init functions and
int snmpd_init (rtems_task_priority priority, char* cmdline);
I found out that those init functions are defined in snmp agent source
code, but I couldn't find the definitions of snmpd_init();
Where does this function get defined and how can we hook snmpd (binary
executable) with RTEMS application code ?
Could you explain the building process with more details?
Thank you !
Cen
On 7/20/15, 4:41 PM, "users on behalf of Chris Johns"
<users-bounces at rtems.org on behalf of chrisj at rtems.org> wrote:
>On 21/07/2015 2:22 am, Adit Sahasrabudhe wrote:
>> So it still seems to be trying to perform a Canadian cross build,
>>instead
>> of a standard cross build. Here is the output I get:
>>
>> [dev at centos6: rtems]$ ../source-builder/sb-set-builder
>>--log=log_snmp.txt
>> --prefix=~/development/rtems/4.11/ --host=arm-rtems4.11
>> --rtems-bsp=arm/altcycv_devkit 4.11/net-mgmt/net-snmp
>> RTEMS Source Builder - Set Builder, v4.11.0
>> Build Set: 4.11/net-mgmt/net-snmp
>> config: net-mgmt/net-snmp-5.7.2.1-1.cfg
>> error: config error: rtems-bsp.cfg:20: Canadian cross building for BSP
>>is
>> not supported.
>> Build FAILED
>> Build Set: Time 0:00:00.003678
>> Build FAILED
>
>This makes sense because --build, --host and --target are all different.
>The --rtems-bsp sets --target and you are setting --host.
>
>Try:
>
> $ ../source-builder/sb-set-builder --log=log_snmp.txt \
> --prefix=~/development/rtems/4.11/ \
> --rtems-bsp=arm/altcycv_devkit 4.11/net-mgmt/net-snmp
>
>Chris
>_______________________________________________
>users mailing list
>users at rtems.org
>https://urldefense.proofpoint.com/v1/url?u=http://lists.rtems.org/mailman/
>listinfo/users&k=ZVNjlDMF0FElm4dQtryO4A%3D%3D%0A&r=36pazbxeUPhcsxOFws5axw%
>3D%3D%0A&m=rZywbDvVfV1UwjbJSKM3yg3rdSfovzUsDqZwZKsSi0g%3D%0A&s=61c93cacb1d
>44bf7159bc3a4414eb304ec217540f14bb185b6d9bf221e9eecbe
More information about the users
mailing list