bugMyPaint - Bugs: bug #20398, [possible-1.1.1] fatal error:...

 
 
Show feedback again

You are not allowed to post comments on this tracker with your current authentification level.

bug #20398: [possible-1.1.1] fatal error: 'malloc.h' file not found

Submitted by:  Ryan Schmidt <ryandesign>
Submitted on:  Wed 02 Jan 2013 05:36:33 PM UTC  
 
Severity: 3 - NormalPriority: 5 - Normal
Status: FixedPrivacy: Public
Assigned to: NoneOpen/Closed: Open
Release: 1.1.0Planned Release: None
Operating System: OS X 10.8

Sat 12 Jan 2013 08:38:20 AM UTC, comment #3:

Tagged as a good fix to have in any 1.1.1 we release.

Andrew Chadwick <achadwick>
Project Administrator
Sun 06 Jan 2013 12:33:26 PM UTC, comment #2:

If we ever consider a 1.1.1 release, I think this would be a candidate for that.

Jon Nordby <jonnor>
Project Administrator
Fri 04 Jan 2013 01:55:04 PM UTC, comment #1:

http://hintsforums.macworld.com/showthread.php?t=2023 and http://stackoverflow.com/questions/12973311/difference-between-stdlib-h-and-malloc-h suggest that malloc.h is obsolete/deprecated, and it compiles just fine in gcc under Linux with your patch. Pushed, thanks!

https://gitorious.org/mypaint/mypaint/commit/17322aebbbbcd9084305d2cad49d690c6ffbaddb

Affects the current stable (1.1.0), so keeping as Fixed+Open.

Andrew Chadwick <achadwick>
Project Administrator
Wed 02 Jan 2013 05:36:33 PM UTC, original submission:

Hello, I'm the maintainer of MyPaint in MacPorts. MyPaint 1.0.0 built fine but 1.1.0 fails with:

On OS X, according to "man malloc", you include stdlib.h, not malloc.h.

This change needed to be made in two files. I'm attaching the patch I made for this, but of course it's not suitable for systems where including malloc.h is needed. Perhaps you'll use some #ifdef to conditionalize this.

Ryan Schmidt <ryandesign>

 

Attached Files
file #16889:  main.log added by ryandesign (11kB - application/octet-stream)
file #16890:  patch-brushlib.diff added by ryandesign (490B - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by jonnor (Posted a comment)
  • -unavailable- added by achadwick (Posted a comment)
  • -unavailable- added by ryandesign (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 12 Jan 2013 08:38:20 AM UTCachadwickSummaryfatal error: \'malloc.h\' file not found=>[possible-1.1.1] fatal error: 'malloc.h' file not found
    Fri 04 Jan 2013 01:55:04 PM UTCachadwickStatusNone=>Fixed
    Wed 02 Jan 2013 05:36:33 PM UTCryandesignAttached File-=>Added main.log, #16889
      Attached File-=>Added patch-brushlib.diff, #16890
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup