This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


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

Re: termcap interface code


Justin Hopkins wrote:
> 
> Hi, I'm trying to compile texinfo 3.9 and I'm getting some
> undefined references at link-time. These are the functions:
> 
> extern int tgetnum (), tgetflag (), tgetent ();
> extern char *tgetstr (), *tgoto ();
> extern char *getenv ();
> extern void tputs ();
> 
> The comment nearby says these are Unix termcap interface code,
> so does anyone know where I can get these? Or if they're
> already in the cygwin32 b18 distribution..?

You need to install termcap-1.3 first (small patch attached). Both then
come up without problems with ./configure; make.

Best wishes

-- 
Dr David Coe			     \=\
58 Fairlawn Drive, East Grinstead     \=\   Tel +44 1342 326860
West Sussex, RH19 1NT, United Kingdom  \=\  Fax +44 1342 316019
*** tparam.c.orig	Wed Jul 26 19:22:51 1995
--- tparam.c	Tue Jul 08 06:57:22 1997
***************
*** 20,35 ****
  #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
  
  #endif /* not HAVE_CONFIG_H */
--- 20,36 ----
  #include <config.h>
  #else /* not HAVE_CONFIG_H */
  
  #ifdef STDC_HEADERS
  #include <stdlib.h>
  #include <string.h>
  #else
  char *malloc ();
  char *realloc ();
+ #endif
+ 
+ /* Do this after the include, in case string.h prototypes bcopy.  */
+ #if defined(HAVE_STRING_H) || defined(STDC_HEADERS) && !defined(bcopy)
+ #define bcopy(s, d, n) memcpy ((d), (s), (n))
  #endif
  
  #endif /* not HAVE_CONFIG_H */

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