On Sun, Aug 21, 2011 at 7:23 PM, Thijs Alkemade <thijsalkem...@gmail.com>wrote:

>
> On 21 aug. 2011, at 23:47, comm...@adium.im wrote:
>
> details: http://hg.adium.im/adium-1.4/rev/062a27e5858b
> revision: 3614:062a27e5858b
> branch: (none)
> author: Evan Schoenberg
> date: Sun Aug 21 16:17:51 2011 -0500
>
> Added MAZeroingWeakRef
> (transplanted from 13d1f4765a893ca51ac912172b365f4ddae937d2)
> Subject: adium-1.4 3615:dd4b532eb0d5: Silenced some more nib warnings in
> xcode 4.2
>
>
> I didn't check what this is used for or what it is, but it breaks our
> build:
>
> ---
>
> Undefined symbols:
>   "__Block_object_dispose", referenced from:
>       ___destroy_helper_block_4 in MAZeroingWeakRef.o
>       ___destroy_helper_block_4 in MAZeroingWeakRef.o
>       ___Block_byref_id_object_dispose3.94842 in MAZeroingWeakRef.o
>       ___destroy_helper_block_3 in MAZeroingWeakRef.o
>       ___destroy_helper_block_2 in MAZeroingWeakRef.o
>       ___destroy_helper_block_2 in MAZeroingWeakRef.o
>       ___destroy_helper_block_1 in MAZeroingWeakRef.o
>       -[MAZeroingWeakRef target] in MAZeroingWeakRef.o
>   "__Block_object_assign", referenced from:
>       ___copy_helper_block_4 in MAZeroingWeakRef.o
>       ___copy_helper_block_4 in MAZeroingWeakRef.o
>       ___Block_byref_id_object_copy3.94838 in MAZeroingWeakRef.o
>       ___copy_helper_block_3 in MAZeroingWeakRef.o
>       ___copy_helper_block_2 in MAZeroingWeakRef.o
>       ___copy_helper_block_2 in MAZeroingWeakRef.o
>       ___copy_helper_block_1 in MAZeroingWeakRef.o
>   "__NSConcreteStackBlock", referenced from:
>       __NSConcreteStackBlock$non_lazy_ptr in MAZeroingWeakRef.o
>      (maybe you meant: __NSConcreteStackBlock$non_lazy_ptr)
> ld: symbol(s) not found
> collect2: ld returned 1 exit status
>
> ---
>
> (
> http://buildbot.adium.im/builders/adium-1.4/builds/552/steps/compile/logs/stdio
> )
>
> It looks like this is because blocks can't be used on 10.5.
>
>

Look further in the file and you'll see that there are if blocks for
checking to see if NSBlocks is available or not:

http://hg.adium.im/adium-1.4/rev/062a27e5858b#l10.42 for instance.

Maybe there's just one or two missing that?

Chris


> Thijs
>

Reply via email to