Unix: update #4640 crash. Also,VMMaker problem.

John M McIntosh johnmci at smalltalkconsulting.com
Tue Jan 22 23:57:15 UTC 2002


>The difference is the use of "off_t". Doing a search for "#define off_t"
>revealed it was defined as "int", but only in
>platforms/win32/vm/sqPlatformSpecific.h. (This is why I think something
>might be missing from SF). So I replace the reference to off_t with
>"int" and compile.

Just this morning I replaced all usages of off_t with squeakFileOffsetType.
You must define that type in your sqPlatformSpecific.h as what you 
would feed to fseeko or fseek for your platform. This might be long, 
unsigned long, or unsigned long long. Some of the unix docs imply 
that it's off_t but given you don't have that you must look to see 
what your file subsystem will support.



>Everything compiles, but it does not link. The error:
>
>   sqVirtualMachine.o: In function `sqGetInterpreterProxy':
>
>/home/swerling/mydesk/squeak/SourceForge/src/vm/sqVirtualMachine.c:306:
>undefined reference to `positive64BitIntegerFor'
>
>/home/swerling/mydesk/squeak/SourceForge/src/vm/sqVirtualMachine.c:307:
>undefined reference to `positive64BitValueOf'
>
>/home/swerling/mydesk/squeak/SourceForge/src/vm/sqVirtualMachine.c:308:
>undefined reference to `signed64BitIntegerFor'
>
>/home/swerling/mydesk/squeak/SourceForge/src/vm/sqVirtualMachine.c:309:
>undefined reference to `signed64BitValueOf'
>
>(I'm sorry this is such a long message, but it's been awhile since I've
>done any c programming, I'm not sure what I can edit out).
>
>So that where I am currently stuck.]

You need to build a VM using an image at change set 4649 or higher to 
pickup the 64bit file support functions that you are missing as 
listed above, with of course the VMMaker change sets applied. You 
also need to apply the [BUG][FIX] rework of 64bit file support change 
set I posted this morning to resolve issues with off_t and 
squeakFileOffsetType and some 64 to 32bit truncation issues.


-- 
--
===========================================================================
John M. McIntosh <johnmci at smalltalkconsulting.com> 1-800-477-2659
Corporate Smalltalk Consulting Ltd.  http://www.smalltalkconsulting.com
===========================================================================



More information about the Squeak-dev mailing list