madhuneal / lusca-cache

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

compile error - storeSwapLogDataOld #23

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
make[1]: Entering directory `/usr/src/lusca/LUSCA_HEAD/libsqstore'
gcc -DHAVE_CONFIG_H -I. -I. -I../include   -I/usr/kerberos/include     -m64
-Wall -g -O2 -D_REENTRANT -c store_log.c
In file included from store_log.c:14:
store_log.h:55: error: expected declaration specifiers or â...â before
âstoreSwapLogDataOldâ
store_log.c:25: error: expected declaration specifiers or â...â before
âstoreSwapLogDataOldâ
store_log.c: In function âstoreSwapLogUpgradeEntryâ:
store_log.c:27: error: âsrcâ undeclared (first use in this function)
store_log.c:27: error: (Each undeclared identifier is reported only once
store_log.c:27: error: for each function it appears in.)
make[1]: *** [store_log.o] Error 1
make[1]: Leaving directory `/usr/src/lusca/LUSCA_HEAD/libsqstore'
make: *** [all-recursive] Error 1

Original issue reported on code.google.com by ajcor...@gmail.com on 28 Apr 2009 at 3:58

GoogleCodeExporter commented 9 years ago
solved with patch:

Index: libsqstore/store_log.h
===================================================================
--- libsqstore/store_log.h      (revision 13993)
+++ libsqstore/store_log.h      (working copy)
@@ -34,7 +34,7 @@
 };
 typedef struct _storeSwapLogHeader storeSwapLogHeader;

-#if SIZEOF_SQUID_FILE_SZ != SIZEOF_SIZE_T
+//#if SIZEOF_SQUID_FILE_SZ != SIZEOF_SIZE_T
 struct _storeSwapLogDataOld {
     char op;
     sfileno swap_filen;
@@ -48,7 +48,7 @@
     unsigned char key[SQUID_MD5_DIGEST_LENGTH];
 };
 typedef struct _storeSwapLogDataOld storeSwapLogDataOld;
-#endif
+//#endif

 extern const char * swap_log_op_str[];

Original comment by ajcor...@gmail.com on 28 Apr 2009 at 4:05

GoogleCodeExporter commented 9 years ago
_storeSwapLogDataOld struct doesn´t declared if 'SIZEOF_SQUID_FILE_SZ != 
SIZEOF_SIZE_T
' not match... but not declared in any other place ...

Original comment by ajcor...@gmail.com on 28 Apr 2009 at 4:17

GoogleCodeExporter commented 9 years ago
  $ ./configure --program-prefix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin
--sbindir=/usr/sbin --sysconfdir=/etc --includedir=/usr/include 
--libdir=/usr/lib64
--libexecdir=/usr/libexec --sharedstatedir=/usr/com --mandir=/usr/share/man
--infodir=/usr/share/info --exec_prefix=/usr --bindir=/usr/sbin
--libexecdir=/usr/lib64/squid --localstatedir=/var --datadir=/usr/share
--sysconfdir=/etc/squid --enable-epoll --enable-snmp
--enable-removal-policies=heap,lru --enable-storeio=aufs,coss,null,ufs 
--enable-ssl
--with-openssl=/usr/kerberos --disable-delay-pools --with-pthreads
--disable-useragent-log --enable-referer-log --disable-dependency-tracking
--enable-cachemgr-hostname=localhost --enable-cache-digests 
--disable-ident-lookups
--enable-wccpv2 --with-maxfd=32768 --enable-xmalloc-statistics --enable-async-io
--enable-linux-netfilter --with-large-files --enable-follow-x-forwarded-for

Original comment by ajcor...@gmail.com on 28 Apr 2009 at 4:59

GoogleCodeExporter commented 9 years ago
Committed revision 13994.

Original comment by ajcor...@gmail.com on 28 Apr 2009 at 5:07

GoogleCodeExporter commented 9 years ago

Original comment by ajcor...@gmail.com on 28 Apr 2009 at 5:12