<br>line #102 ...<br><br> allocaBytes (#const sizeof(struct mq_attr)) $ \ p_attrs -> do<br> <br>definition of struct mq_attr on Linux ...<br><br> struct mq_attr<br>{<br> long int mq_flags; /* Message queue flags. */<br>
long int mq_maxmsg; /* Maximum number of messages. */<br> long int mq_msgsize; /* Maximum message size. */<br> long int mq_curmsgs; /* Number of messages currently queued. */<br> long int __pad[4];<br>};<br><br>
<br><br>build errors received ....<br><br>vigalchin@ubuntu:~/FTP/Haskell/unix-2.2.0.0$ runhaskell Setup.hs build<br>Preprocessing library unix-2.2.0.0...<br>MQueue.hsc: In function 'main':<br><br>MQueue.hsc:102:0:<br> error: invalid application of 'sizeof' to incomplete type 'struct mq_attr' <br>
<br>MQueue.hsc:102:0:<br> error: invalid application of 'sizeof' to incomplete type 'struct mq_attr' <br><br>MQueue.hsc:102:0:<br> error: invalid application of 'sizeof' to incomplete type 'struct mq_attr' <br>compiling dist/build/System/Posix/MQueue_hsc_make.c failed<br>
comma<br><br><br>???<br><br>Kind regards, vasili<br>