Ok, I asked the build people here and they agree I should be using "-x c" to
compile NetSNMP. As a result, I tried using the "--with-cflags" option with
the "-x c" values but I get the following error when "./configure" is executed
now:
./configure \
--prefix=/export/home/myname/netsnmp/usr/local \
--srcdir=/export/home/myname/netsnmp \
--with-default-snmp-version="3" \
--with-sys-contact="contact" \
--with-sys-location="location" \
--with-logfile="/export/home/myname/netsnmp/var/log/snmpd.log" \
--with-persistent-directory="/export/home/myname/netsnmp/var/net-snmp" \
--disable-embedded-perl \
--without-perl-modules \
--host=localhost \
--with-cc=mipsel-uclibc-g++ \
--with-linkcc=mipsel-uclibc-g++ \
--with-cflags=-x c \
--with-ldflags= \
--with-endianness=little;
configure: WARNING: you should use --build, --host, --target
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 localhost-gcc... mipsel-uclibc-g++
checking for C compiler default output file name... configure: error: C
compiler cannot create executables
See `config.log' for more details.
make: *** [net-snmp-configure] Error 77
If I do not use "--with-cflags" option then the configure runs completely, but
of course it will be setup to use the C++ compiler to compile NetSNMP.
What am I doing wrong? How can I get configure to use the "-x c" options?
Magnus Fromreide <[EMAIL PROTECTED]> wrote: On ons, 2007-06-27 at 13:13 -0700,
Need Help wrote:
> I am trying to compile NetSNMP 5.4 into my build environment
> using our "mipsel-uclibc-g++" compiler, however, compiler
> errors are being generated in the "snmpUDPDomain.c" file.
As Thomas said, why?
If the problem is your build people again then I suppose the -x c option
could be of use.
/MF
---------------------------------
Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news,
photos & more. -------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders