ASF Bugzilla – Attachment 30163 Details for
Bug 52900
Apache 2.4.1 build fails for core.c on Solaris 10 with GCC 4.6.x
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
add workaround on sparc/64
PR52900.diff (text/plain), 784 bytes, created by
Stefan Fritsch
on 2013-04-08 19:45:10 UTC
(
hide
)
Description:
add workaround on sparc/64
Filename:
MIME Type:
Creator:
Stefan Fritsch
Created:
2013-04-08 19:45:10 UTC
Size:
784 bytes
patch
obsolete
>diff --git a/server/core.c b/server/core.c >index 57de161..f3f6141 100644 >--- a/server/core.c >+++ b/server/core.c >@@ -4929,13 +4929,17 @@ AP_DECLARE(void) ap_random_insecure_bytes(void *buf, apr_size_t size) > AP_DECLARE(apr_uint32_t) ap_random_pick(apr_uint32_t min, apr_uint32_t max) > { > apr_uint32_t number; >+#if !(__GNUC__ && __sparc__ && APR_SIZEOF_VOIDP == 8) >+ /* This triggers a gcc bug on sparc/64bit, PR 52900 */ > if (max < 16384) { > apr_uint16_t num16; > ap_random_insecure_bytes(&num16, sizeof(num16)); > RAND_RANGE(num16, min, max, APR_UINT16_MAX); > number = num16; > } >- else { >+ else >+#endif >+ { > ap_random_insecure_bytes(&number, sizeof(number)); > RAND_RANGE(number, min, max, APR_UINT32_MAX); > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 52900
:
30163
|
30164
|
30165
|
30217