php.net |  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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: gmblar at gmail dot com
New email:
PHP Version: OS:

 

 [2008-06-19 16:03 UTC] gmblar at gmail dot com
Description:
------------
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>
+#else
 #include <malloc.h>
+#endif
 #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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

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 pecl.php.net.

In case this was a pecl.php.net 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