LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Problem in installing squidGuard patch (https://www.linuxquestions.org/questions/linux-networking-3/problem-in-installing-squidguard-patch-878936/)

gardenair 05-05-2011 02:55 AM

Problem in installing squidGuard patch
 
hi,
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

Code:

[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
Code:

[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

bathory 05-05-2011 08:45 AM

Hi,

Quote:

gcc -I.. -I. -I. -I/usr/local/BerkeleyDB/include -DHAVE_CONFIG_H -g -O2 -I/usr/local/BerkeleyDB/include -c main.c
Do you have BerkeleyDB installed in that directory?
I don't think you need a patch. Maybe your BerkeleyDB has bugs

Regards

gardenair 05-05-2011 11:01 PM

thanks for the reply. well I have not installed BerkeleyDB.I shall be pleased if you kindly let me know the link so i may Install it
thanks
garden

bathory 05-06-2011 12:10 AM

Couldn't be. The ./configure script should have mentioned it.
Anyway run:
Code:

rpm -qa|grep db4
to verify if it's installed
If you have to install it run:
Code:

yum install db4
yum install db4-devel


gardenair 05-06-2011 01:06 AM

thanks for helping me. Well following is the output.

Code:

[root@localhost root]# rpm -qa | grep db4
db4-4.0.14-20
db4-utils-4.0.14-20
db4-devel-4.0.14-20
[root@localhost root]#

The squidGuard version is "squidGuard-1.4".I think that there may be a bug in my db4-4.0 version. Should I uninstall this ? and install the last one which I have extracted.

Code:

[root@localhost home]# cd db-4.8.26
[root@localhost db-4.8.26]# ls
btree          db_checkpoint  db_verify        libdb_csharp  php_db4
build_brew    db_deadlock    dist            libdb_java    qam
build_s60      db_dump        docs            LICENSE      README
build_unix    db_dump185    docs_src        lock          rep
build_vxworks  db_hotbackup  env              log          repmgr
build_wince    dbinc          examples_c      mod_db4      sequence
build_windows  dbinc_auto    examples_csharp  mp            stl
clib          db_load        examples_cxx    mutex        tcl
common        dbm            examples_java    os            test
crypto        db_printlog    examples_stl    os_brew      test_micro
csharp        db_recover    fileops          os_qnx        test_stl
cxx            dbreg          hash            os_s60        txn
db            db_sql        hmac            os_vxworks
db185          db_stat        hsearch          os_windows
db_archive    db_upgrade    java            perl

The location of my squid is /etc/squid/squid.conf

The things I want to know (If it is the solution)

1- Command to uninstall my previous db4.
thanks a lot again for your valable guidence,
garden

bathory 05-06-2011 01:54 AM

You can use yum to install db4-4.3.29. Why bother compiling from source?

gardenair 05-06-2011 05:21 AM

kindly explain how to install db4-4.3.29 ?:scratch:

bathory 05-06-2011 06:01 AM

How about:
Code:

yum update db4


All times are GMT -5. The time now is 02:28 PM.