[minicom-Bugs][312388] Compilation error

minicom-bugs at alioth.debian.org minicom-bugs at alioth.debian.org
Tue Mar 9 11:06:29 UTC 2010


Bugs item #312388, was changed at 2010-03-08 12:57 by Adam Lackorzynski
You can respond by visiting: 
https://alioth.debian.org/tracker/?func=detail&atid=100031&aid=312388&group_id=30018

Status: Open
Priority: 3
Submitted By: Vincent DEBOUT (deboutv-guest)
Assigned to: Nobody (None)
Summary: Compilation error 
Category: None
Group: None
Resolution: None


Initial Comment:
Hello, 

I've downloaded minicom 2.4 and compile it but an error occured during the compilation: 

Making all in src                                                 
dial.c: In function ‘horiz_draw’:                                 
dial.c:1269: attention : champ de précision should have type ‘int’, but argument 3 has type ‘size_t’
window.c:28:21: erreur: termcap.h : Aucun fichier ou dossier de ce type (file not found)

So I installed the package which contains /usr/include/termcap.h and after that I got another error: 

In file included from port.h:39,                                                                
                 from minicom.c:37:                                                             
/usr/include/ncurses/termcap.h:65: erreur: conflicting types for ‘tgetent’                      
/usr/include/termcap.h:43: note: previous declaration of ‘tgetent’ was here                     
/usr/include/ncurses/termcap.h:68: erreur: conflicting types for ‘tputs’                        
/usr/include/termcap.h:53: note: previous declaration of ‘tputs’ was here

I fixed this error by changing the port.h file:

#ifdef HAVE_TERMCAP_H
#  include <termcap.h>
#else
#ifdef HAVE_NCURSES_TERMCAP_H
#  include <ncurses/termcap.h>
#endif
#endif

becomes

#ifdef HAVE_TERMCAP_H
#  include <termcap.h>
#endif
#ifdef HAVE_NCURSES_TERMCAP_H
#  include <ncurses/termcap.h>
#endif

----------------------------------------------------------------------

>Comment By: Adam Lackorzynski (al-guest)
Date: 2010-03-09 12:06

Message:
Hi,

which distribution are you using? And which packages related to termcap.h do you have installed?

Thx

----------------------------------------------------------------------

You can respond by visiting: 
https://alioth.debian.org/tracker/?func=detail&atid=100031&aid=312388&group_id=30018



More information about the minicom-devel mailing list