Bem não sei se essa é a area certa para o meu tópico se não for por favor movam, mas como eu preciso compilar um pacote acho ki essa é o melhor local para perguntar. Estou seguindo o seguinte tutorial para configurar um proxy:
http://www.squid-cache.org.br/index.php?option=com_content&task=view&id=50&Itemid=27 , mas na hora de compilar o daemon squid_ldap_auth é apresentando o seguinte erro:
if gcc -DHAVE_CONFIG_H -I. -I. -I../../../include -I../../../include -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
squid_ldap_auth.c:123:18: error: lber.h: Arquivo ou diretório inexistente
squid_ldap_auth.c:124:18: error: ldap.h: Arquivo ou diretório inexistente
squid_ldap_auth.c:137: error: ‘LDAP_SCOPE_SUBTREE’ undeclared here (not in a function)
squid_ldap_auth.c:141: error: ‘LDAP_DEREF_NEVER’ undeclared here (not in a function)
squid_ldap_auth.c:147: error: ‘LDAP_NO_LIMIT’ undeclared here (not in a function)
squid_ldap_auth.c:154: error: expected ‘)’ before ‘*’ token
squid_ldap_auth.c:208: error: expected ‘)’ before ‘*’ token
squid_ldap_auth.c:213: error: expected ‘)’ before ‘*’ token
squid_ldap_auth.c:218: error: expected ‘)’ before ‘*’ token
squid_ldap_auth.c:226: error: expected ‘)’ before ‘*’ token
squid_ldap_auth.c:231: error: expected ‘)’ before ‘*’ token
squid_ldap_auth.c:249: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
squid_ldap_auth.c: In function ‘main’:
squid_ldap_auth.c:348: error: ‘LDAP’ undeclared (first use in this function)
squid_ldap_auth.c:348: error: (Each undeclared identifier is reported only once
squid_ldap_auth.c:348: error: for each function it appears in.)
squid_ldap_auth.c:348: error: ‘ld’ undeclared (first use in this function)
squid_ldap_auth.c:350: error: ‘LDAP_PORT’ undeclared (first use in this function)
squid_ldap_auth.c:410: error: ‘LDAP_SCOPE_BASE’ undeclared (first use in this function)
squid_ldap_auth.c:412: error: ‘LDAP_SCOPE_ONELEVEL’ undeclared (first use in this function)
squid_ldap_auth.c:440: error: ‘LDAP_DEREF_ALWAYS’ undeclared (first use in this function)
squid_ldap_auth.c:442: error: ‘LDAP_DEREF_SEARCHING’ undeclared (first use in this function)
squid_ldap_auth.c:444: error: ‘LDAP_DEREF_FINDING’ undeclared (first use in this function)
squid_ldap_auth.c:585: warning: implicit declaration of function ‘open_ldap_connection’
squid_ldap_auth.c:586: warning: implicit declaration of function ‘checkLDAP’
squid_ldap_auth.c:587: warning: implicit declaration of function ‘squid_ldap_errno’
squid_ldap_auth.c:587: error: ‘LDAP_INVALID_CREDENTIALS’ undeclared (first use in this function)
squid_ldap_auth.c:589: warning: implicit declaration of function ‘ldap_unbind’
squid_ldap_auth.c:593: warning: implicit declaration of function ‘ldap_err2string’
squid_ldap_auth.c:593: warning: format ‘%s’ expects type ‘char *’, but argument 2 has type ‘int’
squid_ldap_auth.c:597: error: ‘LDAP_SUCCESS’ undeclared (first use in this function)
squid_ldap_auth.c: At top level:
squid_ldap_auth.c:639: error: expected ‘)’ before ‘*’ token
make: ** [squid_ldap_auth.o] Erro 1
Alguém sabe qual o problema na compilação ?