LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 08-12-2006, 08:30 PM   #1
bx.s
LQ Newbie
 
Registered: Jan 2006
Distribution: Ubuntu
Posts: 13

Rep: Reputation: Disabled
Help compiling Flex on Solaris 5.9


Hi,
I am trying to install Flex 2.5.31 (the latest version) from source code on a Sun Ultra 5, here are more specs:
Code:
bash-2.05# uname -a
SunOS wilbur 5.9 Generic_112233-06 sun4u sparc SUNW,Ultra-5_10
bash-2.05# gcc --version
gcc (GCC) 3.4.1
I don't have a deep understand as to what is going on while I am trying to compile with make. Configure ran sucessfully but this is what happens when I try to run make:
Code:
bash-2.05# make
make  all-recursive
Making all in .
if gcc -DHAVE_CONFIG_H -I. -I. -I.  -DLOCALEDIR=\"/usr/local/share/locale\" -I/usr/local/include -I./intl  -I/usr/local/include  -g -O2 -MT filter.o -MD -MP -MF ".deps/filter.Tpo" \
  -c -o filter.o `test -f 'filter.c' || echo './'`filter.c; \
then mv ".deps/filter.Tpo" ".deps/filter.Po"; \
else rm -f ".deps/filter.Tpo"; exit 1; \
fi
filter.c: In function `filter_apply_chain':
filter.c:161: error: invalid lvalue in assignment
filter.c:163: error: invalid lvalue in assignment
filter.c:184: error: invalid lvalue in assignment
*** Error code 1
make: Fatal error: Command failed for target `filter.o'
Current working directory /usr/share/src/flex-2.5.31
*** Error code 1
make: Fatal error: Command failed for target `all-recursive'
Current working directory /usr/share/src/flex-2.5.31
*** Error code 1
make: Fatal error: Command failed for target `all'
It would be fantastic if somebody can help my troubleshoot compiling Flex as it is a dependency for so many other programs I would like to install. If I can't get help, then tips or places where I can find binaries would be appreciated.

Thank you very much!

Last edited by bx.s; 08-12-2006 at 09:32 PM.
 
Old 08-12-2006, 09:59 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914
Moved: This thread is more suitable in <Solaris>, and has been moved accordingly to help your thread/question get the exposure it deserves.
 
Old 08-13-2006, 02:35 AM   #3
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Ubuntu/WSL
Posts: 9,782

Rep: Reputation: 481Reputation: 481Reputation: 481Reputation: 481Reputation: 481
flex-2.5.31 breaks ANSI C standard by messing with stdin/stdout.

Try commenting out the lines 161 to 164 and 184 to 185 in filter.c
 
Old 08-13-2006, 12:29 PM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 12,768

Rep: Reputation: 1843Reputation: 1843Reputation: 1843Reputation: 1843Reputation: 1843Reputation: 1843Reputation: 1843Reputation: 1843Reputation: 1843Reputation: 1843Reputation: 1843
You can install the flex 2.5.31 as a package from Solaris freeware

Regards
 
Old 08-13-2006, 01:29 PM   #5
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Ubuntu/WSL
Posts: 9,782

Rep: Reputation: 481Reputation: 481Reputation: 481Reputation: 481Reputation: 481
Correct, and even version 2.5.33 from blastwave.org (package flex_new).

The aforementioned bugs are corrected in 2.5.33 source code.
 
Old 08-14-2006, 08:41 PM   #6
bx.s
LQ Newbie
 
Registered: Jan 2006
Distribution: Ubuntu
Posts: 13

Original Poster
Rep: Reputation: Disabled
Thank you. I was able to install the package.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem Compiling in Solaris x86 Koven Solaris / OpenSolaris 1 01-13-2006 02:05 AM
[SOLVED] Problems compiling Linux apps on Solaris 10 spook2 Solaris / OpenSolaris 4 03-12-2005 11:12 AM
compiling and configuring sendmail on solaris 9 linux_ub Linux - Networking 1 11-09-2004 05:17 PM
Trouble Compiling a simple Hellow World on Solaris 9 with GCC 3.4.2 jitendra64 Solaris / OpenSolaris 4 10-11-2004 03:57 PM
Compiling a program with gcc on Solaris (I think) phekno Programming 2 09-15-2004 02:39 PM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 12:14 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration