Re: make install error

Erik Schoenfelder (schoenfr@gaertner.de)
Tue, 24 Dec 96 00:59:56 +0100

Hi!

On Mon, 23 Dec 96 17:13:08 CST,
jayj@comm.mot.com (Jay W. Jung) said:

Jay> Do I have to do "make install" to use Scotty and Tkined?

Because the extension is loaded at runtime, it must be avail at a
defined place (well, defined places). The make install step makes
sure the extension is installed and then found. Additional at runtime
files like init.tcl are searched at the installation place, and will
likely cause errors if not avail.

Jay> I was getting error as below while doing "make install";

Jay> $ make install
Jay> Installing scotty2.1.5 and tnm2.1.5.so
Jay> [...]
Jay> Installing ./../tnm/library/init.tcl
Jay> ld.so: Undefined symbol: __res
Jay> make: *** [tnm-install-library] Error 127

Maybe you are running Linux with a resolv.h header not included in the
libc distribution (using one from a installation of the bind package) ?

This except from the
http://wwwsnmp.cs.utwente.nl/~schoenw/scotty/porting.notes
may help you:

> Some Linux systems either fail to compile the tnmDns.c module or they
> report unresolved symbols errors when loading the Tnm extensions.
> [...]
> ... and you get unresolved symbols, try to work around the problem by
> uncommenting the -lresolv linker switch in the Makefile and relinking
> the Tnm loadable module.

just try it.
Erik