Summary: | Sun Studio build fails due to standard library functions not being in global namespace | ||
---|---|---|---|
Product: | Mesa | Reporter: | Vinson Lee <vlee> |
Component: | glsl-compiler | Assignee: | Ian Romanick <idr> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | blocker | ||
Priority: | medium | ||
Version: | git | ||
Hardware: | x86 (IA32) | ||
OS: | Solaris | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: |
Use C-style system headers in C++ code to avoid issues with std:: namespace
Use C-style system headers in C++ code to avoid issues with std:: namespace |
Description
Vinson Lee
2011-02-09 15:17:34 UTC
Created attachment 43209 [details] [review] Use C-style system headers in C++ code to avoid issues with std:: namespace Vinson, could you try this patch on Sun Studio? I think it should fix the issues you've encountered. (In reply to comment #1) > Created an attachment (id=43209) [details] > Use C-style system headers in C++ code to avoid issues with std:: namespace > > Vinson, could you try this patch on Sun Studio? I think it should fix the > issues you've encountered. I tested the patch. The glsl build still fails with Sun Studio. Here are all the errors. "hir_field_selection.cpp", line 84: Error: The function "strcmp" must have a prototype. "ir_print_visitor.cpp", line 85: Error: The function "strncmp" must have a prototype. "opt_constant_propagation.cpp", line 142: Error: The function "memset" must have a prototype. "opt_copy_propagation_elements.cpp", line 60: Error: The function "memcpy" must have a prototype. "opt_copy_propagation_elements.cpp", line 68: Error: The function "memcpy" must have a prototype. "opt_dead_functions.cpp", line 93: Error: The function "strcmp" must have a prototype. "opt_structure_splitting.cpp", line 231: Error: The function "strcmp" must have a prototype. "opt_swizzle_swizzle.cpp", line 56: Error: The function "memset" must have a prototype. Created attachment 43264 [details] [review] Use C-style system headers in C++ code to avoid issues with std:: namespace The initial version missed a couple occurrences of non-C headers. This one should get all of them. (In reply to comment #3) > Created an attachment (id=43264) [details] > Use C-style system headers in C++ code to avoid issues with std:: namespace > > The initial version missed a couple occurrences of non-C headers. This one > should get all of them. I tested patch id=43264 and the build of the glsl directory completes. The Sun Studio build now fails in gallium/drivers/auxiliary with a different build error. This will be a different bug. Fixed on 7.9 (0f3a9643c62174028a74bd7bffdca6d745b2c743), 7.10 (5ad00ef7a367b415f47d95f5274bc749301d870d), and master (497baf4e4a6a0a2f247c7bfb9bf69a2b93c2c19f). |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.