[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Error in termcap-1.3 compilation.
From: |
Oleg Kornilov |
Subject: |
Error in termcap-1.3 compilation. |
Date: |
Sun, 18 Nov 2001 16:58:21 +0100 (CET) |
Hello!
I have PentiumIII with SuSe 7.3 installed.
While trying to install SciGraphica I crossed with the problem that I have no
readline headers installed. So I decided to get a last version of readline and
install it from sources(4.2a). It worked out. But it is appiared, that readline
wants to have libtermcap installed which I hadn't. So I tried to install
termcap-1.3 from ftp.gnu.org and crossed over compilation error:
gcc -c -DHAVE_STRING_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1
-DTERMCAP_FILE=\"/etc/termcap\" -I. -I. -g tparam.c
In file included from tparam.c:29:
/usr/include/string.h:242: parse error before `('
/usr/include/string.h:242: warning: conflicting types for built-in function
`memcpy'
/usr/include/string.h:242: parse error before `__const'
make: *** [tparam.o] Error 1
I fixed it by swapping two defines in tparam.c.
Thank you for free software development.
Oleg Kornilov
Here is the patch:
--- tparam.c.old Sun Nov 18 16:54:48 2001
+++ tparam.c Sun Nov 18 16:55:21 2001
@@ -20,16 +20,16 @@
#include <config.h>
#else /* not HAVE_CONFIG_H */
-#if defined(HAVE_STRING_H) || defined(STDC_HEADERS)
-#define bcopy(s, d, n) memcpy ((d), (s), (n))
-#endif
-
#ifdef STDC_HEADERS
#include <stdlib.h>
#include <string.h>
#else
char *malloc ();
char *realloc ();
+#endif
+
+#if defined(HAVE_STRING_H) || defined(STDC_HEADERS)
+#define bcopy(s, d, n) memcpy ((d), (s), (n))
#endif
#endif /* not HAVE_CONFIG_H */
Oleg Kornilov
<<< OKKOLO - the place near OK, now KAPUZIN seats there >>>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Error in termcap-1.3 compilation.,
Oleg Kornilov <=