Page 1 of 1

Problem in installing squidGuard patch.

Posted: Thu May 05, 2011 2:04 pm
by gardenair

I am using squid as a proxy server in my cent os 5 machine. I have downloaded and install squidGuard-1.4 using ./configure which it successfully do.
THe problem is when I use make command it give me an error beacuse may it it is not compatible with BerkeleyDB. For

[root@localhost squidGuard-1.4]# make
making all in squidGuard-1.4
make[1]: Entering directory `/home/squidGuard-1.4/src'
making all in src
gcc -I.. -I. -I. -I/usr/local/BerkeleyDB/include -DHAVE_CONFIG_H -g -O2 -I/usr/local/BerkeleyDB/include -c main.c
gcc -I.. -I. -I. -I/usr/local/BerkeleyDB/include -DHAVE_CONFIG_H -g -O2 -I/usr/local/BerkeleyDB/include -c sgLog.c
gcc -I.. -I. -I. -I/usr/local/BerkeleyDB/include -DHAVE_CONFIG_H -g -O2 -I/usr/local/BerkeleyDB/include -c sgDb.c
sgDb.c: In function `sgDbInit':
sgDb.c:123: incompatible type for argument 4 of indirect function call
sgDb.c:123: too many arguments to function
sgDb.c:129: incompatible type for argument 4 of indirect function call
sgDb.c:129: too many arguments to function
make[1]: *** [sgDb.o] Error 1
make[1]: Leaving directory `/home/squidGuard-1.4/src'
make: *** [all] Error 1
[root@localhost squidGuard-1.4]#

I am sure that it is due to patch missing .For that purpose I have download the patch "squidGuard-1.4-patch-20091015" and then extraxt it (untar) it.
THe patch shows only these two files

[root@localhost squidGuard-1.4-patch-20091015]# ls
Readme.Patch-20091015 sgLog.c

I does not know how to apply the patch with currect squidGuard ? KIndly guuide me.


Posted: Fri May 06, 2011 10:44 am
by Anjum Butt
For a start, you can view the file Readme.Patch-20091015
you should look under src directory for sgLog.c file, and replace the original file with the one extracted from patch.

Posted: Fri May 06, 2011 4:51 pm
by gardenair
thanks for the reply. Well I have done it but no success. The actual way is to 1st add the patch with squidguard ,then ./configure ,make and at last make install.

hi no body knows how to configure squidguard ? me for your kind reply.