I'm not a c programmer, just a unix admin:
Looks like bug #1742278 snmp which I thought was fixed from what I read.
Is it possible it was fixed in a code branch, but never in the trunk.
My Config is:
net-snmp-5.7.1
http://sourceforge.net/projects/net-snmp/files/net-snmp/5.7.1/
uname -m = 9000/800
uname -r = B.11.31
uname -s = HP-UX
uname -v = U
swlist | grep -i gcc
gcc 4.2.3 gcc
libgcc 4.2.3 libgcc
swinstall
-s
/net/hahpnas/vol/HP_software_depot/HP-UX/gnu/PA_RISC/libiconv-1.14-hppa-11.31.depot
swinstall
-s
/net/hahpnas/vol/HP_software_depot/HP-UX/gnu/PA_RISC/gettext-0.18.1.1-hppa-11.31.depot
swinstall
-s
/net/hahpnas/vol/HP_software_depot/HP-UX/gnu/PA_RISC/zlib-1.2.5-hppa-11.31.depot
swinstall
-s
/net/hahpnas/vol/HP_software_depot/HP-UX/gnu/PA_RISC/libgcc-4.2.3-hppa-11.31.depot
swinstall
-s
/net/hahpnas/vol/HP_software_depot/HP-UX/gnu/PA_RISC/gcc-4.2.3-hppa-11.31.depot
from http://hpux.connect.org.uk/
=====================================================
If you need more information please let me know what you need.
I did get my gcc complier code from the HP-UX
=====================================================
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by Net-SNMP configure 5.7.1, which was
generated by GNU Autoconf 2.68. Invocation command line was
$ ./configure --enable-developer --enable-minimalist
--with-default-snmp-version=2 --with-sys-contact=fmcunix-na.com
--with-sys-location=Fresenius - MA Data Center(s) -
-disable-embedded-perl --without-perl-modules
--with-logfile=/usr/adm/snmpd.log --with-persistent-directory=/var/net-snmp
## --------- ##
## Platform. ##
## --------- ##
hostname = danvers
uname -m = 9000/800
uname -r = B.11.31
uname -s = HP-UX
uname -v = U
/usr/bin/uname -p = unknown
/bin/uname -X = unknown
/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
+++++
configure:6825: $? = 0
configure:6814: gcc -v >&5
Using built-in specs.
Target: hppa2.0w-hp-hpux11.31
Configured with: ../gcc/configure
Thread model: posix
gcc version 4.2.3
configure:6825: $? = 0
configure:6814: gcc -V >&5
gcc: '-V' option must have argument
configure:6825: $? = 1
configure:6814: gcc -qversion >&5
gcc: unrecognized option '-qversion'
gcc: no input files
configure:6825: $? = 1
configure:6845: checking whether the C compiler works
configure:6867: gcc conftest.c >&5
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "Net-SNMP"
| #define PACKAGE_TARNAME "net-snmp"
| #define PACKAGE_VERSION "5.7.1"
| #define PACKAGE_STRING "Net-SNMP 5.7.1"
| #define PACKAGE_BUGREPORT "[email protected]"
make
gcc -E -Iinclude
-I./include -I./agent/mibgroup -I. -I. -DDONT_INC_STRUCTS
-DBINDIR=/usr/local/bin -x c ./sedscript.in | egrep
'^s[/#]' | sed 's/REMOVEME//g;s# */#/#g;s/ *#/#/g;s#/ *#/#g;s/# g/#g/;' >
sedscript
echo 's/VERSIONINFO/5.7.1/g' >> sedscript
echo 's#DATADIR#/usr/local/share#g' >> sedscript
echo 's#LIBDIR#/usr/local/lib#g' >> sedscript
echo 's#BINDIR#/usr/local/bin#g' >> sedscript
echo 's#PERSISTENT_DIRECTORY#/var/net-snmp#g' >> sedscript
echo 's#SYSCONFDIR#/usr/local/etc#g' >> sedscript
/usr/bin/sed -f sedscript ./EXAMPLE.conf.def > EXAMPLE.conf
making features in /usr/gcc_build/net-snmp-5.7.1/apps
/usr/gcc_build/net-snmp-5.7.1/apps
making features in /usr/gcc_build/net-snmp-5.7.1/apps/snmpnetstat
/usr/gcc_build/net-snmp-5.7.1/apps/snmpnetstat
making features in /usr/gcc_build/net-snmp-5.7.1/agent
/usr/gcc_build/net-snmp-5.7.1/agent
making features in /usr/gcc_build/net-snmp-5.7.1/agent/mibgroup
/usr/gcc_build/net-snmp-5.7.1/agent/mibgroup
making features in /usr/gcc_build/net-snmp-5.7.1/agent/helpers
/usr/gcc_build/net-snmp-5.7.1/agent/helpers
making features in /usr/gcc_build/net-snmp-5.7.1/snmplib
/usr/gcc_build/net-snmp-5.7.1/snmplib
making all in /usr/gcc_build/net-snmp-5.7.1/snmplib
/usr/gcc_build/net-snmp-5.7.1/snmplib
/bin/sh ../libtool --mode=compile gcc -I../include -I.
-I../snmplib -fno-strict-aliasing -g -O2 -Uhpux11 -Dhpux11=hpux11 -Wall
-Wstrict-prototypes -Wwrite-strings -Wcast-qual -c -o system.lo system.c
libtool: compile: gcc -I../include -I. -I../snmplib -fno-strict-aliasing
-g -O2 -Uhpux11 -Dhpux11=hpux11 -Wall -Wstrict-prototypes -Wwrite-strings
-Wcast-qual -c system.c -fPIC -DPIC -o .libs/system.o
system.c: In function 'get_myaddr':
system.c:480: error: storage size of 'ifc' isn't known
system.c:496: error: invalid application of 'sizeof' to incomplete type
'struct ifreq'
system.c:501: error: invalid application of 'sizeof' to incomplete type
'struct ifreq'
system.c:504: error: invalid application of 'sizeof' to incomplete type
'struct ifconf'
system.c:535: error: increment of pointer to unknown structure
system.c:535: error: arithmetic on pointer to an incomplete type
system.c:538: error: dereferencing pointer to incomplete type
system.c:541: error: dereferencing pointer to incomplete type
system.c:543: error: invalid application of 'sizeof' to incomplete type
'struct ifreq'
system.c:546: error: dereferencing pointer to incomplete type
system.c:546: error: 'IFF_UP' undeclared (first use in this function)
system.c:546: error: (Each undeclared identifier is reported only once
system.c:546: error: for each function it appears in.)
system.c:550: error: dereferencing pointer to incomplete type
system.c:557: error: invalid application of 'sizeof' to incomplete type
'struct ifreq'
system.c:561: error: dereferencing pointer to incomplete type
system.c:480: warning: unused variable 'ifc'
*** Error exit code 1
Stop.
*** Error exit code 1
*******************************************************************************************************************************************
There is also a problem in the configuration script, it creates make files
that blow up, but can be fixed with a perl script:
#!/usr/bin/perl
$BuildDir="/usr/gcc_build/net-snmp-5.7.1";
$Find_CMD="/usr/bin/find $BuildDir -name Makefile -exec /usr/bin/perl -pi
-e " . '\'s/^\$\(FEATUREFILE\)/\$FEATUREFILE/g\' {} \;';
$Find_Rez=`$Find_CMD`;
Andrew W. Buck
Sr. UNIX Admin - UNIX Infrastructure
Fresenius Medical Care NA
32 Hartwell Ave
Lexington, MA 02421-3103
Direct: 781-676-6405
FAX: 781-676-6430
Cell: 781-296-0310
www.fmcna.com
CONFIDENTIALITY NOTICE: If you have received this email in error, please
immediately notify the sender at the email address shown. This email
transmission may contain confidential information and is intended only for
the use of the individual(s) or entity for whom it was intended. Please
delete it from your files if you are not the intended recipient.------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
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-d2d
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders