Re: Strange scary warnings when compiling SWI-Prolog 7.1.10 on Ubuntu 12.04

Jan Wielemaker <[email protected]>
Newsgroups gmane.comp.ai.prolog.swi
Message-ID <[email protected]>
Hi Paulo,

Haven't seen that.  Seems you are missing term.h and/or curses.h.  Did 
you install all required packages, notably ncurses-dev?

On 03/27/2014 02:51 PM, Paulo Moura wrote:
> Hi,
>
> When compiling SWI-Prolog 7.1.10 on Ubuntu 12.04, I get at the end of the (successful) compilation the following strange and scary warnings:
>
> QA Notice: Package triggers severe warnings which indicate that it
>             may exhibit random runtime failures.
> pl-term.c:129:5: warning: implicit declaration of function �tgetent� [-Wimplicit-function-declaration]
> pl-term.c:182:7: warning: implicit declaration of function �tgetnum� [-Wimplicit-function-declaration]
> pl-term.c:187:7: warning: implicit declaration of function �tgetflag� [-Wimplicit-function-declaration]
> pl-term.c:192:7: warning: implicit declaration of function �tgetstr� [-Wimplicit-function-declaration]
> pl-term.c:262:3: warning: implicit declaration of function �tgoto� [-Wimplicit-function-declaration]
> pl-term.c:266:3: warning: implicit declaration of function �tputs� [-Wimplicit-function-declaration]
>
>
> QA Notice: Package triggers severe warnings which indicate that it
>             may exhibit random runtime failures.
> pl-term.c:192:15: warning: assignment makes pointer from integer without a cast [enabled by default]
> pl-term.c:262:5: warning: assignment makes pointer from integer without a cast [enabled by default]
>
> Any ideas? Should I run for cover? Why me? Can these warnings be safely ignored?

These routines are used by tty_goto/2 and tty_get_capability/3.  Whether
or not it is harmful depends in the CPU.  In general, yes.  These
predicates are not used by the system AFAIK, so as long as your
application doesn't use them, you should be safe.  They should
be moved to an extension ...

	Cheers --- Jan

>
> Cheers,
>
> Paulo
>
> -----------------------------------------------------------------
> Paulo Moura
> Logtalk developer
>
> Email: <mailto:[email protected]>
> Web:   <http://logtalk.org/>
> -----------------------------------------------------------------
>
>
>
>
> _______________________________________________
> SWI-Prolog mailing list
> [email protected]
> https://lists.iai.uni-bonn.de/mailman/listinfo.cgi/swi-prolog
>

_______________________________________________
SWI-Prolog mailing list
[email protected]
https://lists.iai.uni-bonn.de/mailman/listinfo.cgi/swi-prolog
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.