<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>159923</bug_id>
          
          <creation_ts>2007-01-03 23:06 0000</creation_ts>
          <short_desc>libsdl fails to build fbcon drivers with sanitized linux-headers</short_desc>
          <delta_ts>2007-03-03 04:54:41 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Games</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>159304</blocked>
          
          <everconfirmed>1</everconfirmed>
          <reporter>vapier@gentoo.org</reporter>
          <assigned_to>games@gentoo.org</assigned_to>
          <cc>pchrist@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2007-01-03 23:06:52 0000</bug_when>
            <thetext>most arches no longer export PAGE_SIZE in asm/page.h so fbcon driver fails to build</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2007-01-03 23:08:39 0000</bug_when>
            <thetext>fixed in cvs</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>pchrist@gentoo.org</who>
            <bug_when>2007-02-27 17:56:38 0000</bug_when>
            <thetext>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 &gt;/dev/null 2&gt;&amp;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 &gt;/dev/null 2&gt;&amp;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 &apos;src_compile&apos;
  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 &apos;/var/tmp/portage/media-libs/libsdl-1.2.11-r1/temp/build.log&apos;.


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:</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>pchrist@gentoo.org</who>
            <bug_when>2007-02-27 18:10:48 0000</bug_when>
            <thetext>Created an attachment (id=111453)
My patch

I didn&apos;t file a new bug, because I&apos;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?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2007-03-03 04:54:41 0000</bug_when>
            <thetext>you should file a new bug</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>111453</attachid>
            <date>2007-02-27 18:10 0000</date>
            <desc>My patch</desc>
            <filename>libsdl-1.2.11-linux-headers.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">aHR0cDovL2J1Z3MuZ2VudG9vLm9yZy8xNTk5MjMKCi0tLSBzcmMvdmlkZW8vZmJjb24vU0RMX2Zi
dmlkZW8uYworKysgc3JjL3ZpZGVvL2ZiY29uL1NETF9mYnZpZGVvLmMKQEAgLTI5LDcgKzI5LDcg
QEAKICNpbmNsdWRlIDx1bmlzdGQuaD4KICNpbmNsdWRlIDxzeXMvaW9jdGwuaD4KICNpbmNsdWRl
IDxzeXMvbW1hbi5oPgotI2luY2x1ZGUgPGFzbS9wYWdlLmg+CQkvKiBGb3IgZGVmaW5pdGlvbiBv
ZiBQQUdFX1NJWkUgKi8KKyNpbmNsdWRlIDxzeXMvdXNlci5oPgkJLyogRm9yIGRlZmluaXRpb24g
b2YgUEFHRV9TSVpFICovCiAjaW5jbHVkZSA8bGludXgvdnQuaD4KIAogI2luY2x1ZGUgIlNETF92
aWRlby5oIgotLS0gc3JjL3ZpZGVvL3BzMmdzL1NETF9nc3l1di5jCisrKyBzcmMvdmlkZW8vcHMy
Z3MvU0RMX2dzeXV2LmMKQEAgLTI5LDYgKzI5LDEwIEBACiAjaW5jbHVkZSA8c3lzL21tYW4uaD4K
ICNpbmNsdWRlIDxhc20vcGFnZS5oPgkJLyogRm9yIGRlZmluaXRpb24gb2YgUEFHRV9TSVpFICov
CiAKKyNpZm5kZWYgUEFHRV9TSVpFCisjIGRlZmluZSBQQUdFX1NJWkUgc3lzY29uZihfU0NfUEFH
RV9TSVpFKQorI2VuZGlmCisKICNpbmNsdWRlICJTRExfdmlkZW8uaCIKICNpbmNsdWRlICJTRExf
Z3N5dXZfYy5oIgogI2luY2x1ZGUgIi4uL1NETF95dXZmdW5jcy5oIgo=
</data>        

          </attachment>
    </bug>

</bugzilla>