Summary: | media-gfx/opencsg-1.4.2 : /.../cstdlib:75:25: fatal error: stdlib.h: No such file or directory | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Toralf Förster <toralf> |
Component: | Current packages | Assignee: | No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | jouni.kosonen, junk4me46806 |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 582084 | ||
Attachments: |
emerge-info.txt
emerge-history.txt environment etc.portage.tbz2 media-gfx:opencsg-1.4.2:20170704-200755.log opencsg-1.4.2-includepath.patch opencsg-1.4.2-r1.ebuild |
Description
Toralf Förster
2017-07-04 20:10:39 UTC
Created attachment 480778 [details]
emerge-info.txt
Created attachment 480780 [details]
emerge-history.txt
Created attachment 480782 [details]
environment
Created attachment 480784 [details]
etc.portage.tbz2
Created attachment 480786 [details]
media-gfx:opencsg-1.4.2:20170704-200755.log
Created attachment 480818 [details, diff] opencsg-1.4.2-includepath.patch I ran into this as well. It seems to be specific to gcc-6. The issue that the compile command explicitly includes '-isystem /usr/include' which includes a version of stdlib.h that isn't the correct one. The correct one is buried in a compiler specific subdirectory. Normally the compiler specific subdirecty is searched first, but by putting /usr/include explicitly in the include path it breaks the build. This patch fixes the issue and also resolves a similar one: it refers to /usr/lib explicitly instead of /usr/$(get_libdir), which could cause problems on multilib systems. I fixed this at the same time. I got the idea from this post: https://blog.argcv.com/articles/4655.c Created attachment 480820 [details]
opencsg-1.4.2-r1.ebuild
ebuild that applies the above patch and also passes LIBDIR as $(get_libdir).
Thanks, fixed in git. I skipped the revision bump because it fixes a build-only issue. https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dfbc1b4b7a8ad01f03defd04329140d5bb1e1a9e |