Summary: | sci-libs/hdf5-1.6.7 fails with /usr/include/bits/fcntl2.h:51: error: call to '__open_missing_mode' declared with attribute error: open with O_CREAT in second argument needs 3 arguments | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Juergen Rose <rose> |
Component: | New packages | Assignee: | Gentoo Science Related Packages <sci> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | High | ||
Version: | 2008.0 | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 259417 | ||
Attachments: | Suggested patch to fix compile error. |
Description
Juergen Rose
2009-02-01 02:01:32 UTC
Upstream knows of this issue. See: http://www.hdfgroup.org/HDF5/release/known_problems5.html The claim is that this patch will fix the issue: --- hdf5-1.6.7/perform/zip_perf.c 2008-01-31 21:04:10.000000000 -0600 +++ hdf5-1.6.7.new/perform/zip_perf.c 2009-02-01 21:51:59.907431212 -0600 @@ -546,7 +546,7 @@ unlink(filename); /* do compressed data write */ - output = open(filename, O_RDWR | O_CREAT); + output = open(filename, O_RDWR | O_CREAT, S_IRXW); if (output == -1) error(strerror(errno)); Created attachment 180641 [details, diff]
Suggested patch to fix compile error.
Please ignore the previous patch. This one has the parameter spelled correctly.
The patch worked for me. + 04 Feb 2009; Patrick Lauer <patrick@gentoo.org> + +files/hdf5-gcc4.3.3-fix.patch, hdf5-1.6.7.ebuild: + fortify_sources fix, patch from Simon C. Ion, closes #257177 |