Hello all,

i use following script for download compile and install :-)

<-- Beginn -->

#!/bin/sh

SNMP_Version=3D"5.4.1.rc";

sysLocation=3D"Your Location";
sysContact=3D"Your e-mail";

SourceDirectory=3D"/install/tarballs";

################################################## #########################=
######
# =
#
# Config END =
#
# =
#
################################################## #########################=
######

if [ ! -d "${SourceDirectory}" ];then
mkdir -p "${SourceDirectory}";
if [ $? -gt 0 ];then
echo "can't create Directory: ${SourceDirectory}";
exit;
fi;
fi;

cd "${SourceDirectory}"
if [ $? -gt 0 ];then
echo "can't change to Directory: ${SourceDirectory}";
exit;
fi;

################################################## #########################=
######
# =
#
# Get the Source Version from sourceforge.org =
#
# =
#
################################################## #########################=
######
if [ ! -f "${SourceDirectory}/net-snmp-${SNMP_Version}.tar.gz" ];then
wget http://switch.dl.sourceforge.net/sou...snmp/net-snmp=
-${SNMP_Version}.tar.gz
if [ $? -gt 0 ];then
echo "can't download File: ${SourceDirectory}/net-snmp-${SN=
MP_Version}.tar.gz";
exit;
fi;
fi;

################################################## #########################=
######
# =
#
# untar the downloaded package =
#
# =
#
################################################## #########################=
######
if [ -d ${SourceDirectory}/net-snmp-${SNMP_Version} ];then
mv "${SourceDirectory}/net-snmp-${SNMP_Version}" "${SourceDirectory=
}/net-snmp-${SNMP_Version}_$$"
fi;
tar xvzf ${SourceDirectory}/net-snmp-${SNMP_Version}.tar.gz
if [ $? -gt 0 ];then
echo "can't untar: ${SourceDirectory}/net-snmp-${SNMP_Version}.tar.=
gz";
mv ${SourceDirectory}/net-snmp-${SNMP_Version}.tar.gz ${SourceDirec=
tory}/net-snmp-${SNMP_Version}.tar.gz_BROKEN
exit;
fi;
cd ${SourceDirectory}/net-snmp-${SNMP_Version}
if [ $? -gt 0 ];then
echo "can't change to Directory: ${SourceDirectory}/net-snmp-${SNMP=
_Version}";
exit;
fi;
################################################## #########################=
######
# =
#
# configure the Net-SNMP =
#
# =
#
################################################## #########################=
######
../configure --enable-mib-config-checking \
--enable-ucd-snmp-compatibility \
--without-rpm \
--with-mibdirs=3D"/usr/share/snmp/mibs" \
--with-mibfiles=3D"/usr/share/snmp/mibs/SNMPv2-SMI.txt:/usr=
/share/snmp/mibs/SNMPv2-TC.txt:/usr/share/snmp/mibs/NET-SNMP-MIB.txt" \
--with-mibs=3D"IP-MIB:IF-MIB:TCP-MIB:UDP-MIB:SNMPv2-MIB:RFC=
1213-MIB:SNMPv2-SMI:SNMPv2-TC:NET-SNMP-MIB:RFC1213-MIB" \
--with-agentx-socket=3D"localhost:705" \
--with-logfile=3D"/var/log/snmpd.log" \
--with-mib-modules=3D"mibII snmpv3mibs ucd_snmp agent_mibs =
agentx notification target utilities disman/event disman/schedule host ucd-=
snmp/diskio examples/example examples/ucdDemoPublic ip-mib/ipv4InterfaceTab=
le smux ucd-snmp/extensible agent/extend" \
--prefix=3D"/usr" \
--sysconfdir=3D"/etc/snmp" \
--with-persistent-directory=3D"/var/net-snmp" \
--with-sys-contact=3D"${sysContact}" \
--with-sys-location=3D"${sysLocation}" \
--with-default-snmp-version=3D"2" \
--enable-testing-code \
--enable-local-smux

if [ $? -gt 0 ];then
echo "can't configure NET-SNMP";
exit;
fi;
################################################## #########################=
######
# =
#
# compile the Version now with make =
#
# =
#
################################################## #########################=
######
make
if [ $? -gt 0 ];then
echo "can't compile NET-SNMP with make !";
exit;
fi;

################################################## #########################=
######
# =
#
# test now the compiled Version =
#
# =
#
################################################## #########################=
######
make test
if [ $? -gt 0 ];then
echo "can't test NET-SNMP compiled with make !";
exit;
fi;

################################################## #########################=
######
# =
#
# install now the compiled Version =
#
# =
#
################################################## #########################=
######
make install
if [ $? -gt 0 ];then
echo "can't install NET-SNMP successfully compiled with make !";
exit;
fi;


<-- FINISH -->

-----Urspr=FCngliche Nachricht-----
Von: net-snmp-coders-bounces@lists.sourceforge.net
[mailto:net-snmp-coders-bounces@lists.sourceforge.net]Im Auftrag von
Dave Shield
Gesendet: Donnerstag, 5. Juli 2007 16:47
An: Need Help
Cc: net-snmp-coders@lists.sourceforge.net
Betreff: Re: Should "make clean" remove all ".o" and ".lo" files?


On 05/07/07, Need Help wrote:
> Yes, this is how I understood Robert's explanation as well ..... however,
> after performing the following steps, I notice ".o" and ".lo" files still
> exist:
>
> 1) do fresh install of NetSNMP-v5.4
> 2) configure ....
> 3) make (results in errors being produced)
> 4) make clean


It's impossible to tell what might be happening from that description.

Can I suggest the following:

a) Unpack the NetSNMP-v5.4 archive, and cd into this directory
b) run "find . -name \*o"
(which should return nothing)
c) run configure (with whatever options are appropriate)
d) run " make 2>&1 | tee __make.log"
e) run " make clean 2>&1 | tee __clean.log"
f) run " find . -name \*o > __object.log"

Then post the three __xxx.log files (as attachments, not inline).


That would at least give sufficient information for us to see what
might be happening.

Dave

-------------------------------------------------------------------------
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
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/...et-snmp-coders

-------------------------------------------------------------------------
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
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/...et-snmp-coders