From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Rost, Werner" Newsgroups: gmane.os.tru64.managers Subject: SquidGuard and TRU64 5.1A Date: Wed, 18 Sep 2002 16:56:54 +0200 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <4C307772BBA0D511905400508BDFB7AC210D9B@GONT-EXC01> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: main.gmane.org 1032361131 29195 127.0.0.1 (18 Sep 2002 14:58:51 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 18 Sep 2002 14:58:51 +0000 (UTC) Return-path: Original-Received: from sws1.ctd.ornl.gov ([160.91.20.101]) by main.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 17rgHw-0007aR-00 for ; Wed, 18 Sep 2002 16:58:48 +0200 Original-Received: (qmail 11137 invoked by uid 5); 18 Sep 2002 14:58:57 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 11128 invoked by uid 49493); 18 Sep 2002 14:58:57 -0000 Original-Received: from Werner.Rost@zfboge.com by sws1 by uid 49491 with qmail-scanner-1.14 (clamscan: 0.24. spamassassin: 2.50-cvs. Clear:SA:0(-3.2/5.0):. Processed in 0.685401 secs); 18 Sep 2002 14:58:57 -0000 Original-Received: from unknown (HELO emroute3.ornl.gov) (160.91.4.110) by 0 with SMTP; 18 Sep 2002 14:58:56 -0000 Original-Received: from emroute3.ornl.gov (localhost [127.0.0.1]) by emroute3.ornl.gov (PMDF V6.1-1 #39060) with ESMTP id <0H2N00DIH2Y6DF@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Wed, 18 Sep 2002 10:58:56 -0400 (EDT) Original-Received: from sirius.mannesmann.de (sirius.mannesmann.de [195.233.129.31]) by emroute3.ornl.gov (PMDF V6.1-1 #39060) with ESMTP id <0H2N00I4I2Y30M@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Wed, 18 Sep 2002 10:58:53 -0400 (EDT) Original-Received: from aladin.mannesmann.de (aladin [195.233.128.10]) by sirius.mannesmann.de (8.11.0/8.11.0) with ESMTP id g8IEwnu27750 for ; Wed, 18 Sep 2002 16:58:49 +0200 (MET DST) Original-Received: from mdv114.mannesmann.de ([195.233.128.15]) by aladin.mannesmann.de (Netscape Messaging Server 3.6) with ESMTP id AAA382C for ; Wed, 18 Sep 2002 16:58:47 +0200 Original-Received: from gont-exc01.boge-vibrationcontrol.com (unverified) by mdv114.mannesmann.de (Content Technologies SMTPRS 4.2.5) with ESMTP id for ; Wed, 18 Sep 2002 16:58:47 +0200 Original-Received: by GONT-EXC01 with Internet Mail Service (5.5.2655.55) id ; Wed, 18 Sep 2002 16:56:54 +0200 Original-To: "'tru64-unix-managers@ornl.gov'" X-Mailer: Internet Mail Service (5.5.2655.55) Xref: main.gmane.org gmane.os.tru64.managers:1754 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:1754 Does anyone run squidGuard on TRU64 5.1? Though I had 19 nervous breakdowns I do not get it to run. I had asked in the squidguadr-newsgroup but did not get hints that really helped. Environment: ALPHA XP1000 OS: TRU64 5.1A patchkit 2 According the SquidGuard instructions I installed BerkeleyDb2.7.7 and SquidGuad 1.2.0. Installation looked fine, but tests did not work. $ echo "http://www.sex.de 10.10.10.10/- - GET" | /usr/local/bin/squidGuard -c /usr/local/squidGuard/filter.conf -d 2002-09-16 09:16:18 [23516] init domainlist /usr/local/squidGuard/db/porn/domains 2002-09-16 09:16:18 [23516] loading dbfile /usr/local/squidGuard/db/porn/domains.db 2002-09-16 09:16:18 [23516] domainlist empty, removed from memory 2002-09-16 09:16:18 [23516] init urllist /usr/local/squidGuard/db/porn/urls 2002-09-16 09:16:18 [23516] loading dbfile /usr/local/squidGuard/db/porn/urls.db 2002-09-16 09:16:18 [23516] urllist empty, removed from memory 2002-09-16 09:16:18 [23516] squidGuard 1.2.0 started (1032160578.107) 2002-09-16 09:16:18 [23516] squidGuard ready for requests (1032160578.109) 2002-09-16 09:16:18 [23516] squidGuard stopped (1032160578.109) I guess this test looks not very good because of the messages "...list empty, removed from memory". Some guys told me to use BerkelyDB 3.2.9 despite the SquidGuard installation guidelines. I did it: 1. delete directory /usr/local/BerkelyDB.3.2 and /usr/local/db-3.2.9 --> no Berkely* -Directories and no db-*Directories exist anymore 2. cd /usr/local/squidGuard-1.2.0 make clean 3. Create directory /usr/local/db-3.2.9 # gunzip db_3.2.9.tar.gz # tar -xf db_3.2.9.tar 4. Install the two patches # pwd /usr/local/db-3.2.9 # ls -l db_pat* -rw-r--r-- 1 root users 2139 Sep 18 09:04 db_patch.3.2.9.1 -rw-r--r-- 1 root users 495 Sep 18 09:04 db_patch.3.2.9.2 # # patch -p0 < db_patch.3.2.9.1 Hmm... Looks like a new-style context diff to me... The text leading up to this was: -------------------------- |*** include/log.h.orig 2001/01/25 18:22:51 11.20 |--- include/log.h 2001/02/06 05:02:28 11.21 -------------------------- Patching file include/log.h using Plan A... Hunk #1 succeeded at 198. Hmm... The next patch looks like a new-style context diff to me... The text leading up to this was: -------------------------- |*** log/log.c.orig 2001/01/25 18:22:55 11.43 |--- log/log.c 2001/02/06 05:02:28 11.44 -------------------------- Patching file log/log.c using Plan A... Hunk #1 succeeded at 309. Hunk #2 succeeded at 385. Hunk #3 succeeded at 414. Hunk #4 succeeded at 424. done # # patch -p0 < db_patch.3.2.9.2 Hmm... Looks like a new-style context diff to me... The text leading up to this was: -------------------------- |*** log/log_rec.c.orig 2001/01/25 18:22:56 11.49 |--- log/log_rec.c 2001/02/07 22:17:46 -------------------------- Patching file log/log_rec.c using Plan A... Hunk #1 succeeded at 404. Hmm... Ignoring the trailing garbage. done # 5. Configure + make db # cd /usr/local/db-3.2.9/build_unix # ../dist/configure # make # make install see appending logfile db_configure.txt =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D Now BerkeleyDB is installed There exists a directory /usr/local/BerkeleyDB.3.2=20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D 6. ldconfig Using OS TRU64 5.1A there is no command ldconfig nor exists a file /etc/ld.so.conf Therefore I skip these recommended steps. Seems this command is for linux guys. 7. Creating the SqudiGuard-Directory # pwd /usr/local # tar -xf squidGuard-1.2.0.tar # 8a. Configure SquidGuard using the Standard C-Compiler cd /usr/local/squidGuard-1.2.0 ./configure --with-db-lib=3D/usr/local/BerkeleyDB.3.2/lib \ --with-sg-config=3D/usr/local/squidGuard/filter.conf checking for gcc... no checking for cc... cc checking for C compiler default output... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for executable suffix... checking for object suffix... o checking whether we are using the GNU C compiler... no checking whether cc accepts -g... yes checking how to run the C preprocessor... cc -E checking whether make sets ${MAKE}... yes checking for a BSD compatible install... ./install-sh -c checking for bison... no checking for byacc... no checking for flex... flex checking for yywrap in -lfl... no checking for yywrap in -ll... yes checking lex output file root... lex.yy checking whether yytext is a pointer... yes checking for lynx... false checking for perl... /usr/bin/perl checking for db_version in -ldb... no ** The Berkley DB library is required for squidGuard to compile. Get it from http://www.sleepycat.com use --with-db=3DDIR or --with-db-lib=3DDIR to specify its location. (default is /usr/local/BerkeleyDB) No Makefile / Makefile.in are built. ---> see appending C_config.log 8b. Configure SquidGuard using the GNU GCC-Compiler 3.0 cd /usr/local/squidGuard-1.2.0 (setenv CC "/usr/local/bin/gcc"; setenv CFLAGS "-O3"; \ ./configure --with-sg-config=3D/usr/local/squidGuard/filter.conf \ --with-db=3D/usr/local/BerkeleyDB.3.2) checking for gcc... /usr/local/bin/gcc checking for C compiler default output... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for executable suffix... checking for object suffix... o checking whether we are using the GNU C compiler... yes checking whether /usr/local/bin/gcc accepts -g... yes checking how to run the C preprocessor... /usr/local/bin/gcc -E checking whether make sets ${MAKE}... yes checking for a BSD compatible install... ./install-sh -c checking for bison... no checking for byacc... no checking for flex... flex checking for yywrap in -lfl... no checking for yywrap in -ll... yes checking lex output file root... lex.yy checking whether yytext is a pointer... yes checking for lynx... false checking for perl... /usr/bin/perl checking for db_version in -ldb... yes checking for ANSI C header files... yes checking for db.h... yes checking for regex.h... yes checking for unistd.h... yes checking for /usr/local/bin/gcc option to accept ANSI C... none needed checking for an ANSI C-conforming const... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... no checking for unistd.h... (cached) yes checking for size_t... yes checking whether struct tm is in sys/time.h or time.h... time.h checking for regcomp... yes checking for regerror... yes checking for regexec... yes checking for strdup... yes checking for strerror... yes checking for vsprintf... yes checking for sigaction... yes checking for signal... yes checking for regexec... yes checking for strdup... yes checking for strerror... yes checking for vsprintf... yes checking for sigaction... yes checking for signal... yes configure: creating ./config.status config.status: creating Makefile config.status: creating src/Makefile config.status: creating src/sg.h config.status: creating doc/Makefile config.status: creating test/Makefile config.status: creating test/test1.conf config.status: creating test/test2.conf config.status: creating samples/Makefile config.status: creating samples/sample.conf config.status: creating samples/squidGuard.cgi config.status: creating samples/squidGuard-simple.cgi config.status: creating contrib/Makefile config.status: creating contrib/squidGuardRobot/squidGuardRobot config.status: creating contrib/sgclean/sgclean config.status: creating contrib/hostbyname/hostbyname config.status: creating src/config.h Makefile + Makefile.in are created see appending GCC_config.log 9. make squidGuard # pwd /usr/local/squidGuard-1.2.0 # make making all in squidGuard-1.2.0 making all in src /usr/local/bin/gcc -I.. -I. -I. -I/usr/local/BerkeleyDB.3.2/include -DHAVE_CONFI G_H -O3 -I/usr/local/BerkeleyDB.3.2/include -c main.c In file included from main.c:19: sg.h:195: parse error before "DB_INFO" sg.h:195: warning: no semicolon at end of struct or union sg.h:201: parse error before '}' token *** Exit 1 Stop. *** Exit 1 Stop. # > Mit freundlichen Gr=FC=DFen / regards > Werner Rost >=20 > --------------------------------------------------------------------- > ZF Boge GmbH > Werner Rost > IT > Friesdorfer Str. 175 > D-53175 Bonn >=20 >=20 > phone: +49/228/3825 420 > fax: +49/228/3825 398 > werner.rost@zfboge.com >=20 > www.boge-vibrationcontrol.com > --------------------------------------------------------------------- >=20 >=20 --------------------------------------------------------- This Mail has been checked for Viruses Attention: Encrypted mails can NOT be checked! ** Diese Mail wurde auf Viren geprueft Hinweis: Verschluesselte mails koennen NICHT auf Viren geprueft werden! ---------------------------------------------------------