Skip to content

I have termcap but I get error #4

Description

@gnusupport
search.c:467:3: warning: ‘strncpy’ specified bound 80 equals destination size [-Wstringop-truncation]
  467 |   strncpy (&tpat[0], &pat[0], NPAT); /* salt it away */
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc -Wall -O2  -c tcap.c
cc -Wall -O2   -c -o termio.o termio.c
cc -Wall -O2   -c -o window.o window.c
cc -Wall -O2   -c -o complete.o complete.c
cc -Wall -O2 basic.o buffer.o bufmenu.o display.o file.o fileio.o line.o main.o random.o region.o strlcpy.c search.o tcap.o termio.o window.o complete.o -o pe -ltermcap
/usr/bin/ld: cannot find -ltermcap: No such file or directory
collect2: error: ld returned 1 exit status
make: *** [Makefile:33: all] Error 1
~/Programming/git/pEmacs
$ ls
basic.c   bufmenu.c   display.c  efunc.h    fileio.o  main.c	random.c   region.o   tcap.c	window.c
basic.o   bufmenu.o   display.o  estruct.h  file.o    main.o	random.o   search.c   tcap.o	window.o
buffer.c  complete.c  ebind.h	 file.c     line.c    Makefile	README.md  search.o   termio.c
buffer.o  complete.o  edef.h	 fileio.c   line.o    pe.1	region.c   strlcpy.c  termio.o
~/Programming/git/pEmacs
$ ls termio.  C-c C-c
~/Programming/git/pEmacs
$ grep termcap *.c
tcap.c:      puts ("Insufficient termcap! (needs cl & cm abilities)\n");
~/Programming/git/pEmacs
$ grep termcap *
Makefile:LFLAGS= -ltermcap
pe.1:.Ev Em TERMCAP , TERMPATH ,
pe.1:.Xr termcap 5
pe.1:.Xr termcap 5 .
pe.1:.It Em Insufficient termcap (needs cl & cm abilities)
README.md:    with a termcap/curses library. This release has been tested with
tcap.c:      puts ("Insufficient termcap! (needs cl & cm abilities)\n");
grep: tcap.o: binary file matches
~/Programming/git/pEmacs
$ locate termcap
/usr/include/termcap.h
/usr/share/man/man3/curs_termcap.3x.gz
~/Programming/git/pEmacs
$ 
´``

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions