I've attached a patch that solves the problems of compiling gnuplot on OS X (for me, and with Aquaterm as the target terminal)
Related to patch #572 https://sourceforge.net/p/gnuplot/patches/572/ I guess.
Tested on Mac OS X 10.8 with either clang/llvm or gcc 4.2.1
Regards,
Per
[1] There has never been a stand-alone libaquaterm, so the changes are fully backwards compatible.
(Follow up on my own post)
Actually, the first hunk in the patch is unrelated to the rest.
The problem:
=> Lots of conflicts during make (due to some fallback malloc?)
According to
man mallocon Mac OS X 10.8, malloc is declared instdlib.hand the question is why configure requiresmalloc.hand fails to appreciatestdlib.h?So, while adding
sys/malloc.hto the list inconfigure.inseems to work around the problem it doesn't address the root of the problem.We'll see about that once you show some concrete details (compiler error messages, config.log, ...)
Because it doesn't. ;-)
Because it doesn't fail to.
Last edit: Hans-Bernhard Broeker 2013-09-17
Embarrassingly enough, you are clearly right since I cannot reproduce the problem today. (Which I guess is good news ;-)
Rest of the patch is still valid though?!
FWIW I'm attaching config.log anyhow
/Per
Could you upload a copy of the config.log file for the configuration run that got confused about malloc.h? Maybe I can spot the source of the problem.
I've added the framework/m4 changes to CVS for 4.7
By the way, do you have any insight into the apparently unresolved issue reported in Bug #1188?
https://sourceforge.net/p/gnuplot/bugs/1188/
On 20 sep 2013, at 22:42, Ethan Merritt sfeam@users.sf.net wrote:
I can't reproduce it.
I ended up finding a different bug (in AquaTerm) but from my point of view the changes from 2012-04-24 should be OK (although redundant if rect_clip == rect_image).
I've pasted my notes below in case anyone digs further.
/Per
Debug notes
Some API docs below.
Problem
Original code
This code uses the convenience function and scales the image to fit the destination bounds.
Failed(?) code
I cannot reproduce the problem reported in gnuplot bug #1188, and since the example code snippet to demonstrate the bug will leave
rect_clip == rect_imageit should be identical to the original code.Generic (right?) code
This is unfortunately thoroughly broken (in AquaTerm 1.1.x) on 64bit machines. A fix has been submitted to AquaTerm project.
This would be the generic form where the original bitmap is freely transformed and clipped by
rect_clip.Examples/tests
As above, but `rect_clip != rect_image produces the expected result,
as does a more general transform:
Aquaterm image API docs
Transforms and clips
Images
Add a
bitmapimage of sizebitmapSize(M, N) automatically scaled to fitdestBounds. Bitmap format is 24bits per pixel in sequence RGBRGB... with 8 bits per color.This is a convenience function that scales the bitmap to fit the destination bound, it does not apply transform to the bitmap.
Add a
bitmapimage of size (M, N)bitmapSizeand apply current transform. Bitmap format is 24bits per pixel in sequence RGBRGB... with 8 bits per color. The transformed image will by clipped to the current clipRect, see-setClipRect:.This form is deprecated. It changes the current clip rect to
destBounds.