On 28/01/2012 09:24, Vincent Bernat wrote:
> OoO En cette nuit nuageuse du  samedi 28 janvier 2012, vers 00:45, Simon
> Chamlian<[email protected]>  disait :
>
>> Since there is no answer, I should presume there is no way to compile
>> the libraries into one application: snmpd?
>
> Those libs are  not loadable modules, they are  dynamic libraries loaded
> and  linked  when  snmpd  starts.   The  MIB  modules  are  compiled  in
> libnetsnmpmibs.so. You may  try to push this file  instead of snmpd when
> doing  a  small  change.  Maybe  Net-SNMP will  accept  to  be  compiled
> statically:
>   ./configure --with-mib-modules="..." LDFLAGS="-static"
>

Here's how I build a statically linked snmpd:
./configure --... --enable-shared=no --with-ldflags=-Bstatic

-- 
Peter Hertting

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to