私はSolaris 10(x86)上でGNUスタックをコンパイルしようとしています。Solaris上でNcursesをコンパイルする - 「UNIX-03以前のX/Openアプリケーションと2001年以前のPOSIXアプリケーションでコンパイラまたはオプションが無効」?
- GMP
- MPFR
- MPC
- GCC
- のbinutils
- libiconvを
- gettextの
私はこれまでのフォローアップを得ることができました
私は現在、Ncursesのを構築しようとしている、と私はエラーを打っています:
/db/pub/eq/tools/bin/g++ -I../c++ -I../include -I/db/pub/eq/src/ncurses-5.9/c++ -DHAVE_CONFIG_H -D__EXTENSIONS__ -D_XOPEN_SOURCE=500 -D_FILE_OFFSET_BITS=64 -DNDEBUG -I. -I../include -I/db/pub/eq/src/ncurses-5.9/c++/../include -I/db/pub/eq/tools/include/ncurses -O2 -c /db/pub/eq/src/ncurses-5.9/c++/cursesf.cc -o ../objects/cursesf.o
<command-line>:0:0: warning: "_XOPEN_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
In file included from /usr/include/iso/stdlib_iso.h:30:0,
from /usr/include/stdlib.h:18,
from /db/pub/eq/src/ncurses-5.9/c++/internal.h:53,
from /db/pub/eq/src/ncurses-5.9/c++/cursesf.cc:34:
/db/pub/eq/tools/lib/gcc/i386-pc-solaris2.10/4.6.1/include-fixed/sys/feature_tests.h:341:2: error: #error "Compiler or options invalid for pre-UNIX 03 X/Open applications and pre-2001 POSIX applications"
*** Error code 1
make: Fatal error: Command failed for target `../objects/cursesf.o'
Current working directory /db/pub/eq/src/ncurses-5.9/c++
*** Error code 1
make: Fatal error: Command failed for target `all'
私は上記のエラー(Compiler or options invalid for pre-UNIX 03 X/Open applications and pre-2001 POSIX applications
)は何を意味するのか、またはそれを解決する方法をかなりよく分かりません。
私はMPC(gmake check
の間)を構築していたときに一度このエラーを見ましたが、それがどういう意味か、それを修正する方法はわかりませんでしたが、チェックしていたので問題ありませんでした。
乾杯、 ビクター
これは、ncurses 5.9ではまだ必要です。 – RandomInsano