Linux 2.0.9/Scotty 2.1.2 Compile Errors

Jake Garcia (jake@midnight.rt66.com)
Sun, 20 Oct 1996 03:56:52 -0600 (MDT)

Hi all. I'm new to this list, so please feel free to flame the heck out
of me...

I have searched the archive for '96, and read the FAQ, but still can't
get Scotty 2.1.2 to compile under Linux 2.0.9. I had to install the
package dld 3.2.7. It compiled and went in just as easy as Tcl7.5 and
Tk4.1 (afterwards). Also, the configure script didn't complain, at all.

So, this is where I am. Almost all of the objects build fine. I am at the
point where make wishes to build tnm.so, and fails. I have to add a bunch
of libraries into the ld command line. So, the output looks similar to
this:

ld -shared 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 tnmUnixLog.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.so -lieee -lrpcsvc -lfl -ltk4.1
-ltcl7.5 -L/usr/X11/lib -lX11 -lfl -ldld -lm -lc -lldso

Ok. It crunches along for a while (a long while with only 16MB RAM!!!).
Then, make takes a dump, and spits this out:

tnmInit.o(.text+0xa1): undefined reference to `GLOBAL_OFFSET_TABLE_'
tnmInit.o(.text+0x2d4): undefined reference to `GLOBAL_OFFSET_TABLE_'
tnmInit.o(.text+0x5dd): undefined reference to `GLOBAL_OFFSET_TABLE_'
tnmInit.o(.text+0x65d): undefined reference to `GLOBAL_OFFSET_TABLE_'
tnmInit.o(.text+0x78d): undefined reference to `GLOBAL_OFFSET_TABLE_'
tnmInit.o(.text+0x7ed): more undefined references to `GLOBAL_OFFSET_TABLE_'
follow
make: *** [tnm.so] Error 1

Now, I have no idea where this darned symbol is supposed to be defined. I
ran nm over many libraries is figured it may be hidden in, but grep never
matched GLOBAL_OFFSET_TABLE. So, I'm hoping that someone knows how to
remedy this.

Also, if someone has the binaries (a.out, please! haven't done the
'move_to_elf' thing, yet!) that will run on an old Slackware
distribution, let me know.

Anyhow, that you for putting up with my stupidity. I will leave you all
alone, now!

Jake Garcia <jake@midnight.rt66.com> http://www.rt66.com/~jakeg

Linux 2.0.9, XView 3.2 FCS Patch 1 (X11R6)
Jake using his LART: [Thump] "Ouch!" [Thump] "Ouch!" [Thump] "Ouch!"
Note to spammers: Spam me to receive your free 12MB uuencoded core in return!