Bug 50302 - Compile error with 20021106 CVS
Summary: Compile error with 20021106 CVS
Status: RESOLVED NOT A BUG
Alias: None
Product: kdevelop
Classification: Applications
Component: kdevelop 2.x (obsolete) (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: KDevelop-Devel List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-11-06 23:45 UTC by juanjux
Modified: 2002-11-07 15:43 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description juanjux 2002-11-06 23:45:06 UTC
Version:           Today's cvs checkout (using KDE Devel)
Installed from:    Compiled sources
Compiler:          gcc 3.2 glibc 2.3.1
OS:          LinuxLinux

I've succesfully compiled kdesupport/arts/kdelibs/kdebase/kdenetwork/etc but I'm failing with KDevelop. The error it gives me is:

------------------
creating libkdevcppsupport_la.all_cpp.cpp ...
source='libkdevcppsupport_la.all_cpp.cpp' object='libkdevcppsupport_la.all_cpp.lo' libtool=yes \
depfile='.deps/libkdevcppsupport_la.all_cpp.Plo' tmpdepfile='.deps/libkdevcppsupport_la.all_cpp.TPlo' \
depmode=gcc3 /bin/sh ../../admin/depcomp \
/bin/sh ../../libtool --silent --mode=compile --tag=CXX g++-3.2 -DHAVE_CONFIG_H -I. -I. -I../.. -I../../lib/interfaces -I../../lib/sourceinfo -I../../lib/util -I/usr/local/kde3/include -I/usr/local/qt3/include -I/usr/X11R6/include   -DQT_THREAD_SUPPORT  -D_REENTRANT  -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -DNDEBUG -DNO_DEBUG -O2 -O3 -march=athlon-xp -mcpu=athlon-xp -fno-exceptions -fno-check-new  -c -o libkdevcppsupport_la.all_cpp.lo `test -f libkdevcppsupport_la.all_cpp.cpp || echo './'`libkdevcppsupport_la.all_cpp.cpp
In file included from /usr/include/c++/3.2/backward/iostream.h:31,
                 from /usr/include/FlexLexer.h:47,
                 from classparser.h:24,
                 from cppsupportpart.cpp:55,
                 from libkdevcppsupport_la.all_cpp.cpp:2:
/usr/include/c++/3.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 libkdevcppsupport_la.all_cpp.cpp:5:
tokenizer.cpp:795:5: warning: "YY_STACK_USED" is not defined
In file included from libkdevcppsupport_la.all_cpp.cpp:5:
tokenizer.cpp: In member function `virtual int yyFlexLexer::yylex()':
tokenizer.cpp:965: warning: label `find_rule' defined but not used
tokenizer.cpp:2207:5: warning: "YY_MAIN" is not defined
In file included from libkdevcppsupport_la.all_cpp.cpp:12:
cppccparser.cpp:18:1: warning: "PUSH_LEXEM" redefined
In file included from libkdevcppsupport_la.all_cpp.cpp:4:
classparser.cpp:40:1: warning: this is the location of the previous definition
In file included from libkdevcppsupport_la.all_cpp.cpp:12:
cppccparser.cpp: In member function `void CppCCParser::postProcessVariables()':
cppccparser.cpp:542: warning: comparison between signed and unsigned integer
   expressions
cppccparser.cpp: In member function `void CppCCParser::debugPrint()':
cppccparser.cpp:562: warning: comparison between signed and unsigned integer
   expressions
In file included from libkdevcppsupport_la.all_cpp.cpp:15:
simpleparser.cpp: In function `QString remove(QString, const QChar&, const
   QChar&)':
simpleparser.cpp:35: redefinition of `QString remove(QString, const QChar&,
   const QChar&)'
cppcodecompletion.cpp:67: `QString remove(QString, const QChar&, const QChar&)'
   previously defined here
simpleparser.cpp:35: redefinition of `QString remove(QString, const QChar&,
   const QChar&)'
cppcodecompletion.cpp:67: `QString remove(QString, const QChar&, const QChar&)'
   previously defined here
simpleparser.cpp: In function `QString remove_comment(QString)':
simpleparser.cpp:53: redefinition of `QString remove_comment(QString)'
cppcodecompletion.cpp:110: `QString remove_comment(QString)' previously defined
   here
simpleparser.cpp:53: redefinition of `QString remove_comment(QString)'
cppcodecompletion.cpp:110: `QString remove_comment(QString)' previously defined
   here
simpleparser.cpp: In static member function `static SimpleContext*
   SimpleParser::localVariables(QString)':
simpleparser.cpp:112: call of overloaded `remove(QString&, char, char)' is
   ambiguous
cppcodecompletion.cpp:67: candidates are: QString remove(QString, const QChar&,
   const QChar&)
simpleparser.cpp:35:                 QString remove(QString, const QChar&,
   const QChar&)
simpleparser.cpp:153: warning: void format, SimpleContext arg (arg 2)
In file included from libkdevcppsupport_la.all_cpp.cpp:20:
lexer.cpp:432:2: warning: #warning is a GCC extension
lexer.cpp:432:2: warning: #warning "TODO: Lexer::readNumberLiteral()"
In file included from libkdevcppsupport_la.all_cpp.cpp:21:
parser.cpp:903:2: warning: #warning is a GCC extension
parser.cpp:903:2: warning: #warning "TODO Parser::parseTemplateArgument()"
parser.cpp:904:2: warning: #warning is a GCC extension
parser.cpp:904:2: warning: #warning "parse type id"
parser.cpp:1628:2: warning: #warning is a GCC extension
parser.cpp:1628:2: warning: #warning "TODO Parser::parseAssignmentExpression()"
parser.cpp:1806:2: warning: #warning is a GCC extension
parser.cpp:1806:2: warning: #warning "TODO Parser::initializer-list"
parser.cpp:2369:2: warning: #warning is a GCC extension
parser.cpp:2369:2: warning: #warning "TODO: Parser::parseDeclaration() -- fill abstract syntax tree"
cppcodecompletion.cpp: In member function `QString
   CppCodeCompletion::typingTypeOf(int, int)':
cppcodecompletion.cpp:268: warning: unused parameter `int nLine'
cppcodecompletion.cpp:268: warning: unused parameter `int nCol'
make[3]: *** [libkdevcppsupport_la.all_cpp.lo] Error 1
make[3]: Leaving directory `/home/juanjux/sources/kdevelop/parts/cppsupport'
make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory `/home/juanjux/sources/kdevelop/parts/cppsupport'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/home/juanjux/sources/kdevelop/parts'
make: *** [install-recursive] Error 1

---------------------

Contact me if you need more info.

Thanks
Comment 1 Stephan Binner 2002-11-07 05:50:47 UTC
- Don't report compile bugs of CVS versions to bugs.kde.org, post it to 
kdevelop-devel if it persists. 
- --enable-final is experimental and not supported.   
Comment 2 Caleb Tennis 2002-11-07 15:14:47 UTC
Could you send me (caleb@aei-tech.com) and copy of your FlexLexer.h and 
iostream.h?  I had this same problem in the past and I had to make a hack to 
fix it, but I would like to try and find a more permanent solution.
Comment 3 Caleb Tennis 2002-11-07 15:43:34 UTC
To get rid of the warnings, I change my FlexLexer.h line 47 to: #include <iostream> instead of    
#include <iostream.h>    
    
To get rid of the errors, you'll need to include a:    
    
using namespace std;  somewhere.  I put mine in FlexLexer.h, but I'll investigate and see if I  
can't get that in cvs somehow. 
 
I also commented out the extern "C" lines in FlexLexer.h