My progress has slowly taken a few backwards steps.

Trying to compile the NetSNMPv5.4 package on my PC (to verify it works), I can 
issue the "./configure"(see below), "make" and "make install" command.  As a 
result, the "/export/home/rosent1/snmp/usr/local" directory is populated with a 
bunch of stuff (as expected).  

./configure \
--prefix=/export/home/rosent1/snmp/usr/local \
--srcdir=/export/home/rosent1/snmp/net-snmp \
--with-default-snmp-version="3" \
--with-sys-contact="contact" \
--with-sys-location="location" \
--with-logfile="/export/home/rosent1/snmp/net-snmp/var/log/snmpd.log" \
--with-persistent-directory="/export/home/rosent1/snmp/net-snmp/var/net-snmp" \
--disable-embedded-perl \
--without-perl-modules


I noticed in the "/export/home/rosent1/snmp/usr/local/lib" directory there are 
files which are created which are in the form of the following:

lib(xxxxxx).a
lib(xxxxxx).la
lib(xxxxxx).so
lib(xxxxxx).so.15
lib(xxxxxx).so.15.0.0


Next, I compiled my subAgent and was able to start the master agent (snmpd) and 
my subagent and perform some snmp requests.

Now, if I repeat the entire process from the beginning again but use the 
"--disable-shared" option in the configure (see below), then the 
"lib(xxxxxx).so"
"lib(xxxxxx).so.15", "lib(xxxxxx).so.15.0.0" files are not produced.  When I 
try to start my subAgent without these files existing, then I get an error 
indicating the need for these files to exist.  Why does "--disable-shared" 
cause these files not to be produced? 


./configure \
 --prefix=/export/home/rosent1/snmp/usr/local \
 --srcdir=/export/home/rosent1/snmp/net-snmp \
 --with-default-snmp-version="3" \
 --with-sys-contact="contact" \
 --with-sys-location="location" \
 --with-logfile="/export/home/rosent1/snmp/net-snmp/var/log/snmpd.log" \
 --with-persistent-directory="/export/home/rosent1/snmp/net-snmp/var/net-snmp" \
 --disable-embedded-perl \
 --without-perl-modules \
--disable-shared


** When it came time to cross-compile the NetSNMP package to use in our 
hardware box environment (rather than just testing it on a PC), then the only 
way I could get the code to finally compile was if I used the 
"--disable-shared" option.   Anyway, I just discovered that using this option 
stops the required library files from being produced, which is bad.   This 
means, if I must not use the "--disable-share" option, then my 
cross-compilation will now fail.

Anyway, perhaps someone can explain why these library files do not show up when 
I use the "--disable-shared" configure option.    I will then decide whether I 
should actually be using this option, and if not, then will have to figure out 
some more cross-compilation errors later.






       
---------------------------------
Boardwalk for $500? In 2007? Ha! 
Play Monopoly Here and Now (it's updated for today's economy) at Yahoo! Games.
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to