Problem in installing squidGuard patch.

Discussion regarding the installation and configuration of Linux distributions.

Problem in installing squidGuard patch.

Postby gardenair » Thu May 05, 2011 2:04 pm

salam,

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.

thanks
garden
gardenair
Havaldaar
 
Posts: 106
Joined: Tue Dec 28, 2004 10:07 pm

Postby Anjum Butt » Fri May 06, 2011 10:44 am

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.
More will follow :)

Anjum Butt
Registered Linux User #314299
Anjum Butt
Company Havaldaar Major
 
Posts: 165
Joined: Mon Jun 09, 2003 9:02 am
Location: Karachi

Postby gardenair » Fri May 06, 2011 4:51 pm

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.
thanks
garden
gardenair
Havaldaar
 
Posts: 106
Joined: Tue Dec 28, 2004 10:07 pm


Return to “%s” Installation

Who is online

Users browsing this forum: No registered users and 0 guests

cron