Bug#521749: FTBFS: error: asm/page.h: No such file or directory

2009-12-19 Thread Geoff Simmons
tags 521749 patch
thanks

Hi,

Attached is a patch including defines for PAGE_{MASK,SHIFT,SIZE} which were
previously available in asm/page.h (BTS #479898).

Tested with an Agere Systems WinModem 56k [11c1:0449] (rev 01).

Geoff
only in patch2:
unchanged:
--- martian-modem-20080617.orig/modem/tweakrelocsdynamic.c
+++ martian-modem-20080617/modem/tweakrelocsdynamic.c
@@ -24,7 +24,9 @@
 #include 
 #include 
 
-#include 
+// #include 
+#define PAGE_SIZE (sysconf(_SC_PAGESIZE))
+#define PAGE_MASK (~(sysconf(_SC_PAGESIZE) - 1))
 
 #define PREFIX "dynreloc"
 #include "log.h"
only in patch2:
unchanged:
--- martian-modem-20080617.orig/modem/mport.c
+++ martian-modem-20080617/modem/mport.c
@@ -5,7 +5,7 @@
 #include 
 #include 		/*** mmap */
 // #include 
-#include 		/*** PAGE_SIZE */
+// #include 		/*** PAGE_SIZE */
 #include 		/*** memcmp */
 #include 
 #include 		// close
@@ -27,6 +27,8 @@
 #include "../martian.h"
 
 #define MSIGVI (SIGRTMIN + 1)
+#define PAGE_SIZE (sysconf(_SC_PAGESIZE))
+#define PAGE_SHIFT (ffs(sysconf(_SC_PAGESIZE)) - 1)
 
 extern int pin_thread (void);
 extern int smp_setup (int irq, int dev_fd);


Bug#521749: FTBFS: error: asm/page.h: No such file or directory

2009-03-29 Thread Marco Rodrigues
Package: martian-modem
Version: 20080617-1
Severity: important
Justification: fails to build from source

/usr/bin/make -C modem
make[1]: Entering directory `/tmp/buildd/martian-modem-20080617/modem'
CC  main.o
main.c: In function 'monitor_state':
main.c:698: warning: format '%d' expects type 'int', but argument 4 has type 
'long int'
main.c:699: warning: format '%d' expects type 'int', but argument 4 has type 
'long int'
main.c:700: warning: format '%d' expects type 'int', but argument 4 has type 
'long int'
main.c:701: warning: format '%d' expects type 'int', but argument 4 has type 
'long int'
main.c:702: warning: format '%d' expects type 'int', but argument 4 has type 
'long int'
CC  dumpers.o
CC  log.o
CC  session.o
CC  mport.o
mport.c:8:41: error: asm/page.h: No such file or directory
mport.c: In function 'mport_init':
mport.c:266: error: 'PAGE_SIZE' undeclared (first use in this function)
mport.c:266: error: (Each undeclared identifier is reported only once
mport.c:266: error: for each function it appears in.)
mport.c:266: error: 'PAGE_SHIFT' undeclared (first use in this function)
mport.c:341: warning: cast to pointer from integer of different size
make[1]: *** [mport.o] Error 1
make[1]: Leaving directory `/tmp/buildd/martian-modem-20080617/modem'
make: *** [build] Error 2

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (700, 'unstable'), (650, 'testing'), (600, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.29-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org