Bug 82191
Summary: | broken source code | ||
---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | d.binderman |
Component: | rpm | Assignee: | Jeff Johnson <jbj> |
Status: | CLOSED WORKSFORME | QA Contact: | Mike McLean <mikem> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 8.0 | ||
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2003-01-21 13:20:02 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
d.binderman
2003-01-19 10:41:23 UTC
Same code compiles w/o warning using gcc-3.2.1. try compiling with C compiler flags "-g -O2 -Wall". Then you should see the problem. You appear to have not read the source code I pointed out. It is clearly wrong, merely by inspection. I *did* compile with -Wall, and several other checks, but am almost certainly using a different compiler. Yes, the source code looks "fishy", but that's a Berkeley DB problem, not an rpm problem. I choose to stay as close as possible to pristine Berkeley DB. >I *did* compile with -Wall, and several other checks, >but am almost certainly using a different compiler. You may have compiled with -Wall, but you didn't use 3.2.1 as well. Try using 3.2.1 *and* "-g -O2 -Wall" to reproduce my bug report. >Yes, the source code looks "fishy", but that's a >Berkeley DB problem, not an rpm problem. I choose >to stay as close as possible to pristine Berkeley DB. What you describe as "fishy" is undefined code. I strongly recommend reading section 2.12 of K&R 2. Page 52 in my copy. You might stay as close as you like to Berkeley, but it's still undefined code. I've provided a patch. Just what else do I have to do to get you to fix this bug ? Please send patch to sleepycat. |