| Summary: | "-O2 -Wp,-D_FORTIFY_SOURCE=2 -pedantic -pedantic-errors" fails on FD_SET, FD_ISSET | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Petr Lautrbach <plautrba> |
| Component: | glibc | Assignee: | Jeff Law <law> |
| Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 16 | CC: | fweimer, jakub, law, schwab |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2012-01-03 18:14:22 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Bug Depends On: | |||
| Bug Blocks: | 730270 | ||
I've already got a fix in the queue for this. Fixed by 2.14.90-22 and later. |
Description of problem: I tried to build libssh package on Fedora 16 and build failed on following errors: /builddir/build/BUILD/libssh-0.5.2/src/connect.c:480:37: error: ISO C forbids braced-groups within expressions [-pedantic] /builddir/build/BUILD/libssh-0.5.2/src/connect.c:543:35: error: ISO C forbids braced-groups within expressions [-pedantic] ... I am able to reproduce it with this: $ cat test.c #include <sys/select.h> int main() { fd_set localset; FD_ZERO(&localset); FD_SET(0, &localset); return 0; } $ gcc -O2 -Wp,-D_FORTIFY_SOURCE=2 -pedantic -pedantic-errors test.c test.c: In function ‘main’: test.c:7:3: error: ISO C forbids braced-groups within expressions [-pedantic] $ rpm -q gcc glibc gcc-4.6.2-1.fc16.x86_64 glibc-2.14.90-14.x86_64 libssh package was built successfully in Fedora 16 [1] with gcc-4.6.0-9.fc16 and glibc-2.13.90-9. [1] http://koji.fedoraproject.org/koji/buildinfo?buildID=246140