Solved

Error while using "ifeq" in Solaris

Posted on 2004-08-17
7
1,483 Views
Last Modified: 2013-12-20
ifeq (SunOS,$(_INIT_UTS_SYSNAME))
K=SOLARIS
endif

-when I execute this makefile I am getting an error like-
"make: Fatal error in reader:  line 2: Unexpected end of line seen"
-I am using Solaris Machine. pls get me the soln.

-thanks
0
Comment
Question by:Thilak
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
7 Comments
 
LVL 38

Assisted Solution

by:yuzh
yuzh earned 200 total points
ID: 11827771
try:
ifeq 'SunOS' '$(_INIT_UTS_SYSNAME)'
   K=SOLARIS
endif  

or

ifeq ($(_INIT_UTS_SYSNAME), SunOS)
   K=SOLARIS
endif  
0
 

Author Comment

by:Thilak
ID: 11827940
No my friend its still giving me the same error. Its working fine in AIX but not in Sun Solaris. why?
0
 
LVL 38

Expert Comment

by:yuzh
ID: 11828073
which version of Solaris are you running? please post the output of:
uname -a
Have you applied the latest Solaris patches to your box?

BTW, Solaris doesn't ship with a working C complier, you can not expect to use
/usr/ucb/bin/cc
/usr/ccs/bin/make
to make it work.

But you can download the GNU gcc, make etc from the following site and try again:
http://sunfreeware.com/

please download gcc +make+  zlib +_ libgcc + glib + openssl + libtool + libiconv
+autoconf + automake + flex + boson from the about site.

and set PATH LD_LIBRARY_PATH to used them, eg:
PATH=/usr/local/bin:$PATH  #to make sure that you are using the GNU tools
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/local/lib
export PATH LD_LIBRARY_PATH

then run make

PS: I used the GNU tools to complied things, no problem.

Good luck!


0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:Thilak
ID: 11828423
My version is:
SunOS hotserver 5.8 Generic_108528-15 sun4u sparc SUNW,Sun-Blade-1000
0
 
LVL 38

Expert Comment

by:yuzh
ID: 11828678
Hi Thilak,

     Your patch level is very low, consider to apply the latest patch to your Sun blade 1000.

     Also download the GUN tools and use gcc  to complie your program.
0
 
LVL 51

Accepted Solution

by:
ahoffmann earned 50 total points
ID: 11830989
this is no standard nor Sun no make syntax
which type of make are you using
  make -v

will tell something
0
 

Author Comment

by:Thilak
ID: 11867361
Thanks a lot friends!
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
Suggested Courses

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question