[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#384312: marked as done (xawtv: FTBFS (powerpc/ppc64): 'PAGE_MASK' undeclared (first use in this function))



Your message dated Wed, 23 Aug 2006 14:33:26 -0700
with message-id <E1GG0Lm-0006Dv-DX@spohr.debian.org>
and subject line Bug#384312: fixed in xawtv 3.95-3
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: xawtv
Version: 3.95-2
Severity: serious
Tags: patch

When building 'xawtv' on powerpc/unstable,
I get the following error:

  CC	  console/fbtv.o
In file included from console/fbtv.c:31:
./libng/grab-ng.h:28:1: warning: "bool" redefined
In file included from /usr/include/curses.h:161,
                 from console/fbtv.c:24:
/usr/lib/gcc/powerpc64-linux-gnu/4.1.2/include/stdbool.h:36:1: warning: this is the location of the previous definition
console/fbtv.c: In function 'text_out':
console/fbtv.c:341: warning: pointer targets in passing argument 4 of 'fs_puts' differ in signedness
console/fbtv.c: In function 'text_width':
console/fbtv.c:347: warning: pointer targets in passing argument 2 of 'fs_textwidth' differ in signedness
console/fbtv.c: In function 'main':
console/fbtv.c:813: warning: pointer targets in assignment differ in signedness
  CC	  console/fbtools.o
console/fbtools.c: In function 'fb_init':
console/fbtools.c:427: error: 'PAGE_MASK' undeclared (first use in this function)
console/fbtools.c:427: error: (Each undeclared identifier is reported only once
console/fbtools.c:427: error: for each function it appears in.)
make[1]: *** [console/fbtools.o] Error 1
make[1]: Leaving directory `/xawtv-3.95'
make: *** [build-stamp] Error 2

With the attached patch 'xawtv' can be compiled on powerpc.

Regards
Andreas Jochens

diff -urN ../tmp-orig/xawtv-3.95/console/fbtools.c ./console/fbtools.c
--- ../tmp-orig/xawtv-3.95/console/fbtools.c	2003-02-14 14:14:04.000000000 +0000
+++ ./console/fbtools.c	2006-08-23 10:57:40.000000000 +0000
@@ -21,8 +21,6 @@
 #include <linux/vt.h>
 #include <linux/fb.h>
 
-#include <asm/page.h>
-
 #include "fbtools.h"
 
 /* -------------------------------------------------------------------- */
@@ -424,7 +422,7 @@
 	goto err;
     }
 #endif
-    fb_mem_offset = (unsigned long)(fb_fix.smem_start) & (~PAGE_MASK);
+    fb_mem_offset = (unsigned long)(fb_fix.smem_start) & ~(sysconf(_SC_PAGE_SIZE)-1);
     fb_mem = mmap(NULL,fb_fix.smem_len+fb_mem_offset,
 		  PROT_READ|PROT_WRITE,MAP_SHARED,fb,0);
     if (-1L == (long)fb_mem) {
diff -urN ../tmp-orig/xawtv-3.95/console/matrox.c ./console/matrox.c
--- ../tmp-orig/xawtv-3.95/console/matrox.c	2005-02-03 10:40:41.000000000 +0000
+++ ./console/matrox.c	2006-08-23 11:09:51.000000000 +0000
@@ -9,7 +9,6 @@
 #include <sys/ioctl.h>
 #include <sys/mman.h>
 
-#include <asm/page.h> /* PAGE_SIZE */
 #include <linux/fb.h>
 
 #include "byteswap.h"
@@ -226,7 +225,7 @@
 	return -1;
     }
     off = (unsigned long)fb_fix.mmio_start -
-	((unsigned long)fb_fix.mmio_start & ~(PAGE_SIZE-1));
+	((unsigned long)fb_fix.mmio_start & ~(sysconf(_SC_PAGE_SIZE)-1));
     bmmio += off;
     mmio = (uint32_t*)bmmio;
     return 0;


--- End Message ---
--- Begin Message ---
Source: xawtv
Source-Version: 3.95-3

We believe that the bug you reported is fixed in the latest version of
xawtv, which is due to be installed in the Debian FTP archive:

alevtd_3.95-3_sparc.deb
  to pool/main/x/xawtv/alevtd_3.95-3_sparc.deb
fbtv_3.95-3_sparc.deb
  to pool/main/x/xawtv/fbtv_3.95-3_sparc.deb
pia_3.95-3_sparc.deb
  to pool/main/x/xawtv/pia_3.95-3_sparc.deb
radio_3.95-3_sparc.deb
  to pool/main/x/xawtv/radio_3.95-3_sparc.deb
scantv_3.95-3_sparc.deb
  to pool/main/x/xawtv/scantv_3.95-3_sparc.deb
streamer_3.95-3_sparc.deb
  to pool/main/x/xawtv/streamer_3.95-3_sparc.deb
ttv_3.95-3_sparc.deb
  to pool/main/x/xawtv/ttv_3.95-3_sparc.deb
v4l-conf_3.95-3_sparc.deb
  to pool/main/x/xawtv/v4l-conf_3.95-3_sparc.deb
webcam_3.95-3_sparc.deb
  to pool/main/x/xawtv/webcam_3.95-3_sparc.deb
xawtv-plugin-qt_3.95-3_sparc.deb
  to pool/main/x/xawtv/xawtv-plugin-qt_3.95-3_sparc.deb
xawtv-plugins_3.95-3_sparc.deb
  to pool/main/x/xawtv/xawtv-plugins_3.95-3_sparc.deb
xawtv-tools_3.95-3_sparc.deb
  to pool/main/x/xawtv/xawtv-tools_3.95-3_sparc.deb
xawtv_3.95-3.diff.gz
  to pool/main/x/xawtv/xawtv_3.95-3.diff.gz
xawtv_3.95-3.dsc
  to pool/main/x/xawtv/xawtv_3.95-3.dsc
xawtv_3.95-3_sparc.deb
  to pool/main/x/xawtv/xawtv_3.95-3_sparc.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 384312@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Aurelien Jarno <aurel32@debian.org> (supplier of updated xawtv package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Wed, 23 Aug 2006 21:27:22 +0200
Source: xawtv
Binary: xawtv-plugins fbtv radio ttv webcam xawtv-plugin-qt pia xawtv xawtv-tools scantv streamer alevtd v4l-conf
Architecture: source sparc
Version: 3.95-3
Distribution: unstable
Urgency: low
Maintainer: Debian QA Group <packages@qa.debian.org>
Changed-By: Aurelien Jarno <aurel32@debian.org>
Description: 
 alevtd     - http daemon for videotext pages
 fbtv       - linux console (fbcon) TV application
 pia        - movie player
 radio      - ncurses-based radio application
 scantv     - scan TV channels for stations
 streamer   - capture tool (images / movies)
 ttv        - tty TV application
 v4l-conf   - tool to configure video4linux drivers
 webcam     - capture and upload images
 xawtv      - X11 TV application
 xawtv-plugin-qt - quicktime plugin for xawtv and motv
 xawtv-plugins - plugins for xawtv and motv
 xawtv-tools - Miscellaneous tools distributed with xawtv
Closes: 384312
Changes: 
 xawtv (3.95-3) unstable; urgency=low
 .
   * QA upload.
   * 07_page_size.dpatch: fix build against newer kernel-headers which
     do not define PAGE_MASK anymore.  Closes: #384312.
Files: 
 91f96679aba936cc9c0d550bcea6162e 1100 graphics extra xawtv_3.95-3.dsc
 570b9ebff3b7e9a8774d8161b82e4c1f 24439 graphics extra xawtv_3.95-3.diff.gz
 46235aafa94adde7a16e5b54f69e95ed 236758 x11 extra xawtv_3.95-3_sparc.deb
 267e6aede0d591a759832b35fac744fe 35550 x11 extra pia_3.95-3_sparc.deb
 b10bb3a847136a9c6a583eb317271546 66010 graphics extra fbtv_3.95-3_sparc.deb
 09c791b1fe659d44f30c17583dd99795 48516 graphics extra ttv_3.95-3_sparc.deb
 6fb87414964f493b518a354a143177fb 53186 graphics extra scantv_3.95-3_sparc.deb
 b2d8d25d29b59930fd263015f3890be3 49728 graphics extra streamer_3.95-3_sparc.deb
 cd60f90e465518dcb42abfd6f068f5ff 16622 sound extra radio_3.95-3_sparc.deb
 df634b47d6d2630a701328e92af6ed9a 24992 graphics extra v4l-conf_3.95-3_sparc.deb
 47b3135b7e1be28a26aa45598abe10e6 30530 graphics extra xawtv-tools_3.95-3_sparc.deb
 3da4f8ba6fd309e3a98da428c71039ea 14376 graphics extra xawtv-plugin-qt_3.95-3_sparc.deb
 526f5a207368b224826bc5310acdf12e 85204 graphics extra xawtv-plugins_3.95-3_sparc.deb
 b9b924300cad4fa2be12430bee5bafe9 33914 net extra webcam_3.95-3_sparc.deb
 cb4a81ad8673696cebd0fce816434c71 31354 net extra alevtd_3.95-3_sparc.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)

iD4DBQFE7LfKw3ao2vG823MRAsd1AJjomIEnFRaUtvDZTO4/K+z12hAAAJ4muvHn
3aYcVzhHC1irzUP8dTJfPw==
=jShJ
-----END PGP SIGNATURE-----


--- End Message ---

Reply to: