Re: Trouble compiling scotty (particularly tnm.a) on BSDI 2.0.1

Cameron Laird (claird@Starbase.NeoSoft.COM)
Wed, 26 Feb 1997 04:11:11 -0600 (CST)

From owner-tkined@ibr.cs.tu-bs.de Wed Feb 26 00:54:06 1997
.
.
.
From: Nicholas van Veldhuisen <vanveln@research.oneworld.com>
.
.
.
I had to add in the -l options to the LIBS Makefile variable
for tk and tcl (4.2 and 7.6 respectively. If these versions
do not work with Scotty 2.1.5, then I have a whole new problem.)
I'll make a point of documenting that compatibility.
As I recall now, on some systems it requires an ob-
vious source code change in one place, on some, none
at all.
.
.
.
mjolnir /usr/local/src/scotty-2.1.5/unix 558# make tnm.a
gcc tnmInit.o tnmUtil.o tnmJob.o tnmIned.o tnmSyslog.o tnmIcmp.o
tnmDns.o tnmEvent.o tnmUdp.o tnmSunRpc.o tnmNtp.o tnmRpc.o tnmHttp.o
tnmNetdb.o tnmUnixInit.o tnmUnixLog.o tnmUnixSocket.o tnmUnixIcmp.o
mount_clnt.o mount_xdr.o ether_clnt.o ether_xdr.o rstat_clnt.o
rstat_xdr.o pcnfsd_clnt.o pcnfsd_xdr.o tnmAsn1.o tnmMD5.o tnmSnmpNet.o
tnmSnmpUtil.o tnmSnmpInst.o tnmSnmpSend.o tnmSnmpRecv.o tnmSnmpAgent.o
tnmSnmpTcl.o tnmMibQuery.o tnmMibParser.o tnmMibTree.o tnmMibFrozen.o
tnmMibTcl.o -o tnm.a -ltk4.2 -ltcl7.6 -lrpc -lm -lfl
.
.
.
I've *got* to wrap up other obligations, so I
can finish my notes. Yes, I understand what's
happening here. What you really want is

ar qv tnm.a tnmInit.o tnmUtil.o ... tnmMibTcl.o

That will execute successfully. Then you need
to re-write the final link for scotty to use this,
something along the lines of

gcc -o scotty scotty.o tnm.a -ltk4.2 -ltcl7.6 -lrpc -lm

'Sorry it's taking so long for me to finish.

It's surprised Juergen, I think, to learn how
many people want help with static linking.

Cameron Laird http://starbase.neosoft.com/~bodi/nesi.html
Network Engineered Solutions +1 713 763 8366
claird@NeoSoft.com +1 281 996 8546 FAX
Houston WWW Business Guide: http://starbase.neosoft.com/~bodi/HouGuide.html

--
!! This message is brought to you via the `tkined & scotty' mailing list.
!! Please do not reply to this message to unsubscribe. To subscribe or
!! unsubscribe, send a mail message to <tkined-request@ibr.cs.tu-bs.de>.
!! See http://wwwsnmp.cs.utwente.nl/~schoenw/scotty/ for more information.