[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

1895.0. "how to change compile link order" by AOSG::FILTER (Automatic Posting Software - mail to flume::puck) Mon Oct 23 1995 19:30

Date Of Receipt: 	23-OCT-1995 15:33:54.34
From: 	SMURF::ALPHA::"ahrens@oleum.zso.dec.com" "23-Oct-1995 1230"
To: 	buildhelp@zk3.dec.com
CC: 	
Subj: 	how to change compile link order

I ran into a problem where if I have the atom kit ATM350, I get undefined
symbols compiling some files.
Greg Lueck says:

	The version of the libmld.a library shipped with Atom contains references
	to routines in the libots.a library.  This library should already be installed
	on your system.  A workaround should be to link in libots.a (-lots) after
	linking libmld.a (-lmld).  You can do this by changing your link line like
	this:

	env - COMP_HOST_ROOT=/ COMP_TARGET_ROOT=/ /usr/bin/cc   -EL \
	    -non_shared  -O2 `genpath   ` -L/usr/lib -L/lib -o pmerge.X \
	    main.o loader.o  -lmld -lots

Where would I change the kernel makefiles so that it always does this?

Christine

T.RTitleUserPersonal
Name
DateLines
1895.1Re: how to change compile link orderAOSG::FILTERAutomatic Posting Software - mail to flume::puckTue Oct 24 1995 04:0440
Date Of Receipt: 	24-OCT-1995 00:04:28.13
From: 	SMURF::QUARRY::"vandyck@cardinal.zk3.dec.com" "24-Oct-1995 0001"
To: 	ahrens@oleum.zso.dec.com
CC: 	buildhelp@zk3.dec.com
Subj: 	Re: how to change compile link order

As a general rule, the kernel build should have NO dependencies on the 
libraries generated during the build. As long as you've defined 
COMP_HOST_ROOT=/ as Greg describes and use the installed libs on the build 
machine, this is OK. This sort of thing is generally done to build an object 
that must run as part of the build but doesn't ship with the product.  Check 
kernel/conf/template*.mk.


		-Grant
| 
| I ran into a problem where if I have the atom kit ATM350, I get undefined
| symbols compiling some files.
| Greg Lueck says:
| 
| 	The version of the libmld.a library shipped with Atom contains referenc
es
| 	to routines in the libots.a library.  This library should already be in
stalled
| 	on your system.  A workaround should be to link in libots.a (-lots) aft
er
| 	linking libmld.a (-lmld).  You can do this by changing your link line l
ike
| 	this:
| 
| 	env - COMP_HOST_ROOT=/ COMP_TARGET_ROOT=/ /usr/bin/cc   -EL \
| 	    -non_shared  -O2 `genpath   ` -L/usr/lib -L/lib -o pmerge.X \
| 	    main.o loader.o  -lmld -lots
| 
| Where would I change the kernel makefiles so that it always does this?
| 
| Christine