Autor Tópico: Compilar LDAP  (Lida 5414 vezes)

Offline gabriyel.angelo

  • Usuário Ubuntu
  • *
  • Mensagens: 18
    • Ver perfil
Compilar LDAP
« Online: 19 de Fevereiro de 2009, 09:20 »
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 ?

Offline tpresa

  • Usuário Ubuntu
  • *
  • Mensagens: 3
    • Ver perfil
Re: Compilar LDAP
« Resposta #1 Online: 27 de Fevereiro de 2009, 07:55 »
Tá aqui o grande problema (penso eu):

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

Vc precisa instalar o pacote libldap2-dev

sudo apt-get install libldap2-dev

Poste o resultado, por favor ;)

Offline Arquimedes

  • Usuário Ubuntu
  • *
  • Mensagens: 2
    • Ver perfil
Re: Compilar LDAP
« Resposta #2 Online: 26 de MAR?O de 2009, 17:47 »
O meu problema, é que instalei o squid, instalei os pacotes acima, e não aparece o arquivo squid_ldap_auth, tentei baixar o squid pegar o arquivo e tentar compilar na mão mas também não deu certo, alguém tem alguma sugestão??????

Offline Specian

  • Usuário Ubuntu
  • *
  • Mensagens: 1
    • Ver perfil
Re: Compilar LDAP
« Resposta #3 Online: 10 de Agosto de 2009, 17:01 »
Senhores,
Por gentileza, e onde eu acho essa biblioteca, eu uso o compilador Dev C, pois aqui no trabalho todos os desktops são windows, e nas atualizações do mesmo, nao achei nada.
Poderiam me dar uma luz?
Muito obrigado
forte abraço!!
« Última modificação: 10 de Agosto de 2009, 17:04 por Specian »

Offline ctavares

  • Usuário Ubuntu
  • *
  • Mensagens: 241
  • Linux
    • Ver perfil
Re: Compilar LDAP
« Resposta #4 Online: 05 de Abril de 2010, 12:11 »
Senhores,
 No Ubuntu esse chama-se ldap_auth e encontra-se em /usr/lib/squid/ldap_auth

Abraços,
Abraço,
Carlos Tavares
Blog: http://ti-online.blogspot.com/ MSN: ctavaresjr@hotmail.com