LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-05-2011, 02:55 AM   #1
gardenair
Member
 
Registered: Oct 2004
Location: LH
Posts: 648

Rep: Reputation: 45
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
 
Old 05-05-2011, 08:45 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,159
Blog Entries: 1

Rep: Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021
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

Last edited by bathory; 05-05-2011 at 09:10 AM.
 
Old 05-05-2011, 11:01 PM   #3
gardenair
Member
 
Registered: Oct 2004
Location: LH
Posts: 648

Original Poster
Rep: Reputation: 45
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
 
Old 05-06-2011, 12:10 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,159
Blog Entries: 1

Rep: Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021
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
 
Old 05-06-2011, 01:06 AM   #5
gardenair
Member
 
Registered: Oct 2004
Location: LH
Posts: 648

Original Poster
Rep: Reputation: 45
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

Last edited by gardenair; 05-06-2011 at 01:07 AM.
 
Old 05-06-2011, 01:54 AM   #6
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,159
Blog Entries: 1

Rep: Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021
You can use yum to install db4-4.3.29. Why bother compiling from source?
 
Old 05-06-2011, 05:21 AM   #7
gardenair
Member
 
Registered: Oct 2004
Location: LH
Posts: 648

Original Poster
Rep: Reputation: 45
kindly explain how to install db4-4.3.29 ?
 
Old 05-06-2011, 06:01 AM   #8
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,159
Blog Entries: 1

Rep: Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021
How about:
Code:
yum update db4
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SquidGuard: include some config file in squidGuard.conf toure32 Linux - Server 1 04-12-2011 02:10 PM
problem in installing working NS2 and ATM patch kshitiz Linux - Software 2 03-02-2011 11:30 AM
need help installing squidguard brianmay27 Linux - Software 4 02-11-2008 02:17 AM
Problem installing supermount patch Hungry ghost Linux - Software 2 12-19-2004 03:34 PM
Gyach login problem (after installing patch) hand of fate Linux - Software 0 07-23-2004 08:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration