This is a discussion on Re: STILL A PROBLEM: (Re: Tons of errors-> "snmpd.o:1: error: stray within the SNMP Coders forums, part of the Networking and Network Related category; --===============0418168105== Content-Type: multipart/alternative; boundary="0-1392726512-1183122634=:57198" Content-Transfer-Encoding: 8bit --0-1392726512-1183122634=:57198 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
--===============0418168105==
Content-Type: multipart/alternative; boundary="0-1392726512-1183122634=:57198" Content-Transfer-Encoding: 8bit --0-1392726512-1183122634=:57198 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Again I am sorry ..... I have not seen any reply to my "Configure "-x c" options with "--with-cflags" does not work for me." post. I just looked for it in the NetSNMP email archives and found it. I will have the build people look it over. Thanks for the info and sorry again about not seeing this previously. Magnus Fromreide <magfr@lysator.liu.se> wrote: On Fri, Jun 29, 2007 at 09:17:59AM +0100, Dave Shield 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. In a way it is true, but the main problem is that he tries to use a C++ compiler to build C source. Consider a classic hello.c. This gives a working binary: g++ -x c hello.c This gives similar errors to NeedHelps: g++ -x c -c hello.c g++ -x c hello.o The problem is that in the link step you tell the compiler to treat hello.o as a C file. That fails. I have already given NeedHelp a solution/workaround in the thread "Configure "-x c" options with "--with-cflags" does not work for me." /MF --------------------------------- Get the free Yahoo! toolbar and rest assured with the added security of spyware protection. --0-1392726512-1183122634=:57198 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Again I am sorry ..... I have not seen any reply to my "Configure "-x c" options with "--with-cflags" does not work for me." post. I just looked for it in the NetSNMP email archives and found it. I will have the build people look it over. Thanks for the info and sorry again about not seeing this previously.<br><br><br><b><i>Magnus Fromreide <magfr@lysator.liu.se></i></b> wrote:<blockquote class="replbq" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"> On Fri, Jun 29, 2007 at 09:17:59AM +0100, Dave Shield wrote:<br>> On 28/06/07, Need Help <snmpnoob@yahoo.com> wrote:<br>> > 3) We also noticed this interesting bit as well. We started from scratch<br>> > by uncompressing Net-SNMP-v5.4 and then performed a "./configure" (with the<br>> > options shown in the post below). We then looked into the "config.log" file<br>> > and noticed the same type errors were seen (see below), so we get these<br>> > errors before doing a "make" at all:<br>> ><br>> > part of the "config.log" file:<br>> ><br>> > configure:7263: mipsel-uclibc-g++ -o conftest -x c conftest.c conftstm.o<br>> > >&5<br>> > conftstm.o:1: error: stray '\177' in program<br>> > conftstm.o:1: error: stray '\1' in program<br>> <br>> > Any ideas what is goign on here? Any recommendations you can make for our<br>> > build team here to look into? We are using the "mips-uclibc-g++" compiler<br>> > so perhaps this could be a problem?<br>> <br>> That's certainly my immediate reaction.<br><br>In a way it is true, but the main problem is that he tries to use a<br>C++ compiler to build C source.<br><br>Consider a classic hello.c.<br><br>This gives a working binary:<br><br>g++ -x c hello.c<br><br>This gives similar errors to NeedHelps:<br><br>g++ -x c -c hello.c<br>g++ -x c hello.o<br><br>The problem is that in the link step you tell the compiler to treat hello.o as<br>a C file. That fails.<br><br>I have already given NeedHelp a solution/workaround in the thread<br>"Configure "-x c" options with "--with-cflags" does not work for me."<br><br>/MF<br></snmpnoob@yahoo.com></blockquote><br><p> <hr size=1><a href="http://us.rd.yahoo.com/evt=48226/*http://new.toolbar.yahoo.com/toolbar/features/norton/index.php">Get the free Yahoo! toolbar</a> and rest assured with the added security of spyware protection. --0-1392726512-1183122634=:57198-- --===============0418168105== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- 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/ --===============0418168105== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/...et-snmp-coders --===============0418168105==-- |
![]() |
| Thread Tools | |
| Display Modes | |
|
|