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; On Fri, Jun 29, 2007 at 09:17:59AM +0100, Dave Shield wrote: > On 28/06/07, Need Help &...


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
Magnus Fromreide
 
Posts: n/a
Default Re: STILL A PROBLEM: (Re: Tons of errors-> "snmpd.o:1: error: stray

On Fri, Jun 29, 2007 at 09:17:59AM +0100, Dave Shield wrote:
> On 28/06/07, Need Help <snmpnoob@yahoo.com> 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

-------------------------------------------------------------------------
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
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/...et-snmp-coders
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

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

BB 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 03:34 AM.


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