Bug#393023: PAGE_SIZE is undeclared

2006-10-14 Thread maximilian attems
any userspace that relies on PAGE_SIZE is considered broken since long,
as it is quite ambiguous on ppc for example.
see getpagesize(2) or better sysconf(3)

PAGE_MASK is obtained then by 
pm = ~(sysconf(_SC_PAGESIZE) - 1);

-- 
maks


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#393023: PAGE_SIZE is undeclared

2006-10-14 Thread Martin Michlmayr
* Bastian Blank <[EMAIL PROTECTED]> [2006-10-14 20:55]:
> Several arches don't export PAGE_SIZE as it is not fixed.

That still leaves us with at least 8 build failures, and I should note
that these packages built on ia64/mips successfully before.


Here's a list:

bogl_0.1.18-1.4_20061010-0435:bogl.c:172: error: 'PAGE_MASK' undeclared (first 
use in this function)
ganglia-monitor-core_2.5.7-3_20061010-0807:gexec_process.c:330: error: 
'PAGE_SHIFT' undeclared (first use in this function)
lvm10_1:1.0.8-12_20061010-0845:lv_check_consistency.c:74: error: 'PAGE_SIZE' 
undeclared (first use in this function)
svgatextmode_1.9-15_20061010-1056:ttyresize.c:163: error: 'PAGE_SIZE' 
undeclared (first use in this function)
eciadsl_0.11-3_20061011-1033:pusb-linux.c:355: error: 'PAGE_SIZE' undeclared 
(first use in this function)
directfb-0.9-22_0.9.22-10_20061011-1538:../../../lib/direct/system.c:64: error: 
'PAGE_SIZE' undeclared (first use in this function)
jfbterm_0.4.7-4_20061011-2328:fbcommon.c:556: error: 'PAGE_MASK' undeclared 
(first use in this function)
vnc4_4.1.1+X4.3.0-18_20061013-1152:fbdevhw.c:548: error: 'PAGE_MASK' undeclared 
(first use in this function)

-- 
Martin Michlmayr
http://www.cyrius.com/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#393023: PAGE_SIZE is undeclared

2006-10-14 Thread Bastian Blank
On Sat, Oct 14, 2006 at 06:13:28PM +0100, Martin Michlmayr wrote:
> Lots of packages don't build because PAGE_SIZE is undeclared.

Several arches don't export PAGE_SIZE as it is not fixed.

> Examples:
> > Automatic build of directfb-0.9-22_0.9.22-10 on bigsur by sbuild/mips 0.49
> > Automatic build of eciadsl_0.11-3 on coconut0 by sbuild/ia64 0.49

You found the two arches where this is true.

Also asm/page.h is marked as "These probably shouldn't be exported".

Bastian

-- 
Leave bigotry in your quarters; there's no room for it on the bridge.
-- Kirk, "Balance of Terror", stardate 1709.2


signature.asc
Description: Digital signature


Bug#393023: PAGE_SIZE is undeclared

2006-10-14 Thread Martin Michlmayr
Package: linux-kernel-headers
Version: 2.6.18-3
Severity: grave

Lots of packages don't build because PAGE_SIZE is undeclared.

Examples:

1
> Automatic build of directfb-0.9-22_0.9.22-10 on bigsur by sbuild/mips 0.49
...
>   then mv -f ".deps/system.Tpo" ".deps/system.Plo"; else rm -f 
> ".deps/system.Tpo"; exit 1; fi
>  gcc -DHAVE_CONFIG_H -I. -I../../../lib/direct -I../.. -I../../include 
> -I../../lib -I../../../include -I../../../lib 
> -DDATADIR=\"/usr/share/directfb-0.9.22\" 
> -DMODULEDIR=\"/usr/lib/directfb-0.9.22\" -D_REENTRANT -Wall -O3 -ffast-math 
> -pipe -D_GNU_SOURCE -Werror-implicit-function-declaration -MT system.lo -MD 
> -MP -MF .deps/system.Tpo -c ../../../lib/direct/system.c  -fPIC -DPIC -o 
> .libs/system.o
> ../../../lib/direct/system.c: In function 'direct_pagesize':
> ../../../lib/direct/system.c:64: error: 'PAGE_SIZE' undeclared (first use in 
> this function)
> ../../../lib/direct/system.c:64: error: (Each undeclared identifier is 
> reported only once
> ../../../lib/direct/system.c:64: error: for each function it appears in.)
> make[4]: *** [system.lo] Error 1
> make[4]: Leaving directory 
> `/build/tbm/directfb-0.9-22-0.9.22/directfb-build/lib/direct'

2
> Automatic build of eciadsl_0.11-3 on coconut0 by sbuild/ia64 0.49
...
> if gcc -DPACKAGE_NAME=\"eciadsl-usermode\" 
> -DPACKAGE_TARNAME=\"eciadsl-usermode\" -DPACKAGE_VERSION=\"0.11\" 
> -DPACKAGE_STRING=\"eciadsl-usermode\ 0.11\" -DPACKAGE_BUGREPORT=\"[EMAIL 
> PROTECTED]" -DPACKAGE=\"eciadsl-usermode\" -DVERSION=\"0.11\" 
> -DHAVE_LIBPTHREAD=1 -DHAVE_DIRENT_H=1 -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 
> -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 
> -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 
> -DHAVE_UNISTD_H=1 -DHAVE_FCNTL_H=1 -DHAVE_LIMITS_H=1 -DHAVE_STDINT_H=1 
> -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_SYS_IOCTL_H=1 
> -DHAVE_SYS_SOCKET_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_TERMIOS_H=1 
> -DHAVE_UNISTD_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_UNISTD_H=1 -DHAVE_FORK=1 
> -DHAVE_VFORK=1 -DHAVE_WORKING_VFORK=1 -DHAVE_WORKING_FORK=1 
> -DHAVE_SYS_SELECT_H=1 -DHAVE_SYS_SOCKET_H=1 -DSELECT_TYPE_ARG1=int 
> -DSELECT_TYPE_ARG234=\(fd_set\ \*\) -DSELECT_TYPE_ARG5=\(struct\ timeval\ 
> \*\) -DRETSIGTYPE=void -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_ALARM=1 
> -DHAVE_GETTIMEOFDAY=1 -DHAVE_MEMSET=1 -DHAVE_SELECT=1 -DHAVE_SOCKET=1 
> -DHAVE_STRCASECMP=1 -DHAVE_STRTOL=1 -DHAVE_STRTOUL=1 -DHAVE_UNAME=1  -I. -I.  
> -DETC_DIR=\"/etc\" -DCONF_DIR=\"/etc/eciadsl\" 
> -DDOC_DIR=\"/usr/share/doc/eciadsl\"   -g -O2 -MT pusb.o -MD -MP -MF 
> ".deps/pusb.Tpo" -c -o pusb.o pusb.c; \
>   then mv -f ".deps/pusb.Tpo" ".deps/pusb.Po"; else rm -f 
> ".deps/pusb.Tpo"; exit 1; fi
> In file included from pusb.c:13:
> pusb-linux.c: In function 'pusb_endpoint_rw':
> pusb-linux.c:355: error: 'PAGE_SIZE' undeclared (first use in this function)
> pusb-linux.c:355: error: (Each undeclared identifier is reported only once
> pusb-linux.c:355: error: for each function it appears in.)
> make[3]: *** [pusb.o] Error 1
> make[3]: Leaving directory 
> `/build/tbm/eciadsl-0.11/build-tree/eciadsl-usermode-0.11'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory 
> `/build/tbm/eciadsl-0.11/build-tree/eciadsl-usermode-0.11'
> make[1]: *** [source.command] Error 2
> make[1]: Leaving directory `/build/tbm/eciadsl-0.11'
> make: *** [debian/stampdir/build] Error 2

3
> Automatic build of lvm10_1:1.0.8-12 on coconut0 by sbuild/ia64 0.49
...
> make[2]: Entering directory `/build/tbm/lvm10-1.0.8/1.0.8/tools'
> make[3]: Entering directory `/build/tbm/lvm10-1.0.8/1.0.8/tools/lib'
> make[4]: Entering directory `/build/tbm/lvm10-1.0.8/1.0.8/tools/lib'
> gcc -c -pipe -g -O2 -Wall -I../../tools/lib -I../../tools 
> -I/build/tbm/lvm10-1.0.8/1.0.8/tools/lib -I../../../kernel -o basename.o 
> basename.c
> gcc -c -pipe -g -O2 -Wall -I../../tools/lib -I../../tools 
> -I/build/tbm/lvm10-1.0.8/1.0.8/tools/lib -I../../../kernel -o debug.o debug.c
> gcc -c -pipe -g -O2 -Wall -I../../tools/lib -I../../tools 
> -I/build/tbm/lvm10-1.0.8/1.0.8/tools/lib -I../../../kernel -o 
> lv_change_read_ahead.o lv_change_read_ahead.c
> gcc -c -pipe -g -O2 -Wall -I../../tools/lib -I../../tools 
> -I/build/tbm/lvm10-1.0.8/1.0.8/tools/lib -I../../../kernel -o 
> lv_change_vgname.o lv_change_vgname.c
> gcc -c -pipe -g -O2 -Wall -I../../tools/lib -I../../tools 
> -I/build/tbm/lvm10-1.0.8/1.0.8/tools/lib -I../../../kernel -o 
> lv_check_active.o lv_check_active.c
> gcc -c -pipe -g -O2 -Wall -I../../tools/lib -I../../tools 
> -I/build/tbm/lvm10-1.0.8/1.0.8/tools/lib -I../../../kernel -o 
> lv_check_consistency.o lv_check_consistency.c
> lv_check_consistency.c: In function 'lv_check_consistency':
> lv_check_consistency.c:74: error: 'PAGE_SIZE' undeclared (first use in this 
> function)
> lv_check_consistency.c:74: error: (Each undeclared identifier is reported 
> only once
> lv_check_consistency.c:74: error: for each function it appears in