Picon
Favicon
Gravatar

Re: Symbol not found: _TclFreeObj on 64-bit builds


On Jan 30, 2012, at 3:01 PM, Michael Schlenker wrote:

> 
> Am 30.01.2012 um 05:14 schrieb Hans-Christoph Steiner:
> 
>> 
>> We have an odd error in our app Pd-extended.  Its a media programming environment that we recently added
the ability to write objects in Tcl.  This is done using swig to wrap the Pd C API for Tcl.  That's working
great, but we have this odd error:
>> 
>> On 32-bit builds, everything works fine, they are currently built on 10.5.8 and seem to run fine on 10.5 -
10.7.  For the 64-bit builds, when the 'tclpd' library is loaded, it throws this error:
>> 
>> Symbol not found: _TclFreeObj
>> 
>> The 64-bit builds are built on 10.6.8 and I'm running it on 10.6.8.  Both of these apps are using a custom
build of plain vanilla Tcl/Tk 8.5.10.
> 
> TclFreeObj() should be an internal symbol from the name, which is only exposed due to the Tcl_DecRefCount
macro, but is actually defined in the Stubs Table slot 30, so it should be visible for a stubs enabled build
at least.
> 
> Are you using stubs or linking directly?
> 
> Michael

I don't quite understand the question.  So tclpd.pd_darwin is a bundle/plugin that is linking to the Tcl
framework using "-framework Tcl"  That Tcl 8.5.10 framework is built using:

(Continue reading)

Kevin Walzer | 5 Feb 15:27

Re: Symbol not found: _TclFreeObj on 64-bit builds

On 2/4/12 11:58 PM, Hans-Christoph Steiner wrote:
>   /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4"

Could this be the issue--support for 10.4? 10.5 is the minimum supported 
OS for 64-bit Tk-Cocoa. Try adjusting these flags.

--

-- 
Kevin Walzer
Code by Kevin
http://www.codebykevin.com

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
Picon
Favicon
Gravatar

Re: Symbol not found: _TclFreeObj on 64-bit builds


On Feb 5, 2012, at 9:27 AM, Kevin Walzer wrote:

> On 2/4/12 11:58 PM, Hans-Christoph Steiner wrote:
>>  /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4"
> 
> Could this be the issue--support for 10.4? 10.5 is the minimum supported 
> OS for 64-bit Tk-Cocoa. Try adjusting these flags.

I figured it out.  The included Tcl.framework is built as 32-bit, which this 64-bit plugin then tries to use
at runtime.  Normally in this app, it works find to have a 32-bit Tcl/Tk while the core of the app is 64-bit
because they talk via a network socket. For this particular plugin, the 64-bit binary side needs to use the
Tcl.framework, and the included one is only 32-bit.

I guess I need to work on the transition to Tk/Cocoa :)

.hc

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

"[W]e have invented the technology to eliminate scarcity, but we are deliberately throwing it away to
benefit those who profit from scarcity."        -John Gilmore

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
(Continue reading)

Kevin Walzer | 5 Feb 23:54

Re: Symbol not found: _TclFreeObj on 64-bit builds

On 2/5/12 12:56 PM, Hans-Christoph Steiner wrote:
> I guess I need to work on the transition to Tk/Cocoa:)

You won't regret it. :-) I'd love to play with a stable Cocoa build of PD.

--

-- 
Kevin Walzer
Code by Kevin
http://www.codebykevin.com

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
Picon
Favicon
Gravatar

Re: Symbol not found: _TclFreeObj on 64-bit builds


On Feb 5, 2012, at 5:54 PM, Kevin Walzer wrote:

> On 2/5/12 12:56 PM, Hans-Christoph Steiner wrote:
>> I guess I need to work on the transition to Tk/Cocoa:)
> 
> You won't regret it. :-) I'd love to play with a stable Cocoa build of PD.

Yeah, I think its a big improvement, but Pd is an old Tcl app, started in '94, so moving it forward always comes
with little pains ;)

.hc

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

I spent 33 years and four months in active military service and during that period I spent most of my time as a
high class muscle man for Big Business, for Wall Street and the bankers.      - General Smedley Butler

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2

Gmane