bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: compiling error


From: Bruno Haible
Subject: Re: compiling error
Date: Fri, 19 Jan 2001 12:35:40 +0100 (CET)

address@hidden writes:

> Now glibc2.2 gcc-2.95.2 binutils 2.10.1
> 
> when I compile termcap-2.0.8.tar.gz the following errors ocurr:
> 
> 
> gcc -O -I. -c tparam.c
> In file included from tparam.c:34:
> /usr/include/string.h:243: parse error before `('
> /usr/include/string.h:243: warning: conflicting types for built-in function
> `memcpy'
> /usr/include/string.h:243: parse error before `__const'
> make: *** [tparam.o] Error 1
> 
> 
> can you tell me why. and what can i do?

Remove the three lines

#if defined(HAVE_STRING_H) || defined(STDC_HEADERS)
#define bcopy(s, d, n) memcpy ((d), (s), (n))
#endif

from tparam.c. They are not needed on Linux.

Or better, use ncurses instead of libtermcap. ncurses is actively
maintained and faster.

Bruno



reply via email to

[Prev in Thread] Current Thread [Next in Thread]