malloc.h is an invalid header on Mac OS X
Opened this issue · 2 comments
GoogleCodeExporter commented
What steps will reproduce the problem?
1. SVN r695
2. compile simple test attached
3. io_new/detail/path_spec.hpp fails compilation with:
/Users/Davide/Luminance/gil-contributions-read-only/gil_2/boost/gil/extension/io
_new/detail/path_spec.hpp:23:20: fatal error: malloc.h: No such file or
directory
compilation terminated.
What is the expected output? What do you see instead?
Compilation should be fine
What version of the product are you using? On what operating system?
SVN r695, Mac OS X 10.6.7, several compilers: GCC 4.2, GCC 4.6, Clang 2.9,
Clang 3.0
Please provide any additional information below.
On Mac OS X, malloc.h is considered a deprecated header. For more info,
http://hintsforums.macworld.com/showthread.php?t=2023
Original issue reported on code.google.com by davide.a...@gmail.com
on 21 Apr 2012 at 7:15
Attachments:
GoogleCodeExporter commented
Possible patch.
However, after this patch, I receive this error:
GCC 4.5:
In file included from
/Users/Davide/Luminance/gil-contributions-read-only/gil_2/boost/gil/extension/io
_new/formats/tiff/read.hpp:50,
from /Users/Davide/Luminance/gil-contributions-read-only/gil_2/boost/gil/extension/io_new/tiff_read.hpp:26,
from /Users/Davide/Luminance/gil-contributions-read-only/gil_2/boost/gil/extension/io_new/tiff_all.hpp:22,
from /Users/Davide/Luminance/gitroot/libhdr/test/test_gil.cpp:3:
/Users/Davide/Luminance/gil-contributions-read-only/gil_2/boost/gil/extension/io
_new/detail/row_buffer_helper.hpp:120: error: template argument 2 is invalid
make[2]: *** [test/CMakeFiles/test_gil.dir/test_gil.cpp.o] Error 1
make[1]: *** [test/CMakeFiles/test_gil.dir/all] Error 2
make: *** [all] Error 2
Clang (more descriptive):
In file included from
/Users/Davide/Luminance/gitroot/libhdr/test/test_gil.cpp:3:
In file included from
/Users/Davide/Luminance/gil-contributions-read-only/gil_2/boost/gil/extension/io
_new/tiff_all.hpp:22:
In file included from
/Users/Davide/Luminance/gil-contributions-read-only/gil_2/boost/gil/extension/io
_new/tiff_read.hpp:26:
In file included from
/Users/Davide/Luminance/gil-contributions-read-only/gil_2/boost/gil/extension/io
_new/formats/tiff/read.hpp:50:
/Users/Davide/Luminance/gil-contributions-read-only/gil_2/boost/gil/extension/io
_new/detail/row_buffer_helper.hpp:116:36: error: expected a qualified name after
'typename'
, typename enable_if< typename mpl::and_< typename is_bit_aligned< Pixel >::type
^
1 error generated.
make[2]: *** [test/CMakeFiles/test_gil.dir/test_gil.cpp.o] Error 1
make[1]: *** [test/CMakeFiles/test_gil.dir/all] Error 2
make: *** [all] Error 2
Original comment by davide.a...@gmail.com
on 21 Apr 2012 at 7:51
Attachments:
GoogleCodeExporter commented
I fixed the malloc.h issue.
Original comment by chhenn...@gmail.com
on 21 Apr 2012 at 8:40
- Changed state: Accepted