Compile error in libc/sysdeps/linux/common/close.c

Peter S. Mazinger ps.m at gmx.net
Mon Jan 16 20:47:27 UTC 2006


On Mon, 16 Jan 2006, Peter S. Mazinger wrote:

> On Mon, 16 Jan 2006, Jan-Benedict Glaw wrote:
> 
> > On Sun, 2006-01-15 23:41:44 +0100, Peter S. Mazinger <ps.m at gmx.net> wrote:
> > > On Sun, 15 Jan 2006, Peter S. Mazinger wrote:
> > > it builds now w/ gcc-4.0.2, could be ok for you as well
> > 
> > That's indeed better, but doesn't compile completely:
> > 
> > vax-linux-uclibc-gcc -c libc/misc/sysvipc/shm.c -o libc/misc/sysvipc/shmat.o -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fsigned-char -fno-stack-protector -fno-builtin -nostdinc -D_LIBC -I./include -I. -Os -funit-at-a-time -isystem /home/jbglaw/vax-linux/scm/build-20060115-230204-UTC-vax-linux-uclibc/install/usr/lib/gcc/vax-linux-uclibc/4.2.0/include -DNDEBUG -DL_shmat
> > libc/misc/sysvipc/shm.c:29: error: 'getpagesize' undeclared here (not in a function)
> > libc/misc/sysvipc/shm.c:29: warning: type defaults to 'int' in declaration of 'getpagesize'
> > libc/misc/sysvipc/shm.c: In function 'shmat':
> > libc/misc/sysvipc/shm.c:47: error: called object 'getpagesize' is not a function
> > libc/misc/sysvipc/shm.c:49: warning: control reaches end of non-void function
> > make: *** [libc/misc/sysvipc/shmat.o] Error 1
> > 
> > MfG, JBG
> shm.c uses __getpagesize defined in shm.h (I can't understand why are 2 
> of them in different headers), could you try to move #define __getpagesize getpagesize
> after the included headers?

could it be that your vax bits/shm.h does not define __getpagesize?

Peter

-- 
Peter S. Mazinger <ps dot m at gmx dot net>           ID: 0xA5F059F2
Key fingerprint = 92A4 31E1 56BC 3D5A 2D08  BB6E C389 975E A5F0 59F2




More information about the uClibc mailing list