I am trying to configure net-snmp-5.4 on a Solaris 8 machine. I am doing this in: GNU bash, version 3.2.0(1)-release (sparc-sun-solaris2.8)
The line I first offered was this, verbatim: ./configure `cat ../net-snmp.config` Where ../net-snmp.config contains the following (note this is all on one line, formatting is funny in plaintext): --with-cc=gcc3 --prefix=/opt/ciena --with-mib-modules=\"ucd-snmp/diskio mibII/mta_sendmail\" ###This results in the following configure output: configure: WARNING: you should use --build, --host, --target configure: WARNING: invalid host type: mibII/mta_sendmail\" checking what to build and install... agent apps man local mibs using default persistent mask 077 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 if I need to feed myself to ksh... no checking for mibII/mta_sendmail\"-gcc... gcc3 checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc3 accepts -g... yes checking for gcc3 option to accept ANSI C... none needed checking how to run the C preprocessor... gcc3 -E checking for egrep... egrep checking for AIX... no checking build system type... Invalid configuration `mibII/mta_sendmail\"': machine `mibII/mta_sendmail\"' not recognized configure: error: /bin/bash ./config.sub mibII/mta_sendmail\" failed ###I tried providing BUILD, HOST, TARGET by changing the config params to the following (note this is all on one line, formatting is funny in plaintext): --build=sparc-sun-solaris2.8 --host=sparc-sun-solaris2.8 --target=sparc-sun-solaris2.8 --with-cc=gcc3 --prefix=/opt/ciena --with-mib-modules=\"ucd-snmp/diskio mibII/mta_sendmail\" ###This resulted in the following output: configure: WARNING: you should use --build, --host, --target configure: WARNING: invalid host type: mibII/mta_sendmail\" checking what to build and install... agent apps man local mibs using default persistent mask 077 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 if I need to feed myself to ksh... no checking for sparc-sun-solaris2.8-gcc... gcc3 checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc3 accepts -g... yes checking for gcc3 option to accept ANSI C... none needed checking how to run the C preprocessor... gcc3 -E checking for egrep... egrep checking for AIX... no checking build system type... sparc-sun-solaris2.8 checking host system type... sparc-sun-solaris2.8 [...snipped...] checking for platform-specific source... checking for and configuring transport modules to use... Callback Unix TCP UDP. checking for security modules to use... usm checking for and configuring mib modules to use... \"ucd-snmp/diskio default_modules. configure: WARNING: mib module error configure: error: module files \"ucd-snmp/diskio.h or \"ucd-snmp/diskio.c could not be found in ./agent/mibgroup ### I am thinking this is a quoting problem. The configure --help example escapes the double-quotes so I'd done that before, but I tried it without escaping them resulting in the following config line: --with-cc=gcc3 --prefix=/opt/ciena --with-mib-modules="ucd-snmp/diskio mibII/mta_sendmail" ### This earned me the following output: configure: WARNING: you should use --build, --host, --target configure: WARNING: invalid host type: mibII/mta_sendmail" checking what to build and install... agent apps man local mibs using default persistent mask 077 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 if I need to feed myself to ksh... no checking for mibII/mta_sendmail"-gcc... gcc3 checking for C compiler default output file name... configure: error: C compiler cannot create executables See `config.log' for more details. ### I'm pretty sure it's failing to find the output file name because gcc doesn't have an output file name for platform "mibII/mta_sendmail". ### I removed the second mib-module name and it ran without complaint, i.e. with the following config string (I am using this configuration until I get this figured out) : --with-cc=gcc3 --prefix=/opt/ciena --with-mib-modules="ucd-snmp/diskio" ### In order to verify that it wasn't just a problem with the string or module "mibII/mta_sendmail", I substituted "FOOBAR" for it in my original config line, and got the following output: configure: WARNING: you should use --build, --host, --target configure: WARNING: invalid host type: FOOBAR\" checking what to build and install... agent apps man local mibs using default persistent mask 077 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 if I need to feed myself to ksh... no checking for FOOBAR\"-gcc... gcc3 checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc3 accepts -g... yes checking for gcc3 option to accept ANSI C... none needed checking how to run the C preprocessor... gcc3 -E checking for egrep... egrep checking for AIX... no checking build system type... Invalid configuration `FOOBAR\"': machine `FOOBAR\"' not recognizedconfigure: error: /bin/bash ./config.sub FOOBAR\" failed ### I tried all of the above in ksh as well and got the same results. I hate to think this is a newbie shell error but I realize it might be. Any help? Stephen ------------------------------------------------------------------------- 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-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
