[futurebasic] Re: [FB] fb^4 release 3 not working for me

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : October 2007 : Group Archive : Group : All Groups

From: Brian Stevens <bstevens33@...>
Date: Sun, 7 Oct 2007 23:25:39 -0700
On Oct 7, 2007, at 10:39 PM, bob krueger wrote:

> I purchased fb^4 release 3 on July, 2006.  I'm trying to install  
> the program on a macBook that I just acquired.  Howver, I keep  
> getting the following error message:  "The following toolbox items  
> are not available on this computer.  This program may crash if you  
> continue."   Toolbox items listed are:  calloc, close, fcntl,  
> fgetc, free, .... read, realloc, write.
>
> I'm thinking I need to visit the Staz page (stazsoftware.com), but  
> that web page seems to be down at this time.
>
> I have repaired permissions, moved the dmg file onto my drive  
> before opening, opened the dmg and moved the files into a folder.   
> I also searched my futurebasic@... messages.  I noted  
> that some people had problems with compiling applications.  I cant  
> even get FB to open without errors.  Anyone else experience this on  
> macBooks?  Do I need to wait and visit the Staz page when it  
> opens?  Is there a patch that I can use in the meantime?  Thanks in  
> advance for your help.
Bob,

This is a bug that Apple has yet to acknowledge and fix. Here is a  
description of the problem and overview from Robert Purves as posted  
on the beta list. Basically, an Apple-supplied file has the wrong/ 
type creator (see "cause" below) This can easily be corrected using a  
utility (see RP's options). Two other methods are available to  
correct the problem. RP wrote some FB code that we could build for  
you into an app that does the correction. Also, there was an script  
written to do the same thing. This impacts FB because it is compiled  
with the preference option as noted under "Symptoms" in RP's post below

Brian S.

=========== Start RP's post =============

> My customer bought a new Mac mini Core 2 Duo and my program was  
> crashing on it.
>


> I just purchased a Mac Pro and cannot start FB4 R5 beta. I get this  
> window.
>

Here are my thoughts on this serious bug.

Symptoms
--------
[1] Running any FB app compiled with Preferences > Debug 'Verify that  
Toolbox functions are available at program startup' gives an alert:
	The following toolbox items are not available...
	calloc
	close
	fcntl
	...
	realloc
	write


[2] Many but not all FB apps compiled without that Preferences  
setting will crash. An app will crash if it uses
- a dynamic array
- open "C"
- open "UNIX"
- any of the missing functions directly

Occurrence
----------
A Panther beta some months ago, fixed in subsequent builds.
New Macs with 10.4.10 installed.

Cause
-----
/System/Library/CFMSupport/StdCLib has file type 'blhs' instead of  
'shlb'.
The file creator is also wrong ('SCAM' instead of 'MACS').
Owing to the wrong type, the library cannot be found by GetMemFragment 
(), which is called at startup of an FB app.

Workarounds
-----------
[1] Ask all affected users to change the file type to 'shlb'

   [a] sudo /Developer/Tools/SetFile -c MACS -t shlb /System/Library/ 
CFMSupport/StdCLib
       Unreasonably difficult for the average user, who won't have  
Dev Tools installed.

   [b] Use the shareware XRay <http://www.brockerhoff.net/xray>
       Unreasonably difficult for the average user.

   [c] Write a special utility app to fix the file type.

[2] Provide users with a correctly typed new StdCLib file.
     May not work at all if StdCLib file from different OS X build.

   [a] Replace existing defective file in /System/Library/CFMSupport/.
       Complicated installation involving two authentications.
       Trash defective StdCLib, then drag new file to /System/Library/ 
CFMSupport/.

   [b] Put new file in /Library/CFMSupport/, leaving the old one alone.
       No authentication required


Robert P.

========= End RP post ==========


Brian S.