Hi there,

in addition to the things that have already been pointed out, I'd like  
to make another comment, see bewlo.


Am 02.03.2010 um 18:49 schrieb Pranay Airan:

> so i figured out the way to resolve this problem. i am putting our  
> own _structs.h into /sw/include folder and it is compiling from  
> there, but now i am facing a new problem when i am running fink -m -- 
> build-as-nobody rebuild cilk

Adding _structs.h into /sw/include is *not* a good idea. This could  
cause every other Fink package to break, hypothetically.

The file "/usr/include/mach/i386/_structs.h" is *not* buggy or  
incorrect. If your compiler cannot parse it, then your compiler does  
not support ISO C completely -- in fact, already K&R C supported  
bitfields, it's been part of the C standard for ever.

So, you need a workaround for this problem (which, based on your brief  
descriptions, sounds like a bug in CILK). But that workaround should  
be local and specific to your package, and should not affect anything  
else.

In this particular case, the first thing to try would be to fix CILK;  
but since that is probably not an option, the next best thing is to  
follow the advice Peter already gave:


> On Tue, Mar 2, 2010 at 9:56 PM, Peter O'Gorman <[email protected]
> <mailto:[email protected]>> wrote:

> No you can not patch it in the process of packaging, if you
>    need a modified _structs.h, mkdir -p mach/i386 in the build dir  
> and put
>    your modified _structs.h there (making sure, of course, that the  
> build
>    dir is in the -I paths).


Bye,
Max

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Fink-devel mailing list
[email protected]
http://news.gmane.org/gmane.os.apple.fink.devel
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to