[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference smurf::buildhelp

Title:USG buildhelp questions/answers
Moderator:SMURF::FILTER
Created:Mon Apr 26 1993
Last Modified:Mon Jan 20 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:2763
Total number of notes:5802

656.0. "need help with this one" by SMURF::FILTER (Automatic Posting Software - mail to flume::puck) Wed Mar 23 1994 13:23

Date Of Receipt: 	23-MAR-1994 12:20:33.42
From: 	ALPHA::dc "Dan Christians USG  23-Mar-1994 1219"
To: 	odehelp@DEC:.zko.alpha
CC: 	dc@DEC:.zko.alpha (Dan Christians USG)
Subj: 	need help with this one

hi,

i am trying to put together a makefile for a library
which happens to have an include file which should be
exported too.

i have tried the following:

	LIBRARIES               = libthreadRace.a
	HFILES                  = threadRace.h
	
	EXPLIB_TARGETS          = export_libthreadRace.a
	EXPINC_TARGETS          = export_threadRace.h
	
	OFILES                  = race.o mb.o
	
	ILIST                   = $(LIBRARIES) $(HFILES)
	threadRace.h_IDIR       = /usr/include/
	libthreadRace.a_IDIR    = /usr/ccs/lib/
	IMODE                   = 644
	
	include $(MAKEFILEPATH)/standard.mk
	include $(MAKEFILEPATH)/libs.mk
	include $(MAKEFILEPATH)/objects.mk

and this is what i get:

	% build 
	relative path: ./sqa/threadRace.
	cd ../../../obj/alpha/sqa/threadRace
	rm -f /u1/sb/export/alpha/threadRace.h
	makepath /u1/sb/export/alpha/threadRace.h
	tar cf - /usr/sde/osf1/build/goldos.nightly/src/sqa/threadRace/threadRace.h  | (cd /u1/sb/export/alpha; tar xf -)
	tar: /usr/sde/osf1/build/goldos.nightly/src/sqa/threadRace/threadRace.h : Read-only file system
	*** Exit 1
	Stop.

i'm unable to figure a way past this, i'd really
appreciate any ideas/help you can give me.

thanks,

dan christians




T.RTitleUserPersonal
Name
DateLines
656.1Re: need help with this oneSMURF::FILTERAutomatic Posting Software - mail to flume::puckWed Mar 23 1994 14:3271
Date Of Receipt: 	23-MAR-1994 13:50:48.40
From: 	FLUME::jmcg "Jim McGinness"
To: 	flume::dc
CC: 	flume::buildhelp, flume::odehelp
Subj: 	Re:  need help with this one

Comet doesn't find any instances of our Makefiles using
EXPINC_TARGETS.  What is commonly done is to declare the include files
as DATAFILES.  One of the side effects of this is to make a copy of
the file in the object tree.  This makes the tar command work properly
for export, since it isn't given the absolute name of the file to be
picked up but just the local name.

For an example, see goldos/src/usr/include/sys/Makefile.

	-- jmcg

 > Subject: need help with this one
 > To: odehelp
 > Date: Wed, 23 Mar 94 12:19:39 EST
 > From: Dan Christians <dc>


 > hi,

 > i am trying to put together a makefile for a library
 > which happens to have an include file which should be
 > exported too.

 > i have tried the following:

 > 	LIBRARIES               = libthreadRace.a
 > 	HFILES                  = threadRace.h
 > 	
 > 	EXPLIB_TARGETS          = export_libthreadRace.a
 > 	EXPINC_TARGETS          = export_threadRace.h
 > 	
 > 	OFILES                  = race.o mb.o
 > 	
 > 	ILIST                   = $(LIBRARIES) $(HFILES)
 > 	threadRace.h_IDIR       = /usr/include/
 > 	libthreadRace.a_IDIR    = /usr/ccs/lib/
 > 	IMODE                   = 644
 > 	
 > 	include $(MAKEFILEPATH)/standard.mk
 > 	include $(MAKEFILEPATH)/libs.mk
 > 	include $(MAKEFILEPATH)/objects.mk

 > and this is what i get:

 > 	% build 
 > 	relative path: ./sqa/threadRace.
 > 	cd ../../../obj/alpha/sqa/threadRace
 > 	rm -f /u1/sb/export/alpha/threadRace.h
 > 	makepath /u1/sb/export/alpha/threadRace.h
 > 	tar cf - /usr/sde/osf1/build/goldos.nightly/src/sqa/threadRace/threadRace.h  | (cd /u1/sb/export/alpha; tar xf -)
 > 	tar: /usr/sde/osf1/build/goldos.nightly/src/sqa/threadRace/threadRace.h : Read-only file system
 > 	*** Exit 1
 > 	Stop.

 > i'm unable to figure a way past this, i'd really
 > appreciate any ideas/help you can give me.

 > thanks,

 > dan christians