compilation - Compiling Ncurses on Solaris - "Compiler or options invalid for pre-UNIX 03 X/Open applications and pre-2001 POSIX applications"? -


i'm trying compile gnu stack on solaris 10 (x86).

i've managed following far:

  • gmp
  • mpfr
  • mpc
  • gcc
  • binutils
  • libiconv
  • gettext

i'm trying build ncurses, , i'm hitting error:

/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 default] <built-in>:0:0: note: location of previous definition in file included /usr/include/iso/stdlib_iso.h:30:0,              /usr/include/stdlib.h:18,              /db/pub/eq/src/ncurses-5.9/c++/internal.h:53,              /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 pre-unix 03 x/open applications      , pre-2001 posix applications" *** error code 1 make: fatal error: command failed target `../objects/cursesf.o' current working directory /db/pub/eq/src/ncurses-5.9/c++ *** error code 1 make: fatal error: command failed target `all' 

i'm not quite sure above error (compiler or options invalid pre-unix 03 x/open applications , pre-2001 posix applications) means, or how troubleshoot it.

i saw error once before when building mpc (during gmake check), had no idea meant then, or how fix - since in checks, ok.

cheers, victor

apply patch configure script:

--- configure.orig  fri aug  5 14:28:28 2011 +++ configure       fri aug  5 14:31:11 2011 @@ -7246,7 +7246,7 @@     # setting _xopen_source breaks lynx on sco unix / openserver     ;;  solaris2.1[0-9]) #(vi -   cf_xopen_source="-d__extensions__ -d_xopen_source=$cf_xopen_source" +   cf_xopen_source="-d__extensions__"     ;;  solaris2.[1-9]) #(vi     cf_xopen_source="-d__extensions__" 

ncurses 5.6 did not define _xopen_source solaris either.

cheers


Comments

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -