[tkined] fatal: relocation error:

Rickard Cedergren (rickard.cedergren@tb.su.se)
Thu, 15 Jan 1998 14:01:04 +0100

This is what i have to play with...

# uname -a
SunOS helios 5.6 Generic sun4u sparc SUNW,Ultra-1
# ls -al /usr/local/lib
total 27594
drwxrwxr-x 15 rickard staff 1024 Jan 15 13:05 .
drwxrwxr-x 19 root staff 512 Jan 14 14:35 ..
drwxrwxr-x 4 root staff 3584 Dec 12 12:10 g++-include
drwxrwxr-x 4 9803 staff 512 Jan 14 14:57 gcc-lib
-rwxr-xr-x 2 rickard staff 1163970 Jan 14 15:19 ld.so
-rw-r--r-- 1 rickard staff 71218 Jan 14 14:06 lib44bsd.a
-rw-r--r-- 1 rickard staff 1498344 Jan 14 15:15 libbfd.a
-rw-r--r-- 1 rickard staff 1754992 Jan 14 14:06 libbind.a
lrwxrwxrwx 1 rickard staff 9 Jan 14 14:25 libbind.so ->
libbind.a
-rw-r--r-- 1 root other 1452840 Dec 12 12:10 libg++.a
-rw-r--r-- 1 rickard staff 178922 Jan 14 15:16 libiberty.a
-rwxrwxr-x 1 root staff 853294 Nov 21 09:54 libiostream.a
-rwxr-xr-x 2 rickard staff 1163970 Jan 14 15:19 liblocal.so
-rw-r--r-- 1 rickard staff 215264 Jan 14 15:15 libopcodes.a
-r--r--r-- 1 bin bin 119240 Dec 11 15:26 libpcap.a
-rw-r--r-- 1 root other 1402876 Dec 12 12:10 libstdc++.a
-r-xr-xr-x 1 rickard staff 449002 Jan 15 12:58 libtcl7.6.a
-r-xr-xr-x 1 rickard staff 679700 Jan 14 10:38 libtcl8.0.a
-r-xr-xr-x 1 rickard staff 853850 Jan 15 13:02 libtk4.2.a
-r-xr-xr-x 1 rickard staff 937648 Jan 14 08:21 libtk8.0.a
drwxrwxr-x 10 root staff 512 Jan 9 15:55 locale
drwxrwxr-x 29 root staff 2048 Nov 23 18:39 perl5
-rw-r--r-- 1 rickard staff 60558 Dec 11 08:20 strobe.services
drwxr-xr-x 2 rickard staff 512 Jan 15 12:58 tcl7.6
drwxr-xr-x 5 rickard staff 512 Jan 14 10:39 tcl8.0
-rw-r--r-- 1 rickard staff 4303 Jan 15 12:58 tclConfig.sh
drwxr-xr-x 3 rickard staff 1024 Jan 15 13:02 tk4.2
drwxr-xr-x 3 rickard staff 1024 Jan 14 08:21 tk8.0
-rw-r--r-- 1 rickard staff 1719 Jan 15 13:02 tkConfig.sh
drwxr-xr-x 5 rickard staff 512 Jan 14 10:11 tkined1.4.7
-r-xr-xr-x 1 rickard staff 132095 Jan 14 10:10 tkined1.4.7.so
drwxr-xr-x 3 rickard staff 512 Jan 15 13:05 tnm2.1.5
-r-xr-xr-x 1 rickard staff 295492 Jan 15 13:05 tnm2.1.5.so
drwxr-xr-x 3 rickard staff 512 Jan 7 16:23 tnm2.1.7
-r-xr-xr-x 1 rickard staff 288724 Jan 14 14:29 tnm2.1.7.a
-r-xr-xr-x 1 rickard staff 288724 Jan 15 12:17 tnm2.1.7.so
drwxrwxr-x 4 root staff 512 Aug 14 11:34 xemacs
drwxrwxr-x 6 root staff 512 Aug 14 11:34 xemacs-19.15
#
I allso have scotty-2.1.5 and scotty-2.1.7.
Binutils 2.8.1 , Bind 4.9.6

I get this error when i try to do a 'make install' in
/usr/local/src/scotty-2.1.5/unix (with tk4.2 and tcl7.6)

[rickard@helios unix]$ make install
Making directory /usr/local/lib/tnm2.1.5
Installing scotty2.1.5 and tnm2.1.5.so
Making directory /usr/local/lib/tnm2.1.5/library
Installing ./../tnm/library/README
Installing ./../tnm/library/dialog.tcl
Installing ./../tnm/library/output.tcl
Installing ./../tnm/library/snmp.tcl
Installing ./../tnm/library/monitor.tcl
Installing ./../tnm/library/obsolete.tcl
Installing ./../tnm/library/init.tcl
initialization failed: couldn't load file "/usr/local/lib/tnm2.1.5.so":
ld.so.1: ./scotty: fatal: relocation error: file
/usr/local/lib/tnm2.1.5.so: symbol Tcl_SetVar2: referenced symbol not
found
make: *** [tnm-install-library] Error 1
[rickard@helios unix]$

...and i get this when i do it in /usr/local/src/scotty-2.1.7/unix (with

tk8.0 and tcl 8.0)

[rickard@helios unix]$ make install
Installing scotty2.1.7 and tnm2.1.7.so
Installing ./../tnm/library/README
Installing ./../tnm/library/dialog.tcl
Installing ./../tnm/library/output.tcl
Installing ./../tnm/library/snmp.tcl
Installing ./../tnm/library/monitor.tcl
Installing ./../tnm/library/obsolete.tcl
Installing ./../tnm/library/init.tcl
initialization failed: couldn't load file "/usr/local/lib/tnm2.1.7.so":
ld.so.1: ./scotty: fatal: relocation error: file
/usr/local/lib/tnm2.1.7.so: symbol Tcl_TraceVar: referenced symbol not
found
make: *** [tnm-install-library] Error 1
[rickard@helios unix]$

I have seen others with the same problem, but i havent seen any answers
that works... What should i do?
I have Scotty in the Linux2.x.x environment and that one is working just

great!
Please help!

/Rickard Cedergren (rickard.cedergren@tb.su.se

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