[Uml-devel] Another Beta in some days?

P. Fleury fleury at users.sourceforge.net
Thu Nov 14 21:05:02 UTC 2002


Sebastian Stein wrote:

>637924: [PATCH] build erros on redhat 8.0
>Another lex/configure problem, I can't really say if we should accept the
>patch.
>  
>
Builds fine on both RedHat 7.3 and RedHat 8.0. I could make RPMs and use 
them.
On RedHat 8.0, I get the following warnings, however:

g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/include/kde 
-I/usr/lib/qt3/include -I/usr/X11R6/include   -DQT_THREAD_SUPPORT  
-D_REENTRANT  -Wnon-virtual-dtor -Wno-long-long -Wbad-function-cast 
-Wundef -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes 
-Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align 
-Wconversion -fno-builtin -g -O2 -O2 -march=i386 -mcpu=i686 
-fno-exceptions -fno-check-new  -c -o tokenizer.o `test -f 
'tokenizer.cc' || echo './'`tokenizer.cc
tokenizer.cc:728:5: warning: "YY_STACK_USED" is not defined
tokenizer.cc: In member function `virtual int yyFlexLexer::yylex()':
tokenizer.cc:898: warning: label `find_rule' defined but not used
tokenizer.cc:2083:5: warning: "YY_MAIN" is not defined
/usr/include/c++/3.2/streambuf: At top level:
tokenizer.cc:2062: warning: `void* yy_flex_realloc(void*, unsigned int)'
   defined but not used

Neither of these symbols are in the tokenizer.l file, from which the 
tokenizer.cc file is produced.  YY_STACK_USED and YY_MAIN are 
preprocessor directives used in an #if but as they are not defined, it 
complains (maybe an enhancement of gcc3.2 preprocessor, being more 
picky). If using #ifdef the warnings disappear.
The other warnings are about unused things, also generated by the lexer.

As a test, I imported the *.h files from umbrello itself, and it showed 
up all the classes, with more details than anyone would want to :-) And 
I could create a diagram.

So my guess is that this bug can be closed, as all of this is already in 
CVS.

--Pascal






More information about the umbrello-devel mailing list