<br>line #102 ...<br><br>&nbsp;&nbsp; allocaBytes (#const sizeof(struct mq_attr)) $ \ p_attrs -&gt; do<br>&nbsp;<br>definition of struct mq_attr on Linux ...<br><br>&nbsp; struct mq_attr<br>{<br>&nbsp; long int mq_flags;&nbsp;&nbsp;&nbsp; /* Message queue flags.&nbsp; */<br>
&nbsp; long int mq_maxmsg;&nbsp;&nbsp; /* Maximum number of messages.&nbsp; */<br>&nbsp; long int mq_msgsize;&nbsp; /* Maximum message size.&nbsp; */<br>&nbsp; long int mq_curmsgs;&nbsp; /* Number of messages currently queued.&nbsp; */<br>&nbsp; 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>&nbsp;&nbsp;&nbsp;&nbsp; error: invalid application of 'sizeof' to incomplete type 'struct mq_attr' <br>
<br>MQueue.hsc:102:0:<br>&nbsp;&nbsp;&nbsp;&nbsp; error: invalid application of 'sizeof' to incomplete type 'struct mq_attr' <br><br>MQueue.hsc:102:0:<br>&nbsp;&nbsp;&nbsp;&nbsp; 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>