|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #58242 BBCode 1.0.0 did not compile under MacOSX
Submitted: 2008-06-19 16:03 UTC Modified: 2008-08-17 05:35 UTC
From: gmblar at gmail dot com Assigned:
Status: Closed Package: bbcode (PECL)
PHP Version: 5.2.5 OS: MacOSX
Private report: No CVE-ID: None
 [2008-06-19 16:03 UTC] gmblar at gmail dot com
Extension did not compile under MacOSX.

Reproduce code:
--- lib/bbcode2.c	2008-02-11 12:36:04.000000000 +0100
+++ lib/bbcode2.c	2008-06-19 21:16:39.000000000 +0200
@@ -11,7 +11,11 @@
 #include <stdlib.h>
 #include <stdio.h>
+#ifdef __APPLE__
+#include <sys/malloc.h>
 #include <malloc.h>
 #include "bbcode2.h"
 #include "bstrlib.h"

Expected result:
Build complete.
Don't forget to run 'make test'.

Actual result:
/private/tmp/pear/temp/bbcode/lib/bbcode2.c:14:20: error: 
malloc.h: No such file or directory
make: *** [lib/bbcode2.lo] Error 1
ERROR: `make? failed


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2008-08-17 05:35 UTC] xdecock at gmail dot com
This bug has been fixed in CVS.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on

In case this was a website problem, the change will show
up on the website in short time.
Thank you for the report, and for helping us make PECL better.

Thanks for the patch, fixed in CVS
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Thu Dec 02 09:03:34 2021 UTC