This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Install Failed: Unixware


Randy Joiner wrote:
> UX:acomp: ERROR: "../../../egcs-1.1b/texinfo/lib/memcpy.c", line 11:
> identifier redeclared: memcpy
> UX:acomp: WARNING: "../../../egcs-1.1b/texinfo/lib/memcpy.c", line 14:
> Function illegally defined in hosted mode: memcpy

I recognize this but was hoping to keep my head in the sand.

The problem is that some of SCO's cc (as found in UW2, UW7, and therefore
the UD) know that you're trying to outsmart it by by replacing its highly
tuned really groovy memcpy with a version written in C.   

You can get around this problem by adding -Kno_host to your build lines.
THe easiest way to do this is to do something like
	CC="/udk/usr/ccs/bin/cc -Kno_host" /play/egcs/configure ....

The better solution is to go fix up this code to quit building memcpy
when it detects the system already has one.  It could be (and probably
is) replacing a highly optimized system-specific memory copier with a 
humble little byte-by-byte copy.

>From memory, I think there is at least one more occurrence of this problem
in the egcs tree somewhere....

RJL


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]