LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices



Reply
 
Search this Thread
Old 06-24-2009, 09:58 AM   #1
eduinoue
LQ Newbie
 
Registered: Jun 2009
Posts: 2

Rep: Reputation: 0
Problem to compile squid with kerberos Support


I'm trying to integrate a Squid Proxy to my Exist Active Directory Domain (Windows 2003 Native Mode), I searched of the net for how to and tutorials, but at this moment I didn't have success on my goal.

I using Ubuntu Server 8.10

uname -r output => 2.6.27-7-generic

The version of squid is squid-3.0.Stable14

The compiling options of squid are:

./configure --prefix=/usr/local/squid \
--sysconfdir=/etc/squid \
--libexecdir=/usr/local/squid/libexec \
--datadir=/usr/local/squid/etc \
--sharedstatedir=/usr/local/squid/share \
--enable-icmp \
--enable-delay-pools \
--with-large-files \
--enable-arp-acl \
--enable-err-languages="Portuguese English" \
--enable-default-err-language=Portuguese \
--enable-linux-netfilter \
--enable-underscores \
--enable-auth="basic negotiate" \
--enable-basic-auth-helpers="LDAP NCSA" \
--enable-negotiate-auth-helpers="squid_kerb_auth" \
--enable-external-acl-helpers="ip_user ldap_group" \
--with-default-user=proxy

I'm receiving the errors:

ake[3]: Leaving directory `/wf5f/squidcomp/squid-3.0.STABLE14/src'
make[2]: Leaving directory `/wf5f/squidcomp/squid-3.0.STABLE14/src'
make[1]: Leaving directory `/wf5f/squidcomp/squid-3.0.STABLE14/src'
Making all in icons
make[1]: Entering directory `/wf5f/squidcomp/squid-3.0.STABLE14/icons'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/wf5f/squidcomp/squid-3.0.STABLE14/icons'
Making all in errors
make[1]: Entering directory `/wf5f/squidcomp/squid-3.0.STABLE14/errors'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/wf5f/squidcomp/squid-3.0.STABLE14/errors'
Making all in doc
make[1]: Entering directory `/wf5f/squidcomp/squid-3.0.STABLE14/doc'
sed " s%@DEFAULT_CONFIG_FILE@%/etc/squid/squid.conf%g; s%@DEFAULT_CACHEMGR_CONFIG@%/etc/squid/cachemgr.conf%g; s%@DEFAULT_ERROR_DIR@%/usr/local/squid/etc/errors/Portuguese%g; s%@DEFAULT_MIME_TABLE@%/etc/squid/mime.conf%g; s%@""PACKAGE_STRING""@%Squid Web Proxy 3.0.STABLE14%g; " < ./squid.8.in > squid.8
sed " s%@DEFAULT_CONFIG_FILE@%/etc/squid/squid.conf%g; s%@DEFAULT_CACHEMGR_CONFIG@%/etc/squid/cachemgr.conf%g; s%@DEFAULT_ERROR_DIR@%/usr/local/squid/etc/errors/Portuguese%g; s%@DEFAULT_MIME_TABLE@%/etc/squid/mime.conf%g; s%@""PACKAGE_STRING""@%Squid Web Proxy 3.0.STABLE14%g; " < ./cachemgr.cgi.8.in > cachemgr.cgi.8
make[1]: Leaving directory `/wf5f/squidcomp/squid-3.0.STABLE14/doc'
Making all in helpers
make[1]: Entering directory `/wf5f/squidcomp/squid-3.0.STABLE14/helpers'
Making all in basic_auth
make[2]: Entering directory `/wf5f/squidcomp/squid-3.0.STABLE14/helpers/basic_auth'
Making all in LDAP
make[3]: Entering directory `/wf5f/squidcomp/squid-3.0.STABLE14/helpers/basic_auth/LDAP'
if gcc -DHAVE_CONFIG_H -I. -I. -I../../../include -I../../../include -m32 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Wall -g -O2 -MT squid_ldap_auth.o -MD -MP -MF ".deps/squid_ldap_auth.Tpo" -c -o squid_ldap_auth.o squid_ldap_auth.c; \
then mv -f ".deps/squid_ldap_auth.Tpo" ".deps/squid_ldap_auth.Po"; else rm -f ".deps/squid_ldap_auth.Tpo"; exit 1; fi
/bin/bash ../../../libtool --tag=CC --mode=link gcc -m32 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Wall -g -O2 -m32 -g -o squid_ldap_auth squid_ldap_auth.o -L../../../lib -lmiscutil -lldap -llber -lm -lresolv -lnsl
mkdir .libs
gcc -m32 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Wall -g -O2 -m32 -g -o squid_ldap_auth squid_ldap_auth.o -L/wf5f/squidcomp/squid-3.0.STABLE14/lib -lmiscutil -lldap -llber -lm -lresolv -lnsl
make[3]: Leaving directory `/wf5f/squidcomp/squid-3.0.STABLE14/helpers/basic_auth/LDAP'
Making all in NCSA
make[3]: Entering directory `/wf5f/squidcomp/squid-3.0.STABLE14/helpers/basic_auth/NCSA'
if gcc -DHAVE_CONFIG_H -I. -I. -I../../../include -I../../../include -m32 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Wall -g -O2 -MT ncsa_auth.o -MD -MP -MF ".deps/ncsa_auth.Tpo" -c -o ncsa_auth.o ncsa_auth.c; \
then mv -f ".deps/ncsa_auth.Tpo" ".deps/ncsa_auth.Po"; else rm -f ".deps/ncsa_auth.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I../../../include -I../../../include -m32 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Wall -g -O2 -MT crypt_md5.o -MD -MP -MF ".deps/crypt_md5.Tpo" -c -o crypt_md5.o crypt_md5.c; \
then mv -f ".deps/crypt_md5.Tpo" ".deps/crypt_md5.Po"; else rm -f ".deps/crypt_md5.Tpo"; exit 1; fi
/bin/bash ../../../libtool --tag=CC --mode=link gcc -m32 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Wall -g -O2 -m32 -g -o ncsa_auth ncsa_auth.o crypt_md5.o -L../../../lib -lmiscutil -lcrypt -lm -lresolv -lnsl
mkdir .libs
gcc -m32 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Wall -g -O2 -m32 -g -o ncsa_auth ncsa_auth.o crypt_md5.o -L/wf5f/squidcomp/squid-3.0.STABLE14/lib -lmiscutil -lcrypt -lm -lresolv -lnsl
make[3]: Leaving directory `/wf5f/squidcomp/squid-3.0.STABLE14/helpers/basic_auth/NCSA'
make[3]: Entering directory `/wf5f/squidcomp/squid-3.0.STABLE14/helpers/basic_auth'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/wf5f/squidcomp/squid-3.0.STABLE14/helpers/basic_auth'
make[2]: Leaving directory `/wf5f/squidcomp/squid-3.0.STABLE14/helpers/basic_auth'
Making all in ntlm_auth
make[2]: Entering directory `/wf5f/squidcomp/squid-3.0.STABLE14/helpers/ntlm_auth'
make[3]: Entering directory `/wf5f/squidcomp/squid-3.0.STABLE14/helpers/ntlm_auth'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/wf5f/squidcomp/squid-3.0.STABLE14/helpers/ntlm_auth'
make[2]: Leaving directory `/wf5f/squidcomp/squid-3.0.STABLE14/helpers/ntlm_auth'
Making all in digest_auth
make[2]: Entering directory `/wf5f/squidcomp/squid-3.0.STABLE14/helpers/digest_auth'
make[3]: Entering directory `/wf5f/squidcomp/squid-3.0.STABLE14/helpers/digest_auth'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/wf5f/squidcomp/squid-3.0.STABLE14/helpers/digest_auth'
make[2]: Leaving directory `/wf5f/squidcomp/squid-3.0.STABLE14/helpers/digest_auth'
Making all in negotiate_auth
make[2]: Entering directory `/wf5f/squidcomp/squid-3.0.STABLE14/helpers/negotiate_auth'
Making all in squid_kerb_auth
cc


The same error occur if I try to compile direct in the directory

squid-3.0.STABLE14/helpers/negotiate_auth/squid_kerb_auth

any ideas or hints?
 
Old 06-25-2009, 05:22 AM   #2
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,973

Rep: Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343
What errors are you talking about?
Unless the build process stops with the line containing just the "cc" as in your snippet
Quote:
...
make[2]: Entering directory `/wf5f/squidcomp/squid-3.0.STABLE14/helpers/negotiate_auth'
Making all in squid_kerb_auth
cc
without complaining for something, then everything should be ok.
 
Old 06-26-2009, 09:13 AM   #3
eduinoue
LQ Newbie
 
Registered: Jun 2009
Posts: 2

Original Poster
Rep: Reputation: 0
bathory, thanks for repply

Below is the output with the error, I've made a mistake and post the wrong output.

This is the path where I'm compiling:
/wf5f/squidcomp/squid-3.0.STABLE14




Squid Compiling options:

./configure --prefix=/usr/local/squid \
--sysconfdir=/etc/squid \
--libexecdir=/usr/local/squid/libexec \
--datadir=/usr/local/squid/etc \
--sharedstatedir=/usr/local/squid/share \
--enable-icmp \
--enable-delay-pools \
--with-large-files \
--enable-arp-acl \
--enable-err-languages="Portuguese English" \
--enable-default-err-language=Portuguese \
--enable-linux-netfilter \
--enable-underscores \
--enable-auth="basic negotiate" \
--enable-basic-auth-helpers="LDAP NCSA" \
--enable-negotiate-auth-helpers="squid_kerb_auth" \
--enable-external-acl-helpers="ip_user ldap_group" \
--with-default-user=proxy


Compiling output

make[3]: Leaving directory `/wf5f/squidcomp/squid-3.0.STABLE14/src'
make[2]: Leaving directory `/wf5f/squidcomp/squid-3.0.STABLE14/src'
make[1]: Leaving directory `/wf5f/squidcomp/squid-3.0.STABLE14/src'
Making all in icons
make[1]: Entering directory `/wf5f/squidcomp/squid-3.0.STABLE14/icons'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/wf5f/squidcomp/squid-3.0.STABLE14/icons'
Making all in errors
make[1]: Entering directory `/wf5f/squidcomp/squid-3.0.STABLE14/errors'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/wf5f/squidcomp/squid-3.0.STABLE14/errors'
Making all in doc
make[1]: Entering directory `/wf5f/squidcomp/squid-3.0.STABLE14/doc'
sed " s%@DEFAULT_CONFIG_FILE@%/etc/squid/squid.conf%g; s%@DEFAULT_CACHEMGR_CONFIG@%/etc/squid/cachemgr.conf%g; s%@DEFAULT_ERROR_DIR@%/usr/local/squid/etc/errors/Portuguese%g; s%@DEFAULT_MIME_TABLE@%/etc/squid/mime.conf%g; s%@""PACKAGE_STRING""@%Squid Web Proxy 3.0.STABLE14%g; " < ./squid.8.in > squid.8
sed " s%@DEFAULT_CONFIG_FILE@%/etc/squid/squid.conf%g; s%@DEFAULT_CACHEMGR_CONFIG@%/etc/squid/cachemgr.conf%g; s%@DEFAULT_ERROR_DIR@%/usr/local/squid/etc/errors/Portuguese%g; s%@DEFAULT_MIME_TABLE@%/etc/squid/mime.conf%g; s%@""PACKAGE_STRING""@%Squid Web Proxy 3.0.STABLE14%g; " < ./cachemgr.cgi.8.in > cachemgr.cgi.8
make[1]: Leaving directory `/wf5f/squidcomp/squid-3.0.STABLE14/doc'
Making all in helpers
make[1]: Entering directory `/wf5f/squidcomp/squid-3.0.STABLE14/helpers'
Making all in basic_auth
make[2]: Entering directory `/wf5f/squidcomp/squid-3.0.STABLE14/helpers/basic_auth'
Making all in LDAP
make[3]: Entering directory `/wf5f/squidcomp/squid-3.0.STABLE14/helpers/basic_auth/LDAP'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/wf5f/squidcomp/squid-3.0.STABLE14/helpers/basic_auth/LDAP'
Making all in NCSA
make[3]: Entering directory `/wf5f/squidcomp/squid-3.0.STABLE14/helpers/basic_auth/NCSA'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/wf5f/squidcomp/squid-3.0.STABLE14/helpers/basic_auth/NCSA'
make[3]: Entering directory `/wf5f/squidcomp/squid-3.0.STABLE14/helpers/basic_auth'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/wf5f/squidcomp/squid-3.0.STABLE14/helpers/basic_auth'
make[2]: Leaving directory `/wf5f/squidcomp/squid-3.0.STABLE14/helpers/basic_auth'
Making all in ntlm_auth
make[2]: Entering directory `/wf5f/squidcomp/squid-3.0.STABLE14/helpers/ntlm_auth'
make[3]: Entering directory `/wf5f/squidcomp/squid-3.0.STABLE14/helpers/ntlm_auth'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/wf5f/squidcomp/squid-3.0.STABLE14/helpers/ntlm_auth'
make[2]: Leaving directory `/wf5f/squidcomp/squid-3.0.STABLE14/helpers/ntlm_auth'
Making all in digest_auth
make[2]: Entering directory `/wf5f/squidcomp/squid-3.0.STABLE14/helpers/digest_auth'
make[3]: Entering directory `/wf5f/squidcomp/squid-3.0.STABLE14/helpers/digest_auth'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/wf5f/squidcomp/squid-3.0.STABLE14/helpers/digest_auth'
make[2]: Leaving directory `/wf5f/squidcomp/squid-3.0.STABLE14/helpers/digest_auth'
Making all in negotiate_auth
make[2]: Entering directory `/wf5f/squidcomp/squid-3.0.STABLE14/helpers/negotiate_auth'
Making all in squid_kerb_auth
make[3]: Entering directory `/wf5f/squidcomp/squid-3.0.STABLE14/helpers/negotiate_auth/squid_kerb_auth'
if gcc -DHAVE_CONFIG_H -I. -I. -I../../../include -I./spnegohelp -I. -m32 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Wall -g -O2 -MT squid_kerb_auth.o -MD -MP -MF ".deps/squid_kerb_auth.Tpo" -c -o squid_kerb_auth.o squid_kerb_auth.c; \
then mv -f ".deps/squid_kerb_auth.Tpo" ".deps/squid_kerb_auth.Po"; else rm -f ".deps/squid_kerb_auth.Tpo"; exit 1; fi
squid_kerb_auth.c:57:27: error: gssapi/gssapi.h: No such file or directory
squid_kerb_auth.c:59:35: error: gssapi/gssapi_generic.h: No such file or directory
squid_kerb_auth.c:65:18: error: krb5.h: No such file or directory
squid_kerb_auth.c:66: error: expected ‘)’ before ‘major_status’
squid_kerb_auth.c:122: error: expected ‘)’ before ‘major_status’
squid_kerb_auth.c: In function ‘main’:
squid_kerb_auth.c:186: error: ‘OM_uint32’ undeclared (first use in this function)
squid_kerb_auth.c:186: error: (Each undeclared identifier is reported only once
squid_kerb_auth.c:186: error: for each function it appears in.)
squid_kerb_auth.c:186: error: expected ‘;’ before ‘ret_flags’
squid_kerb_auth.c:190: error: expected ‘;’ before ‘major_status’
squid_kerb_auth.c:191: error: ‘gss_ctx_id_t’ undeclared (first use in this function)
squid_kerb_auth.c:191: error: expected ‘;’ before ‘gss_context’
squid_kerb_auth.c:192: error: ‘gss_name_t’ undeclared (first use in this function)
squid_kerb_auth.c:192: error: expected ‘;’ before ‘client_name’
squid_kerb_auth.c:193: error: expected ‘;’ before ‘server_name’
squid_kerb_auth.c:194: error: ‘gss_cred_id_t’ undeclared (first use in this function)
squid_kerb_auth.c:194: error: expected ‘;’ before ‘server_creds’
squid_kerb_auth.c:195: error: expected ‘;’ before ‘delegated_cred’
squid_kerb_auth.c:196: error: ‘gss_buffer_desc’ undeclared (first use in this function)
squid_kerb_auth.c:196: error: expected ‘;’ before ‘service’
squid_kerb_auth.c:197: error: expected ‘;’ before ‘input_token’
squid_kerb_auth.c:198: error: expected ‘;’ before ‘output_token’
squid_kerb_auth.c:231: error: ‘service’ undeclared (first use in this function)
squid_kerb_auth.c:272: warning: the address of ‘buf’ will always evaluate as ‘true’
squid_kerb_auth.c:289: warning: implicit declaration of function ‘gss_release_buffer’
squid_kerb_auth.c:289: error: ‘minor_status’ undeclared (first use in this function)
squid_kerb_auth.c:289: error: ‘input_token’ undeclared (first use in this function)
squid_kerb_auth.c:290: error: ‘output_token’ undeclared (first use in this function)
squid_kerb_auth.c:292: warning: implicit declaration of function ‘gss_release_cred’
squid_kerb_auth.c:292: error: ‘server_creds’ undeclared (first use in this function)
squid_kerb_auth.c:293: error: ‘delegated_cred’ undeclared (first use in this function)
squid_kerb_auth.c:294: warning: implicit declaration of function ‘gss_release_name’
squid_kerb_auth.c:294: error: ‘server_name’ undeclared (first use in this function)
squid_kerb_auth.c:295: error: ‘client_name’ undeclared (first use in this function)
squid_kerb_auth.c:296: warning: implicit declaration of function ‘gss_delete_sec_context’
squid_kerb_auth.c:296: error: ‘gss_context’ undeclared (first use in this function)
squid_kerb_auth.c:299: error: ‘spnego_flag’ undeclared (first use in this function)
squid_kerb_auth.c:327: error: ‘GSS_C_NO_CONTEXT’ undeclared (first use in this function)
squid_kerb_auth.c:386: error: ‘major_status’ undeclared (first use in this function)
squid_kerb_auth.c:386: warning: implicit declaration of function ‘gss_import_name’
squid_kerb_auth.c:387: error: ‘gss_OID’ undeclared (first use in this function)
squid_kerb_auth.c:387: error: expected ‘)’ before ‘GSS_C_NULL_OID’
squid_kerb_auth.c:390: error: ‘GSS_C_NO_NAME’ undeclared (first use in this function)
squid_kerb_auth.c:391: error: ‘GSS_S_COMPLETE’ undeclared (first use in this function)
squid_kerb_auth.c:395: error: ‘gss_nt_service_name’ undeclared (first use in this function)
squid_kerb_auth.c:398: warning: implicit declaration of function ‘check_gss_err’
squid_kerb_auth.c:401: warning: implicit declaration of function ‘gss_acquire_cred’
squid_kerb_auth.c:401: error: ‘GSS_C_INDEFINITE’ undeclared (first use in this function)
squid_kerb_auth.c:402: error: ‘GSS_C_NO_OID_SET’ undeclared (first use in this function)
squid_kerb_auth.c:402: error: ‘GSS_C_ACCEPT’ undeclared (first use in this function)
squid_kerb_auth.c:407: warning: implicit declaration of function ‘gss_accept_sec_context’
squid_kerb_auth.c:411: error: ‘GSS_C_NO_CHANNEL_BINDINGS’ undeclared (first use in this function)
squid_kerb_auth.c:415: error: ‘ret_flags’ undeclared (first use in this function)
squid_kerb_auth.c:452: error: ‘GSS_S_CONTINUE_NEEDED’ undeclared (first use in this function)
squid_kerb_auth.c:459: warning: implicit declaration of function ‘gss_display_name’
make[3]: *** [squid_kerb_auth.o] Error 1
make[3]: Leaving directory `/wf5f/squidcomp/squid-3.0.STABLE14/helpers/negotiate_auth/squid_kerb_auth'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/wf5f/squidcomp/squid-3.0.STABLE14/helpers/negotiate_auth'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/wf5f/squidcomp/squid-3.0.STABLE14/helpers'
make: *** [all-recursive] Error 1
 
Old 06-26-2009, 09:45 AM   #4
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,973

Rep: Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343
Quote:
squid_kerb_auth.c:57:27: error: gssapi/gssapi.h: No such file or directory
squid_kerb_auth.c:59:35: error: gssapi/gssapi_generic.h: No such file or directory
squid_kerb_auth.c:65:18: error: krb5.h: No such file or directory
I guess you need to install the libkrb5-dev packages
 
  


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
Squid-Compile... haariseshu Linux - Software 3 02-06-2008 03:06 AM
compile squid dpballey Slackware 4 10-03-2006 03:25 AM
problem in configuring kerberos kban Linux - Networking 1 06-13-2006 09:02 AM
Squid compile delay_pools problem dpballey *BSD 0 03-17-2006 11:02 AM
Webmail with Kerberos support nocturn00 Linux - Networking 0 08-09-2005 08:19 AM


All times are GMT -5. The time now is 09:57 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration