| Summary: | SDL2 fails to build on Solaris 10 u3 | ||
|---|---|---|---|
| Product: | SDL | Reporter: | UX-admin <tripivceta> |
| Component: | video | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | major | ||
| Priority: | P2 | CC: | amaranth72, tripivceta |
| Version: | 2.0.3 | ||
| Hardware: | x86 | ||
| OS: | Solaris | ||
| See Also: | https://bugzilla.libsdl.org/show_bug.cgi?id=2756 | ||
| Attachments: | Patch for SDL_d3dmath.h | ||
The patch treats the float variables as separate within the same union, rather than the expected behaviour of treating the float variables as a group within the union. In other words, with that patch modifying the _11 member will also modify _12, _13, etc. I fixed the problem with the patch and committed, thanks! https://hg.libsdl.org/SDL/rev/b9b53f45bec6 |
Created attachment 1903 [details] Patch for SDL_d3dmath.h I am compiling with the Sun Studio 12 u2 compiler. There are multiple issues with the build, but this particular issue appears to be that it is illegal to declare a union of a struct of floats and a float. While GCC 4.8.1 does not flag this as an error, Sun Studio is much more standards compliant and strict, halting further compilation with an error. Proposed patch attached; A review and/or patch feedback would be much appreciated.