Re: Scotty trouble with Tcl-My-Fancy

Keith Dart (kdart@INS.COM)
Mon, 10 Jun 1996 13:35:52 +0000 (GMT)

On Mon, 10 Jun 1996, Martone Mike wrote:

>
> I have recently been trying to make a "BIGwish" which includes Tcl/TK,
> expect, BLT, DP, and of course, Scotty. This is in preparation of making my
> own net manager application. I know Tcl pretty well, but I dont do C. I
> have been using Tom Poindexter's Tcl-My-Fancy utility which searches for all
> compiled libraries and creates a combine tcl and wish shell for them. I
> have been succesful with all of the packages thus far, except for Scotty.
> Scotty must modify the Tcl base code or something? I'm not 100% sure what
> TMF does (since I dont know C) but it adds something to Tcl_AppInit and uses
> libscotty.o file. The make file output is provided below. If anyone has
> done what I am trying to do, or has input about the make file...please let
> me know.
> Thanks in advance.
> Mike
> ----------------------------------------------------------------------------
> ------------------------------------------------------
> playdo# make
> sed -f tmftk.sed <../tk4.0/tkAppInit.c >tkAppInit.c
> cc -c -I../tk4.0 -I../tcl7.4 -I/usr/openwin/include -DNO_GETWD=1
> -DNO_WAIT3=1 -D
> HAVE_UNISTD_H=1 -Dstrtod=fixstrtod -DSTDC_HEADERS=1 -DNO_UNION_WAIT=1
> -DNEED_MAT
> HERR=1 -Dvfork=fork -DGETTOD_NOT_DECLARED=1 -O tkAppInit.c
> cc tkAppInit.o ../scotty-2.0.2/libscotty.a ../blt2.1/src/libBLT.a
> ../tcl-dp3.4b
> 2/libdp.a ../tk4.0/libtk.a ../tcl7.4/libtcl.a ../tk4.0/libtk.a
> ../tcl7.4/libt
> cl.a -L/usr/openwin/lib -lX11 -lsocket -lnsl -lm \
> -o bigwish
> Undefined first referenced
> symbol in file
> dn_expand ../scotty-2.0.2/libscotty.a(dns.o)
> _res ../scotty-2.0.2/libscotty.a(dns.o)
> res_mkquery ../scotty-2.0.2/libscotty.a(dns.o)
> dn_skipname ../scotty-2.0.2/libscotty.a(dns.o)
> res_send ../scotty-2.0.2/libscotty.a(dns.o)
> res_init ../scotty-2.0.2/libscotty.a(dns.o)
> ld: fatal: Symbol referencing errors. No output written to bigwish
> *** Error code 1
> make: Fatal error: Command failed for target `bigwish'
>

Off the cuff, those look like DNS resolver stuff. Try adding a -lresolv to
the compilation line.

=============================================================================
Keith Dart email: Keith_Dart@ins.com
Network Systems Engineer 71011.3122@compuserve.com
International Network Services pager: 800-315-4145 or 800-INS-1-INS
650 Castro St. email-page: ins_Dart_Keith@metrocall.com
suite 260 voice: 415-254-0800
Mountain View, CA 94041 fax: 415-254-4288
=----------------------------------------------------------------------------
Client site: MFS datanet phone: 408-975-1528
=============================================================================