From: Doug M. <do...@hy...> - 2007-04-21 15:35:23
|
Hi Jan, No problem, changed in trunk and branches/SIGAR_1_4 to use getpagesize=20= (). On Apr 19, 2007, at 12:27 PM, Jan Kneschke wrote: > Hi Doug, > > I don't know if this issue has already discussed before. > > $ uname -a > Linux sles9-ia64 2.6.5-7.151-default #1 SMP Fri Mar 18 11:31:21 UTC =20= > 2005 > ia64 ia64 ia64 GNU/Linux > > > src/os/linux/linux_sigar.c: In function `proc_stat_read': > src/os/linux/linux_sigar.c:735: error: `PAGE_SHIFT' undeclared (first > use in this function) > src/os/linux/linux_sigar.c:735: error: (Each undeclared identifier is > reported only once > src/os/linux/linux_sigar.c:735: error: for each function it appears =20= > in.) > src/os/linux/linux_sigar.c: In function `sigar_proc_mem_get': > src/os/linux/linux_sigar.c:775: error: `PAGE_SHIFT' undeclared (first > use in this function) > > In > > $ rpm -qf /usr/include/asm/page.h > glibc-devel-2.3.3-98.38 > > it is not referenced. > > On my OpenSUSE 10.1 it is defined: > > $ rpm -qf /usr/include/asm/page.h > glibc-devel-2.4-31.1 > > Can you make it portable and use getpagesize() instead ? > > cheers, > Jan > -- > Jan Kneschke, Enterprise Tools Dev, MySQL GmbH, D-81373 M=FCnchen > Radlkoferstr. 2, GF: Hans von Bell, Kaj Arn=F6 - HRB M=FCnchen 162140 > > |