Solved

Error while using "ifeq" in Solaris

Posted on 2004-08-17
7
1,468 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
  • 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
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 

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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

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…
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 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…
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…

770 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