line #102 ...

   allocaBytes (#const sizeof(struct mq_attr)) $ \ p_attrs -> do

definition of struct mq_attr on Linux ...

  struct mq_attr
{
  long int mq_flags;    /* Message queue flags.  */
  long int mq_maxmsg;   /* Maximum number of messages.  */
  long int mq_msgsize;  /* Maximum message size.  */
  long int mq_curmsgs;  /* Number of messages currently queued.  */
  long int __pad[4];
};



build errors received ....

[EMAIL PROTECTED]:~/FTP/Haskell/unix-2.2.0.0$ runhaskell Setup.hs build
Preprocessing library unix-2.2.0.0...
MQueue.hsc: In function 'main':

MQueue.hsc:102:0:
     error: invalid application of 'sizeof' to incomplete type 'struct
mq_attr'

MQueue.hsc:102:0:
     error: invalid application of 'sizeof' to incomplete type 'struct
mq_attr'

MQueue.hsc:102:0:
     error: invalid application of 'sizeof' to incomplete type 'struct
mq_attr'
compiling dist/build/System/Posix/MQueue_hsc_make.c failed
comma


???

Kind regards, vasili
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to