Summary: | Unable to compile on SPARC/SOLARIS 9 | ||
---|---|---|---|
Product: | [Applications] umbrello | Reporter: | Lars Tunkrans <lars.tunkrans> |
Component: | general | Assignee: | Umbrello Development Group <umbrello-devel> |
Status: | RESOLVED WORKSFORME | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | 1.1.1 | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Solaris | ||
Latest Commit: | Version Fixed In: |
Description
Lars Tunkrans
2003-03-10 20:45:54 UTC
This looks like a problem with flex rather than Solaris. What is your version of Flex and gcc? It may be the flex is too old a version for gcc. Jonathan Riddell Subject: Re: Unable to compile on SPARC/SOLARIS 9
Jonathan Riddell wrote:
> ------- You are receiving this mail because: -------
> You reported the bug, or are watching the reporter.
>
> http://bugs.kde.org/show_bug.cgi?id=55810
>
>
>
>
> ------- Additional Comments From jr@jriddell.org 2003-03-11 15:23 -------
> This looks like a problem with flex rather than Solaris.
>
> What is your version of Flex and gcc? It may be the flex is too old a version
> for gcc.
>
> Jonathan Riddell
>
I had Flex 2.5.4 and GCC 3.2.2 installed.
I just now upgraded to flex 2.5.4a wich seems to be the
latest available flex version. Both packages comes from
www.sunfreeware.com
The problem remains exaclty identical with flex 2.5.4a.
I reported this bug because :
If umbrello will be included in KDE 3.2 it should
be possible to compile "straight Out of the box " on
Solaris . There is just a two Standard KDE 3.1 packages that
does not compile on SPARC/Solaris and those are concerned with
PC Hardware like "kdeadmin/kxconfig" and "kdeadmin/kuser" , and
kuser does compile if quotamanagement is switched off.
//Lars
Subject: Re: Unable to compile on SPARC/SOLARIS 9 This is what happends I I delete "Flex" and try to use "lex" instead. First: pkgrm SMCflex gmake distclean && ./configure Then: # gmake cd . && /bin/bash ./config.status config.h config.status: creating config.h config.status: config.h is unchanged gmake all-recursive gmake[1]: Entering directory `/opt/src/kde3apps/umbrello-1.1.1' Making all in uml gmake[2]: Entering directory `/opt/src/kde3apps/umbrello-1.1.1/uml' Making all in classparser gmake[3]: Entering directory `/opt/src/kde3apps/umbrello-1.1.1/uml/classparser' lex -+ -otokenizer.cc tokenizer.l lex: illegal option -- + Usage: lex [-ewctvnVY] [-Q(y/n)] [file] gmake[3]: *** [tokenizer.cc] Error 1 gmake[3]: Leaving directory `/opt/src/kde3apps/umbrello-1.1.1/uml/classparser' gmake[2]: *** [all-recursive] Error 1 gmake[2]: Leaving directory `/opt/src/kde3apps/umbrello-1.1.1/uml' gmake[1]: *** [all-recursive] Error 1 gmake[1]: Leaving directory `/opt/src/kde3apps/umbrello-1.1.1' gmake: *** [all] Error 2 ----------------- User Commands lex(1) NAME lex - generate programs for lexical tasks SYNOPSIS lex [-cntv] [-e | -w] [ -V -Q [y | n] ] [file...] ------------------------------ Apperantly "configure" finds "lex" but the flags are still in "flex"-style. I Agree that the problem seems to bee some incompatability between the modern GCC 3.2.2 and the somewhat dated flex from 1997/8 I even tried to rebuild "flex" from source . Still the same "istream" problem. //Lars Problem resolved by installing FLEX 2.5.27 from http://lex.sourceforge.net download page http://sourceforge.net/project/showfiles.php?group_id=72099 This is the modern version of Flex. The flex available from the GNU mirrors is 6 years old. Also Umbrello 1.1.1 needs a one-line patch in the file ./umbrello-1.1.1/uml/classparser/tokenizer.l The patch is the string "%option noyywrap" a good place to but it is at line 57 after the other similar declarations. //Lars |