zakkymuha / lusca-cache

Automatically exported from code.google.com/p/lusca-cache
0 stars 0 forks source link

build / compile error when using --enable-coss-aio-ops #62

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.compile lusca with coss support, and  --enable-coss-aio-ops

(./configure --prefix=/usr/local/squid_1/ --enable-delay-pools
--with-filedescriptors=16000 --enable-removal-policies=heap,lru
--disable-useragent-log --enable-epoll --enable-coss-aio-ops
--enable-storeio=coss --with-large-files --enable-underscores
--enable-referer-log --enable-snmp --enable-cache-digests
--enable-large-cache-files --enable-time-hack --disable-ident-lookups
--enable-async-io=84 --with-maxfd=32000 --disable-wccp --disable-wccp2
--disable-select --with-pthreads)

What is the expected output? What do you see instead?

compile without errors 

insted I see when making : 

Making all in fs
make[3]: Entering directory `/root/lusca-cache-read-only/src/fs'
depbase=`echo coss/store_io_coss.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
        gcc -DHAVE_CONFIG_H -I. -I../../include -I. -I../../include
-I../../include -I../../src    -m32 -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -march=nocona -O3 -pipe -msse3 -msse2 -msse
-mfpmath=sse -mmmx -fomit-frame-pointer -ffast-math  -funroll-loops
-D_REENTRANT -MT coss/store_io_coss.o -MD -MP -MF $depbase.Tpo -c -o
coss/store_io_coss.o coss/store_io_coss.c &&\
        mv -f $depbase.Tpo $depbase.Po
In file included from coss/store_io_coss.c:40:
coss/store_coss.h:141: error: expected specifier-qualifier-list before
‘async_queue_t’
coss/store_io_coss.c: In function ‘storeCossMemOnlyAllocate’:
coss/store_io_coss.c:86: error: ‘CossInfo’ has no member named
‘current_memonly_membuf’
coss/store_io_coss.c:88: error: ‘CossInfo’ has no member named
‘current_memonly_membuf’
coss/store_io_coss.c:93: error: ‘CossInfo’ has no member named
‘current_memonly_offset’
coss/store_io_coss.c:93: error: ‘CossInfo’ has no member named
‘current_memonly_membuf’
coss/store_io_coss.c:94: error: ‘CossInfo’ has no member named
‘current_memonly_offset’
coss/store_io_coss.c:94: error: ‘CossInfo’ has no member named
‘current_memonly_membuf’
coss/store_io_coss.c:95: error: ‘CossInfo’ has no member named 
‘curmemstripe’
coss/store_io_coss.c:95: error: ‘CossInfo’ has no member named
‘current_memonly_membuf’
coss/store_io_coss.c:96: error: ‘CossInfo’ has no member named
‘current_memonly_membuf’
coss/store_io_coss.c:97: error: ‘CossInfo’ has no member named
‘current_memonly_membuf’
coss/store_io_coss.c:101: error: ‘CossInfo’ has no member named
‘current_memonly_membuf’
coss/store_io_coss.c:106: error: ‘CossInfo’ has no member named
‘current_memonly_offset’
coss/store_io_coss.c:106: error: ‘CossInfo’ has no member named
‘current_memonly_membuf’
coss/store_io_coss.c:108: error: ‘CossInfo’ has no member named
‘current_memonly_offset’
coss/store_io_coss.c:109: error: ‘CossInfo’ has no member named
‘current_memonly_offset’
coss/store_io_coss.c:110: error: ‘CossInfo’ has no member named
‘current_memonly_membuf’
coss/store_io_coss.c:111: error: ‘CossInfo’ has no member named
‘current_memonly_offset’
coss/store_io_coss.c:111: error: ‘CossInfo’ has no member named
‘current_memonly_offset’
coss/store_io_coss.c:111: error: ‘CossInfo’ has no member named 
‘blksz_mask’
coss/store_io_coss.c:111: error: ‘CossInfo’ has no member named 
‘blksz_bits’
coss/store_io_coss.c:111: error: ‘CossInfo’ has no member named 
‘blksz_bits’
coss/store_io_coss.c: In function ‘storeCossAllocate’:
coss/store_io_coss.c:160: error: ‘CossInfo’ has no member named 
‘curstripe’
coss/store_io_coss.c:160: error: ‘CossInfo’ has no member named 
‘numstripes’
coss/store_io_coss.c:161: error: ‘CossInfo’ has no member named 
‘curstripe’
coss/store_io_coss.c:167: error: ‘CossInfo’ has no member named 
‘sizerange_max’
coss/store_io_coss.c:180: error: ‘CossInfo’ has no member named
‘numfullstripes’
coss/store_io_coss.c:190: error: ‘CossInfo’ has no member named 
‘sizerange_max’
coss/store_io_coss.c:200: error: ‘CossInfo’ has no member named
‘numfullstripes’
coss/store_io_coss.c:206: error: ‘CossInfo’ has no member named 
‘curstripe’
coss/store_io_coss.c:206: error: ‘CossInfo’ has no member named 
‘numstripes’
coss/store_io_coss.c:207: error: ‘CossInfo’ has no member named 
‘curstripe’
coss/store_io_coss.c:210: error: ‘CossInfo’ has no member named 
‘sizerange_max’
coss/store_io_coss.c:220: error: ‘CossInfo’ has no member named 
‘blksz_mask’
coss/store_io_coss.c:220: error: ‘CossInfo’ has no member named 
‘blksz_bits’
coss/store_io_coss.c:220: error: ‘CossInfo’ has no member named 
‘blksz_bits’
coss/store_io_coss.c:229: error: ‘CossInfo’ has no member named 
‘sizerange_max’
coss/store_io_coss.c:230: error: ‘CossInfo’ has no member named 
‘sizerange_max’
coss/store_io_coss.c:230: error: ‘CossInfo’ has no member named 
‘sizerange_min’
coss/store_io_coss.c:231: error: ‘CossInfo’ has no member named 
‘sizerange_max’
coss/store_io_coss.c:231: error: ‘CossInfo’ has no member named 
‘sizerange_min’
coss/store_io_coss.c:236: error: ‘CossInfo’ has no member named 
‘sizerange_max’
coss/store_io_coss.c: In function ‘storeCossRelocateRequired’:
coss/store_io_coss.c:277: error: ‘CossInfo’ has no member named 
‘curstripe’
coss/store_io_coss.c:278: error: ‘CossInfo’ has no member named 
‘curstripe’
coss/store_io_coss.c:280: error: ‘CossInfo’ has no member named 
‘numstripes’
coss/store_io_coss.c:280: error: ‘CossInfo’ has no member named 
‘curstripe’
coss/store_io_coss.c:283: error: ‘CossInfo’ has no member named
‘minimum_stripe_distance’
coss/store_io_coss.c: In function ‘storeCossCreate’:
coss/store_io_coss.c:293: error: ‘CossInfo’ has no member named 
‘rebuild’
coss/store_io_coss.c:330: error: ‘CossInfo’ has no member named 
‘curstripe’
coss/store_io_coss.c: In function ‘storeCossOpen’:
coss/store_io_coss.c:348: error: ‘CossInfo’ has no member named 
‘rebuild’
coss/store_io_coss.c:397: error: ‘CossInfo’ has no member named 
‘curstripe’
coss/store_io_coss.c:400: error: ‘CossInfo’ has no member named 
‘curstripe’
coss/store_io_coss.c:416: error: ‘CossInfo’ has no member named 
‘max_disk_nf’
coss/store_io_coss.c:433: error: ‘CossInfo’ has no member named 
‘curstripe’
coss/store_io_coss.c: In function ‘storeCossWriteMemBuf’:
coss/store_io_coss.c:706: error: ‘CossInfo’ has no member named 
‘numstripes’
coss/store_io_coss.c:707: error: ‘CossInfo’ has no member named 
‘stripes’
coss/store_io_coss.c: In function ‘storeCossMaybeFreeBuf’:
coss/store_io_coss.c:757: error: ‘CossInfo’ has no member named 
‘memstripes’
coss/store_io_coss.c:758: error: ‘CossInfo’ has no member named 
‘memstripes’
coss/store_io_coss.c:760: error: ‘CossInfo’ has no member named
‘numfullstripes’
coss/store_io_coss.c: In function ‘storeCossWriteMemBufDone’:
coss/store_io_coss.c:811: error: ‘CossInfo’ has no member named 
‘stripes’
coss/store_io_coss.c:813: error: ‘CossInfo’ has no member named 
‘stripes’
coss/store_io_coss.c:814: error: ‘CossInfo’ has no member named 
‘stripes’
coss/store_io_coss.c: In function ‘storeCossCreateMemOnlyBuf’:
coss/store_io_coss.c:830: error: ‘CossInfo’ has no member named 
‘nummemstripes’
coss/store_io_coss.c:831: error: ‘CossInfo’ has no member named 
‘memstripes’
coss/store_io_coss.c:834: error: ‘CossInfo’ has no member named 
‘nummemstripes’
coss/store_io_coss.c:841: error: ‘CossInfo’ has no member named 
‘curmemstripe’
coss/store_io_coss.c:846: error: ‘CossInfo’ has no member named 
‘memstripes’
coss/store_io_coss.c: In function ‘storeCossCreateMemBuf’:
coss/store_io_coss.c:881: error: ‘CossInfo’ has no member named
‘numfullstripes’
coss/store_io_coss.c:881: error: ‘CossInfo’ has no member named
‘maxfullstripes’
coss/store_io_coss.c:890: error: ‘CossInfo’ has no member named 
‘stripes’
coss/store_io_coss.c:891: error: ‘CossInfo’ has no member named 
‘curstripe’
coss/store_io_coss.c:894: error: ‘CossInfo’ has no member named 
‘stripes’
coss/store_io_coss.c:919: error: ‘CossInfo’ has no member named 
‘stripes’
coss/store_io_coss.c: In function ‘storeCossStartMembuf’:
coss/store_io_coss.c:953: error: ‘CossInfo’ has no member named 
‘curstripe’
coss/store_io_coss.c:959: error: ‘CossInfo’ has no member named
‘current_memonly_membuf’
coss/store_io_coss.c:960: error: ‘CossInfo’ has no member named
‘current_memonly_membuf’
coss/store_io_coss.c:962: error: ‘CossInfo’ has no member named
‘current_memonly_offset’
coss/store_io_coss.c:962: error: ‘CossInfo’ has no member named
‘current_memonly_membuf’
coss/store_io_coss.c: In function ‘storeCossFilenoToDiskOffset’:
coss/store_io_coss.c:982: error: ‘CossInfo’ has no member named 
‘blksz_bits’
coss/store_io_coss.c: In function ‘storeCossDiskOffsetToFileno’:
coss/store_io_coss.c:990: error: ‘CossInfo’ has no member named 
‘blksz_mask’
coss/store_io_coss.c:991: error: ‘CossInfo’ has no member named 
‘blksz_bits’
coss/store_io_coss.c: In function ‘storeCossFilenoToStripe’:
coss/store_io_coss.c:1013: error: ‘CossInfo’ has no member named 
‘blksz_bits’
coss/store_io_coss.c: In function ‘storeCossNewPendingRelocate’:
coss/store_io_coss.c:1043: error: ‘CossInfo’ has no member named 
‘numstripes’
coss/store_io_coss.c:1044: error: ‘CossInfo’ has no member named 
‘stripes’
coss/store_io_coss.c:1045: error: ‘CossInfo’ has no member named 
‘stripes’
coss/store_io_coss.c: In function ‘storeCossCompletePendingReloc’:
coss/store_io_coss.c:1119: error: ‘CossInfo’ has no member named 
‘numstripes’
coss/store_io_coss.c:1120: error: ‘CossInfo’ has no member named 
‘stripes’
coss/store_io_coss.c:1121: error: ‘CossInfo’ has no member named 
‘stripes’
coss/store_io_coss.c: In function ‘membufsDump’:
coss/store_io_coss.c:1271: error: ‘CossInfo’ has no member named 
‘numstripes’
coss/store_io_coss.c:1272: error: ‘CossInfo’ has no member named 
‘stripes’
coss/store_io_coss.c:1273: error: ‘CossInfo’ has no member named 
‘stripes’
make[3]: *** [coss/store_io_coss.o] Error 1

What version of the product are you using? On what operating system?

Lusca Head from CVS (14301)

Please provide any additional information below.

 gcc -v 
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 4.3.2-1.1'
--with-bugurl=file:///usr/share/doc/gcc-4.3/README.Bugs
--enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared
--with-system-zlib --libexecdir=/usr/lib --without-included-gettext
--enable-threads=posix --enable-nls
--with-gxx-include-dir=/usr/include/c++/4.3 --program-suffix=-4.3
--enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc
--enable-mpfr --enable-targets=all --enable-cld --enable-checking=release
--build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu
Thread model: posix
gcc version 4.3.2 (Debian 4.3.2-1.1) 

Best REgards
Kevin

Original issue reported on code.google.com by unsecret...@gmail.com on 15 Sep 2009 at 2:02

GoogleCodeExporter commented 9 years ago
Hm, that option isn't supported anymore. I stripped out the POSIX AIO code for 
now to simplify things. Is there 
any particular reason you wanted to use it?

POSIX AIO under Linux is typically quite useless for COSS. It only queues one 
outstanding read and one 
outstanding write op per FD. COSS needs to have lots of outstanding ops to get 
efficient use of the disk.

Original comment by adrian.c...@gmail.com on 2 Oct 2009 at 4:06

GoogleCodeExporter commented 9 years ago
Fixed in revision r14311.

Original comment by adrian.c...@gmail.com on 2 Oct 2009 at 4:09