help-smalltalk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-smalltalk] Trouble compiling smalltalk-1.95.3 on Solaris2.6 Ultra1


From: Michel Train
Subject: [Help-smalltalk] Trouble compiling smalltalk-1.95.3 on Solaris2.6 Ultra1
Date: Wed, 28 Feb 2001 10:11:11 +0100

Hello,

I'm trying to compile on Solaris and run into some troubles :
1) I had to modify root Makefile to compile examples after lib-src (as they need
a library there)
2) I substitute `which gawk` by the actual path in i18n Makefile to prevent a
sed error
That was the easy part.

No I crash in printObject. The first time it was with a 0x0 parameter si I
modify the function. Now it seams that I have got something supposed to be an
OOP and that is not. Here is the trace :

make[2]: Entering directory `/home/export/Gnu/smalltalk-1.95.3'
/bin/sh ./libtool --mode=link gcc  -fno-inline-functions -fno-unroll-loops
-fno-gcse -g -O2  -o gst -export-dynamic main.o libgst/libgst.la  -lnsl -lsocket
-lm 
gcc -fno-inline-functions -fno-unroll-loops -fno-gcse -g -O2 -o gst main.o
libgst/.libs/libgst.a -lnsl -lsocket -lm -ldl -lnsl -lsocket -lm -lnsl -lsocket
-lm
SMALLTALK_KERNEL=`cd ./kernel; pwd`; \
export SMALLTALK_KERNEL; \
./gst -iQ dummy_file
SmallInteger class()>>/home/export/Gnu/smalltalk-1.95.3/kernel/Builtins.st:37:
Segmentation violation
UndefinedObject>>#executeStatements
<bottom>
Segmentation Fault - core dumped
make[2]: *** [gst.im] Error 139
make[2]: Leaving directory `/home/export/Gnu/smalltalk-1.95.3'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/export/Gnu/smalltalk-1.95.3'
make: *** [all-recursive-am] Error 2
address@hidden:smalltalk-1.95.3 > gdb gst core
GNU gdb 5.0
Copyright 2000 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "sparc-sun-solaris"...
Core was generated by `./gst -iQ dummy_file'.
Program terminated with signal 11, Segmentation Fault.
Reading symbols from /usr/lib/libnsl.so.1...done.
Loaded symbols for /usr/lib/libnsl.so.1
Reading symbols from /usr/lib/libsocket.so.1...done.
Loaded symbols for /usr/lib/libsocket.so.1
Reading symbols from /usr/lib/libm.so.1...done.
Loaded symbols for /usr/lib/libm.so.1
Reading symbols from /usr/lib/libdl.so.1...done.
Loaded symbols for /usr/lib/libdl.so.1
Reading symbols from /usr/lib/libc.so.1...done.
Loaded symbols for /usr/lib/libc.so.1
Reading symbols from /usr/lib/libmp.so.2...done.
Loaded symbols for /usr/lib/libmp.so.2
Reading symbols from /usr/platform/SUNW,Ultra-1/lib/libc_psr.so.1...done.
Loaded symbols for /usr/platform/SUNW,Ultra-1/lib/libc_psr.so.1
#0  0x4bc78 in printObject (oop=0x10099594) at oop.c:427
427         } else if (oopClass(oop) == charClass) {
(gdb) where
#0  0x4bc78 in printObject (oop=0x10099594) at oop.c:427
#1  0x21f9c in sendMessageInternal (sendSelector=0x200990d0, sendArgs=1, 
    receiver=0x20096890, methodClass=0x20097188) at interp-bc.inl:266
#2  0x2d324 in interpret () at interp-bc.inl:2639
#3  0x3ea64 in executeStatements (temporaries=0x0, statements=0x941f8, 
    quiet=true) at comp.c:517
#4  0x1c1fc in yyparse () at gst.y:129
#5  0x1f2a4 in parseStream () at lex.c:927
#6  0x1a5f8 in processFile (
    fileName=0xefffcf98 "/home/export/Gnu/smalltalk-1.95.3/kernel/Builtins.st",
quiet=true) at lib.c:750
#7  0x1a2b4 in loadStandardFiles () at lib.c:640
#8  0x19c28 in initSmalltalk () at lib.c:453
#9  0x19660 in main (argc=3, argv=0xefffd504) at main.c:50
(gdb) up
#1  0x21f9c in sendMessageInternal (sendSelector=0x200990d0, sendArgs=1, 
    receiver=0x20096890, methodClass=0x20097188) at interp-bc.inl:266
266         printObject(methodData->selectorOOP);
(gdb) up
#2  0x2d324 in interpret () at interp-bc.inl:2639
2639          sendMessage(methodLiteral(1), 1, false);
(gdb) 

Any clue ?

-- 
Michel TRAIN                       mailto:address@hidden
Bell Laboratories                  Tel.: (+33) 299 848336
Lucent Technologies INS France     Fax.: (+33) 299 848311
13, sq. du Chene Germain / 35510 Cesson-Sevigne / France



reply via email to

[Prev in Thread] Current Thread [Next in Thread]