| Anonymous | Login | Signup for a new account | 2013-05-26 02:22 UTC | ![]() |
| Main | My View | View Issues | Roadmap |
| View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | |||
| 0001687 | CentOS-5 | pm-utils | public | 2007-02-21 08:10 | 2007-02-21 10:39 | |||
| Reporter | JohnnyHughes | |||||||
| Priority | normal | Severity | block | Reproducibility | always | |||
| Status | resolved | Resolution | fixed | |||||
| Platform | OS | OS Version | ||||||
| Product Version | 5.0 - x86_64 Beta | |||||||
| Target Version | Fixed in Version | |||||||
| Summary | 0001687: radeontool.c build error (pm-utils-0.19-3) | |||||||
| Description | the file radeontool-1.5/radeontool.c does not build on rhel5b2 x86_64. The error is: radeontool.c: In function ‘map_devince_memory’: radeontool.c:98: error: ‘PAGE_SIZE’ undeclared (first use in this function) radeontool.c:98: error: (Each undeclared identifier is reported only once radeontool.c:98: error: for each function it appears in.) radeontool.c:113: warning: cast from pointer to integer of different size make: *** [radeontool] Error 1 (Also tried building pm-utils-0.19.1-6 from rawhide, same error). That file (radeontool.c) has this line: #include <asm/page.h> and asm/page.h includes asm-i386/page.h OR asm-x86_64/page.h asm-x86_64 does not define ‘PAGE_SIZE’, thus the error (asm-i386/page.h DOES define ‘PAGE_SIZE’) using asm-i386/page.h for testing, results in this error: gcc -Wall -O2 radeontool.c -o radeontool radeontool.c: In function ‘map_devince_memory’: radeontool.c:113: warning: cast from pointer to integer of different size This is upstream bug: https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=229452 [^] | |||||||
| Tags | No tags attached. | |||||||
| Attached Files | ||||||||
Notes |
|
|
(0004461) JohnnyHughes (administrator) 2007-02-21 08:58 |
gcc -Wall -O2 radeontool.c -o radeontool radeontool.c: In function ‘map_devince_memory’: radeontool.c:113: warning: cast from pointer to integer of different size (that is a warning ... but the binary is produced) This issue is one in kernel-headers-2.6.18-1.2747.el5.x86_64 (which provides /usr/include/asm, /usr/include/asm-i386, /usr/include/asm-x86_64) This seems fixed in newer versions of kernel-headers for x86_64, however for the beta we will fix it by defining PAGE_SIZE in radeontool.c for x86_64 with a patch. |
|
(0004463) JohnnyHughes (administrator) 2007-02-21 10:39 |
fixed in pm-utils-0.19-3.el5.centos |
Issue History |
|||
| Date Modified | Username | Field | Change |
| 2007-02-21 08:10 | JohnnyHughes | New Issue | |
| 2007-02-21 08:10 | JohnnyHughes | Status | new => assigned |
| 2007-02-21 08:58 | JohnnyHughes | Note Added: 0004461 | |
| 2007-02-21 10:39 | JohnnyHughes | Status | assigned => resolved |
| 2007-02-21 10:39 | JohnnyHughes | Resolution | open => fixed |
| 2007-02-21 10:39 | JohnnyHughes | Note Added: 0004463 | |
| Copyright © 2000 - 2011 MantisBT Group |