[minicom-Bugs][312388] Compilation error
minicom-bugs at alioth.debian.org
minicom-bugs at alioth.debian.org
Thu Mar 11 12:35:31 UTC 2010
Bugs item #312388, was changed at 08/03/2010 11:57 by Vincent DEBOUT
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: Vincent DEBOUT (deboutv-guest)
Date: 11/03/2010 12:35
Message:
I have uploaded both the config.h and config.log files. In Mandriva, ncurses provides termcap.h file in /usr/include/ncurses/.
----------------------------------------------------------------------
Comment By: Adam Lackorzynski (al-guest)
Date: 09/03/2010 22:19
Message:
Ok. In Debian /usr/include/termcap.h is provided by libncurses5-dev and is thus compatible to ncurses. I removed the '#include <termcap.h>' from window.c now as it is redundant anyway. Does this help in your case too?
What does configure detect on your system (what's in config.h)?
----------------------------------------------------------------------
Comment By: Vincent DEBOUT (deboutv-guest)
Date: 09/03/2010 22:08
Message:
Without lib64termcap-devel I have the first error (termcap.h file not found), that's why I installed it.
----------------------------------------------------------------------
Comment By: Adam Lackorzynski (al-guest)
Date: 09/03/2010 20:09
Message:
What is lib64termcap-devel useful for? Looks to me that both libraries do the same. Does it work if you deinstall lib64termcap-devel?
----------------------------------------------------------------------
Comment By: Vincent DEBOUT (deboutv-guest)
Date: 09/03/2010 12:06
Message:
Hi,
This is Mandriva 2010.0 and I installed the following packages:
- lib64ncurses-devel 5.7-3.20090516.1mdv2010.0
- lib64termcap-devel 2.0.8-48mdv2010.0
----------------------------------------------------------------------
Comment By: Adam Lackorzynski (al-guest)
Date: 09/03/2010 11: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