Build nginx on Mac OS X mavericks

Hello,
Has anyone tried building nginx code on Mac ? I get the following error
while building. Have installed pcre and other needed libraries

*src/mail/ngx_mail_handler.c:1152:30: **error: *use of undeclared
identifier ‘sasl_callback_ft’; did you mean

  •  'sasl_callback_t'?*
    
      callbacks[i].proc = (sasl_callback_ft)&ngx_mail_sasl_log;
    
  •                         ^*
    

*/usr/include/sasl/sasl.h:349:3: note: *‘sasl_callback_t’ declared here

} sasl_callback_t;

  • ^*

*src/mail/ngx_mail_handler.c:1157:30: **error: *use of undeclared
identifier ‘sasl_callback_ft’; did you mean

  •  'sasl_callback_t'?*
    
      callbacks[i].proc = (sasl_callback_ft)&ngx_mail_sasl_pauthorize;
    
  •                         ^*
    

*/usr/include/sasl/sasl.h:349:3: note: *‘sasl_callback_t’ declared here

} sasl_callback_t;

  • ^*

2 errors generated.

make[2]: *** [objs/src/mail/ngx_mail_handler.o] Error 1

make[1]: *** [install] Error 2

make: *** [build] Error 2

Thanks

-Kunal

Hello!

On Wed, Mar 26, 2014 at 06:33:56PM -0700, Kunal P. wrote:

Hello,
Has anyone tried building nginx code on Mac ? I get the following error
while building. Have installed pcre and other needed libraries

*src/mail/ngx_mail_handler.c:1152:30: **error: *use of undeclared
identifier ‘sasl_callback_ft’; did you mean

  •  'sasl_callback_t'?*
    
      callbacks[i].proc = (sasl_callback_ft)&ngx_mail_sasl_log;
    

It doesn’t looks like nginx source code. Likely you are using
something with local or 3rd party patches. Unmodified version is
available from nginx: download.


Maxim D.
http://nginx.org/

I wrote up a how to that might help as well:

Best regards,
Kevin

Kevin W.
[email protected]

http://twitter.com/kworthington

Yep, we do have some local and 3rd party patches. But still not sure why
it
doesn’t build on mac and throws that error. Same code with patches
builds
fine on ubuntu linux.
@Kevin: Thats what i followed for building the latest nginx and that
worked
well. Great post.

Thanks
-Kunal

On Thu, Mar 27, 2014 at 7:36 AM, Kevin W.

Great, I’m glad it helped.

Best regards,
Kevin

Kevin W.
[email protected]

http://twitter.com/kworthington