Comments (6)
dont build exit with error because this cant be negative
What can't be negative? Please quote the exact error. The specifics matter.
#define CurlchkszGE(t1, t2) sizeof(t1) >= sizeof(t2) ? 1 : 1
This is almost certainly not correct. You're working around a symptom without fixing the underlying issue; the code in question compiles but is probably wrong, and is likely to crash or behave incorrectly. It might even be an exploitable security flaw.
from ioq3.
The change in curlrules.h.zip
, in a more useful format, is:
diff --git a/code/libcurl-7.35.0/curl/curlrules.h b/code/libcurl-7.35.0/curl/curlrules.h
index 7c2ede3..8f8521c 100644
--- a/code/libcurl-7.35.0/curl/curlrules.h
+++ b/code/libcurl-7.35.0/curl/curlrules.h
@@ -129,7 +129,7 @@
* Macros private to this header file.
*/
-#define CurlchkszEQ(t, s) sizeof(t) == s ? 1 : -1
+#define CurlchkszEQ(t, s) sizeof(t) == s ? 1 : 1
#define CurlchkszGE(t1, t2) sizeof(t1) >= sizeof(t2) ? 1 : -1
This is the same change that you described in the initial bug report, and I already explained why this is wrong. To be absolutely clear in case you missed it the first time:
- This is the wrong change.
- This change is not suitable for merging.
- This change is a workaround, not a solution. libcurl is reporting that an assumption made by some header is not true, and instead of giving us enough information to locate and fix that wrong assumption, you have made libcurl stop checking whether several of its assumptions are true.
- Showing us this change does not give us enough information to know what the right change is.
It'll be one of these: either the long
type is smaller than CURL_SIZEOF_LONG
, or the curl_off_t
type is smaller than CURL_SIZEOF_CURL_OFF_T
, or the curl_socklen_t
type is smaller than CURL_SIZEOF_CURL_SOCKLEN_T
.
Please show us the actual, specific, error message that you see when you compile without this change. For this to be fixed correctly, we need to see the line numbers; we need to see the small details; we need to see the whole message. Telling us your interpretation of one part of it is not enough to be useful.
The classic essay on this topic is How to Report Bugs Effectively.
from ioq3.
@tlosm: you have not provided enough information for someone not using PowerPC (which I'm guessing no regular ioquake3 contributors do) to fix this bug. I don't know what you expect the ioquake3 maintainers to do about it, but at the moment there's no way it's going to get fixed.
If you want this to be fixed, please provide more information, including the complete error messages seen. The details are important, and the information you have given so far is not enough to be useful.
Or, if you don't care about this being fixed, why did you report it at all?
from ioq3.
yes im sure about ... but was the only way for made the build continue ... was just a fast experiment ;-)
from ioq3.
curlrules.h.zip
Fixed and build on PPC64 no Altivec machine
from ioq3.
Duplicate of #298 which has compile log.
from ioq3.
Related Issues (20)
- OpenGL2: r_mergeLightmaps 1 breaks shaders using internal and external lightmaps
- options shows wrong resolution for custom resolution HOT 2
- OpenGL2: Dlight behavior close to surface HOT 1
- Unknown blend mode 'gl_src_color' leads to black menu screen with the PadMod HOT 3
- opengl1: Add software gamma ramps / overbright
- OpenGL2: Lightmap as an environment map renders incorrect with r_mergeLightmaps 1 HOT 1
- OpenGL2: r_ext_multisample > 0 breaks r_drawSunRays 1 (without HDR or FB-MSAA) HOT 1
- OpenGL2: Flares in mirrors calculate wrong depth and have wrong visibility
- Failing to open x64 game in a path with special characters HOT 3
- OpenGL2: The game is too bright and auto-exposure doesn't match the original
- OpenGL2: Curved surfaces don't use dynamic level of detail
- OpenGL2: Stencil shadow volumes are broken (cg_shadows 2) HOT 1
- OpenGL2: r_shownormals 1 is not implemented
- [Warning] Area 51 (2005) HOT 1
- rendering improvements feedback
- OpenGL2: r_greyscale doesn't affect everything
- OpenGL2: r_anaglyphMode causes 2D and HUD models to be transparent
- opengl1: Skybox in OpenGL 1.1 displays black lines at edges
- Add OpenGLES2 renderer HOT 1
- Add pk3 file caching to emscripten port
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ioq3.