[PD-dev] loaderHEX bug and fix

Hans-Christoph Steiner hans at eds.org
Tue Nov 22 05:48:36 CET 2005


So I included the loaderHEX patch in my latest Mac OS X build. I got  
this behavior:

tried  
Pd-0.38.4-extended-RC3/Pd-0.38.4-extended-RC3.app/Contents/Resources/ 
extra/fiddle~.pd_darwin and succeeded
load_object: Symbol "_fiddle~fiddle0x7e_setup" not found
load_object: Symbol "_setup_" not found


The fix is within the #ifdef MACOSX, strcat(symname, altname) should be  
strcat(altsymname, altname);


The original code:

----------------------------------------
#ifdef MACOSX
     strcpy(symname, "_");
     strcat(symname, nameptr);
     if(altname)
       {
         strcpy(altsymname, "_setup_");
         strcat(symname, altname);
       }
#else
----------------------------------------

should be:

----------------------------------------
#ifdef MACOSX
     strcpy(symname, "_");
     strcat(symname, nameptr);
     if(altname)
       {
         strcpy(altsymname, "_setup_");
         strcat(altsymname, altname);
       }
#else
----------------------------------------

I checked this fix into patch that's part of the Pd-extended build  
system:

packages/patches/loaderHEX-0.39-1.patch

.hc





________________________________________________________________________ 
____

                             http://at.or.at/hans/





More information about the Pd-dev mailing list