Title: Squid + SquidGuard + CentOS 4.2

Buenos Días:

Señores de la lista, alguien ha podido compilar el squidGuard-1.2.0 en un CentOS 4.2 para que funcione con un squid-2.5.STABLE13.

El squid lo tengo instalado (compilado) y está funcionando correctamente. Pero cuando compilo el squidGuard me sale un error:

Aquí los pasos que seguí:

[EMAIL PROTECTED] squidGuard-1.2.0]# cat go_squidguard
# CC="gcc" \
CFLAGS="-O3 -Wall" \
./configure --prefix=/proxy/squidGuard \
            --with-db-lib=/usr/lib \
            --with-db-inc=/usr/include \
            --with-sg-config=/proxy/squidGuard/conf/squidGuard.conf \
            --with-sg-logdir=/proxy/squidGuard/logs \
            --with-sg-dbhome=/proxy/squidGuard/db


[EMAIL PROTECTED] squidGuard-1.2.0]# sh go_squidguard
checking for gcc... 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 gcc accepts -g... yes
checking how to run the C preprocessor... gcc -E
checking whether make sets ${MAKE}... yes
checking for a BSD compatible install... /usr/bin/install -c
checking for bison... bison -y
checking for flex... flex
checking for yywrap in -lfl... 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 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... yes
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
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
config.status: src/config.h is unchanged

# make
making all in squidGuard-1.2.0
make[1]: Entering directory `/usr/local/src/squidGuard-1.2.0/src'
making all in src
gcc -I.. -I. -I. -I/usr/include -DHAVE_CONFIG_H -O3 -Wall -I/usr/include -c main.c
gcc -I.. -I. -I. -I/usr/include -DHAVE_CONFIG_H -O3 -Wall -I/usr/include -c sgLog.c
gcc -I.. -I. -I. -I/usr/include -DHAVE_CONFIG_H -O3 -Wall -I/usr/include -c sgDb.c
sgDb.c: In function `sgDbInit':
sgDb.c:101: warning: passing arg 2 of pointer to function from incompatible pointer type
sgDb.c:101: warning: passing arg 4 of pointer to function makes pointer from integer without a cast
sgDb.c:101: error: too few arguments to function
sgDb.c:107: warning: passing arg 2 of pointer to function from incompatible pointer type
sgDb.c:107: warning: passing arg 4 of pointer to function makes pointer from integer without a cast
sgDb.c:107: error: too few arguments to function
make[1]: *** [sgDb.o] Error 1
make[1]: Leaving directory `/usr/local/src/squidGuard-1.2.0/src'
make: *** [all] Error 1


Espero que alguien me pueda dar una piasta de cómo solucionar esto.

Saludos,
Ricardo Rojas.







Este correo fue revisado por McAfee Antivirus

_______________________________________________
Linux-plug mailing list
[email protected]
http://www.linux.org.pe/cgi-bin/mailman/listinfo/linux-plug

Responder a