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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
3 + 7 = ?
Subscribe to this entry?

 
 [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-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 04:01:28 2024 UTC