Compiling IAXModem for Mac?

  • Brian Postow

    Brian Postow - 2010-04-05

    I'm trying to install asterisk, IAXModem and Hylafax, so I can us T38 on a macintosh. I've got Hylafax. I'm trying to compile IAXModem, but I get:

    iax.c:79:20: error: malloc.h: No such file or directory
    iax.c:81:19: error: error.h: No such file or directory
    iax.c: In function 'iax_xmit_frame':
    iax.c:863: error: 'MSG_NOSIGNAL' undeclared (first use in this function)
    iax.c:863: error: (Each undeclared identifier is reported only once
    iax.c:863: error: for each function it appears in.)
    make: ***  Error 1

    Now, I assume I can find malloc.h, but I'm not sure where error.h is supposed to be, and MSG_NOSIGNAL is a mystery.

    has anyone gotten this to compile on a mac?


  • Brian Postow

    Brian Postow - 2010-04-05

    Never mind, I figured it out. Malloc.h needed to be malloc/malloc.h, error.h shouldn't have been included at all, nor should MSG_NOSIGNAL, and a bunch of other things weren't were the compiler expected them… all compiled now.

  • Lee Howard

    Lee Howard - 2010-04-26

    Give me a diff of your changes, and I'll see what I can do about including them for the next release.  Thanks.

  • afan

    afan - 2012-01-12

    Having the same compile problem with libiax2 on OS X 10.7 as in post 1 (exept for the malloc.h message). The version seems to be 0.2.3 (stated in "NEWS").
    Is there a solution available?
    Would be greatly appreciated.


Log in to post a comment.