- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Imake/make migrating 11iv1 to 11iv2
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
Discussions
Discussions
Forums
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
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-03-2007 02:55 AM
тАО07-03-2007 02:55 AM
I'm trying to compile a code from 11iv1 to v2.
It uses Imake then make in a configure file
------------configure--------------------------
-------------------
#!/bin/csh
unsetenv IMAKEINCLUDE
set SYSTEM=hppa11.00-hp-hpux
echo "Configuring for " $SYSTEM
imake -DConfig=$SYSTEM -T "IBSImake.tmpl" -I./config -I/bin/imake
/bin/make -r Makefiles
------------------------------------------------------------------
Here's the output
Make: Must be a separator on rules line 16. Stop.
I have a look at the makefile
--------------makefile--------------------------------------------
15. CPU
16. SYSTEM = $(CPU)
17. else
------------------------------------------------------------------
Solved! Go to Solution.
- Tags:
- gmake
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-03-2007 02:59 AM
тАО07-03-2007 02:59 AM
Re: Imake/make migrating 11iv1 to 11iv2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-03-2007 03:33 AM
тАО07-03-2007 03:33 AM
Re: Imake/make migrating 11iv1 to 11iv2
and it works under 11.11 .
for my makefile, here's the begining :
--------------makefile--------------------------------------------------------------------
ifdef CPU
SYSTEM = $(CPU)
else
SYSTEM = hppa11.23-hp-hpux
endif
# 140
ifeq ($(SYSTEM),sun4)
OSNAME = SunOS 5.3
OSMAJOR = 5
OSMINOR = 3
PRIVATEC++INCLUDES = +I"/extern/CenterLine/clc++/sparc-sunos4/incl"
MOTIFROOT = /usr/local/lib/motif/lib
MOTIFINCLUDES = -I$(MOTIFROOT)
MOTIFLDPATH = -L$(MOTIFROOT)/Xm \
-L$(MOTIFROOT)/Xt \
-L$(MOTIFROOT)/X
MOTIFLIBRARIES = -lXm -lXt -lX11
MRMLDPATH = -L$(MOTIFROOT)/Mrm
MRMLIBRARIES = -lMrm
STDCC = gcc
STDC++ = gcc
OTHERCC = gcc
OTHERC++ = CC
endif
#...other systems
-------------/makefile--------------------------------------------------------------------
if I set SYSTEM to hppa11.23-hp-hpux in configure, I have the same result,
and hppa11.23-hp-hpux isn't in the list.
hppa11.00-hp-hpux is listed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-03-2007 04:23 AM
тАО07-03-2007 04:23 AM
Re: Imake/make migrating 11iv1 to 11iv2
HP's make doesn't support "if". You must have have used gmake, possibly in /usr/local/bin/make?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-03-2007 06:48 PM
тАО07-03-2007 06:48 PM
Re: Imake/make migrating 11iv1 to 11iv2
The code I showed works on HP 11.11.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-03-2007 06:57 PM
тАО07-03-2007 06:57 PM
Re: Imake/make migrating 11iv1 to 11iv2
I used the system make, which wasn't GNU make
Now that I use it, I got a new error :
> make: getcwd: : No such file or directory
> make: *** No rule to make target `Makefiles'. Stop.
And Makefiles is a target which exists.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-03-2007 08:02 PM
тАО07-03-2007 08:02 PM
Re: Imake/make migrating 11iv1 to 11iv2
Is getcwd a target or a command? What is the line in question that has it?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-03-2007 08:51 PM
тАО07-03-2007 08:51 PM
Re: Imake/make migrating 11iv1 to 11iv2
make: getcwd: : No such file or directory
It comes from make bin.
getcwd is a c function which returns a char * similar to the result of pwd.
I think make verifies the inode exits before using it with getcwd, and doesn't find it.
Which means some dependencies aren't where they should.
I've tried changing some paths, but there are many.
I may install gmake, Imake.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-03-2007 09:04 PM
тАО07-03-2007 09:04 PM
Solutionmake: getcwd: : No such file or directory
It comes from make bin.
Which make were you using when you got this error?
>getcwd is a C function
Yes, I know what getcwd(3) does. I found it strange that make(1) would mention it, so I assumed it was from your makefile.
For getcwd(3) to get that errno, it would imply that the directory path back to the mount point was broken. I would expect that to be a one time problem, not continual. What does "/usr/bin/pwd" show?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-03-2007 09:43 PM
тАО07-03-2007 09:43 PM