[PD-dev] loaderHEX bug report

Hans-Christoph Steiner hans at eds.org
Tue Nov 22 16:32:13 CET 2005


On Nov 22, 2005, at 4:54 AM, IOhannes m zmoelnig wrote:

> Hans-Christoph Steiner wrote:
>> So the [fiddle~] bug is fixed, here's a new one (from OSX):
>> Launch Pd:
>> hans at sla:darwin_app > build/Pd.app/Contents/Resources/bin/pd -verbose  
>>  -stderr
>> Try to use included [mtx_*]:
>> tried /Users/hans/cvs/pure-data/packages/darwin_app/mtx_*.pd_darwin  
>> and  failed
>> tried  
>> /Users/hans/cvs/pure-data/externals/build/darwin/mtx_*.pd_darwin  and  
>> failed
>> tried build/Pd.app/Contents/Resources/extra/mtx_*.pd_darwin and failed
>> tried   
>> /Users/hans/cvs/pure-data/packages/darwin_app/mtx_*/mtx_*.pd_darwin  
>> and  failed
>> tried   
>> /Users/hans/cvs/pure-data/externals/build/darwin/mtx_*/ 
>> mtx_*.pd_darwin  and failed
>> tried build/Pd.app/Contents/Resources/extra/mtx_*/mtx_*.pd_darwin and  
>>  failed
>> tried  
>> /Users/hans/cvs/pure-data/packages/darwin_app/mtx_0x2a.pd_darwin  and  
>> failed
>> tried   
>> /Users/hans/cvs/pure-data/externals/build/darwin/mtx_0x2a.pd_darwin  
>> and  succeeded
>
> so it succeeds here to find the external. however it fails to load the  
> setup function. it then stops to search for more mtx_0x2a.pd_darwin  
> files.
>
> why?
> because the setup-function is not "mtx_0x2a_setup()" but rather  
> "setup_mtx_0x2a()".
> in build/mtx_0x2a.c the wrong setup-function is defined.


Ah, thanks... it was a long day.  Did you get the other bug report?   
That one is a bug in the patch... really!  ;)

I have a question, why did you reverse the order of the original  
stantard setup function?

i.e. original = mtx_+_setup()    altname =  setup_mtx_0x2a()

I think that just makes things confusing and causes bugs, well, like  
the one we just talked about.

.hc

>
>
>> tried  /Users/hans/cvs/pure-data/packages/darwin_app/mtx_*/mtx_*/  
>> mtx_0x2a.pd_darwin and failed
>
> this is weird.
> i think it should try to search for mtx_0x2a/mtx_0x2a.pd_darwin  
> instead of mtx_*/mtx_*/mtx_0x2a.pd_darwin.
>
>> It is indeed there:
>> hans at sla:darwin_app > ls -l   
>> build/Pd.app/Contents/Resources/extra/mtx_0x2a.pd_darwin
>> -rwxr-xr-x    1 hans     staff       48792 Nov 22 00:05   
>> build/Pd.app/Contents/Resources/extra/mtx_0x2a.pd_darwin*
>> But it never looks for:
>> build/Pd.app/Contents/Resources/extra/mtx_0x2a.pd_darwin
>
> see above: since it already found a mtx_0x2a.pd_darwin it stops  
> looking for another one.
>
> mfg.asdr
> IOhannes
>

________________________________________________________________________ 
____

"If nature has made any one thing less susceptible than all others of  
exclusive property, it is the action of the thinking power called an  
idea, which an individual may exclusively possess as long as he keeps  
it to himself; but the moment it is divulged, it forces itself into the  
possession of everyone, and the receiver cannot dispossess himself of  
it."
                                                        - Thomas  
Jefferson





More information about the Pd-dev mailing list