Buidling net-snmp for embedded system error?

[email protected]
Newsgroups gmane.network.net-snmp.user
Message-ID <OF73DC30EE.AAC65F2A-ON85257266.006DAB04-85257266.00737F39@smsc.com>
Hi,

I am using net-snmp 5.4.  I built snmp using default configuration ( by running ./config )  and it's working. We are
using RedHat.

I tried to builld an image for Renesas CPU on the same directory  and I got this error:

configure: WARNING: you should use --build, --host, --target
configure: WARNING: invalid host type:
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 sh3-linux-gcc-gcc... sh3-linux-gcc
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.
: command not foundne 2:
: command not foundne 4:


The comand I ran is:

./configure --with-cc=sh3-linux-gcc  --build=i686-pc-linux-gnu   --host=sh3-linux-gcc --target=sh397x-linux-gnu
--with-linkcc=sh3-
linux-ld

>From config.log:
configure:3491: checking for sh3-linux-gcc-gcc
configure:3517: result: sh3-linux-gcc
configure:3799: checking for C compiler version
configure:3802: sh3-linux-gcc --version </dev/null >&5
sh-linux-gcc (GCC) 3.4.4
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:3805: $? = 0
configure:3807: sh3-linux-gcc -v </dev/null >&5
Reading specs from /usr/lib/gcc/sh-linux/3.4.4/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share
--target=sh-linux --host=i686-redhat-lin
ux-gnu --build=i686-redhat-linux-gnu --with-system-zlib --with-gxx-include-dir=/usr/sh-linux/include/g++-v3
--includedir=/usr/sh-linux/include --enable-che
cking --enable-shared --enable-__cxa_atexit --enable-c99 --enable-threads=posix --enable-long-long --enable-libf2c
--enable-symvers --enable-languages=c,ob
jc,f77,c++,java
Thread model: posix
gcc version 3.4.4
configure:3810: $? = 0
configure:3812: sh3-linux-gcc -V </dev/null >&5
sh-linux-gcc: `-V' must come at the start of the command line
configure:3815: $? = 1
configure:3838: checking for C compiler default output file name
configure:3841: sh3-linux-gcc    conftest.c  >&5
conftest.c:9: error: parse error before '\x20'
conftest.c:9: error: missing terminating ' character
configure:3844: $? = 1
configure: failed program was:
| /* confdefs.h.  */
|
| #define PACKAGE_NAME "Net-SNMP"
| #define PACKAGE_TARNAME "net-snmp"
| #define PACKAGE_VERSION "5.4"
| #define PACKAGE_STRING "Net-SNMP 5.4"
| #define PACKAGE_BUGREPORT "[email protected]"
| #define NETSNMP_CONFIGURE_OPTIONS "'--with-cc=sh3-linux-gcc' '--build=i686-pc-linux-gnu' '--host=sh3-linux-gcc'
'--target=sh397x-linux-gnu' '--with-linkc
c=sh3-linux-ld' '^M' 'build_alias=i686-pc-linux-gnu' 'host_alias=sh3-linux-gcc' 'target_alias=sh397x-linux-gnu'"
| #define NETSNMP_ENABLE_SCAPI_AUTHPRIV 1
| #define NETSNMP_PERSISTENT_MASK 077
| #define NETSNMP_AGENTX_SOCKET "/var/agentx/master"
| #define NETSNMP_NO_DUMMY_VALUES 1
| #define NETSNMP_WITH_OPAQUE_SPECIAL_TYPES 1
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }
configure:3883: error: C compiler cannot create executables
See `config.log' for more details.

## ---------------- ##
## Cache variables. ##
## ---------------- ##


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.