[minicom-Bugs][312388] Compilation error
minicom-bugs at alioth.debian.org
minicom-bugs at alioth.debian.org
Sun May 30 20:41:24 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: Closed
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-11 22:20
Message:
I improved 'configure' now so that only one of the termcap.h files is used. I hope it fixes your problem!
----------------------------------------------------------------------
Comment By: Vincent DEBOUT (deboutv-guest)
Date: 2010-03-11 13: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: 2010-03-09 23: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: 2010-03-09 23: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: 2010-03-09 21: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: 2010-03-09 13: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: 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