Re: Compiling Issues
Status: Alpha
Brought to you by:
coroberti
From: Robert I. <cor...@gm...> - 2007-08-27 15:24:41
|
Hi Bj=F6rn Korall, On 8/27/07, Bj=F6rn Korall <Ko...@co...> wrote: > > > on a CentOS with a 2.6.18 kernel. However, I get the following error (the > compiler is bailing out when compiling the mpool.c): > > gcc -W -Wall -Wpointer-arith -pipe -DCURL_LOADER_FD_SETSIZE=3D20000 > -D_FILE_OFFSET_BITS=3D64 -g -I. -I./inc -I/usr//include -c -o obj/mpool= .o > mpool.c > mpool.c: in function mpool_init: > mpool.c:160: error: PAGE_SIZE not declared (first use in this function) > make: *** [obj/mpool.o] error 1 > We are getting PAGE_SIZE from <asm/page.h> Please, check, that you have glibc headers installed in, normally: /usr/include This is normally called glibc-headers or glibc-dev packages, depends on you= r distribution. If your distribution has PAGE_SIZE defined in some other glibc header, whic= h is not <asm/page.h>, please, let us know and include this header. The worst work-around could be something like this: #if !defined (PAGE_SIZE) #define (PAGE_SIZE) 4096 #endif Please, report your advances. Take care and best wishes. Sincerely, Robert Iakobashvili, coroberti %x40 gmail %x2e com ........................................................... http://curl-loader.sourceforge.net A web testing and traffic generation tool. |