[Uml-user] Can't compile 1.03 and CVS version

Sebastian Stein s5228 at informatik.htw-dresden.de
Tue Jul 16 08:06:09 UTC 2002


I have downloaded the source tar.gz for 1.03. I did:

sh configure
make

Make seems to start another configure step. During this configure step I get
the following error message:

checking for mcopidl... (cached) /opt/kde/bin/mcopidl
checking for artsc-config... (cached) /opt/kde/bin/artsc-config
checking for kde-config... (cached) /opt/kde/bin/kde-config
checking for meinproc... (cached) /opt/kde/bin/meinproc
checking if doc should be compiled... yes
checking if po should be compiled... yes
checking if uml should be compiled... yes
creating ./config.status
cd . \
  && CONFIG_FILES=Makefile CONFIG_HEADERS= /bin/sh ./config.status
fast creating Makefile
cd . && autoheader
./aclocal.m4:2508: error: m4_defn: undefined macro: _m4_divert_diversion
acfunctions.m4:1108: AM_FUNC_OBSTACK is expanded from...
./aclocal.m4:2508: the top level
autoconf: tracing failed
make: *** [stamp-h.in] Fehler 1

I also tried to use autoconf, but it stops with the same error.

Ok, so I got the current CVS version and did:

make -f Makefile.cvs
sh configure
make

But this time there seems to be an error in tokenizer.cc. I'm not able to
fix it. Please have a look at this long error message. I don't know if the
code is broken or if it is really a problem with gcc ( version 2.95.3
20010315 (release)).


g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I/opt/kde/include
-I/usr/lib/qt-3.0.3/include -I/usr/X11R6/include   -DQT_THREAD_SUPPORT
-D_REENTRANT  -O2 -fno-exceptions -fno-check-new -c tokenizer.cc
(NOCOMPILERCACHE environment variable set, cache bypass)
tokenizer.cc:125: parse error before `do'
tokenizer.cc:125: stray '\' in program
tokenizer.cc:126: stray '\' in program
tokenizer.cc:127: stray '\' in program
tokenizer.cc:128: stray '\' in program
tokenizer.cc:129: stray '\' in program
tokenizer.cc:130: syntax error before `='
tokenizer.cc:130: stray '\' in program
tokenizer.cc:131: ANSI C++ forbids declaration `YY_DO_BEFORE_ACTION' with no
type
tokenizer.cc:131: stray '\' in program
tokenizer.cc:132: parse error before `}'
tokenizer.cc:132: stray '\' in program
tokenizer.cc:154: syntax error before `;'
tokenizer.cc:210: `yy_size_t' was not declared in this scope
tokenizer.cc:211: type specifier omitted for parameter
tokenizer.cc:217: parse error before `{'
tokenizer.cc:217: stray '\' in program
tokenizer.cc:218: stray '\' in program
tokenizer.cc:219: stray '\' in program
tokenizer.cc:220: syntax error before `->'
tokenizer.cc:220: stray '\' in program
tokenizer.cc:224: stray '\' in program
tokenizer.cc:225: stray '\' in program
tokenizer.cc:226: stray '\' in program
tokenizer.cc:227: syntax error before `->'
tokenizer.cc:227: stray '\' in program
tokenizer.cc:245: ANSI C++ forbids declaration `yytext' with no type
tokenizer.cc:245: `yy_bp' was not declared in this scope
tokenizer.cc:245: stray '\' in program
tokenizer.cc:246: syntax error before `-='
tokenizer.cc:246: stray '\' in program
tokenizer.cc:247: ANSI C++ forbids declaration `yyleng' with no type
tokenizer.cc:247: `yy_cp' was not declared in this scope
tokenizer.cc:247: stray '\' in program
tokenizer.cc:248: ANSI C++ forbids declaration `yy_hold_char' with no type
tokenizer.cc:248: `yy_cp' was not declared in this scope
tokenizer.cc:248: stray '\' in program
tokenizer.cc:249: ANSI C++ forbids declaration `yy_cp' with no type
tokenizer.cc:249: stray '\' in program
tokenizer.cc:250: ANSI C++ forbids declaration `yy_c_buf_p' with no type
tokenizer.cc:250: initialization to `int' from `int *' lacks a cast
tokenizer.cc:651: parse error before `{'
tokenizer.cc:651: stray '\' in program
tokenizer.cc:652: stray '\' in program
tokenizer.cc:653: ANSI C++ forbids declaration `yy_cp' with no type
tokenizer.cc:653: conflicting types for `int yy_cp'
tokenizer.cc:249: previous declaration as `int * yy_cp'
tokenizer.cc:653: `yy_full_match' was not declared in this scope
tokenizer.cc:653: stray '\' in program
tokenizer.cc:654: parse error before `++'
tokenizer.cc:654: stray '\' in program
tokenizer.cc:655: stray '\' in program
tokenizer.cc:786: parse error before `if'
tokenizer.cc:786: stray '\' in program
tokenizer.cc: In method `int yyFlexLexer::yylex()':
tokenizer.cc:921: stray '\' in program
tokenizer.cc:937: stray '\' in program
./tokenizer.l:72: stray '\' in program
./tokenizer.l:74: stray '\' in program
./tokenizer.l:75: stray '\' in program
./tokenizer.l:76: stray '\' in program
./tokenizer.l:77: stray '\' in program
./tokenizer.l:78: stray '\' in program
./tokenizer.l:79: stray '\' in program
./tokenizer.l:80: stray '\' in program
./tokenizer.l:81: stray '\' in program
./tokenizer.l:82: stray '\' in program
./tokenizer.l:83: stray '\' in program
./tokenizer.l:84: stray '\' in program
./tokenizer.l:85: stray '\' in program
./tokenizer.l:86: stray '\' in program
./tokenizer.l:87: stray '\' in program
./tokenizer.l:88: stray '\' in program
./tokenizer.l:89: stray '\' in program
./tokenizer.l:90: stray '\' in program
./tokenizer.l:91: stray '\' in program
./tokenizer.l:94: stray '\' in program
./tokenizer.l:96: stray '\' in program
./tokenizer.l:97: stray '\' in program
./tokenizer.l:98: stray '\' in program
./tokenizer.l:99: stray '\' in program
./tokenizer.l:100: stray '\' in program
./tokenizer.l:101: stray '\' in program
./tokenizer.l:102: stray '\' in program
./tokenizer.l:104: stray '\' in program
./tokenizer.l:106: stray '\' in program
./tokenizer.l:108: stray '\' in program
./tokenizer.l:110: stray '\' in program
./tokenizer.l:111: stray '\' in program
./tokenizer.l:112: stray '\' in program
./tokenizer.l:113: stray '\' in program
./tokenizer.l:114: stray '\' in program
./tokenizer.l:115: stray '\' in program
./tokenizer.l:116: stray '\' in program
./tokenizer.l:117: stray '\' in program
./tokenizer.l:118: stray '\' in program
./tokenizer.l:119: stray '\' in program
./tokenizer.l:120: stray '\' in program
./tokenizer.l:121: stray '\' in program
./tokenizer.l:122: stray '\' in program
./tokenizer.l:123: stray '\' in program
./tokenizer.l:125: stray '\' in program
./tokenizer.l:128: stray '\' in program
./tokenizer.l:131: stray '\' in program
./tokenizer.l:133: stray '\' in program
./tokenizer.l:135: stray '\' in program
./tokenizer.l:137: stray '\' in program
./tokenizer.l:138: stray '\' in program
./tokenizer.l:139: stray '\' in program
./tokenizer.l:141: stray '\' in program
./tokenizer.l:144: stray '\' in program
./tokenizer.l:147: stray '\' in program
./tokenizer.l:149: stray '\' in program
./tokenizer.l:150: stray '\' in program
./tokenizer.l:152: stray '\' in program
./tokenizer.l:155: stray '\' in program
./tokenizer.l:158: stray '\' in program
./tokenizer.l:161: stray '\' in program
./tokenizer.l:164: stray '\' in program
./tokenizer.l:166: stray '\' in program
./tokenizer.l:168: stray '\' in program
./tokenizer.l:170: stray '\' in program
./tokenizer.l:171: stray '\' in program
tokenizer.cc: In method `int yyFlexLexer::yy_get_next_buffer()':
tokenizer.cc:1563: `struct yy_buffer_state' has no member named
`yy_buf_size'
tokenizer.cc:1611: stray '\' in program
tokenizer.cc: In method `void yyFlexLexer::yyunput(int, char *)':
tokenizer.cc:1712: `struct yy_buffer_state' has no member named
`yy_buf_size'
tokenizer.cc:1722: `struct yy_buffer_state' has no member named
`yy_buf_size'
tokenizer.cc: In method `struct yy_buffer_state *
yyFlexLexer::yy_create_buffer(istream *, int)':
tokenizer.cc:1858: `yy_flex_alloc' cannot be used as a function
tokenizer.cc:1862: `struct yy_buffer_state' has no member named
`yy_buf_size'
tokenizer.cc:1867: `struct yy_buffer_state' has no member named
`yy_buf_size'
tokenizer.cc:1867: `yy_flex_alloc' cannot be used as a function
tokenizer.cc: At top level:
tokenizer.cc:2005: parse error before `do'
tokenizer.cc:2005: stray '\' in program
tokenizer.cc:2006: stray '\' in program
tokenizer.cc:2007: stray '\' in program
tokenizer.cc:2008: stray '\' in program
tokenizer.cc:2009: ANSI C++ forbids declaration `yy_c_buf_p' with no type
tokenizer.cc:2009: redefinition of `int yy_c_buf_p'
tokenizer.cc:250: `int yy_c_buf_p' previously defined here
tokenizer.cc:2009: `n' was not declared in this scope
tokenizer.cc:2009: stray '\' in program
tokenizer.cc:2010: ANSI C++ forbids declaration `yy_hold_char' with no type
tokenizer.cc:2010: redefinition of `int yy_hold_char'
tokenizer.cc:248: `int yy_hold_char' previously defined here
tokenizer.cc:2010: invalid type argument of `unary *'
tokenizer.cc:2010: stray '\' in program
tokenizer.cc:2011: ANSI C++ forbids declaration `yy_c_buf_p' with no type
tokenizer.cc:2011: conflicting types for `int * yy_c_buf_p'
tokenizer.cc:2009: previous declaration as `int yy_c_buf_p'
tokenizer.cc:2011: stray '\' in program
tokenizer.cc:2012: ANSI C++ forbids declaration `yyleng' with no type
tokenizer.cc:2012: redefinition of `int yyleng'
tokenizer.cc:247: `int yyleng' previously defined here
tokenizer.cc:2012: `n' was not declared in this scope
tokenizer.cc:2012: stray '\' in program
tokenizer.cc:2013: parse error before `}'
tokenizer.cc:2013: stray '\' in program
tokenizer.cc:2063: type specifier omitted for parameter
tokenizer.cc:2063: parse error before `)'
tokenizer.cc: In function `void * yy_flex_realloc(...)':
tokenizer.cc:2077: `ptr' undeclared (first use this function)
tokenizer.cc:2077: (Each undeclared identifier is reported only once
tokenizer.cc:2077: for each function it appears in.)
tokenizer.cc:2077: `size' undeclared (first use this function)
./tokenizer.l: At top level:
cc1plus: register name not specified for ` /* decl error */ '
./tokenizer.l:191: Internal compiler error in `make_decl_rtl', at
varasm.c:739
Please submit a full bug report.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
make[3]: *** [tokenizer.o] Fehler 1
make[3]: Verlassen des Verzeichnisses Verzeichnis
»/home/sstein/programmierung/cvs/uml/uml/classparser«
make[2]: *** [all-recursive] Fehler 1
make[2]: Verlassen des Verzeichnisses Verzeichnis
»/home/sstein/programmierung/cvs/uml/uml«
make[1]: *** [all-recursive] Fehler 1
make[1]: Verlassen des Verzeichnisses Verzeichnis
»/home/sstein/programmierung/cvs/uml«
make: *** [all-recursive-am] Fehler 2


Steinchen
-- 
http://www.hpfsc.de/ - die Seite rund um:
Assembler, Bundeswehr, TFT LCDs, Halle/Saale, Fahrradtouren,
Wanderstaat Mauma, Raumschiff USS Nathan, Enemy Room, MLCAD Tutorial




More information about the umbrello mailing list