[Top][All Lists]

[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)


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:

-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
/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))
 #include <stdlib.h>
 #include <string.h>
 char *malloc ();
 char *realloc ();
+#if defined(HAVE_STRING_H) || defined(STDC_HEADERS)
+#define bcopy(s, d, n) memcpy ((d), (s), (n))

 #endif /* not HAVE_CONFIG_H */

             Oleg Kornilov

<<< OKKOLO - the place near OK, now KAPUZIN seats there >>>

reply via email to

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