Thread: Compiling Issues
Status: Alpha
Brought to you by:
coroberti
From: <Ko...@co...> - 2007-08-27 14:57:45
|
Dear curl-users, I am trying to compile the curl-loader 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 Any suggestions, ideas what went wrong? Thanks a lot in advance, Bjoern |
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. |
From: Robert I. <cor...@gm...> - 2007-08-27 16:05:16
|
On 8/27/07, Robert Iakobashvili <cor...@gm...> wrote: > > 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/mpo= ol.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 > > Sorry, the correct work-around, after all other options do not work, and you will not find an include file for PAGE_SIZE: #if !defined PAGE_SIZE #define PAGE_SIZE 4096 endif --=20 Sincerely, Robert Iakobashvili, coroberti %x40 gmail %x2e com ........................................................... http://curl-loader.sourceforge.net A web testing and traffic generation tool. |
From: <Ko...@co...> - 2007-08-28 06:58:00
|
Hi Robert, =20 thanks for your quick responses. We have 64 bit processors over here and = the specific page.h does not contain any definitions for centOS with 64 = bit. Until I found any proper statements and solutions for that, I will = use the workaround ;-) =20 Thanks a lot so far :-) Yours, Bjoern ________________________________ Von: cur...@li... = [mailto:cur...@li...] Im Auftrag von = Robert Iakobashvili Gesendet: Montag, 27. August 2007 18:05 An: web loading and performance testing tool Betreff: Re: Compiling Issues On 8/27/07, Robert Iakobashvili <cor...@gm...> wrote:=20 Hi Bj=F6rn Korall,=20 =09 =09 On 8/27/07, Bj=F6rn Korall < Ko...@co... = <mailto:Ko...@co...> > wrote:=20 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): =09 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)=20 make: *** [obj/mpool.o] error 1 Sorry, the correct work-around, after all other options do not work, and you will not find an include file for PAGE_SIZE: =20 =20 #if !defined PAGE_SIZE #define PAGE_SIZE 4096 endif --=20 Sincerely, Robert Iakobashvili,=20 coroberti %x40 gmail %x2e com ...........................................................=20 http://curl-loader.sourceforge.net A web testing and traffic generation tool.=20 |
From: Robert I. <cor...@gm...> - 2007-08-28 07:25:11
|
Hi Bj=F6rn, On 8/28/07, Bj=F6rn Korall <Ko...@co...> wrote: > > Hi Robert, > > thanks for your quick responses. We have 64 bit processors over here and > the specific page.h does not contain any definitions for centOS with 64 > bit. Until I found any proper statements and solutions for that, I will u= se > the workaround ;-) > If you are confirming, that it works for you, I will add the patch to source control. Thank you. Sincerely, Robert Iakobashvili, coroberti %x40 gmail %x2e com ........................................................... http://curl-loader.sourceforge.net A web testing and traffic generation tool. |
From: <Ko...@co...> - 2007-08-28 12:52:20
|
Hi Robert, =20 works just fine so far :-) Thanks a lot for your help =20 Best, Bjoern =20 ________________________________ Von: cur...@li... = [mailto:cur...@li...] Im Auftrag von = Robert Iakobashvili Gesendet: Dienstag, 28. August 2007 09:25 An: web loading and performance testing tool Betreff: Re: Compiling Issues Hi Bj=F6rn, On 8/28/07, Bj=F6rn Korall <Ko...@co... > wrote:=20 Hi Robert, =20 thanks for your quick responses. We have 64 bit processors over here = and the specific page.h does not contain any definitions for centOS with = 64 bit. Until I found any proper statements and solutions for that, I = will use the workaround ;-) If you are confirming, that it works for you, I will add the patch to source control. =20 Thank you. Sincerely, Robert Iakobashvili,=20 coroberti %x40 gmail %x2e com ........................................................... http://curl-loader.sourceforge.net A web testing and traffic generation tool.=20 |