Bug 170502 - app-laptop/radeontool:-1.5-r3 doesn't compile with linux-headers-2.6.20-r1
Bug#: 170502 Product:  Gentoo Linux Version: 2006.1 Platform: x86
OS/Version: Linux Status: RESOLVED Severity: minor Priority: P2
Resolution: FIXED Assigned To: uberlord@gentoo.org Reported By: schisch0r@gmail.com
Component: Applications
URL: 
Summary: app-laptop/radeontool:-1.5-r3 doesn't compile with linux-headers-2.6.20-r1
Keywords:  
Status Whiteboard: 
Opened: 2007-03-11 22:03 0000
Description:   Opened: 2007-03-11 22:03 0000
Radeontool fails to fails to install.

Reproducible: Always

Steps to Reproduce:
1.emerge -va radeontool
2.
3.

Actual Results:  
>>> Emerging (1 of 1) app-laptop/radeontool-1.5-r3 to /
 * radeontool-1.5.tar.gz MD5 ;-) ...                                           
           [ ok ]
 * radeontool-1.5.tar.gz RMD160 ;-) ...                                        
           [ ok ]
 * radeontool-1.5.tar.gz SHA1 ;-) ...                                          
           [ ok ]
 * radeontool-1.5.tar.gz SHA256 ;-) ...                                        
           [ ok ]
 * radeontool-1.5.tar.gz size ;-) ...                                          
           [ ok ]
 * checking ebuild checksums ;-) ...                                           
           [ ok ]
 * checking auxfile checksums ;-) ...                                          
           [ ok ]
 * checking miscfile checksums ;-) ...                                         
           [ ok ]
 * checking radeontool-1.5.tar.gz ;-) ...                                      
           [ ok ]
>>> Unpacking source...
>>> Unpacking radeontool-1.5.tar.gz to /var/tmp/portage/app-laptop/radeontool-1.5-r3/work
 * Applying radeontool-1.5-mmap.patch ...                                      
           [ ok ]
 * Applying radeontool-1.5-vga-ati.patch ...                                   
           [ ok ]
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/app-laptop/radeontool-1.5-r3/work/radeontool-1.5 ...
i686-pc-linux-gnu-gcc -O2 -march=pentium-m -pipe -fomit-frame-pointer
radeontool.c -o radeontool
radeontool.c:24:22: error: asm/page.h: No such file or directory
radeontool.c: In function ?map_devince_memory?:
radeontool.c:97: error: ?PAGE_SIZE? undeclared (first use in this function)
radeontool.c:97: error: (Each undeclared identifier is reported only once
radeontool.c:97: error: for each function it appears in.)
make: *** [radeontool] Error 1

!!! ERROR: app-laptop/radeontool-1.5-r3 failed.
Call stack:
  ebuild.sh, line 1614:   Called dyn_compile
  ebuild.sh, line 971:   Called qa_call 'src_compile'
  environment, line 3040:   Called src_compile
  radeontool-1.5-r3.ebuild, line 35:   Called die

!!! emake failed
!!! If you need support, post the topmost build error, and the call stack if
relevant.
!!! A complete build log is located at
'/var/tmp/portage/app-laptop/radeontool-1.5-r3/temp/build.log'.

Expected Results:  
well it should just emerge...

A workaround is quite simpel, just do:

# ln -sf /usr/src/linux/include/asm/page.h /usr/include/asm/page.h

and it should compile correctly.

------- Comment #1 From schischa 2007-03-11 22:11:04 0000 -------
Created an attachment (id=113017) [details]
emerge --info

just my emerge --info output

------- Comment #2 From Roy Marples (RETIRED) 2007-03-15 11:42:12 0000 -------
Fixed, thanks for the report