clex 3.18 failing on PPC
David Woodhouse
dwmw2 at infradead.org
Wed Apr 30 13:11:29 UTC 2008
On Wed, 2008-04-30 at 13:36 +0100, David Woodhouse wrote:
> Smells like libtinfo isn't built with -fPIC?
Hm, don't think it's that. But 'stdscr' is a variable, and the configure
test seems to be attempting to call it as if it's a function. This is
probably not a good thing to be doing.
This is a quick hack to fix it, but you should probably be including
ncurses.h to pick up the appropriate declaration of stdscr -- it's
different according to how ncurses was built.
--- clex-3.18/configure~ 2008-04-01 14:06:50.000000000 +0100
+++ clex-3.18/configure 2008-04-30 14:11:02.000000000 +0100
@@ -3339,11 +3339,11 @@ cat >>conftest.$ac_ext <<_ACEOF
#ifdef __cplusplus
extern "C"
#endif
-char stdscr ();
+extern int stdscr;
int
main ()
{
-return stdscr ();
+return stdscr;
;
return 0;
}
--
dwmw2
More information about the devel
mailing list