Skip Menu |

This queue is for tickets about the String-Trigram CPAN distribution.

Report information
The Basics
Id: 70377
Status: resolved
Priority: 0/
Queue: String-Trigram

People
Owner: Nobody in particular
Requestors: NEILB [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.11
Fixed in: (no value)



Subject: Fails to build on Mac OS X 10.7 (Lion) due to malloc.h not found
Installing String::Trigram fails on Mac OS X Lion (10.7) because Trigram.xs includes the line: #include <malloc.h> If I change this to: #include <stdlib.h> Then I can then successfully build the module.
Still stands on Mac OS X 10.8.3: Darwin Stanislaws-MacBook-Pro.local 12.3.0 Darwin Kernel Version 12.3.0: Sun Jan 6 22:37:10 PST 2013; root:xnu-2050.22.13~1/RELEASE_X86_64 x86_64 i386 MacBookPro6,2 Darwin I usually fix it prepending "sys/" to "malloc.h": #include <sys/malloc.h> stdlib.h also works. On Fri Aug 19 18:51:38 2011, NEILB wrote: Show quoted text
> Installing String::Trigram fails on Mac OS X Lion (10.7) because > Trigram.xs includes the line: > > #include <malloc.h> > > If I change this to: > > #include <stdlib.h> > > Then I can then successfully build the module.
On 2013-05-28 12:48:40, SYP wrote: Show quoted text
> Still stands on Mac OS X 10.8.3: > > Darwin Stanislaws-MacBook-Pro.local 12.3.0 Darwin Kernel Version > 12.3.0: Sun Jan 6 22:37:10 PST 2013; root:xnu- > 2050.22.13~1/RELEASE_X86_64 x86_64 i386 MacBookPro6,2 Darwin > > I usually fix it prepending "sys/" to "malloc.h": > > #include <sys/malloc.h> > > stdlib.h also works. > > On Fri Aug 19 18:51:38 2011, NEILB wrote:
> > Installing String::Trigram fails on Mac OS X Lion (10.7) because > > Trigram.xs includes the line: > > > > #include <malloc.h> > > > > If I change this to: > > > > #include <stdlib.h> > > > > Then I can then successfully build the module.
Probably an obsolete issue, because 0.12 switched to pure perl (and I see all green on cpantesters...)
Show quoted text
> Probably an obsolete issue, because 0.12 switched to pure perl (and I > see all green on cpantesters...)
Yup -- thanks, I've closed this. Neil