- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: about missing separator
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2004 11:21 PM
07-06-2004 11:21 PM
try to run the make and display follow error :
-------------------------------------------
Make: Must be a separator on rules line 35. Stop.
-------------------------------------------
My Makefile line :
-------------------------------------------
33 >HDRS = uyn_define.h $
34 > uyn_cmn.h
35 >INSTALL = /etc/install
36 >MAKEFILE = Makefile
-------------------------------------------
Compiler Environment : CC = /bin/cc
Can anyone be of any help?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2004 11:23 PM
07-06-2004 11:23 PM
Re: about missing separator
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2004 11:37 PM
07-06-2004 11:37 PM
Re: about missing separator
I think the variable HDRS must be in a single line:
------------------
HDRS=uyn_define.h uyn_cmn.h
INSTALL=/etc/install
MAKEFILE=Makefile
--------------------
Frank.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2004 11:58 PM
07-06-2004 11:58 PM
Re: about missing separator
it will be ok
but, some define like :
SYSHDRS = /usr/include/.unsupp/sys/_errno.h \
/usr/include/.unsupp/sys/_fcntl.h \
/usr/include/.unsupp/sys/_ioctl.h \
/usr/include/.unsupp/sys/_param.h \
/usr/include/.unsupp/sys/_signal.h \
/usr/include/.unsupp/sys/_types.h \
/usr/include/dce/cma.h \
/usr/include/dce/cma_config.h \
...
it's too long,
I heart can use a back slash character in the end of continuation line in Makefile like :
SRCS = \
file1.c \
file2.c
but why make failed on it
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-07-2004 12:04 AM
07-07-2004 12:04 AM
Re: about missing separator
As I see it:
-------------------------------------------
33 >HDRS = uyn_define.h $
34 > uyn_cmn.h
35 >INSTALL = /etc/install
36 >MAKEFILE = Makefile
-------------------------------------------
in line 33 you have $ rather than \
If you place that then it should work.
manish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-07-2004 12:08 AM
07-07-2004 12:08 AM
Re: about missing separator
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-07-2004 12:12 AM
07-07-2004 12:12 AM
Re: about missing separator
I'v changed $ to \
but, the same error still there : (
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-07-2004 12:19 AM
07-07-2004 12:19 AM
Re: about missing separator
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-07-2004 12:27 AM
07-07-2004 12:27 AM
Re: about missing separator
all contents in Makefile :
---------------------------------------
CC = /bin/cc
ALL_LIBS = $(DCELIB)
SUFFIX = .idl:sI .acf:sI
DEST = .
EXTHDRS =
HDRS = ncqs_define.h \
receiver.h
INSTALL = /etc/install
MAKEFILE = Makefile
---------------------------------------
then I run
#make
Make: Must be a separator on rules line 8. Stop.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-07-2004 12:46 AM
07-07-2004 12:46 AM
Re: about missing separator
after the backslash be sure there is nothing, no spaces at all.
Frank.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-07-2004 01:07 AM
07-07-2004 01:07 AM
SolutionI just wrote a small case like yours:
$ cat mk1
CC=/usr/bin/cc
HDRS=a.h\
b.h
src=a.c
main:
$(CC) -o main a.c
this works file but if I add few spaces or tabs after the "\" then I get the following error:
$ make -f mk1
Make: Must be a separator on rules line 5. Stop.
Just make sure that there is no space or tabs after the "\"
manish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-07-2004 01:48 AM
07-07-2004 01:48 AM
Re: about missing separator
I edit the Makefile in Windows,
then use FTP transport to hp-ux,
because of a little difference of system character set,
In hp-ux, at the end of every line,
added a "^M",
appreciate everyone!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2004 02:37 AM
07-22-2004 02:37 AM