I changed the compiler in the "./configure" options to use the "gcc" compiler 
and I get the same errors showing up in the "config.log" file.   Below is just 
a bit of the kinds of errors I am encountering:

configure:7263: gcc -o conftest -x c   conftest.c conftstm.o >&5
conftstm.o:1: error: stray '\127' in program
conftstm.o:1: error: stray '\1' in program
conftstm.o:1: error: stray '\1' in program
conftstm.o:1: error: stray '\1' in program
conftstm.o:1:8: warning: null character(s) ignored
conftstm.o:1: error: stray '\1' in program
conftstm.o:1:18: warning: null character(s) ignored
conftstm.o:1: error: stray '\3' in program
conftstm.o:1:20: warning: null character(s) ignored
conftstm.o:1: error: stray '\1' in program
conftstm.o:1:22: warning: null character(s) ignored
conftstm.o:1: error: stray '\224' in program
conftstm.o:1:34: warning: null character(s) ignored
conftstm.o:1: error: syntax error before numeric constant
conftstm.o:1:42: warning: null character(s) ignored


Performing a "file *.o" command in the "netsnmp/agent/" directory results in 
the following:

agent_handler.o:     ELF 32-bit LSB MIPS-I relocatable, MIPS, version 1 (SYSV), 
not stripped
agent_index.o:       ELF 32-bit LSB MIPS-I relocatable, MIPS, version 1 (SYSV), 
not stripped
agent_read_config.o: ELF 32-bit LSB MIPS-I relocatable, MIPS, version 1 (SYSV), 
not stripped
agent_registry.o:    ELF 32-bit LSB MIPS-I relocatable, MIPS, version 1 (SYSV), 
not stripped
agent_trap.o:        ELF 32-bit LSB MIPS-I relocatable, MIPS, version 1 (SYSV), 
not stripped
auto_nlist.o:        ELF 32-bit LSB MIPS-I relocatable, MIPS, version 1 (SYSV), 
not stripped
kernel.o:            ELF 32-bit LSB MIPS-I relocatable, MIPS, version 1 (SYSV), 
not stripped
mib_modules.o:       ELF 32-bit LSB MIPS-I relocatable, MIPS, version 1 (SYSV), 
not stripped
snmp_agent.o:        ELF 32-bit LSB MIPS-I relocatable, MIPS, version 1 (SYSV), 
not stripped
snmpd.o:             ELF 32-bit LSB MIPS-I relocatable, MIPS, version 1 (SYSV), 
not stripped
snmp_vars.o:         ELF 32-bit LSB MIPS-I relocatable, MIPS, version 1 (SYSV), 
not stripped


As for the "Hello World" program, are you wanting me to create a standalone 
program with a "main()" routine and try to compile it, or do you want me to 
create a helloWorld.c file and compile it with the rest of the NetSNMP stuff?


Dave Shield <[EMAIL PROTECTED]> wrote: On 28/06/07, Need Help  wrote:
> 3) We also noticed this interesting bit as well.   We started from scratch
> by uncompressing Net-SNMP-v5.4 and then performed a "./configure" (with the
> options shown in the post below).  We then looked into the "config.log" file
> and noticed the same type errors were seen (see below), so we get these
> errors before doing a "make" at all:
>
> part of the "config.log" file:
>
> configure:7263: mipsel-uclibc-g++ -o conftest -x c   conftest.c conftstm.o
> >&5
> conftstm.o:1: error: stray '\177' in program
> conftstm.o:1: error: stray '\1' in program

> Any ideas what is goign on here?  Any recommendations you can make for our
> build team here to look into?   We are using the "mips-uclibc-g++" compiler
> so perhaps this could be a problem?

That's certainly my immediate reaction.

Can you successfully compie and link a simple "Hello, World!" program using
the same compilation settings?   (Preferably as two separate steps)

What does "file *.o" display?
   a)  for the Net-SNMP object files?
   b)  for the hello.o object file?

Dave


       
---------------------------------
Shape Yahoo! in your own image.  Join our Network Research Panel today!
-------------------------------------------------------------------------
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

Reply via email to