Problem compiling /kdesdk/kbabel/common/libgettext

Shane Shields locutusenterprises at hotpop.com
Tue Feb 10 15:59:28 GMT 2004


Hi all,

I am having the following error compiling kdesdk. Has anyone come across this 
error and more importantly know how to fix it. I am using gcc.3.2.2 and flex 
2.5.4a. I think the problem is because it is trying to use old headers. TIA

flex -+ -opofiles.cc ./pofiles.ll
/bin/sh ../../../libtool --silent --mode=compile --tag=CXX 
i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../../..   
-DQT_THREAD_SUPPORT  -D_REENTRANT  -Wnon-virtual-dtor -Wno-long-long -Wundef 
-Wall -W -Wpointer-arith -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 
-D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -DNDEBUG -DNO_DEBUG 
-O2 -O3 -march=pentium3 -Wformat-security -Wmissing-format-attribute 
-fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE 
-DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION  -c -o 
pofiles.lo `test -f 'pofiles.cc' || echo './'`pofiles.cc
In file included from /usr/include/c++/3.2.2/backward/iostream.h:31,
                 from /usr/include/FlexLexer.h:47,
                 from pofiles.cc:241:
/usr/include/c++/3.2.2/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.
In file included from /usr/include/FlexLexer.h:47,
                 from pofiles.cc:241:
/usr/include/c++/3.2.2/backward/iostream.h:36: using declaration `istream'
   introduced ambiguous type `istream'
pofiles.cc:401:5: warning: "YY_STACK_USED" is not defined
pofiles.cc: In member function `virtual int GettextBaseFlexLexer::yylex()':
pofiles.cc:683: cannot convert `std::istream*' to `istream*' in assignment
pofiles.cc: In member function `void
   GettextBaseFlexLexer::yy_load_buffer_state()':
pofiles.cc:1216: cannot convert `istream*' to `std::istream*' in assignment
pofiles.cc: In member function `void
   GettextBaseFlexLexer::yy_init_buffer(yy_buffer_state*, std::istream*)':
pofiles.cc:1267: cannot convert `std::istream*' to `istream*' in assignment
pofiles.cc:1458:5: warning: "YY_MAIN" is not defined
make[4]: *** [pofiles.lo] Error 1
make[4]: Leaving directory 
`/usr/src/leLinux/BUILD/kdesdk/kbabel/common/libgettext'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/usr/src/leLinux/BUILD/kdesdk/kbabel/common'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/leLinux/BUILD/kdesdk/kbabel'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/leLinux/BUILD/kdesdk'
make: *** [all] Error 2
-- 
Shane Shields

Registered LFS Compiler: 7582
To drink the WINE of success you must first seek the sayings of source

Anyone sending unwanted advertising e-mail to this address will be
charged $25 for network traffic and computing time. By extracting my
address from this message or its header, you agree to these terms.

___________________________________________________
This message is from the kde mailing list.
Account management:  https://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.




More information about the kde mailing list