public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Compilation error with gcc4.3 wchar.h:335: first defined here   collect2: ld returned 1 exit status *** Error code 1 clearmake: Error: Build   script failed for
@ 2009-04-22 18:41 linux linux
  2009-04-22 21:24 ` Ian Lance Taylor
  0 siblings, 1 reply; 2+ messages in thread
From: linux linux @ 2009-04-22 18:41 UTC (permalink / raw)
  To: gcc-help

Hi,
I am using gcc4.3 and glibc 2.8. During compilation am getting the
compilation mentioned below.
Can any one help me out.
I am not sure if it is a bug of new gcc.

/glibc/x86-linux2/../sysroot/usr/include/wc
har.h:341: multiple definition of `wctob'
/opt/i686/base/common/l2tr/src/Communicat
ion/CommInterface.lo:/sysroot/emer_atca7101-glibc_cgl/x86-linux2/../s
ysroot/usr/include/wchar.h:341: first defined here
/opt/i686/base/common/l2tr/src/Communicat
ion/UnixDomainSocket.lo: In function `btowc':
/sysroot/emer_atca7101-glibc_cgl/x86-linux2/../sysroot/usr/include/wc
har.h:335: multiple definition of `btowc'
/opt/i686/base/common/l2tr/src/Communicat
ion/CommInterface.lo:/sysroot/emer_atca7101-glibc_cgl/x86-linux2/../s
ysroot/usr/include/wchar.h:335: first defined here
collect2: ld returned 1 exit status
*** Error code 1
clearmake: Error: Build script failed for
"/opt/i686/lib/libl2TraceRouteCommunication


Some background of this error. I have add these 6 line to my .cpp file
to avoid some error(error: '__extern_inline' does not name a type)

#ifndef __extern_inline
#define __extern_inline
#endif
#ifndef __wur
#define __wur
#endif

Thanks

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Compilation error with gcc4.3 wchar.h:335: first defined here   collect2: ld returned 1 exit status *** Error code 1 clearmake: Error: Build   script failed for
  2009-04-22 18:41 Compilation error with gcc4.3 wchar.h:335: first defined here collect2: ld returned 1 exit status *** Error code 1 clearmake: Error: Build script failed for linux linux
@ 2009-04-22 21:24 ` Ian Lance Taylor
  0 siblings, 0 replies; 2+ messages in thread
From: Ian Lance Taylor @ 2009-04-22 21:24 UTC (permalink / raw)
  To: linux linux; +Cc: gcc-help

linux linux <compile.gcc@gmail.com> writes:

> Some background of this error. I have add these 6 line to my .cpp file
> to avoid some error(error: '__extern_inline' does not name a type)
>
> #ifndef __extern_inline
> #define __extern_inline
> #endif
> #ifndef __wur
> #define __wur
> #endif

This should not be necessary.  __extern_inline should be defined by
sys/cdefs.h.  You should find out why that is not happening.

Defining __extern_inline to be empty is never correct.  There are two
possibilities, and sys/cdefs.h should select the right one.

Ian

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-04-22 21:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-22 18:41 Compilation error with gcc4.3 wchar.h:335: first defined here collect2: ld returned 1 exit status *** Error code 1 clearmake: Error: Build script failed for linux linux
2009-04-22 21:24 ` Ian Lance Taylor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).