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 <[EMAIL PROTECTED]> 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. 
-------------------------------------------------------------------------
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