Re: Yet Another BSDI 2.1 compile

Cameron Laird (claird@Starbase.NeoSoft.COM)
Fri, 7 Mar 1997 12:30:37 -0600 (CST)

From owner-tkined@ibr.cs.tu-bs.de Fri Mar 7 11:58:52 1997
.
.
.
Hi -- I've successfully built up and used scotty on Linux 2.0.28,
but for various reasons now have to move my monitoring over to a
BSDI 2.1 system. I've gotten pretty far in the compile, thanks
to list archives and other documentation, but have hit a "wall"
and want to make sure that the next step (static linking everything)
is really what I *need* to do. I'm using tcl7.5, tk4.1 and scotty 2.1.5.

The step it's dying on is:

/usr/bin/ld tnmInit.o tnmUtil.o tnmJob.o tnmIned.o tnmSyslog.o ...
[all successfully-built .o files elided]
tnmMibTcl.o -o tnm -lrpc -lresolv -ltcl7.5 -ltk4.1 -lm -ll
This is just not going to make sense on a BSDI system.
I understand why you're trying, but it's not going to
work.
.
.
.
and then it dies. One suggestion I saw from the list (from Cameron
(thanks!)) about this step suggested what it really wanted was

ar qv tnm.a [*.o]

but this, although it ran, produced magic number errors when subsequent
steps tried to use the .a file thus created. Any further help would
be greatly appreciated.
.
.
.
! Magic number errors? A subsequent step would have
been something like

cc -o scotty scotty.o tnm.a ... -ltcl ...

*That* gave a magic number error? I'm quite puzzled.
If you can get me on your system, I'll work through it;
or, if you figure it out, let me know, and I'll add that
to my notes.

You've got a couple of other possibilities:
1. You don't need tnm.a. It's possible to do

cc -o scotty *.o ... -ltcl ...

and I've done it, except it's not exactly
*.o you want, but almost-*.o. I bet you can
work through it with just a little persever-
ance.
2. Are you *sure* there's no dynamic linking on
your machine? Some BSD machines (none to
which I'll have ready access this month) have
mkshlib or related freeware. That's another
direction you could take this.

Statically-linking stuff has worked well for me. I know
I haven't documented that completely, yet, but doing so
doesn't pay the bills. I add more to my documents as I
make time to do so, but it's been a struggle.

Good luck.

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.