Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

malloc.h is an invalid header on Mac OS X #9

Open
GoogleCodeExporter opened this issue Mar 22, 2016 · 2 comments
Open

malloc.h is an invalid header on Mac OS X #9

GoogleCodeExporter opened this issue Mar 22, 2016 · 2 comments

Comments

@GoogleCodeExporter
Copy link

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 [email protected] on 21 Apr 2012 at 7:15

Attachments:

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 21 Apr 2012 at 7:51

Attachments:

@GoogleCodeExporter
Copy link
Author

I fixed the malloc.h issue.

Original comment by [email protected] on 21 Apr 2012 at 8:40

  • Changed state: Accepted

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant