Hi,

We have some old Solaris systems that we need to monitor until we can 
virtualize them in a few months.  I can't install the opencsw version of 
netsnmp due to us being below update8 on Solaris8.  So I've been trying to 
compile a static version of netsnmp on a dev box so I can copy the binaries 
over.  Unfortunately I can't seem to get the flags right.  The wiki indicates 
that all is needed is the -Bstatic flag on configure.

During my attempts to troubleshoot I've tried to not use the Solaris binaries 
of make, ar or gcc via path and environment settings:

bash-3.00# echo $AR
gar
bash-3.00# echo $MAKE
gmake
bash-3.00# echo $PATH
/usr/bin:/opt/csw/bin:/usr/sbin:/usr/local/bin
bash-3.00#
bash-3.00# uname -a
SunOS p001solmgmt01 5.10 Generic_142909-17 sun4v sparc SUNW,T5140

I think we have issues right off the bat as my ./configure states that the gcc 
-static flag won't work and that it can't strip libraries.  I've also tried 
with -enable-static -disable-shared but didn't get different end results.  
Although at that point the "build shared libraries" output does change to no.

bash-3.00# ./configure --with-ldflags=-Bstatic 
--with-sys-contact="b...@blah.com<mailto:b...@blah.com>" 
--with-sys-location="Earth" --with-logfile="/v
ar/log/snmpd.log" --with-persistent-directory="/var/net-snmp" 
--with-default-snmp-version="2"

checking whether stripping libraries is possible... no
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes

I did go all the way through the make;make test;make install steps.  The make 
succeeds and the test passes at 98%.  The make install creates a snmpd that is 
dynamically linked and not stripped.

Do you have any ideas on what I'm doing wrong?

Full ./configure output(somewhat truncated to avoid message moderation by 
listserv software):

using default persistent mask 077
using default temporary file pattern /tmp/snmpdXXXXXX
using default AgentX socket /var/agentx/master
using default "enterprise.net-snmp"
using default enterprise sysOID "NET-SNMP-MIB::netSnmpAgentOIDs..."
using default notifications "NET-SNMP-MIB::netSnmpNotifications"
using OS default send buffer size for server sockets
using OS default recv buffer size for server sockets
using OS default send buffer size for client sockets
using OS default recv buffer size for client sockets
checking Default version of SNMP to use... (cached) 2
checking System Contact Information... (cached) 
b...@blah.com<mailto:b...@blah.com>
checking System Location... (cached) Earth
checking Location to write logfile... (cached) /var/log/snmpd.log
checking Location to write persistent information... (cached) /var/net-snmp
checking if I need to feed myself to ksh... no
checking for grep that handles long lines and -e... /opt/csw/bin/ggrep
checking for egrep... /opt/csw/bin/ggrep -E
checking for grep that handles long lines and -e... (cached) /opt/csw/bin/ggrep
checking for a BSD-compatible install... /opt/csw/bin/ginstall -c
checking whether ln -s works... yes
checking whether gmake sets $(MAKE)... yes
checking for a sed that does not truncate output... /opt/csw/bin/gsed
checking for file... file
checking for find... find
checking for whoami... no
checking for logname... logname
checking for autoconf... no
checking for autoheader... no
checking for perl... /usr/bin/perl
checking for ps... /usr/bin/ps
checking for python... /usr/bin/python
checking for uname... /usr/bin/uname
checking whether the Perl function system() invokes a POSIX shell... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking build system type... sparc-sun-solaris2.10
checking host system type... sparc-sun-solaris2.10
checking how to print strings... printf
checking for a sed that does not truncate output... (cached) /opt/csw/bin/gsed
checking for fgrep... /opt/csw/bin/ggrep -F
checking for ld used by gcc... /usr/ccs/bin/ld
checking if the linker (/usr/ccs/bin/ld) is GNU ld... no
checking for BSD- or MS-compatible name lister (nm)... /usr/ccs/bin/nm -p
checking the name lister (/usr/ccs/bin/nm -p) interface... BSD nm
checking the maximum length of command line arguments... 786240
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... no
checking how to convert sparc-sun-solaris2.10 file names to 
sparc-sun-solaris2.10 format... func_convert_file_noop
checking how to convert sparc-sun-solaris2.10 file names to toolchain format... 
func_convert_file_noop
checking for /usr/ccs/bin/ld option to reload object files... -r
checking for objdump... no
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for archiver @FILE support... @
checking for strip... no
checking for ranlib... no
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking command to parse /usr/ccs/bin/nm -p output from gcc object... ok
checking for sysroot... no
checking for mt... mt
checking if mt is a manifest tool... no
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC...
-fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/ccs/bin/ld) supports shared libraries... 
yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... solaris2.10 ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... no
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for developer gcc flags...
checking target system type... sparc-sun-solaris2.10
checking whether to un-define target system token (before redefining)... yes
checking for system include file... net-snmp/system/solaris.h
checking for machine-type include file... net-snmp/machine/generic.h
checking for additional cpp flags... -x c
checking for gcc... /opt/csw/bin/gcc
checking whether the compiler supports -fno-strict-aliasing... yes
checking for dpkg-query... no
checking for ANSI C header files... (cached) yes
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for sys/wait.h that is POSIX.1 compatible... yes
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking pthread.h usability... yes
checking pthread.h presence... yes
...   [ truncating so that message stays below 100KB and avoids moderation ]
checking for kvm_openfiles... no
checking for kvm_getprocs... no
checking for kvm_getproc2... no
checking for kvm_getswapinfo... no
checking for library containing dlopen... none required
checking for dlopen... yes
checking for and configuring mib modules to use... default_modules.
default_modules snmpv3mibs mibII ucd_snmp notification notification-log-mib 
target agent_mibs agentx disman/event disman/schedu
le utilities host snmpv3/snmpMPDStats_5_5 snmpv3/usmStats_5_5 snmpv3/snmpEngine 
snmpv3/usmConf snmpv3/usmUser mibII/snmp_mib_5_5
mibII/system_mib mibII/sysORTable mibII/vacm_vars mibII/setSerialNo mibII/at 
mibII/ifTable mibII/ip mibII/tcp mibII/icmp mibII/
udp if-mib tcp-mib udp-mib ip-mib/ipSystemStatsTable ip-mib/ipAddressTable 
ip-forward-mib ucd-snmp/disk_hw ucd-snmp/proc ucd-snm
p/versioninfo ucd-snmp/pass ucd-snmp/pass_persist ucd-snmp/loadave agent/extend 
ucd-snmp/errormib ucd-snmp/file ucd-snmp/dlmod u
cd-snmp/proxy ucd-snmp/logmatch ucd-snmp/memory ucd-snmp/vmstat 
notification/snmpNotifyTable snmp-notification-mib/snmpNotifyFil
terTable notification/snmpNotifyFilterProfileTable 
notification-log-mib/notification_log target/target_counters_5_5 target/snmpT
argetAddrEntry target/snmpTargetParamsEntry target/target 
agent/nsTransactionTable agent/nsModuleTable agent/nsDebug agent/nsCac
he agent/nsLogging agent/nsVacmAccessTable agentx/master agentx/subagent 
disman/event/mteScalars disman/event/mteTrigger disman/
event/mteTriggerTable disman/event/mteTriggerDeltaTable 
disman/event/mteTriggerExistenceTable disman/event/mteTriggerBooleanTabl
e disman/event/mteTriggerThresholdTable disman/event/mteTriggerConf 
disman/event/mteEvent disman/event/mteEventTable disman/even
t/mteEventSetTable disman/event/mteEventNotificationTable 
disman/event/mteEventConf disman/event/mteObjects disman/event/mteObje
ctsTable disman/event/mteObjectsConf disman/schedule/schedCore 
disman/schedule/schedConf disman/schedule/schedTable utilities/ov
erride utilities/execute utilities/iquery host/hrh_storage host/hrh_filesys 
host/hrSWInstalledTable host/hrSWRunTable host/hr_sy
stem host/hr_device host/hr_other host/hr_proc host/hr_network host/hr_print 
host/hr_disk host/hr_partition util_funcs/header_ge
neric mibII/updates util_funcs mibII/vacm_context mibII/vacm_conf kernel_sunos5 
if-mib/ifTable mibII/ipAddr mibII/var_route mibI
I/route_write mibII/tcpTable mibII/udpTable if-mib/ifXTable 
tcp-mib/tcpConnectionTable tcp-mib/tcpListenerTable udp-mib/udpEndpo
intTable ip-mib/data_access/systemstats 
ip-mib/ipSystemStatsTable/ipSystemStatsTable 
ip-mib/ipSystemStatsTable/ipSystemStatsTabl
e_interface ip-mib/ipSystemStatsTable/ipSystemStatsTable_data_access 
ip-mib/ipAddressTable/ipAddressTable ip-forward-mib/ipCidrR
outeTable ip-forward-mib/inetCidrRouteTable util_funcs/header_simple_table 
hardware/fsys util_funcs/restart ucd-snmp/pass_common
hardware/memory hardware/cpu header_complex 
snmp-notification-mib/snmpNotifyFilterTable/snmpNotifyFilterTable 
agentx/protocol a
gentx/client agentx/master_admin agentx/agentx_config host/data_access/swinst 
host/data_access/swrun host/hrSWRunPerfTable if-mi
b/ifTable/ifTable if-mib/ifXTable/ifXTable tcp-mib/data_access/tcpConn 
tcp-mib/tcpConnectionTable/tcpConnectionTable tcp-mib/tcp
ListenerTable/tcpListenerTable udp-mib/udpEndpointTable/udpEndpointTable 
ip-mib/data_access/systemstats_common ip-mib/data_acces
s/systemstats_solaris2 if-mib/data_access/interface 
ip-mib/data_access/ipaddress ip-mib/ipAddressTable/ipAddressTable_interface
ip-mib/ipAddressTable/ipAddressTable_data_access 
ip-forward-mib/ipCidrRouteTable/ipCidrRouteTable ip-forward-mib/inetCidrRouteTa
ble/inetCidrRouteTable hardware/fsys/hw_fsys hardware/fsys/fsys_mntent 
hardware/memory/hw_mem hardware/memory/memory_solaris har
dware/cpu/cpu hardware/cpu/cpu_kstat 
snmp-notification-mib/snmpNotifyFilterTable/snmpNotifyFilterTable_interface 
snmp-notificati
on-mib/snmpNotifyFilterTable/snmpNotifyFilterTable_data_access 
host/data_access/swinst_pkginfo host/data_access/swrun_procfs_psi
nfo if-mib/ifTable/ifTable_interface if-mib/ifTable/ifTable_data_access 
if-mib/ifXTable/ifXTable_interface if-mib/ifXTable/ifXTa
ble_data_access tcp-mib/data_access/tcpConn_common 
tcp-mib/data_access/tcpConn_solaris2 tcp-mib/tcpConnectionTable/tcpConnection
Table_interface tcp-mib/tcpConnectionTable/tcpConnectionTable_data_access 
tcp-mib/tcpListenerTable/tcpListenerTable_interface tc
p-mib/tcpListenerTable/tcpListenerTable_data_access 
udp-mib/data_access/udp_endpoint udp-mib/udpEndpointTable/udpEndpointTable_i
nterface udp-mib/udpEndpointTable/udpEndpointTable_data_access 
if-mib/data_access/interface_solaris2 ip-mib/data_access/ipaddres
s_common ip-mib/data_access/ipaddress_solaris2 ip-forward-mib/data_access/route 
ip-forward-mib/ipCidrRouteTable/ipCidrRouteTable
_interface ip-forward-mib/ipCidrRouteTable/ipCidrRouteTable_data_access 
ip-forward-mib/inetCidrRouteTable/inetCidrRouteTable_int
erface ip-forward-mib/inetCidrRouteTable/inetCidrRouteTable_data_access 
udp-mib/data_access/udp_endpoint_common udp-mib/data_acc
ess/udp_endpoint_solaris2 ip-forward-mib/data_access/route_common 
ip-forward-mib/data_access/route_solaris
.
checking if directories need to be created... .
checking default mib files to read... 
:SNMPv2-MIB:IF-MIB:IP-MIB:TCP-MIB:UDP-MIB:HOST-RESOURCES-MIB:NOTIFICATION-LOG-MIB:DISMAN-E
VENT-MIB:DISMAN-SCHEDULE-MIB:UCD-SNMP-MIB:UCD-DEMO-MIB:SNMP-TARGET-MIB:NET-SNMP-AGENT-MIB:HOST-RESOURCES-TYPES:SNMP-MPD-MIB:SNMP
-USER-BASED-SM-MIB:SNMP-FRAMEWORK-MIB:SNMP-VIEW-BASED-ACM-MIB:SNMP-COMMUNITY-MIB:IP-FORWARD-MIB:NET-SNMP-PASS-MIB:NET-SNMP-EXTEN
D-MIB:UCD-DLMOD-MIB:SNMP-NOTIFICATION-MIB:SNMPv2-TM:NET-SNMP-VACM-MIB
checking whether we have to build PIC code... yes
checking for nlist in -lelf... yes
checking for library containing socket... -lsocket
checking for library containing gethostbyname... -lnsl
checking for gethostbyname... yes
...   [ truncating so that message stays below 100KB and avoids moderation ]
checking inet/common.h usability... yes
checking inet/common.h presence... yes
checking for inet/common.h... yes
checking for inet/ip.h... yes
checking for mib2_ipRouteEntry_t in inet/mib2.h... yes
checking whether IRE_CACHE is defined in inet/ip.h... yes
checking for IP_PKTINFO ... no
checking for IP_RECVDSTADDR ... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating snmplib/Makefile
config.status: creating apps/Makefile
config.status: creating apps/snmpnetstat/Makefile
config.status: creating agent/Makefile
config.status: creating agent/helpers/Makefile
config.status: creating agent/mibgroup/Makefile
config.status: creating local/Makefile
config.status: creating testing/Makefile
config.status: creating man/Makefile
config.status: creating mibs/Makefile
config.status: creating net-snmp-config
config.status: creating net-snmp-create-v3-user
config.status: creating dist/generation-scripts/gen-variables
config.status: creating local/snmpconf
config.status: creating include/net-snmp/net-snmp-config.h
config.status: executing libtool commands
config.status: executing default commands

---------------------------------------------------------
            Net-SNMP configuration summary:
---------------------------------------------------------

  SNMP Versions Supported:    1 2c 3
  Building for:               solaris2
  Net-SNMP Version:           5.7.3
  Network transport support:  Callback Unix Alias TCP UDP IPv4Base SocketBase 
TCPBase UDPIPv4Base UDPBase
  SNMPv3 Security Modules:     usm
  Agent MIB code:            default_modules =>  snmpv3mibs mibII ucd_snmp 
notification notification-log-mib target agent_mibs a
gentx disman/event disman/schedule utilities host
  MYSQL Trap Logging:         unavailable
  Embedded Perl support:      disabled
  SNMP Perl modules:          disabled
  SNMP Python modules:        disabled
  Crypto support from:        internal
  Authentication support:     MD5 SHA1
  Encryption support:         DES AES
  Local DNSSEC validation:    disabled

---------------------------------------------------------

Thanks,
Dan



This communication (including any attachment(s)) is intended solely for the 
recipient(s) named above and may contain information that is confidential, 
privileged or legally protected. Any unauthorized use or dissemination of this 
communication is strictly prohibited. If you have received this communication 
in error, please immediately notify the sender by return e-mail message and 
delete all copies of the original communication to include any copy that may 
reside in your sent box. Thank you for your cooperation.
------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
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