Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 159923 - media-libs/libsdl fails to build fbcon drivers with sanitized linux-headers
Summary: media-libs/libsdl fails to build fbcon drivers with sanitized linux-headers
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: sane-linux-headers
  Show dependency tree
 
Reported: 2007-01-03 23:06 UTC by SpanKY
Modified: 2010-01-06 05:34 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
My patch (libsdl-1.2.11-linux-headers.patch,668 bytes, patch)
2007-02-27 18:10 UTC, Panagiotis Christopoulos (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description SpanKY gentoo-dev 2007-01-03 23:06:52 UTC
most arches no longer export PAGE_SIZE in asm/page.h so fbcon driver fails to build
Comment 1 SpanKY gentoo-dev 2007-01-03 23:08:39 UTC
fixed in cvs
Comment 2 Panagiotis Christopoulos (RETIRED) gentoo-dev 2007-02-27 17:56:38 UTC
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 Panagiotis Christopoulos (RETIRED) gentoo-dev 2007-02-27 18:10:48 UTC
Created attachment 111453 [details, diff]
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 SpanKY gentoo-dev 2007-03-03 04:54:41 UTC
you should file a new bug