Re: need help making/installing scotty-2.1.1 on sun4

Brenda J. Butler (bjb@mocha.bunyip.com)
Fri, 9 Aug 1996 15:10:22 -0400 (EDT)

Doug,

Thanks for helping me out.

Well, I tried "make distclean" (which fails, by the way, before
it finishes), then did the ./configure, make and make install steps
again. [Regarding the make distclean failure, I didn't investigate,
but I get the impression that make fails because it erases a
makefile in a subdirectory before it finishes using that makefile.]

./configure --prefix=/work/ops/bjb/local/install/sun4 \
--with-tcl-config=/usr/local/pkgs/tcl7.5/lib \
--with-tk-config=/usr/local/pkgs/tk4.1/lib

make

make install

The compile and link steps still proceed cleanly (not even the
"integer-pointer" warnings that compilation on solaris give).
The install stops at the point where scotty has to be run, due
to scotty dumping core in the same place (line 140 of scotty.c)

tclsh and wish both execute properly on buzz.

ldd on tclsh and wish gives:

143 [bjb@buzz.Bunyip.Com] % ldd tclsh7.5
-ldl.1 => /usr/lib/libdl.so.1.0
-lc..1 => /usr/lib/libc.so.1.9.2
144 [bjb@buzz.Bunyip.Com] % pwd
/export/sunos4/packages/tcl7.5/bin
145 [bjb@buzz.Bunyip.Com] % cd ../../tk4.1/bin
146 [bjb@buzz.Bunyip.Com] % ls
wish4.1*
147 [bjb@buzz.Bunyip.Com] % ldd wish4.1
-lX11.4 => /usr/X11R6/lib/libX11.so.4.20
-ldl.1 => /usr/lib/libdl.so.1.0
-lc.1 => /usr/lib/libc.so.1.9.2
148 [bjb@buzz.Bunyip.Com] %

ldd on scotty gives

152 [bjb@buzz.Bunyip.Com] % ldd scotty2.1.1
-ldl.1 => /usr/lib/libdl.so.1.0
-lc.1 => /usr/lib/libc.so.1.9.2
153 [bjb@buzz.Bunyip.Com] % pwd
/work/ops/bjb/local/install/sun4/bin1

I am using gcc version 2.7.2 and ld version 2.6 (with BFD 2.6).

Other people in my company use the tcl that has been installed with
no problems, so they don't really want to re-build it just because
I'm having problems installing scotty.

I have the trace information from the failed scotty run - see the
end of this message.

My next step may be to try using memadvise on scotty, unless someone
can find my problem with the existing info...

As alluded to above, I also tried compiling on solaris. That worked.
Now I just have to try to figure out how to use it.

cheerio,
bjb Brenda Butler bjb@bunyip.com 875-8611 X240

On Fri, 9 Aug 1996, Doug Hughes wrote:

>
> It's strange..
>
> I've compiled on 4.1.3_U1 without any problems. Do your tclsh
> and wish executables from plain Tcl/Tk work okay?
> when you do an ldd on scotty what do you get? Do you get any link
> errors? What compiler and version are you using?
>
> First thing I would try would be building all of scotty (and maybe
> tcl/tk too) from scratch to see if that fixes the problem.
>
> I use SPARCworks 3.0 compilers.
>
> --
> ____________________________________________________________________________
> Doug Hughes Engineering Network Services
> System/Net Admin Auburn University
> doug@eng.auburn.edu

cheerio,
bjb Brenda Butler bjb@bunyip.com 875-8611 X240

------------------------------------------------------------

trace info from failed scotty run:

228 [bjb@buzz.Bunyip.Com] % echo $TNM_LIBRARY
/work/ops/bjb/local/install/sun4/lib/tnm2.1.1
229 [bjb@buzz.Bunyip.Com] % echo $TCLLIBPATH
/usr/local/pkgs/tcl7.5/lib /usr/local/pkgs/tcl7.5/lib/tcl7.5 /usr/local/pkgs/tk4.1/lib /usr/local/pkgs/tk4.1/lib/tk4.1

Say, perhaps I should set these vars differently, or set other ones?
I found I needed all four paths for TCLLIBPATH for the solaris installation.

230 [bjb@buzz.Bunyip.Com] % trace ./scotty
open ("/usr/lib/ld.so", 0, 01063250) = 3
read (3, "".., 32) = 32
mmap (0, 40960, 0x5, 0x80000002, 3, 0) = 0xef7f3000
mmap (0xef7fb000, 8192, 0x7, 0x80000012, 3, 32768) = 0xef7fb000
open ("/dev/zero", 0, 07) = 4
getrlimit (3, 0xeffff6c8) = 0
mmap (0xef800000, 8192, 0x3, 0x80000012, 4, 0) = 0xef800000
close (3) = 0
getuid () = 47
getgid () = 10
open ("/etc/ld.so.cache", 0, 05000100021) = 3
fstat (3, 0xeffff568) = 0
mmap (0, 4096, 0x1, 0x80000001, 3, 0) = 0xef7ef000
close (3) = 0
open ("/usr/X11R6/lib", 0, 01010525) = 3
fstat (3, 0xeffff568) = 0
mmap (0xef802000, 8192, 0x3, 0x80000012, 4, 0) = 0xef802000
getdents (3, 0xef8000e0, 8192) = 536
getdents (3, 0xef8000e0, 8192) = 0
close (3) = 0
open ("/usr/local/packages/tcl7.5/lib", 0, 016) = 3
getdents (3, 0xef8000e0, 8192) = 104
getdents (3, 0xef8000e0, 8192) = 0
close (3) = 0
open ("/usr/local/packages/gnu/gcc-2.7.".., 0, 036) = 3
getdents (3, 0xef8000e0, 8192) = 252
getdents (3, 0xef8000e0, 8192) = 0
close (3) = 0
open ("/usr/local/packages/gnu/gcc-2.7.".., 0, 0110) = 3
getdents (3, 0xef8000e0, 8192) = 52
getdents (3, 0xef8000e0, 8192) = 0
close (3) = 0
open ("/usr/lib/libdl.so.1.0", 0, 01041310) = 3
read (3, "".., 32) = 32
mmap (0, 16396, 0x5, 0x80000002, 3, 0) = 0xef7e7000
mmap (0xef7e9000, 8192, 0x7, 0x80000012, 3, 8192) = 0xef7e9000
close (3) = 0
open ("/usr/lib/libc.so.1.9.2", 0, 01041330) = 3
read (3, "".., 32) = 32
mmap (0, 478480, 0x5, 0x80000002, 3, 0) = 0xef76f000
mmap (0xef7df000, 16384, 0x7, 0x80000012, 3, 458752) = 0xef7df000
mmap (0xef7e3000, 3344, 0x7, 0x80000012, 4, 0) = 0xef7e3000
close (3) = 0
mprotect (0x2000, 278528, 0x7) = 0
mprotect (0x2000, 278528, 0x5) = 0
close (4) = 0
getpagesize () = 4096
brk (0x4c7d8) = 0
brk (0x4d7d8) = 0
getdtablesize () = 256
pipe (0xefffeef0) = 3
vfork () = 21501
close (4) = 0
getdtablesize () = 256
ioctl (3, 0x40125401, 0xefffed8c) = -1 EOPNOTSUPP (Operation not supported on socket)
fstat (3, 0xefffee00) = 0
brk (0x4f7d8) = 0
read (3, "/work/ops/bjb/snmp/scotty/scotty".., 4096) = 44
- SIGCHLD (20)
close (3) = 0
sigblock (0x7) = 0
wait4 (21501, 0xefffeefc, 0, 0) = 21501
sigsetmask (0) = 0x7
brk (0x507d8) = 0
uname (0xeffff430) = 0
sigblock (0x1000) = 0
sigvec (13, 0xeffff3c4, 0xeffff3b8) = 0
sigvec (13, 0xeffff34c, 0) = 0
sigsetmask (0) = 0x1000
brk (0x517d8) = 0
- SIGSEGV (11)
231 [bjb@buzz.Bunyip.Com] %