Build Scilab-5.2.0 :: Conflict with 2 includes
Vergnes Nicolas
nicolas.vergnes at steria.cnes.fr
Wed Dec 23 16:27:44 CET 2009
Hello,
(I'm on a x86_64 with RHE4 64b )
I have 2 errors during compilation in 2 files
./modules/shell/src/c/others/zzledt.c and
./modules/shell/src/c/scilines.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../modul[...]
src/c/scilines.c [...]
In file included from src/c/scilines.c:35:
/usr/include/term.h:772: error: conflicting types for 'tgetstr'
/usr/include/termcap.h:46: error: previous declaration of 'tgetstr' was
here
/usr/include/term.h:774: error: conflicting types for 'tgetent'
/usr/include/termcap.h:43: error: previous declaration of 'tgetent' was
here
[...]
make: *** [all-recursive] Error 1
./modules/shell/src/c/scilines.c:
[...]
# ifdef HAVE_TERMCAP_H
# include <termcap.h>
# endif
# ifdef HAVE_TERM_H
# include <term.h>
# endif
[...]
term.h and termcap.h have in common
$ grep -E "tputs|tget" /usr/include/term*.h
/usr/include/termcap.h:extern int tgetent __P((void *__buffer, __const
char *__termtype));
/usr/include/termcap.h:extern int tgetflag __P((__const char *__name));
/usr/include/termcap.h:extern int tgetnum __P((__const char *__name));
/usr/include/termcap.h:extern char *tgetstr __P((__const char *__name,
char **__area));
/usr/include/termcap.h:extern void tputs __P((__const char *__string,
int __nlines,
/usr/include/termcap.h:extern void tputs __P((__const char *__string,
int __nlines,
/usr/include/term.h:/* termcap database emulation (XPG4 uses const only
for 2nd param of tgetent) */
/usr/include/term.h:extern NCURSES_EXPORT(char *) tgetstr (NCURSES_CONST
char *, char **);
/usr/include/term.h:extern NCURSES_EXPORT(int) tgetent (char *, const
char *);
/usr/include/term.h:extern NCURSES_EXPORT(int) tgetflag (NCURSES_CONST
char *);
/usr/include/term.h:extern NCURSES_EXPORT(int) tgetnum (NCURSES_CONST
char *);
/usr/include/term.h:extern NCURSES_EXPORT(int) tputs (const char *, int,
int (*)(int));
The /usr/include/term.h file is from ncurses pkg. I have disabled the
include <term.h> and the compilation finish without problem.
I dont know if the presence of a ncurses term.h and termcap.h is
standard or not. Are they both necessary ?
Regards
Nicolas Vergnes
More information about the dev
mailing list