<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">In the end, I didn't have the time to find a deep fix and instead resorted to compiling the external sources into the application. Thankfully, everything is working and I can make the release.<div class=""><br class=""></div><div class="">When I revisit building Pd for native Apple arm64, I imagine this issue will need to be fixed for general dynamic external usage.<br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Jun 10, 2021, at 1:48 AM, Dan Wilcox <<a href="mailto:danomatika@gmail.com" class="">danomatika@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">More likely that my additions to pd-lib-builder form arm64 are incomplete. I’m just sure where to start debugging.<br class=""><br class="">enohp ym morf tnes<br class="">-----------<br class="">Dan Wilcox<br class=""><a href="http://danomatika.com" class="">danomatika.com</a><br class="">robotcowboy.com<br class=""><br class=""><br class=""><blockquote type="cite" class="">On Jun 10, 2021, at 12:11 AM, Miller Puckette <msp@ucsd.edu> wrote:<br class=""><br class="">Hmm... I think if there are 100s of undefined symbols the extern loader<br class="">in Pd only reports one of them (seemingly choosing one at random).  So this<br class="">is probably a failure of dlopen to see any symbols from the calling pd at<br class="">all.<br class=""><br class="">But why this should happen for arm and not for intel arch escapes me...<br class="">perhaps Mac has added some more hurdles to dynamically loading code, but<br class="">only turned them on for arm?<br class=""><br class="">M<br class=""><br class=""><blockquote type="cite" class="">On Wed, Jun 09, 2021 at 11:57:47PM +0200, Dan Wilcox wrote:<br class="">Howdy all,<br class=""><br class="">I'm building an application which uses libpd and a couple pre-compiled externals as universal macOS app for x86_64 and arm64 (new Apple CPU). So far, building and signing etc is working but now I'm running into an issue when the externals are being loaded on arm64:<br class=""><br class="">Pd: error:../pd/zirkhoa.d_fat: dlopen(.../pd/zirkhoa.d_fat, 10): Symbol not found: _class_addlist<br class=""> Referenced from:.../pd/zirkhoa.d_fat<br class=""> Expected in: flat namespace<br class="">in .../pd/zirkhoa.d_fat<br class=""><br class="">None of the external sources use class_addlist, so I assume that's something internal? Could this be an issue with the new architecture within libpd / the pd core?<br class=""><br class="">The x86_64 builds run fine on Intel machines.<br class=""><br class="">--------<br class="">Dan Wilcox<br class="">@danomatika <https://urldefense.proofpoint.com/v2/url?u=http-3A__twitter.com_danomatika&d=DwIFAg&c=-35OiAkTchMrZOngvJPOeA&r=XprZV3Fxus2L1LCw80hE4Q&m=u49QYs0av5sCAWq6vJXjNrgCURqVPfBMRfDJ4M2Rc8k&s=LvNXgYHyFcUCyShMQ0mI_Ll4R4pH0Kgn8yAJkEgekOg&e= ><br class="">danomatika.com <https://urldefense.proofpoint.com/v2/url?u=http-3A__danomatika.com_&d=DwIFAg&c=-35OiAkTchMrZOngvJPOeA&r=XprZV3Fxus2L1LCw80hE4Q&m=u49QYs0av5sCAWq6vJXjNrgCURqVPfBMRfDJ4M2Rc8k&s=SKBh_sypC3yNes38ScMl41aB_Z3esQJ-E7BS6Djq9CQ&e= ><br class="">robotcowboy.com <https://urldefense.proofpoint.com/v2/url?u=http-3A__robotcowboy.com_&d=DwIFAg&c=-35OiAkTchMrZOngvJPOeA&r=XprZV3Fxus2L1LCw80hE4Q&m=u49QYs0av5sCAWq6vJXjNrgCURqVPfBMRfDJ4M2Rc8k&s=Fqk66GY9Z4SMR9e-lkW8PowtnWg_LgRFEfy-FOBWXCU&e= ><br class=""><br class=""><br class=""><br class=""></blockquote><br class=""><blockquote type="cite" class="">_______________________________________________<br class="">Pd-dev mailing list<br class="">Pd-dev@lists.iem.at<br class="">https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.puredata.info_listinfo_pd-2Ddev&d=DwICAg&c=-35OiAkTchMrZOngvJPOeA&r=XprZV3Fxus2L1LCw80hE4Q&m=u49QYs0av5sCAWq6vJXjNrgCURqVPfBMRfDJ4M2Rc8k&s=BwbmzaM2LCbKPnuuD2nvhbl_nvQAd9F1jwopG6evKpY&e= <br class=""></blockquote><br class=""><br class="">-- <br class=""></blockquote></div></div></blockquote></div><br class=""><div class="">
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">--------</div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">Dan Wilcox</div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"><a href="http://twitter.com/danomatika" class="">@danomatika</a></div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"><a href="http://danomatika.com" class="">danomatika.com</a></div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"><a href="http://robotcowboy.com" class="">robotcowboy.com</a></div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class=""><br class=""></div><br class="Apple-interchange-newline">
</div>
<br class=""></div></body></html>