[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

642.0. "building shareable library" by SMURF::FILTER (Automatic Posting Software - mail to flume::puck) Mon Mar 14 1994 15:39

Date Of Receipt: 	14-MAR-1994 14:38:09.32
From: 	ALPHA::"[email protected]"
To: 	alpha::buildhelp
CC: 	SONTAKKE@DEC:.zko.alpha
Subj: 	building shareable library

Has anyone seen a similar problem whereas a flag to ld is interpreted as a file 
name?  I have tried this against BL8 and also against the latest goldos backing 
tree.

The weird this is that the Log/usr_shlib.log shows that the build was 
successfull.  It seems as if there is something really strange going on when 
the build is done from a private sandbox.

Thanks,
- Vikas



workon_useit 67% pwd
/usr/disks/useit_1/sontakke/sb/gold8/src/usr/shlib/libsys5
workon_useit 68% build
relative path: ./usr/shlib/libsys5.
cd ../../../../obj/alpha/usr/shlib/libsys5
/usr/sde/osf1/build/goldos.bl8/tools/alpha_OSF1/alpha/acc/ld -shared 
-set_version osf.1 -soname libsys5.so -check_registry `genloc 
/obj/alpha/usr/shlib/alpha/so_locations`     -init __sys5init_   `genpath   ` 
-L/usr/disks/useit_1/sontakke/sb/gold8/export/alpha/usr/shlib 
-L/usr/sde/osf1/build/goldos.bl8/export/alpha/usr/shlib  
-L/usr/disks/useit_1/sontakke/sb/gold8/export/alpha/usr/ccs/lib 
-L/usr/sde/osf1/build/goldos.bl8/export/alpha/usr/ccs/lib -o libsys5.so.X 
setpgrp.o mount.o umount.o crt1.o mknod.o  mktemp.o getcwd.o  sys5init.o 
ttyname.o pipe.o mkfifo.o  siginfo_sig.o sigpause.o sigset.o truncate.o  
signal.o s5unlink.o s5open.o  sigaction.o waitpid.o libsys5init.o jmp.o  
longjmp.o     -lc   
/usr/sde/osf1/build/goldos.bl8/tools/alpha_OSF1/alpha/acc/ld:
Can't open: __sys5init_ (No such file or directory)
*** Exit 1


T.RTitleUserPersonal
Name
DateLines
642.1Re: building shareable librarySMURF::FILTERAutomatic Posting Software - mail to flume::puckMon Mar 14 1994 15:4114
Date Of Receipt: 	14-MAR-1994 15:36:34.67
From: 	FLUME::jmcg "Jim McGinness"
To: 	[email protected]
CC: 	flume::buildhelp
Subj: 	Re:  building shareable library

This error message occurs because
	`genloc /obj/alpha/usr/shlib/alpha/so_locations`
returned nothing.  I've seen this kind of problem multiple times before,
but always from sites in UNX.  I've never heard what it took to resolve
it.

	-- jmcg

642.2Re: building shareable librarySMURF::FILTERAutomatic Posting Software - mail to flume::puckMon Mar 14 1994 16:4329
Date Of Receipt: 	14-MAR-1994 15:44:29.31
From: 	FLUME::"[email protected]" "Grant Van Dyck"
To: 	flume::jmcg (Jim McGinness)
CC: 	helix::sontakke, [email protected]
Subj: 	Re: building shareable library

The problem occured in UNX because they only supped the src
collection and never obj, nor did they ever build it so the file
/obj/alpha/usr/shlib/alpha/so_locations did not exist in their
backing tree.

If you create this directory in the backing tree and copy
src/usr/shlib/alpha/so_locations to it, your build should
work fine. I'm not sure that a sandbox copy of this will work
as I believe it needs to be found in the backingtree.



	-Grant


| This error message occurs because
| 	`genloc /obj/alpha/usr/shlib/alpha/so_locations`
| returned nothing.  I've seen this kind of problem multiple times before,
| but always from sites in UNX.  I've never heard what it took to resolve
| it.
| 
| 	-- jmcg

642.3Re: building shareable librarySMURF::FILTERAutomatic Posting Software - mail to flume::puckMon Mar 14 1994 16:4424
Date Of Receipt: 	14-MAR-1994 15:45:58.12
From: 	ALPHA::"[email protected]"
	HELIX::SONTAKKE     "Vikas, DTN 297-9192, Extern (508)-467-9192" 14-MAR-1994 15:44:16.68
To: 	alpha::buildhelp
	FLUME::jmcg
CC: 	SONTAKKE@DEC:.zko.alpha
	SONTAKKE
Subj: 	Re:  building shareable library
	Re:  building shareable library

Bingo!!

I just found it.

It seems that one needs to do a build from /usr/shlib.  This sets us the genloc 
command properly.

Actually, I killed the /usr/shlib build after it started compiling libc as by 
that time it had finished with the so_locations stuff.

Now /usr/shlib/libxti built successfully.

- Vikas

642.4Re: building shareable librarySMURF::FILTERAutomatic Posting Software - mail to flume::puckMon Mar 14 1994 16:4514
Date Of Receipt: 	14-MAR-1994 15:46:12.41
From: 	FLAMBE::"[email protected]" "14-Mar-1994 1544"
To: 	[email protected] (Jim McGinness)
CC: 	sontakke@dec:.mro.helix, [email protected]
Subj: 	Re: building shareable library
To get around the problem: 	

cd /usr/shlib/alpha
build

Then go and build your shared library.

-Rich