Expected surf 1.04 will compile cleanly when emerged Situation emerging surf 1.04 on Gentoo kernel 2.6.5 with gcc version 3.3.3 20040412 (Gentoo Linux 3.3.3-r6, ssp-3.3.2-2, pie-8.7.6) What happens Compliation fails with this error message g++ -DPACKAGE=\"surf\" -DVERSION=\"1.0.4\" -DSTDC_HEADERS=1 -DYYTEXT_POINTER=1 -DHAVE_EXPLICIT_TEMPLATE_INSTANTIATION=1 -DHAVE_LIBPTHREAD=1 -D_REENTRANT=1 -DHAVE_LIBM=1 -DHAVE_LIBZ=1 -DHAVE_LIBJPEG=1 -DHAVE_LIBTIFF=1 -DHAVE_LIBGMP=1 -I. -I. -I../src -I../drawfunc -I../yaccsrc -I../image-formats -I../curve -I../gtkgui -I../mt -I../draw -I../misc -I../debug -I../xpm -I../dither -DDATADIR=\"/usr/share\" -O2 -march=pentium3 -fomit-frame-pointer -fno-rtti -fno-exceptions -Wall -W -Wwrite-strings -Wpointer-arith -Wconversion -Wno-unused -Wstrict-prototypes -Wmissing-prototypes -Woverloaded-virtual -Wno-deprecated -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -I/usr/X11R6/include -c Script.cc g++ -DPACKAGE=\"surf\" -DVERSION=\"1.0.4\" -DSTDC_HEADERS=1 -DYYTEXT_POINTER=1 -DHAVE_EXPLICIT_TEMPLATE_INSTANTIATION=1 -DHAVE_LIBPTHREAD=1 -D_REENTRANT=1 -DHAVE_LIBM=1 -DHAVE_LIBZ=1 -DHAVE_LIBJPEG=1 -DHAVE_LIBTIFF=1 -DHAVE_LIBGMP=1 -I. -I. -I../src -I../drawfunc -I../yaccsrc -I../image-formats -I../curve -I../gtkgui -I../mt -I../draw -I../misc -I../debug -I../xpm -I../dither -DDATADIR=\"/usr/share\" -O2 -march=pentium3 -fomit-frame-pointer -fno-rtti -fno-exceptions -Wall -W -Wwrite-strings -Wpointer-arith -Wconversion -Wno-unused -Wstrict-prototypes -Wmissing-prototypes -Woverloaded-virtual -Wno-deprecated -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -I/usr/X11R6/include -c ExecuteScriptStruct.cc In file included from Script.cc:39: ../misc/Misc.h:29:23: strstream.h: No such file or directory In file included from Script.cc:39: ../misc/Misc.h:36: error: `ostrstream' was not declared in this scope ../misc/Misc.h:36: error: `ostr' was not declared in this scope ../misc/Misc.h:36: error: invalid data member initialization ../misc/Misc.h:36: error: (use `=' to initialize static data members) ../misc/Misc.h:36: error: variable or field `alert' declared void ../misc/Misc.h:36: error: declaration of `int Misc::alert' ../misc/Misc.h:35: error: conflicts with previous declaration `static void Misc::alert(const char*)' Script.cc: In static member function `static void Script::beforeScriptExecution()': Script.cc:199: error: `ostrstream' undeclared (first use this function) Script.cc:199: error: (Each undeclared identifier is reported only once for each function it appears in.) Script.cc:199: error: parse error before `;' token Script.cc:200: error: `str' undeclared (first use this function) Script.cc: In static member function `static char* Script::readFile(const char*)': Script.cc:254: error: `ostrstream' undeclared (first use this function) Script.cc:254: error: parse error before `;' token Script.cc:255: error: `ostr' undeclared (first use this function) Script.cc:263: error: parse error before `;' token Script.cc:271: error: parse error before `;' token Script.cc:283: error: parse error before `;' token Script.cc: In static member function `static void Script::checkVariables()': Script.cc:684: error: parse error before `;' token etc.... Hypothesis -- strstream.h is deprecated and should be replaced by sstream but as I know nothing about C++ don't take my word for it... -- Reproducible: Always Steps to Reproduce: 1.ACCEPT_KEYWORDS="~x86" emerge --ask surf 2. 3. Actual Results: The outpput is long. so I'll summarise as well. There is a file 'Misc.h' used in surf which contains these lines :- #ifndef MISC_H #define MISC_H #include <strstream.h> class Misc { public: static bool haveGUI (); static void alert (const char *); static void alert (ostrstream &ostr); static void setDoing (const char *str, double val=-1.0); static void setDone (double done); }; #endif strstream.h is allegedly deprecated now in favour of sstream - but I know nothing of C++. A similar problem was reported with surf on Suse 8.2 So, on with the output.. These are the packages that I would merge, in order: Calculating dependencies ...done! [ebuild N ] media-gfx/surf-1.0.4 Do you want me to merge these packages? [Yes/No] yes >>> emerge (1 of 1) media-gfx/surf-1.0.4 to / >>> md5 src_uri ;-) surf-1.0.4.tar.gz >>> Unpacking source... >>> Unpacking surf-1.0.4.tar.gz to /var/tmp/portage/surf-1.0.4/work >>> Source unpacked. creating cache ./config.cache checking for a BSD compatible install... /bin/install -c checking whether build environment is sane... yes checking whether make sets ${MAKE}... yes checking for working aclocal... found checking for working autoconf... found checking for working automake... found checking for working autoheader... found checking for working makeinfo... found checking for gcc... gcc checking whether the C compiler (gcc -O2 -march=pentium3 -fomit-frame-pointer ) works... yes checking whether the C compiler (gcc -O2 -march=pentium3 -fomit-frame-pointer ) is a cross-compiler... no checking whether we are using GNU C... yes checking whether gcc accepts -g... yes checking for c++... g++ checking whether the C++ compiler (g++ -O2 -march=pentium3 -fomit-frame-pointer ) works... yes checking whether the C++ compiler (g++ -O2 -march=pentium3 -fomit-frame-pointer ) is a cross-compiler... no checking whether we are using GNU C++... yes checking whether g++ accepts -g... yes checking how to run the C preprocessor... gcc -E checking for AIX... no checking for POSIXized ISC... no checking for minix/config.h... no checking for ANSI C header files... yes checking for flex... flex checking for flex... (cached) flex checking for yywrap in -lfl... yes checking lex output file root... lex.yy checking whether yytext is a pointer... yes checking for bison... bison -y checking for ranlib... ranlib checking whether gcc accepts -Wall... yes checking whether gcc accepts -W... yes checking whether gcc accepts -Wwrite-strings... yes checking whether gcc accepts -Wpointer-arith... yes checking whether gcc accepts -Wconversion... yes checking whether gcc accepts -Wno-unused... yes checking whether gcc accepts -Wstrict-prototypes... no checking whether gcc accepts -Wmissing-prototypes... no checking whether gcc accepts -Wmissing-declarations... no checking whether gcc accepts -Wnested-externs... yes checking whether g++ supports bool... yes checking whether g++ accepts -fno-rtti... yes checking whether g++ accepts -fno-exceptions... yes checking whether g++ accepts -Wall... yes checking whether g++ accepts -W... yes checking whether g++ accepts -Wwrite-strings... yes checking whether g++ accepts -Wpointer-arith... yes checking whether g++ accepts -Wconversion... yes checking whether g++ accepts -Wno-unused... yes checking whether g++ accepts -Wstrict-prototypes... yes checking whether g++ accepts -Wmissing-prototypes... yes checking whether g++ accepts -Woverloaded-virtual... yes checking whether g++ accepts -Wno-deprecated... yes checking whether g++ supports explicit template instantiation... yes checking whether the compiler supports function templates with non-type parameters... yes checking host system type... i586-pc-linux-gnu checking for main in -lpthread... yes checking for pthread.h... yes checking if compilation of multithreaded programs works... yes checking whether there is a prototype for gethostname in unistd.h... yes checking for gtk-config... /usr/bin/gtk-config checking for GTK - version >= 1.2.0... yes checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include checking for dnet_ntoa in -ldnet... no checking for dnet_ntoa in -ldnet_stub... no checking for gethostbyname... yes checking for connect... yes checking for remove... yes checking for shmat... yes checking for IceConnectionNumber in -lICE... yes checking for main in -lm... yes checking if pow(0,0)!=1... no checking for main in -lz... yes checking for main in -ljpeg... yes checking for jpeglib.h... yes checking for main in -ltiff... yes checking for tiffio.h... yes checking for gmp.h... yes checking for main in -lgmp... yes updating cache ./config.cache creating ./config.status creating Makefile creating src/Makefile creating image-formats/Makefile creating drawfunc/Makefile creating yaccsrc/Makefile creating curve/Makefile creating mt/Makefile creating draw/Makefile creating misc/Makefile creating debug/Makefile creating gtkgui/Makefile creating dither/Makefile Making all in yaccsrc make[1]: Entering directory `/var/tmp/portage/surf-1.0.4/work/surf-1.0.4/yaccsrc' g++ -DPACKAGE=\"surf\" -DVERSION=\"1.0.4\" -DSTDC_HEADERS=1 -DYYTEXT_POINTER=1 -DHAVE_EXPLICIT_TEMPLATE_INSTANTIATION=1 -DHAVE_LIBPTHREAD=1 -D_REENTRANT=1 -DHAVE_LIBM=1 -DHAVE_LIBZ=1 -DHAVE_LIBJPEG=1 -DHAVE_LIBTIFF=1 -DHAVE_LIBGMP=1 -I. -I. -I../src -I../drawfunc -I../yaccsrc -I../image-formats -I../curve -I../gtkgui -I../mt -I../draw -I../misc -I../debug -I../xpm -I../dither -DDATADIR=\"/usr/share\" -O2 -march=pentium3 -fomit-frame-pointer -fno-rtti -fno-exceptions -Wall -W -Wwrite-strings -Wpointer-arith -Wconversion -Wno-unused -Wstrict-prototypes -Wmissing-prototypes -Woverloaded-virtual -Wno-deprecated -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -I/usr/X11R6/include -c bezierarith.cc g++ -DPACKAGE=\"surf\" -DVERSION=\"1.0.4\" -DSTDC_HEADERS=1 -DYYTEXT_POINTER=1 -DHAVE_EXPLICIT_TEMPLATE_INSTANTIATION=1 -DHAVE_LIBPTHREAD=1 -D_REENTRANT=1 -DHAVE_LIBM=1 -DHAVE_LIBZ=1 -DHAVE_LIBJPEG=1 -DHAVE_LIBTIFF=1 -DHAVE_LIBGMP=1 -I. -I. -I../src -I../drawfunc -I../yaccsrc -I../image-formats -I../curve -I../gtkgui -I../mt -I../draw -I../misc -I../debug -I../xpm -I../dither -DDATADIR=\"/usr/share\" -O2 -march=pentium3 -fomit-frame-pointer -fno-rtti -fno-exceptions -Wall -W -Wwrite-strings -Wpointer-arith -Wconversion -Wno-unused -Wstrict-prototypes -Wmissing-prototypes -Woverloaded-virtual -Wno-deprecated -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -I/usr/X11R6/include -c hornerarith.cc g++ -DPACKAGE=\"surf\" -DVERSION=\"1.0.4\" -DSTDC_HEADERS=1 -DYYTEXT_POINTER=1 -DHAVE_EXPLICIT_TEMPLATE_INSTANTIATION=1 -DHAVE_LIBPTHREAD=1 -D_REENTRANT=1 -DHAVE_LIBM=1 -DHAVE_LIBZ=1 -DHAVE_LIBJPEG=1 -DHAVE_LIBTIFF=1 -DHAVE_LIBGMP=1 -I. -I. -I../src -I../drawfunc -I../yaccsrc -I../image-formats -I../curve -I../gtkgui -I../mt -I../draw -I../misc -I../debug -I../xpm -I../dither -DDATADIR=\"/usr/share\" -O2 -march=pentium3 -fomit-frame-pointer -fno-rtti -fno-exceptions -Wall -W -Wwrite-strings -Wpointer-arith -Wconversion -Wno-unused -Wstrict-prototypes -Wmissing-prototypes -Woverloaded-virtual -Wno-deprecated -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -I/usr/X11R6/include -c monomarith.cc g++ -DPACKAGE=\"surf\" -DVERSION=\"1.0.4\" -DSTDC_HEADERS=1 -DYYTEXT_POINTER=1 -DHAVE_EXPLICIT_TEMPLATE_INSTANTIATION=1 -DHAVE_LIBPTHREAD=1 -D_REENTRANT=1 -DHAVE_LIBM=1 -DHAVE_LIBZ=1 -DHAVE_LIBJPEG=1 -DHAVE_LIBTIFF=1 -DHAVE_LIBGMP=1 -I. -I. -I../src -I../drawfunc -I../yaccsrc -I../image-formats -I../curve -I../gtkgui -I../mt -I../draw -I../misc -I../debug -I../xpm -I../dither -DDATADIR=\"/usr/share\" -O2 -march=pentium3 -fomit-frame-pointer -fno-rtti -fno-exceptions -Wall -W -Wwrite-strings -Wpointer-arith -Wconversion -Wno-unused -Wstrict-prototypes -Wmissing-prototypes -Woverloaded-virtual -Wno-deprecated -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -I/usr/X11R6/include -c mymemory.cc g++ -DPACKAGE=\"surf\" -DVERSION=\"1.0.4\" -DSTDC_HEADERS=1 -DYYTEXT_POINTER=1 -DHAVE_EXPLICIT_TEMPLATE_INSTANTIATION=1 -DHAVE_LIBPTHREAD=1 -D_REENTRANT=1 -DHAVE_LIBM=1 -DHAVE_LIBZ=1 -DHAVE_LIBJPEG=1 -DHAVE_LIBTIFF=1 -DHAVE_LIBGMP=1 -I. -I. -I../src -I../drawfunc -I../yaccsrc -I../image-formats -I../curve -I../gtkgui -I../mt -I../draw -I../misc -I../debug -I../xpm -I../dither -DDATADIR=\"/usr/share\" -O2 -march=pentium3 -fomit-frame-pointer -fno-rtti -fno-exceptions -Wall -W -Wwrite-strings -Wpointer-arith -Wconversion -Wno-unused -Wstrict-prototypes -Wmissing-prototypes -Woverloaded-virtual -Wno-deprecated -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -I/usr/X11R6/include -c polyarith.cc g++ -DPACKAGE=\"surf\" -DVERSION=\"1.0.4\" -DSTDC_HEADERS=1 -DYYTEXT_POINTER=1 -DHAVE_EXPLICIT_TEMPLATE_INSTANTIATION=1 -DHAVE_LIBPTHREAD=1 -D_REENTRANT=1 -DHAVE_LIBM=1 -DHAVE_LIBZ=1 -DHAVE_LIBJPEG=1 -DHAVE_LIBTIFF=1 -DHAVE_LIBGMP=1 -I. -I. -I../src -I../drawfunc -I../yaccsrc -I../image-formats -I../curve -I../gtkgui -I../mt -I../draw -I../misc -I../debug -I../xpm -I../dither -DDATADIR=\"/usr/share\" -O2 -march=pentium3 -fomit-frame-pointer -fno-rtti -fno-exceptions -Wall -W -Wwrite-strings -Wpointer-arith -Wconversion -Wno-unused -Wstrict-prototypes -Wmissing-prototypes -Woverloaded-virtual -Wno-deprecated -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -I/usr/X11R6/include -c polyroot.cc g++ -DPACKAGE=\"surf\" -DVERSION=\"1.0.4\" -DSTDC_HEADERS=1 -DYYTEXT_POINTER=1 -DHAVE_EXPLICIT_TEMPLATE_INSTANTIATION=1 -DHAVE_LIBPTHREAD=1 -D_REENTRANT=1 -DHAVE_LIBM=1 -DHAVE_LIBZ=1 -DHAVE_LIBJPEG=1 -DHAVE_LIBTIFF=1 -DHAVE_LIBGMP=1 -I. -I. -I../src -I../drawfunc -I../yaccsrc -I../image-formats -I../curve -I../gtkgui -I../mt -I../draw -I../misc -I../debug -I../xpm -I../dither -DDATADIR=\"/usr/share\" -O2 -march=pentium3 -fomit-frame-pointer -fno-rtti -fno-exceptions -Wall -W -Wwrite-strings -Wpointer-arith -Wconversion -Wno-unused -Wstrict-prototypes -Wmissing-prototypes -Woverloaded-virtual -Wno-deprecated -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -I/usr/X11R6/include -c polyx.cc polyroot.cc: In function `int polyx_all_roots(polyx*, double, double, double*, int*)': polyroot.cc:822: warning: converting to `int' from `double' g++ -DPACKAGE=\"surf\" -DVERSION=\"1.0.4\" -DSTDC_HEADERS=1 -DYYTEXT_POINTER=1 -DHAVE_EXPLICIT_TEMPLATE_INSTANTIATION=1 -DHAVE_LIBPTHREAD=1 -D_REENTRANT=1 -DHAVE_LIBM=1 -DHAVE_LIBZ=1 -DHAVE_LIBJPEG=1 -DHAVE_LIBTIFF=1 -DHAVE_LIBGMP=1 -I. -I. -I../src -I../drawfunc -I../yaccsrc -I../image-formats -I../curve -I../gtkgui -I../mt -I../draw -I../misc -I../debug -I../xpm -I../dither -DDATADIR=\"/usr/share\" -O2 -march=pentium3 -fomit-frame-pointer -fno-rtti -fno-exceptions -Wall -W -Wwrite-strings -Wpointer-arith -Wconversion -Wno-unused -Wstrict-prototypes -Wmissing-prototypes -Woverloaded-virtual -Wno-deprecated -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -I/usr/X11R6/include -c simple.cc gcc -DPACKAGE=\"surf\" -DVERSION=\"1.0.4\" -DSTDC_HEADERS=1 -DYYTEXT_POINTER=1 -DHAVE_EXPLICIT_TEMPLATE_INSTANTIATION=1 -DHAVE_LIBPTHREAD=1 -D_REENTRANT=1 -DHAVE_LIBM=1 -DHAVE_LIBZ=1 -DHAVE_LIBJPEG=1 -DHAVE_LIBTIFF=1 -DHAVE_LIBGMP=1 -I. -I. -I../src -I../drawfunc -I../yaccsrc -I../image-formats -I../curve -I../gtkgui -I../mt -I../draw -I../misc -I../debug -I../xpm -I../dither -DDATADIR=\"/usr/share\" -O2 -march=pentium3 -fomit-frame-pointer -Wall -W -Wwrite-strings -Wpointer-arith -Wconversion -Wno-unused -Wnested-externs -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -I/usr/X11R6/include -c polyyacc.c gcc -DPACKAGE=\"surf\" -DVERSION=\"1.0.4\" -DSTDC_HEADERS=1 -DYYTEXT_POINTER=1 -DHAVE_EXPLICIT_TEMPLATE_INSTANTIATION=1 -DHAVE_LIBPTHREAD=1 -D_REENTRANT=1 -DHAVE_LIBM=1 -DHAVE_LIBZ=1 -DHAVE_LIBJPEG=1 -DHAVE_LIBTIFF=1 -DHAVE_LIBGMP=1 -I. -I. -I../src -I../drawfunc -I../yaccsrc -I../image-formats -I../curve -I../gtkgui -I../mt -I../draw -I../misc -I../debug -I../xpm -I../dither -DDATADIR=\"/usr/share\" -O2 -march=pentium3 -fomit-frame-pointer -Wall -W -Wwrite-strings -Wpointer-arith -Wconversion -Wno-unused -Wnested-externs -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -I/usr/X11R6/include -c polylex.c y.tab.c: In function `yyparse': y.tab.c:1547: warning: implicit declaration of function `yylex' polyyacc.y:513: warning: passing arg 1 of `new_char' as signed due to prototype polyyacc.y:534: warning: passing arg 1 of `new_char' as signed due to prototype polyyacc.y:545: warning: passing arg 1 of `new_char' as signed due to prototype polyyacc.y:557: warning: comparison between signed and unsigned polyyacc.y:584: warning: comparison between signed and unsigned g++ -DPACKAGE=\"surf\" -DVERSION=\"1.0.4\" -DSTDC_HEADERS=1 -DYYTEXT_POINTER=1 -DHAVE_EXPLICIT_TEMPLATE_INSTANTIATION=1 -DHAVE_LIBPTHREAD=1 -D_REENTRANT=1 -DHAVE_LIBM=1 -DHAVE_LIBZ=1 -DHAVE_LIBJPEG=1 -DHAVE_LIBTIFF=1 -DHAVE_LIBGMP=1 -I. -I. -I../src -I../drawfunc -I../yaccsrc -I../image-formats -I../curve -I../gtkgui -I../mt -I../draw -I../misc -I../debug -I../xpm -I../dither -DDATADIR=\"/usr/share\" -O2 -march=pentium3 -fomit-frame-pointer -fno-rtti -fno-exceptions -Wall -W -Wwrite-strings -Wpointer-arith -Wconversion -Wno-unused -Wstrict-prototypes -Wmissing-prototypes -Woverloaded-virtual -Wno-deprecated -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -I/usr/X11R6/include -c lexfunc.cc polylex.l: In function `yylex': polylex.l:104: warning: passing arg 3 of `memcpy' as unsigned due to prototype polylex.l:104: warning: passing arg 3 of `strncpy' as unsigned due to prototype polylex.l:104: warning: passing arg 3 of `strncpy' as unsigned due to prototype polylex.l:345: warning: passing arg 2 of `fwrite' as unsigned due to prototype g++ -DPACKAGE=\"surf\" -DVERSION=\"1.0.4\" -DSTDC_HEADERS=1 -DYYTEXT_POINTER=1 -DHAVE_EXPLICIT_TEMPLATE_INSTANTIATION=1 -DHAVE_LIBPTHREAD=1 -D_REENTRANT=1 -DHAVE_LIBM=1 -DHAVE_LIBZ=1 -DHAVE_LIBJPEG=1 -DHAVE_LIBTIFF=1 -DHAVE_LIBGMP=1 -I. -I. -I../src -I../drawfunc -I../yaccsrc -I../image-formats -I../curve -I../gtkgui -I../mt -I../draw -I../misc -I../debug -I../xpm -I../dither -DDATADIR=\"/usr/share\" -O2 -march=pentium3 -fomit-frame-pointer -fno-rtti -fno-exceptions -Wall -W -Wwrite-strings -Wpointer-arith -Wconversion -Wno-unused -Wstrict-prototypes -Wmissing-prototypes -Woverloaded-virtual -Wno-deprecated -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -I/usr/X11R6/include -c SymbolTable.cc g++ -DPACKAGE=\"surf\" -DVERSION=\"1.0.4\" -DSTDC_HEADERS=1 -DYYTEXT_POINTER=1 -DHAVE_EXPLICIT_TEMPLATE_INSTANTIATION=1 -DHAVE_LIBPTHREAD=1 -D_REENTRANT=1 -DHAVE_LIBM=1 -DHAVE_LIBZ=1 -DHAVE_LIBJPEG=1 -DHAVE_LIBTIFF=1 -DHAVE_LIBGMP=1 -I. -I. -I../src -I../drawfunc -I../yaccsrc -I../image-formats -I../curve -I../gtkgui -I../mt -I../draw -I../misc -I../debug -I../xpm -I../dither -DDATADIR=\"/usr/share\" -O2 -march=pentium3 -fomit-frame-pointer -fno-rtti -fno-exceptions -Wall -W -Wwrite-strings -Wpointer-arith -Wconversion -Wno-unused -Wstrict-prototypes -Wmissing-prototypes -Woverloaded-virtual -Wno-deprecated -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -I/usr/X11R6/include -c Script.cc g++ -DPACKAGE=\"surf\" -DVERSION=\"1.0.4\" -DSTDC_HEADERS=1 -DYYTEXT_POINTER=1 -DHAVE_EXPLICIT_TEMPLATE_INSTANTIATION=1 -DHAVE_LIBPTHREAD=1 -D_REENTRANT=1 -DHAVE_LIBM=1 -DHAVE_LIBZ=1 -DHAVE_LIBJPEG=1 -DHAVE_LIBTIFF=1 -DHAVE_LIBGMP=1 -I. -I. -I../src -I../drawfunc -I../yaccsrc -I../image-formats -I../curve -I../gtkgui -I../mt -I../draw -I../misc -I../debug -I../xpm -I../dither -DDATADIR=\"/usr/share\" -O2 -march=pentium3 -fomit-frame-pointer -fno-rtti -fno-exceptions -Wall -W -Wwrite-strings -Wpointer-arith -Wconversion -Wno-unused -Wstrict-prototypes -Wmissing-prototypes -Woverloaded-virtual -Wno-deprecated -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -I/usr/X11R6/include -c ExecuteScriptStruct.cc g++ -DPACKAGE=\"surf\" -DVERSION=\"1.0.4\" -DSTDC_HEADERS=1 -DYYTEXT_POINTER=1 -DHAVE_EXPLICIT_TEMPLATE_INSTANTIATION=1 -DHAVE_LIBPTHREAD=1 -D_REENTRANT=1 -DHAVE_LIBM=1 -DHAVE_LIBZ=1 -DHAVE_LIBJPEG=1 -DHAVE_LIBTIFF=1 -DHAVE_LIBGMP=1 -I. -I. -I../src -I../drawfunc -I../yaccsrc -I../image-formats -I../curve -I../gtkgui -I../mt -I../draw -I../misc -I../debug -I../xpm -I../dither -DDATADIR=\"/usr/share\" -O2 -march=pentium3 -fomit-frame-pointer -fno-rtti -fno-exceptions -Wall -W -Wwrite-strings -Wpointer-arith -Wconversion -Wno-unused -Wstrict-prototypes -Wmissing-prototypes -Woverloaded-virtual -Wno-deprecated -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -I/usr/X11R6/include -c addDefaultSymbols.cc addDefaultSymbols.cc:274:3: warning: no newline at end of file In file included from Script.cc:39: ../misc/Misc.h:29:23: strstream.h: No such file or directory In file included from Script.cc:39: ../misc/Misc.h:36: error: `ostrstream' was not declared in this scope ../misc/Misc.h:36: error: `ostr' was not declared in this scope ../misc/Misc.h:36: error: invalid data member initialization ../misc/Misc.h:36: error: (use `=' to initialize static data members) ../misc/Misc.h:36: error: variable or field `alert' declared void ../misc/Misc.h:36: error: declaration of `int Misc::alert' ../misc/Misc.h:35: error: conflicts with previous declaration `static void Misc::alert(const char*)' Script.cc: In static member function `static void Script::beforeScriptExecution()': Script.cc:199: error: `ostrstream' undeclared (first use this function) Script.cc:199: error: (Each undeclared identifier is reported only once for each function it appears in.) Script.cc:199: error: parse error before `;' token Script.cc:200: error: `str' undeclared (first use this function) Script.cc: In static member function `static char* Script::readFile(const char*)': Script.cc:254: error: `ostrstream' undeclared (first use this function) Script.cc:254: error: parse error before `;' token Script.cc:255: error: `ostr' undeclared (first use this function) Script.cc:263: error: parse error before `;' token Script.cc:271: error: parse error before `;' token Script.cc:283: error: parse error before `;' token Script.cc: In static member function `static void Script::checkVariables()': Script.cc:684: error: parse error before `;' token Script.cc:687: error: invalid conversion from `void*' to `const char*' Script.cc:687: error: initializing argument 1 of `static void Misc::alert(const char*)' Script.cc:691: error: parse error before `;' token Script.cc:694: error: invalid conversion from `void*' to `const char*' Script.cc:694: error: initializing argument 1 of `static void Misc::alert(const char*)' Script.cc:698: error: parse error before `;' token Script.cc:701: error: invalid conversion from `void*' to `const char*' Script.cc:701: error: initializing argument 1 of `static void Misc::alert(const char*)' Script.cc: In static member function `static void Script::cutWithSurface()': Script.cc:757: warning: comparison between signed and unsigned integer expressions Script.cc:806: warning: comparison between signed and unsigned integer expressions make[1]: *** [Script.o] Error 1 make[1]: Leaving directory `/var/tmp/portage/surf-1.0.4/work/surf-1.0.4/yaccsrc'make: *** [all-recursive] Error 1 !!! ERROR: media-gfx/surf-1.0.4 failed. !!! Function src_compile, Line 24, Exitcode 2 !!! (no error message) Expected Results: Compiled cleanly with no error messages uname -a Linux kids 2.6.5-gentoo-r1 #3 Fri May 21 22:12:01 IST 2004 i686 Pentium III (Katmai) GenuineIntel GNU/Linux gcc -v Reading specs from /usr/lib/gcc-lib/i586-pc-linux-gnu/3.3.3/specs Configured with: /var/tmp/portage/gcc-3.3.3-r6/work/gcc-3.3.3/configure --prefix=/usr --bindir=/usr/i586-pc-linux-gnu/gcc-bin/3.3 --includedir=/usr/lib/gcc-lib/i586-pc-linux-gnu/3.3.3/include --datadir=/usr/share/gcc-data/i586-pc-linux-gnu/3.3 --mandir=/usr/share/gcc-data/i586-pc-linux-gnu/3.3/man --infodir=/usr/share/gcc-data/i586-pc-linux-gnu/3.3/info --enable-shared --host=i586-pc-linux-gnu --target=i586-pc-linux-gnu --with-system-zlib --enable-languages=c,c++ --enable-threads=posix --enable-long-long --disable-checking --disable-libunwind-exceptions --enable-cstdio=stdio --enable-version-specific-runtime-libs --with-gxx-include-dir=/usr/lib/gcc-lib/i586-pc-linux-gnu/3.3.3/include/g++-v3 --with-local-prefix=/usr/local --enable-shared --enable-nls --without-included-gettext --disable-multilib --enable-__cxa_atexit --enable-clocale=generic Thread model: posix gcc version 3.3.3 20040412 (Gentoo Linux 3.3.3-r6, ssp-3.3.2-2, pie-8.7.6)
in cvs
mistakes