Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Error while using "ifeq" in Solaris

Posted on 2004-08-17
7
Medium Priority
?
1,516 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 800 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 200 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Suggested Courses

730 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