Hi! ----
While looking through the build logs of ksh93 for warnings I found the following item: -- snip -- cc -D_BLD_DLL -Kpic -D_BLD_ast -I. -I/home/test001/tmp/ast_buildtest/build/src/lib/libast -Icomp -I/home/test001/tmp/ast_buildtest /build/src/lib/libast/comp -Iport -I/home/test001/tmp/ast_buildtest/build/src/lib/libast/port -Isfio -I/home/test001/tmp/ast_buildte st/build/src/lib/libast/sfio -Iinclude -I/home/test001/tmp/ast_buildtest/build/src/lib/libast/include -Istd -I/home/test001/tmp/ast_ buildtest/build/src/lib/libast/std -I/home/test001/tmp/ast_buildtest/build/arch/sol10.i386/include -D_PACKAGE_ast -c /home/test001/t mp/ast_buildtest/build/src/lib/libast/port/mc.c "/usr/include/sys/param.h", line 450: warning: macro redefined: PAGESIZE -- snip -- I checked where this issues comes from and found the following #define in usr/include/ast/ast_limits.h (on i386 platform) -- snip -- usr/include/ast/$ ggrep -r PAGESIZE . ./ast_limits.h:#undef PAGESIZE ./ast_limits.h:#define PAGESIZE 4096 -- snip -- For Solaris x86 this may be valid - but for SPARC this is simply wrong. The Sun architecture "sun4m" uses 4k pages, "sun4u" and "sun4v" use 8k pages and in the future this may even be configurable at boot- and/or runtime (currently there is a project under discussion to allow switching between 8k and 64k on UltraSPARC via a kernel tuneable) ... AFAIK this should be simply |#define PAGESIZE getpagesize()| on SPARC to avoid malfunctions... ---- Bye, Roland -- __ . . __ (o.\ \/ /.o) roland.mainz at nrubsig.org \__\/\/__/ MPEG specialist, C&&JAVA&&Sun&&Unix programmer /O /==\ O\ TEL +49 641 7950090 (;O/ \/ \O;)
