Summary: | media-libs/libdc1394-2.2.6 fails to compile: control.c:286:19: error: fields must have a constant size: 'variable length array in structure' extension will never be supported | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Agostino Sarubbo <ago> |
Component: | Current packages | Assignee: | Gentoo Media-video project <media-video> |
Status: | CONFIRMED --- | ||
Severity: | normal | CC: | 2t2hmytc |
Priority: | Normal | Keywords: | PATCH |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 408963 | ||
Attachments: |
build.log
other.tar.bz2 This patches solves the compiler errors ;-) [PATCH] Clang fix v2 |
Description
Agostino Sarubbo
2020-07-06 09:29:43 UTC
Created attachment 647890 [details]
build.log
build log and emerge --info
Created attachment 647892 [details]
other.tar.bz2
other logs
tinderbox has reproduced this issue with version 2.2.6 - Updating summary. Created attachment 862369 [details]
This patches solves the compiler errors ;-)
Created attachment 884503 [details, diff]
[PATCH] Clang fix v2
I just tried the proposed patch and it's not working as intended, because it uses spaces as indentation everywhere, however in capture.c:324 (first change in the first hunk) the source file uses tabs instead. That's why the proposed patch fails to apply. Using two tabs for the source line corrects the issue and libdc1394-2.2.6 compiles successfully with clang!
I attached a revised patch file
|