LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-21-2006, 05:12 AM   #1
kranti
LQ Newbie
 
Registered: Oct 2005
Location: Pune
Posts: 17

Rep: Reputation: 0
make file problem


Hi,

I'm getting following error when I try to compile my code on solaris platform, when i type

//------------------------------------------------------
[solar log]# make INTEL=1
make: Fatal error in reader: ../make.binpath, line 12: Unexpected end of line seen

//------------------------------------------------------

contents of Makefile are ...

include ../make.binpath

INC_PATH= ../../include

TARGETS= $(ARCH)/libdump_log.a

#INCLUDES= $(INC_PATH)/dump_log.h

SQL_INC_PATH= $(SQL_PATH)/include

DUMP_LOG_INC_PATH= $(DUMP_LOG_PATH)

OBJECTS = $(ARCH)/dump_log.o

DEPENDENCIES= $(INCLUDES) Makefile

OPT_FLAGS= -I$(INC_PATH)

CFLAGS= -D$(ARCH) $(OPT_FLAGS)

all:$(TARGETS)

$(TARGETS):$(OBJECTS)
$(AR) rcs $(TARGETS) $(OBJECTS)

$(ARCH)/dump_log.o:dump_log.c $(DEPENDENCIES)
$(CPP) $(CFLAGS) -c dump_log.c -o $@
clean:
rm -f $(OBJECTS) $(TARGETS) *~


//------------------------------------------------------

make.binpath is ...

SQL_PATH=/usr/local/pgsql

DUMP_LOG_PATH=../log

ifdef SPARC

ARCH=sparc

CC=/opt/SUNWspro/bin/cc

CPP=/opt/SUNWspro/bin/CC

endif


ifdef INTEL

ARCH=intel

CC=/opt/SUNWspro/bin/cc

CPP=/opt/SUNWspro/bin/CC

endif

ifdef LINUX

ARCH=linux

CC=gcc

CPP=g++

endif


.EXPORT_ALL_VARIABLES:


//------------------------------------------------------

when i use these files to compile my code on linux platform, there's no problem, but why is it creating problem for INTEL?

Thanks,
Regards,
Kranti
 
Old 03-21-2006, 07:36 AM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
How did you edit the file. Line 12 is blank. Did you edit it in windows? Could be some hidden whitespace. Also, check if there is a tab character at the beginning of the line.
Also, you might want to post the output of "cat -n <filename>" instead to make it easier for others to read.

Last edited by jschiwal; 03-21-2006 at 07:42 AM.
 
  


Reply



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
make xconf;make gconf problem Soqool Linux - Newbie 3 06-12-2005 12:00 PM
when creating a *.iso file, how to make the file size smaller? minm Linux - Newbie 8 12-26-2004 09:58 PM
I accidentally deleted make file in /usr/local/bin, now cannot use make command.... Niceman2005 Linux - Software 2 11-17-2004 07:55 PM
Hard Disk Partition&Make File System Problem jooj Linux - Hardware 3 02-23-2004 04:27 PM
make dep,make clean,make bzImage problem Babba Linux - Newbie 2 01-08-2003 03:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:07 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