Next hurdle will be GCC.. I can't use GCC 3.3 as it doesn't support an --enable-threads build on Tru64. It should be fixed in GCC 3.4.
I'm having problems with a package that is pulled in as a dependency for getting gcc to compile. The package ncurses gives the following error:
cd ncurses && make DESTDIR="" all
make[1]: Entering directory `/cluster/members/member0/tmp/openpkg/RPM/TMP/ncurses-5.4/ncurses'
cc -o make_hash -DHAVE_CONFIG_H -I../ncurses -I. -I./../include -DHAVE_CONFIG_H -I../ncurses -I. -I. -I../include -D_OSF_SOURCE -I/tmp/openpkg/include/ncurses -DMAIN_PROGRAM ./tinfo/comp_hash.c cc: Severe: ./../include/curses.h, line 147: Cannot find file <stdbool.h> specified in #include directive. (noinclfilef)
#include <stdbool.h>
-^
make[1]: *** [make_hash] Error 1
make[1]: Leaving directory `/cluster/members/member0/tmp/openpkg/RPM/TMP/ncurses-5.4/ncurses'
make: *** [all] Error 2
Tru64 has no stdbool.h header. The configure script checks for this, but I noticed that there is an openpkg patch to disable this check:
=========== $ more ncurses.patch Index: include/curses.h.in --- include/curses.h.in.orig 2004-02-22 09:36:58.000000000 +0100 +++ include/curses.h.in 2004-02-22 09:37:14.000000000 +0100 @@ -61,7 +61,11 @@ * User-definable tweak to disable the include of <stdbool.h>. */ #ifndef NCURSES_ENABLE_STDBOOL_H -#define NCURSES_ENABLE_STDBOOL_H @cf_cv_header_stdbool_h@ +#if defined(__STDC__) && (__STDC_VERSION__ >= 199901L) +#define NCURSES_ENABLE_STDBOOL_H 1 +#else +#define NCURSES_ENABLE_STDBOOL_H 0 +#endif #endif
/* ===========
What was the reason for disabling this configure test? Anyway, this compile error can be fixed by adding a !defined(__osf__) after the STDC_VERSION check. So the patch becomes:
=========== Index: include/curses.h.in --- include/curses.h.in.orig 2004-02-22 09:36:58.000000000 +0100 +++ include/curses.h.in 2004-02-22 09:37:14.000000000 +0100 @@ -61,7 +61,11 @@ * User-definable tweak to disable the include of <stdbool.h>. */ #ifndef NCURSES_ENABLE_STDBOOL_H -#define NCURSES_ENABLE_STDBOOL_H @cf_cv_header_stdbool_h@ +#if defined(__STDC__) && (__STDC_VERSION__ >= 199901L) && !defined(__osf__) +#define NCURSES_ENABLE_STDBOOL_H 1 +#else +#define NCURSES_ENABLE_STDBOOL_H 0 +#endif #endif
/* ===========
______________________________________________________________________ The OpenPKG Project www.openpkg.org Developer Communication List [EMAIL PROTECTED]
