You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by Rob Gabbard <ga...@adobe.com> on 2009/08/03 15:13:32 UTC

Building the ruby client on Mac OS X

FYI... I wanted to use the Ruby client library on Mac OS X (10.4) but had an issue building the sasl Ruby extension included. The issue was the lack of malloc.h in the stndard include paths on Mac OS X. But since malloc is included in stdlib, an easy warkaround was to change the malloc.h include in ext/sasl/sasl.c to...

#if !defined(__APPLE__)
#include <malloc.h>
#endif

After doing so, the sasl library built and installed correctly and the Ruby sample and tests ran fine, taking to a remote broker.

--
Rob Gabbard
Senior Computer Scientist
Adobe Systems Incorporated


August board report

Posted by Carl Trieloff <cc...@redhat.com>.
As a TLP I need to report for Qpid to the Apache board every few months. 
In the past I have collected a list
of items from the PMC. Based on suggestion from an Apache Member, I will 
start to also collect items to
report on from the dev list.

Please mail me or the dev list if you would like me to add/comment 
something on the next Qpid board report
in the next 24 hours or so.

kind regards
Carl.

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org


Re: Building the ruby client on Mac OS X

Posted by Andrew Stitcher <as...@redhat.com>.
On Mon, 2009-08-03 at 06:13 -0700, Rob Gabbard wrote:
> FYI... I wanted to use the Ruby client library on Mac OS X (10.4) but had an issue building the sasl Ruby extension included. The issue was the lack of malloc.h in the stndard include paths on Mac OS X. But since malloc is included in stdlib, an easy warkaround was to change the malloc.h include in ext/sasl/sasl.c to...
> 
> #if !defined(__APPLE__)
> #include <malloc.h>
> #endif
> 
> After doing so, the sasl library built and installed correctly and the Ruby sample and tests ran fine, taking to a remote broker.


I think this is a small bug in the original code: The POSIX/C location
for malloc is stdlib.h, not malloc.h (which seems to be a GNU/BSD?
location) so if there is already an #include <stdlb.h> then #include
<malloc.h> should not be needed on usual Unix platforms.

Andrew

> 
> --
> Rob Gabbard
> Senior Computer Scientist
> Adobe Systems Incorporated
> 


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org