On Tue, 2010-01-19 at 13:10 -0700, [email protected] wrote: > Hi Coders: > > I am running into a compile error I do not recognize (further below). > Any comments appreciated. My compile environment is: > > #uname -a > HP-UX cphpqa38 B.11.00 U 9000/800 136029688 unlimited-user license > > gcc version 4.2.3 > GNU make (gmake) > Using CFLAGS="-munix=95 (unix98.o does not exists on 11.0, unix95.o does) > > My configure line is: > > ./configure --enable-static --enable-shared --prefix=/opt/isv/ems/net-snmp \ > --with-default-snmp-version="2" --with-sys-location="The Home Depot" \ > --with-sys-contact="Pager Group: Enterprise_Monitoring" \ > --with-persistent-directory="/opt/hd/oy/var/net-snmp" \ > --with-logfile="/opt/hd/oy/var/net-snmp/snmpd.log" \ > --with-enterprise-sysoid=".1.3.6.1.4.1.759.5.6.18.30" \ > --without-openssl --with-pic \ > --without-python-modules \ > --disable-embedded-perl --without-perl-modules \ > --with-mib-modules="ucd-snmp/diskio" > > cphpqa38:/var/compile_work/net-snmp-5.5 # gmake ... > /usr/include/sys/fcntl.h:208: error: expected '=', ',', ';', 'asm' or > '__attribute__' before 'int' > In file included from ../include/net-snmp/library/snmpUnixDomain.h:11, > from ../include/net-snmp/session_api.h:256, > from ../include/net-snmp/library/snmp_client.h:32, > from ../include/net-snmp/varbind_api.h:79, > from ../include/net-snmp/library/snmp_api.h:28, > from ../include/net-snmp/definitions.h:23, > from ../include/net-snmp/types.h:386, > from snmp_client.c:96: > /usr/local/lib/gcc/hppa2.0w-hp-hpux11.11/4.2.3/include/sys/socket.h:208: > error: conflicting types for 'socklen_t' > ../include/net-snmp/types.h:59: error: previous declaration of > 'socklen_t' was here
This one seems to indicate that configure have failed to locate the definition of socklen_t and thus tried to make its own. Could you please try to put CFLAGS on the configure command line? Like this: ./configure --enable-static --enable-shared \ --prefix=/opt/isv/ems/net-snmp \ --with-default-snmp-version="2" --with-sys-location="The Home Depot" \ --with-sys-contact="Pager Group: Enterprise_Monitoring" \ --with-persistent-directory="/opt/hd/oy/var/net-snmp" \ --with-logfile="/opt/hd/oy/var/net-snmp/snmpd.log" \ --with-enterprise-sysoid=".1.3.6.1.4.1.759.5.6.18.30" \ --without-openssl --with-pic \ --without-python-modules \ --disable-embedded-perl --without-perl-modules \ --with-mib-modules="ucd-snmp/diskio" \ CFLAGS=-munix=95 If that doesn't help then it would be interesting to see the logs for the socklen_t detection (in config.log) /MF ------------------------------------------------------------------------------ Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference attendees to learn about information security's most important issues through interactions with peers, luminaries and emerging and established companies. http://p.sf.net/sfu/rsaconf-dev2dev _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
