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

Nicholas van Veldhuisen (vanveln@research.oneworld.com)
Tue, 25 Feb 1997 17:27:23 -0800

I have been trying to compile scotty 2.1.5 on BSDI 2.0.1 for
many moons now. It appears my problems originally were
all answered by the archives of this mailing list as well
as several FAQ's available. Now I am encountering
"uncharted territory" that appears to be un-documented in
any of the trouble-shooting info provided by the folks
at the University of Twente, nor by Cameron Laird's personal
notes on Scotty. It could very well be this is a lack of
understanding on my part, or that I am not fully extending
my investigation to other sources on Scotty troubleshooting.

It all seems to start with the way the Makefile is configured.
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.)
as well as for the math library. After I seemed to get almost
all the "Undefined symbol" messages, I was left with yet one
last one:

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
libmain.c:11: Undefined symbol _yylex referenced from text segment
*** Error code 1

Stop.

Does *anyone* have any idea what I can do to fix this? I
know it has something to do with lex (flex) on the system.
When I remove the -lfl option, it then errors out that it
can't find function main(). Is the yylex() function supposed
to be created by this system or included with another library?

I am thankful for any help or feedback I might receive concerning
this issue.

- Nick

Nicholas W. vanVeldhuisen P.O. Box 1589
Solutions Engineer II Corvallis, OR 97339-1589
One World Internetworking(sm) phone (541) 758-1112
http://www.oneworld.com fax (541) 759-5012
vanveln@corp.oneworld.com

"Facilitating Communications with the Global Marketplace"

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Offering Superior Software Solutions and Customer Service
for your Internet Business Needs
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

--
!! 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.