inevity / cacheboy

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

Error in Make time #21

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
1. ./configure --prefix=/usr/local/squid
--enable-storeio=ufs,aufs,coss,null --enable-snmp --enable-epoll
--enable-follow-x-forwarded-for --enable-x-accelerator-vary --with-maxfd=20480
2. make

I expect to end make succesfully, I get this error instead

make[3]: Entering directory `/usr/local/src/CACHEBOY_1.5/app/tcptest'
depbase=`echo tcptest.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`; \
if gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I. -I../..    -Wall -g -O2
-D_REENTRANT -MT tcptest.o -MD -MP -MF "$depbase.Tpo" -c -o tcptest.o
tcptest.c; \
then mv -f "$depbase.Tpo" "$depbase.Po"; else rm -f "$depbase.Tpo"; exit 1; fi
tcptest.c: In function `main':
tcptest.c:95: error: structure has no member named `sin_len'
tcptest.c:102: error: structure has no member named `sin6_len'
make[3]: *** [tcptest.o] Error 1
make[3]: Leaving directory `/usr/local/src/CACHEBOY_1.5/app/tcptest'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/src/CACHEBOY_1.5/app/tcptest'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/CACHEBOY_1.5/app'
make: *** [all-recursive] Error 1

RedHat EL 4.3
Linux sq01.dc.dr 2.6.9-42.0.3.EL #1 Mon Sep 25 17:14:19 EDT 2006 i686 i686
i386 GNU/Linux

Original issue reported on code.google.com by mal...@gmail.com on 12 Sep 2008 at 1:56

GoogleCodeExporter commented 9 years ago
Hi

Since I also use Linux, I could reproduce this issue in Fedora 8 and Debian 
Lenny.
The problem Adrian had pointed out: glibc's sockaddr_in has no sin_len member.
Well, this patch tests if cacheboy is being built in Linux and 'takes out' it.
I think the better way should be making this test in sqinet.c, but since
sqinet_set_v4_sockaddr()/sqinet_set_v6_sockaddr() copies the whole structure,
I think doesn't metter if length is already set or not. Please let me know if
I'm wrong.

Lucas Brasilino

Original comment by lucas.br...@gmail.com on 15 Sep 2008 at 9:30

Attachments:

GoogleCodeExporter commented 9 years ago
Committed to CACHEBOY_PRE, r13321. Could you please test it and get back to me?

Original comment by adrian.c...@gmail.com on 16 Sep 2008 at 3:16

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Ok, worked for me. Thanks!

Original comment by lucas.br...@gmail.com on 18 Sep 2008 at 2:46

GoogleCodeExporter commented 9 years ago
Fixed in CACHEBOY_PRE.

Original comment by adrian.c...@gmail.com on 18 Sep 2008 at 4:43

GoogleCodeExporter commented 9 years ago
done

Original comment by adrian.c...@gmail.com on 24 Sep 2008 at 1:31