Xojo Conferences
XDCMay2019MiamiUSA

Re: sinit in the Plugin SDK (Real Studio Plugins Mailinglist archive)

Back to the thread list
Previous thread: Xcode 4.0
Next thread: REALGetControlHWND or REALGetControlHandle used in the Windows IDE


Re: sinit in the Plugin SDK   -   Theodore H. Smith
   sinit in the Plugin SDK   -   Björn Eiríksson <b
    Re: sinit in the Plugin SDK   -   Björn Eiríksson <b
    Re: sinit in the Plugin SDK   -   Christian Schmitz

Re: sinit in the Plugin SDK
Date: 04.03.11 22:22 (Fri, 4 Mar 2011 21:22:35 +0000)
From: Theodore H. Smith
Hi all,

I had the same problem recently, with a customer complaining about __sinit and my ElfData plugin not being allowed into the Mac store.

I just removed __sinit.

It was only needed for OSX 10.4 PPC.

OSX 10.4 Intel = OK without
OSX 10.5 PPC = OK without

And obviously 10.5 and above are good without __sinit. No idea if this is right or wrong, but I cannot sacrifice the future for the past.

Apple don't support PPC very well now so... this is their own fault, not mine. I can't be asked to support something that apple refuse to allow.

"This is apples official policy"... is the only answer I can give if someone complains that my plugin doesn't work on 10.4 PPC anymore.

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

sinit in the Plugin SDK
Date: 03.03.11 20:59 (Thu, 3 Mar 2011 19:59:35 +0000)
From: Björn Eiríksson <b
So this guy here ? is it the one that App store does not like ? And if so then what is REAL recommending here given its in the standard plugin SDK ?

#if !NOSTATICINIT
#if TARGET_CPU_PPC
extern "C" void __sinit(void);
#elif TARGET_68K
extern "C" far void __InitCode__(void);
#endif
#endif

#if TARGET_OS_MAC
#if !NOSTATICINIT
#if TARGET_CPU_PPC
__sinit();
#elif TARGET_68K
__InitCode__();
#endif
#endif
#endif

Have seen a number of users complain about it but I don't know for sure if the Plugin SDK is the source of it ?

"The non-public API that is included in your application is '__sinit' from the framework </usr/lib/libSystem.B.dylib>"

Re: sinit in the Plugin SDK
Date: 03.03.11 22:00 (Thu, 3 Mar 2011 21:00:00 +0000)
From: Björn Eiríksson <b
Thanks at least I know what to tell them now.

On 3.3.2011, at 20:16, Christian Schmitz wrote:

>
> On 03.03.2011, at 20:59, Björn Eiríksson wrote:
>
>> So this guy here ? is it the one that App store does not like ? And if so then what is REAL recommending here given its in the standard plugin SDK ?
>
> __sinit() is part of Apple's dylib code for PPC.
>
> With forbidding __sinit they forbid PPC apps and libraries.
>
> For my customers so far they simply need to compile Intel only and it's okay.
>
> But I know that one other plugin vendor managed to get __sinit into his intel code...
>
> Greetings
> Christian
>
> --
> See you in Essen, Germany at the REAL Studio Conference 2011
>
> Registration and details here:
> http://www.realsoftware.de/events/realcon2011essen/
>
>
>
> _______________________________________________
> Unsubscribe or switch delivery mode:
> <http://www.realsoftware.com/support/listmanager/>
>
> Search the archives:
> <http://support.realsoftware.com/listarchives/lists.html>

--

Re: sinit in the Plugin SDK
Date: 03.03.11 21:16 (Thu, 3 Mar 2011 21:16:29 +0100)
From: Christian Schmitz

On 03.03.2011, at 20:59, Björn Eiríksson wrote:

> So this guy here ? is it the one that App store does not like ? And if so then what is REAL recommending here given its in the standard plugin SDK ?

__sinit() is part of Apple's dylib code for PPC.

With forbidding __sinit they forbid PPC apps and libraries.

For my customers so far they simply need to compile Intel only and it's okay.

But I know that one other plugin vendor managed to get __sinit into his intel code...

Greetings
Christian

--