[Lcdproc] hmmm, compile for OS X

Russell Jones spam@codeofficer.com
Sun Dec 3 14:13:01 2006


Thanks Peter!

I will check things out this evening and report back.

-Russ Jones

On Dec 3, 2006, at 7:08 AM, Peter Marschall wrote:

> Hi Russell,
>
> On Friday, 1. December 2006 12:33, Russell Jones wrote:
>> I'm BCC'ing Mike as well. Thanks for the tip mike, you got me one
>> step further in my pursuit!
>>
>> UPDATE:
>>
>> I did some homework and found that if i took eric's build files and
>> ran "make clean" and then a:
>>
>> make CFLAGS=-fnested-functions
>>
>> ... then I am able to get past the errors about nesting. Now however
>> I am getting an error further down like this:
>>
>> /usr/bin/ld: -allow_stack_execute can only be used when output file
>> type is MH_EXECUTE
>> collect2: ld returned 1 exit status
>> make[3]: *** [bayrad.so] Error 1
>> make[2]: *** [all-recursive] Error 1
>> make[1]: *** [all-recursive] Error 1
>> make: *** [all] Error 2
>>
>> Not quite sure what to make of this one, I did find lots of seemingly
>> relevant text about it on this page (http://developer.apple.com/
>> documentation/Darwin/Reference/ManPages/man1/ld.1.html), though its a
>> bit above my level of understanding.
>
> I have just committed a patch to configfile.c in CVS that hides the
> whole code that uses the nested function behind and #ifdef.
> This is possible because the code using the nested function
> is not used at all ;-)
>
> The patch compiles file, but it is untested.
> Please test and report feedback.
>
> Peter
>
> -- 
> Peter Marschall
> peter@adpm.de
> _______________________________________________
> LCDproc mailing list
> LCDproc@lists.omnipotent.net
> http://lists.omnipotent.net/mailman/listinfo/lcdproc
>