Bug 159923 - libsdl fails to build fbcon drivers with sanitized linux-headers
Bug#: 159923 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: games@gentoo.org Reported By: vapier@gentoo.org
Component: Games
URL: 
Summary: libsdl fails to build fbcon drivers with sanitized linux-headers
Keywords:  
Status Whiteboard: 
Opened: 2007-01-03 23:06 0000
Description:   Opened: 2007-01-03 23:06 0000
most arches no longer export PAGE_SIZE in asm/page.h so fbcon driver fails to
build

------- Comment #1 From SpanKY 2007-01-03 23:08:39 0000 -------
fixed in cvs

------- Comment #2 From Panagiotis Christopoulos 2007-02-27 17:56:38 0000 -------
I tried to emerge media-libs/libsdl-1.2.11-r1, and the asm/page.h header file
issue,still exists:

/bin/sh ./libtool --mode=compile i686-pc-linux-gnu-gcc -O3 -march=pentium-m
-pipe  -I./include -D_GNU_SOURCE=1 -fvisibility=hidden   -DXTHREADS
-I/usr/include/ -D_REENTRANT -DHAVE_LINUX_VERSION_H -c
./src/video/fbcon/SDL_fbvideo.c  -o build/SDL_fbvideo.lo
 i686-pc-linux-gnu-gcc -O3 -march=pentium-m -pipe -I./include -D_GNU_SOURCE=1
-fvisibility=hidden -DXTHREADS -I/usr/include/ -D_REENTRANT
-DHAVE_LINUX_VERSION_H -c ./src/video/fbcon/SDL_fbriva.c -o build/SDL_fbriva.o
>/dev/null 2>&1
 i686-pc-linux-gnu-gcc -O3 -march=pentium-m -pipe -I./include -D_GNU_SOURCE=1
-fvisibility=hidden -DXTHREADS -I/usr/include/ -D_REENTRANT
-DHAVE_LINUX_VERSION_H -c ./src/video/fbcon/SDL_fbvideo.c  -fPIC -DPIC -o
build/.libs/SDL_fbvideo.o
/bin/sh ./libtool --mode=compile i686-pc-linux-gnu-gcc -O3 -march=pentium-m
-pipe  -I./include -D_GNU_SOURCE=1 -fvisibility=hidden   -DXTHREADS
-I/usr/include/ -D_REENTRANT -DHAVE_LINUX_VERSION_H -c
./src/video/caca/SDL_cacaevents.c  -o build/SDL_cacaevents.lo
./src/video/fbcon/SDL_fbvideo.c:32:57: error: asm/page.h: No such file or
directory
make: *** [build/SDL_fbvideo.lo] Error 1
make: *** Waiting for unfinished jobs....
 i686-pc-linux-gnu-gcc -O3 -march=pentium-m -pipe -I./include -D_GNU_SOURCE=1
-fvisibility=hidden -DXTHREADS -I/usr/include/ -D_REENTRANT
-DHAVE_LINUX_VERSION_H -c ./src/video/caca/SDL_cacaevents.c  -fPIC -DPIC -o
build/.libs/SDL_cacaevents.o
 i686-pc-linux-gnu-gcc -O3 -march=pentium-m -pipe -I./include -D_GNU_SOURCE=1
-fvisibility=hidden -DXTHREADS -I/usr/include/ -D_REENTRANT
-DHAVE_LINUX_VERSION_H -c ./src/video/caca/SDL_cacaevents.c -o
build/SDL_cacaevents.o >/dev/null 2>&1

!!! ERROR: media-libs/libsdl-1.2.11-r1 failed.
Call stack:
  ebuild.sh, line 1614:   Called dyn_compile
  ebuild.sh, line 971:   Called qa_call 'src_compile'
  environment, line 3594:   Called src_compile
  libsdl-1.2.11-r1.ebuild, line 160:   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/media-libs/libsdl-1.2.11-r1/temp/build.log'.


I did some search, and I found that PAGE_SIZE, is also defined in sys/user.h,
and I made a patch for myself instead of the original
libsdl-1.2.11-linux-headers.patch . The patch follows:

------- Comment #3 From Panagiotis Christopoulos 2007-02-27 18:10:48 0000 -------
Created an attachment (id=111453) [details]
My patch

I didn't file a new bug, because I'm not sure about what is going on. I read
your changelog, and found that the problem with the sanitizes headers was fixed
before 40 days, so I suppose that you can compile libsdl without problems?

------- Comment #4 From SpanKY 2007-03-03 04:54:41 0000 -------
you should file a new bug