inevity / cacheboy

Automatically exported from code.google.com/p/cacheboy
0 stars 0 forks source link

make fails at net_db.c #7

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When building trunk:

./configure --prefix=/usr --enable-gnuregex --enable-async-io --enable-icmp
--enable-useragent-log --enable-snmp --enable-cache-digests
--enable-follow-x-forwarded-for --enable-storeio="ufs,aufs,diskd"
--enable-removal-policies="heap,lru" --with-maxfd=16384
--enable-cache-digests --enable-epoll --disable-ident-lookups
--enable-truncate --exec-prefix=/usr --bindir=/usr/sbin
--libexecdir=/usr/lib/squid --enable-htcp --enable-carp; make

if gcc -DHAVE_CONFIG_H -DDEFAULT_CONFIG_FILE=\"/usr/etc/squid.conf\" -I.
-I. -I../include -I. -I. -I../include -I../include    -Wall -g -O2
-D_REENTRANT -MT net_db.o -MD -MP -MF ".deps/net_db.Tpo" -c -o net_db.o
net_db.c; \
then mv -f ".deps/net_db.Tpo" ".deps/net_db.Po"; else rm -f
".deps/net_db.Tpo"; exit 1; fi
net_db.c: In function `netdbExchangeHandleReply':
net_db.c:565: error: `hdrs_sz' undeclared (first use in this function)
net_db.c:565: error: (Each undeclared identifier is reported only once
net_db.c:565: error: for each function it appears in.)
make[3]: *** [net_db.o] Error 1
make[3]: Leaving directory `/root/cacheboy-read-only/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/cacheboy-read-only/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/root/cacheboy-read-only/src'
make: *** [all-recursive] Error 1

Original issue reported on code.google.com by hawkevi...@gmail.com on 24 Apr 2008 at 12:42

GoogleCodeExporter commented 9 years ago
Hi,

Try this:

Index: net_db.c
===================================================================
--- net_db.c    (revision 12613)
+++ net_db.c    (working copy)
@@ -562,7 +562,7 @@
     if (0 == ex->used) {
        /* skip reply headers */
        rep = ex->e->mem_obj->reply;
-       hdrs_sz = rep->hdr_sz;
+       hdr_sz = rep->hdr_sz;
        debug(38, 5) ("netdbExchangeHandleReply: hdr_sz = %ld\n", (long int) hdr_sz);
        debug(38, 3) ("netdbExchangeHandleReply: reply status %d\n",
            rep->sline.status);

I'll commit the fix to Squid.

Run the "branches/CACHEBOY_PRE" stuff - "trunk" is just a mirror of 
Squid-2.HEAD.

Original comment by adrian.c...@gmail.com on 25 Apr 2008 at 3:55

GoogleCodeExporter commented 9 years ago

Original comment by adrian.c...@gmail.com on 25 Apr 2008 at 3:56

GoogleCodeExporter commented 9 years ago
Its been committed to squid and merged back into CACHEBOY_PRE.

Original comment by adrian.c...@gmail.com on 30 Apr 2008 at 6:00