cp ./etip.h.in etip.h sh ./edit_cfg.sh ../include/ncurses_cfg.h etip.h substituting autoconf'd values from ../include/ncurses_cfg.h into etip.h ... CPP_HAS_PARAM_INIT 0 ... ETIP_NEEDS_MATH_EXCEPTION 0 ... ETIP_NEEDS_MATH_H 1 ... HAVE_BUILTIN_H 0 ... HAVE_GXX_BUILTIN_H 0 ... HAVE_GPP_BUILTIN_H 0 ... HAVE_TYPEINFO 1 ... HAVE_VALUES_H 0 cd ../obj_s; c++ -I../c++ -I../include -I. -DHAVE_CONFIG_H -DNDEBUG -I. -I../include -march=athlon-tbird -O3 -pipe -fPIC -c ../c++/cursesf.cc In file included from /usr/include/g++-v3/backward/strstream:51, from /usr/include/g++-v3/backward/strstream.h:33, from ../c++/cursesw.h:17, from ../c++/cursesp.h:39, from ../c++/cursesf.h:39, from ../c++/cursesf.cc:34: /usr/include/g++-v3/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <sstream> instead of the deprecated header <strstream.h>. To disable this warning use -Wno-deprecated. cd ../obj_s; c++ -I../c++ -I../include -I. -DHAVE_CONFIG_H -DNDEBUG -I. -I../include -march=athlon-tbird -O3 -pipe -fPIC -c ../c++/cursesm.cc In file included from /usr/include/g++-v3/backward/strstream:51, from /usr/include/g++-v3/backward/strstream.h:33, from ../c++/cursesw.h:17, from ../c++/cursesp.h:39, from ../c++/cursesm.h:39, from ../c++/cursesm.cc:34: /usr/include/g++-v3/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <sstream> instead of the deprecated header <strstream.h>. To disable this warning use -Wno-deprecated. cd ../obj_s; c++ -I../c++ -I../include -I. -DHAVE_CONFIG_H -DNDEBUG -I. -I../include -march=athlon-tbird -O3 -pipe -fPIC -c ../c++/cursesw.cc In file included from /usr/include/g++-v3/backward/strstream:51, from /usr/include/g++-v3/backward/strstream.h:33, from ../c++/cursesw.h:17, from ../c++/cursesw.cc:25: /usr/include/g++-v3/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <sstream> instead of the deprecated header <strstream.h>. To disable this warning use -Wno-deprecated. ../c++/cursesw.cc: In member function `int NCursesWindow::scanw(const char*, ...)': ../c++/cursesw.cc:55: no matching function for call to `std::strstreambuf:: vscan(const char*&, char*&)' ../c++/cursesw.cc: In member function `int NCursesWindow::scanw(int, int, const char*, ...)': ../c++/cursesw.cc:77: no matching function for call to `std::strstreambuf:: vscan(const char*&, char*&)' make[1]: *** [../obj_s/cursesw.o] Error 1 make[1]: Leaving directory `/var/tmp/portage/ncurses-5.2.20020511/work/ncurses-5.2/c++' make: *** [all] Error 2
Created attachment 1129 [details, diff] When applied to ncurses sources, fixes warnings and errors
If my diff is saved as "files/ncurses-5.2.20020511.patch", adding in the ebuild file patch -p1 -d ${S} < ${FILESDIR}/${P}.patch || die to the end of src_unpack corrects the problem. While you're at it, correct the spelling in the DESCRIPTION :).
rescheluding this ones severity as it seems fixed now :)
With the following setup emerge ncurses does not work: # gcc --version 2.95.3 # grep -v # /etc/make.conf GENTOO_MIRRORS="http://mirrors.sunsite.dk/gentoo http://www.ibiblio.org/pub/Linux/distributions/gentoo" USE="mmx sse apm pcmcia pnp trusted gphoto2 cups slp X opengl xv kde qt qtmt arts evo sdl gd gif jpeg png tiff avi mpeg quicktime alsa dvd xmms oggvorbis flash encode ipv6 pam ssl crypt imap ldap tcpd mozilla mozirc spell truetype xml xml2 pdflib perl berkdb mysql postgres odbc innodb gdbm afs" CHOST="i686-pc-linux-gnu" CFLAGS="-mcpu=i686 -O2 -pipe" CXXFLAGS="-mcpu=i686 -O2 -pipe" CC=gcc-3.1 CXX=g++-3.1 GCJ=gcj-3.1