getpagesize mixup during build

Peter Dufault dufault at hda.com
Thu Sep 24 10:25:37 UTC 2009


I see a conflict between the code and the headers, with the code  
wrong, unless something is wrong with my setup.  I cvs updated before  
this report.

During build:
../../../../../../rtems-4.9.99.0/c/src/../../cpukit/posix/src/ 
getpagesize.c:19: error: conflicting types for 'getpagesize'
/opt/rtems-4.10/lib/gcc/powerpc-rtems4.10/4.4.1/../../../../powerpc- 
rtems4.10/include/sys/unistd.h:84: note: previous declaration of  
'getpagesize' was here

Man page:
int getpagesize(void);

Source:
size_t getpagesize(void)

Header:
int _EXFUN(getpagesize, (void));
-rw-r--r-- 1 root root 18159 2009-09-22 12:15 /opt/rtems-4.10/lib/gcc/ 
powerpc-rtems4.10/4.4.1/../../../../powerpc-rtems4.10/include/sys/ 
unistd.h

Peter



More information about the users mailing list