1) What makes you believe this is a cross-compilation setup issue?   Perhaps 
you can give us some hints as to what to look for or what to test?

2) The build guy was here for about two hours but was unable to figure out how 
to resolve these errors.  When I first perform a "make", these errors are seen 
after the "snmp.c" file has compiled and the "snmp.o" is trying to be linked.   
The errors are complaining about the "snmp.o" file.

We assumed these errors might be the result of some "weird" characters being 
included in some files, so we performed a "file snmpd.c" and noticed it was an 
"ISO 8859 C program text" file instead of an "ASCII C program text" file.  
Could the file being "ISO" be causing my errors perhaps?   

We tried to dos2unix the file, but that did not help.   Again, the errors come 
with the "snmpd.o" file and not the "snmp.c" file ..... so I am not sure doing 
a dos2unix conversion matters.

Anyway, here are the file types of all *.c files in the netsnmp/agent/ 
directory to show you that files have different types:

[EMAIL PROTECTED] agent]# file *.c
agent_handler.c:     ISO-8859 C program text
agent_index.c:       ASCII C program text
agent_read_config.c: ASCII C program text
agent_registry.c:    ISO-8859 C program text
agent_trap.c:        ISO-8859 C program text
auto_nlist.c:        ASCII C program text
kernel.c:            ASCII C program text
mib_modules.c:       ASCII C program text
object_monitor.c:    ASCII C program text
snmp_agent.c:        ISO-8859 C program text
snmpd.c:             ISO-8859 C program text
snmp_perl.c:         ASCII C program text
snmp_vars.c:         ISO-8859 C program text


Why are there ISO 8859 files in here?   I would assume them all to be ASCII 
file text files only?

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
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 '\10' 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: error: stray '\1' in program
conftstm.o:1:35: warning: null character(s) ignored
conftstm.o:1: error: stray '\7' in program
conftstm.o:1: error: stray '\20' in program
conftstm.o:1:39: warning: null character(s) ignored
conftstm.o:1: error: parse error before numeric constant
conftstm.o:1:42: warning: null character(s) ignored
conftstm.o:1:48: warning: null character(s) ignored
conftstm.o:2:1: warning: null character(s) ignored
conftstm.o:3:1: warning: null character(s) ignored
conftstm.o:3: error: stray '\34' in program
conftstm.o:3:18: warning: null character(s) ignored
conftstm.o:3: error: stray '\234' in program
conftstm.o:3:21: warning: character constant too long for its type
conftstm.o:3:30: warning: null character(s) ignored
conftstm.o:3: error: stray '\274' in program
conftstm.o:3: error: stray '\257' in program
conftstm.o:3:34: warning: null character(s) ignored
conftstm.o:3: error: stray '\276' in program
conftstm.o:3: error: stray '\257' in program
conftstm.o:3: error: stray '\10' in program
conftstm.o:3:39: warning: null character(s) ignored
conftstm.o:3: error: stray '\274' in program
conftstm.o:3: error: stray '\257' in program
conftstm.o:3: error: stray '\360' in program
conftstm.o:3: error: stray '\240' in program
conftstm.o:3: error: stray '\3' in program
conftstm.o:3: error: stray '\350' in program
conftstm.o:3: error: stray '\300' in program
conftstm.o:3: error: stray '\3' in program
conftstm.o:3:50: warning: null character(s) ignored
conftstm.o:3: error: stray '\276' in program

etc...
etc...
etc...


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?

We are out of ideas right now, so hopefully someone can recommend something.



> Thomas wrote:
>
> This is likely a problem with your cross-compilation setup. I'd suggest
> to take this up with your build team and/or the cross-compilation
> toolchain people.
>
>
>+Thomas
Need Help <[EMAIL PROTECTED]> wrote:
Problem:
When I issue the "make" command I get all of these weird errors.   They are 
produced in the hundreds and hundreds.  

Any idea on what is going on  and how I can "fix" these errors?


Here is my configure command syntax:

./configure \
--prefix=$(BUILDROOT)/usr/local \
--srcdir=$(BUILDROOT)/netsnmp \
--with-default-snmp-version="3" \
--with-sys-contact="contact" \
--with-sys-location="location" \
--with-logfile="$(BUILDROOT)/netsnmp/var/log/snmpd.log" \
--with-persistent-directory="$(BUILDROOT)/netsnmp/var/net-snmp" \
--disable-embedded-perl  \
--without-perl-modules  \
--host=localhost \
--with-cc=$(CC) \
--with-linkcc=$(CC) \
--with-ar=ar \
--with-cflags="-x c" \
--with-ldflags=$(LDFLAGS) \
--with-endianness=little;



The "make" starts normally and compiles some files but then these errors start 
occuring:

/bin/sh ../libtool  --mode=compile mipsel-uclibc-g++  -I../include 
-I/export/home/rosent1/vegasCC/1.97/buildsys/A506/netsnmp/include -I. 
-I../agent -I/export/home/rosent1/vegasCC/1.97/buildsys/A506/netsnmp/agent 
-I../agent/mibgroup 
-I/export/home/rosent1/vegasCC/1.97/buildsys/A506/netsnmp/agent/mibgroup 
-I../snmplib -I/export/home/rosent1/vegasCC/1.97/buildsys/A506/netsnmp/snmplib  
 -x c -Ulocalhost -Dlocalhost=localhost  -c -o snmpd.lo snmpd.c
 mipsel-uclibc-g++ -I../include  
-I/export/home/rosent1/vegasCC/1.97/buildsys/A506/netsnmp/include -I. 
-I../agent  -I/export/home/rosent1/vegasCC/1.97/buildsys/A506/netsnmp/agent 
-I../agent/mibgroup 
-I/export/home/rosent1/vegasCC/1.97/buildsys/A506/netsnmp/agent/mibgroup 
-I../snmplib -I/export/home/rosent1/vegasCC/1.97/buildsys/A506/netsnmp/snmplib 
-x c -Ulocalhost -Dlocalhost=localhost -c snmpd.c -o snmpd.o
snmpd.c: In function `main':
snmpd.c:948: warning: assignment discards qualifiers from pointer target type
/bin/sh ../libtool  --mode=link  mipsel-uclibc-g++ -x c -Ulocalhost 
-Dlocalhost=localhost  -o snmpd snmpd.lo    libnetsnmpmibs.la 
libnetsnmpagent.la helpers/libnetsnmphelpers.la   ../snmplib/libnetsnmp.la -ldl 
-lm
mipsel-uclibc-g++ -x c -Ulocalhost -Dlocalhost=localhost -o snmpd snmpd.o  
./.libs/libnetsnmpmibs.a ./.libs/libnetsnmpagent.a 
helpers/.libs/libnetsnmphelpers.a ../snmplib/.libs/libnetsnmp.a -ldl -lm
snmpd.o:1: error: stray '\177' in program
snmpd.o:1: error: stray '\1' in program
snmpd.o:1: error: stray '\1' in program
snmpd.o:1: error: stray '\1' in program
snmpd.o:1:8: warning: null  character(s) ignored
snmpd.o:1: error: stray '\1' in program
snmpd.o:1:18: warning: null character(s) ignored
snmpd.o:1: error: stray '\10' in program
snmpd.o:1:20: warning: null character(s) ignored
snmpd.o:1: error: stray '\1' in program
snmpd.o:1:22: warning: null character(s) ignored
snmpd.o:1: error: parse error before "lR"
snmpd.o:1:35: warning: null character(s) ignored
snmpd.o:1: error: stray '\7' in  program
snmpd.o:1: error: stray '\20' in program
snmpd.o:1:39: warning: null character(s)  ignored
snmpd.o:1:42: warning: null character(s) ignored
snmpd.o:1:48: warning: null character(s)  ignored
snmpd.o:1: error: stray '\20' in program
snmpd.o:1:50: warning: null character(s) ignored
snmpd.o:2:1: warning: null character(s) ignored
snmpd.o:2: error: stray '\34' in program
snmpd.o:2:18: warning: null character(s) ignored
snmpd.o:2: error: stray '\234' in program
snmpd.o:2:21: warning: character constant too  long for its type
snmpd.o:2: error: stray '\20' in program
snmpd.o:2:31: warning: null character(s) ignored
snmpd.o:2: error: stray '\274' in program
snmpd.o:2: error: stray '\257' in program
snmpd.o:2:34: warning: null character(s) ignored
snmpd.o:2: error: stray '\277' in program
snmpd.o:2: error: stray '\257' in program
snmpd.o:2: error: stray '\34' in program
snmpd.o:2:39: warning: null character(s)  ignored
snmpd.o:2: error: stray '\276' in program
snmpd.o:2: error: stray '\257' in  program
snmpd.o:2: error: stray '\30' in program
snmpd.o:2:43: warning: null character(s) ignored
snmpd.o:2:  error: stray '\274' in program
snmpd.o:2: error: stray '\257' in program
snmpd.o:2: error: stray '\360' in program
snmpd.o:2: error: stray '\240' in program
snmpd.o:2: error: stray '\3' in program
snmpd.o:2:51: warning: null character(s) ignored
snmpd.o:2: error: stray '\304' in program
snmpd.o:2: error: stray '\257' in  program
snmpd.o:2:54: warning: null character(s) ignored
snmpd.o:2: error: stray '\204' in program
snmpd.o:2: error: stray '\217' in program
snmpd.o:2:58: warning: null character(s) ignored
snmpd.o:2: error: stray '\10' in program
snmpd.o:2:63: warning: null character(s) ignored
snmpd.o:2: error: stray '\204' in program
snmpd.o:2:67: warning: null character(s) ignored
snmpd.o:2: error: stray '\305' in  program
snmpd.o:2: error: stray '\217' in program
snmpd.o:2:70: warning: null  character(s) ignored
snmpd.o:2: error: stray '\231' in program
snmpd.o:2: error: stray '\217' in program
snmpd.o:2:74:  warning: null character(s) ignored
snmpd.o:2: error: stray '\370' in program
snmpd.o:2: error: stray '\3' in program
snmpd.o:2:84: warning: null character(s) ignored
snmpd.o:2: error: stray '\20' in program
snmpd.o:2:89: warning: null character(s) ignored
snmpd.o:2: error: stray '\334' in program
snmpd.o:2: error:  stray '\217' in program
snmpd.o:2:92: warning: null character(s) ignored
snmpd.o:2: error: stray '\204' in program
snmpd.o:2: error: stray '\217' in program
snmpd.o:2:100: warning: null character(s) ignored
snmpd.o:2:105: warning: null character(s) ignored
snmpd.o:2: error: stray '\204' in program
snmpd.o:2:108: warning: null character(s) ignored
snmpd.o:2: error: stray '\231' in program
snmpd.o:2: error:  stray '\217' in program
snmpd.o:2:112: warning: null character(s)  ignored
snmpd.o:2: error: stray '\370' in program
snmpd.o:2: error: stray '\3' in program
snmpd.o:2:124: warning: null character(s)  ignored
snmpd.o:2: error: stray '\20' in program
snmpd.o:2:129: warning: null character(s) ignored
snmpd.o:2: error: stray '\334' in program
snmpd.o:2: error: stray '\217' in program

 etc... 
 etc...
 etc...

snmpd.o:768:1: warning: null character(s) ignored
snmpd.o:768: error: stray '\2' in program
snmpd.o:768:5: warning: null character(s) ignored
snmpd.o:768: error: stray '\340' in program
snmpd.o:769:1: warning: null character(s) ignored
snmpd.o:769:  error: stray '\2' in program
snmpd.o:769:5: warning: null  character(s) ignored
snmpd.o:769:5: warning: no newline at end of file
.libs/libnetsnmpmibs.a:1: error: parse error before '!'  token
.libs/libnetsnmpmibs.a:2: error: stray '`' in program
.libs/libnetsnmpmibs.a:3:1: warning: null character(s) ignored
.libs/libnetsnmpmibs.a:3: error: stray '\5' in program
.libs/libnetsnmpmibs.a:3:5: warning: null character(s) ignored
.libs/libnetsnmpmibs.a:3: error: stray '\240' in program
.libs/libnetsnmpmibs.a:3:9:  warning: null character(s) ignored
.libs/libnetsnmpmibs.a:3: error: stray '\240' in program
.libs/libnetsnmpmibs.a:3:13: warning: null character(s) ignored
.libs/libnetsnmpmibs.a:3: error: stray '\240' in program
.libs/libnetsnmpmibs.a:3:17: warning: null character(s) ignored

etc...
etc...
etc...

goes forever ...... (well, it seems like it goes on forever)


         

---------------------------------
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

        

---------------------------------
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

   

---------------------------------
Food fight? Enjoy some healthy debate
in the Yahoo! Answers Food & Drink 
Q&A.-------------------------------------------------------------------------
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


       
---------------------------------
Looking for a deal? Find great prices on flights and hotels with Yahoo! 
FareChase.
-------------------------------------------------------------------------
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