Re: STILL A PROBLEM: (Re: Tons of errors-> "snmpd.o:1: error: stray

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


Go Back   Usenet Forums > Networking and Network Related > SNMP Coders

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 06-29-2007
Need Help
 
Posts: n/a
Default Re: STILL A PROBLEM: (Re: Tons of errors-> "snmpd.o:1: error: stray

--===============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.&nbsp;&nbsp; I just looked for it in the NetSNMP email archives and found it.&nbsp; I will have the build people look it over.&nbsp; Thanks for the info and sorry again about not seeing this previously.<br><br><br><b><i>Magnus Fromreide &lt;magfr@lysator.liu.se&gt;</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>&gt; On 28/06/07, Need Help <snmpnoob@yahoo.com> wrote:<br>&gt; &gt; 3) We also noticed this interesting bit as well. We started from scratch<br>&gt; &gt; by uncompressing Net-SNMP-v5.4 and then performed a "./configure" (with the<br>&gt; &gt; options shown in the post below). We then looked into the "config.log" file<br>&gt; &gt; and noticed the same type errors were seen (see below), so we
get these<br>&gt; &gt; errors before doing a "make" at all:<br>&gt; &gt;<br>&gt; &gt; part of the "config.log" file:<br>&gt; &gt;<br>&gt; &gt; configure:7263: mipsel-uclibc-g++ -o conftest -x c conftest.c conftstm.o<br>&gt; &gt; &gt;&amp;5<br>&gt; &gt; conftstm.o:1: error: stray '\177' in program<br>&gt; &gt; conftstm.o:1: error: stray '\1' in program<br>&gt; <br>&gt; &gt; Any ideas what is goign on here? Any recommendations you can make for our<br>&gt; &gt; build team here to look into? We are using the "mips-uclibc-g++" compiler<br>&gt; &gt; so perhaps this could be a problem?<br>&gt; <br>&gt; 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==--

Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 02:34 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0