RES: Problems to compile squid with ldap auth on openBSD 4.3

2008-09-24 Thread Ricardo Augusto de Souza
# FLAVOR=ldap make install

test -z /usr/local/bin || mkdir -p --
/usr/ports/www/squid/w-squid-2.7.STABLE3-ldap/fake-i386-ldap/usr/local/bin
  install -c -s -o root -g bin -m 555 'squidclient'
'/usr/ports/www/squid/w-squid-2.7.STABLE3-ldap/fake-i386-ldap/usr/local/bin/s
quidclient'
test -z /usr/local/libexec || mkdir -p --
/usr/ports/www/squid/w-squid-2.7.STABLE3-ldap/fake-i386-ldap/usr/local/libex
ec
  install -c -s -o root -g bin -m 555 'cachemgr.cgi'
'/usr/ports/www/squid/w-squid-2.7.STABLE3-ldap/fake-i386-ldap/usr/local/libex
ec/cachemgr.cgi'
install -c -o root -g bin -m 444
/usr/ports/www/squid/w-squid-2.7.STABLE3-ldap/squid-2.7.STABLE3/tools/cachemg
r.conf
/usr/ports/www/squid/w-squid-2.7.STABLE3-ldap/fake-i386-ldap/etc/cachemgr.con
f
===  Building package for squid-2.7.STABLE3-ldap
Create /usr/ports/packages/i386/all/squid-2.7.STABLE3-ldap.tgz
Unknown element: @bin bin/squidclient
===  Cleaning for squid-2.7.STABLE3-ldap
rm -f /usr/ports/packages/i386/all/squid-2.7.STABLE3-ldap.tgz
/usr/ports/packages/i386/ftp/squid-2.7.STABLE3-ldap.tgz
/usr/ports/packages/i386/cdrom/squid-2.7.STABLE3-ldap.tgz
*** Error code 1

Stop in /usr/ports/www/squid (line 1422 of
/usr/ports/infrastructure/mk/bsd.port.mk).
*** Error code 1

Stop in /usr/ports/www/squid (line 1962 of
/usr/ports/infrastructure/mk/bsd.port.mk).
*** Error code 1

Stop in /usr/ports/www/squid (line 1452 of
/usr/ports/infrastructure/mk/bsd.port.mk).
#


Almost there.


thanks
-Mensagem original-
De: Giancarlo Razzolini [mailto:[EMAIL PROTECTED] Em nome de Giancarlo
Razzolini
Enviada em: terga-feira, 23 de setembro de 2008 14:34
Para: Ricardo Augusto de Souza
Cc: misc@openbsd.org
Assunto: Re: Problems to compile squid with ldap auth on openBSD 4.3

Ricardo Augusto de Souza escreveu:
 Hi,

 I got some errors trying to compile squid with ldap auth on openbsd 4.3.

 I used squid from ports and  compiled its source and I got same error
 when I add --enable-auth=basic digest LDAP \  and
 --enable-basic-auth-helpers=NCSA YP LDAP \ to ./configure.



 Note I have already installed OpenLDAP .



 Can anyone help me please?

 Thanks

I took a look at the -current tree of the ports and noticed they've
created a new flavor of squid called ldap. This solves a problem that i
had for a long time compiling ldap-auth on squid with openbsd. I did
make 2 patches, one for squid-ldap-auth and other for squid-group-auth.
I recommend that you checkout the -current version of ports, and try to
compile squid the following way:

FLAVOR=ldap make install

If it works, then you're done. If it not works, i assume you might have
to compile the -current kernel and userland. Or, i could send you the
patches i made for it. Since on this list there is the demime, as me and
i sent to you the patches in private. But first, try with ports.

My regards,

--
Giancarlo Razzolini
http://lock.razzolini.adm.br
Linux User 172199
Red Hat Certified Engineer no:804006389722501
Verify:https://www.redhat.com/certification/rhce/current/
Moleque Sem Conteudo Numero #002
OpenBSD Stable
Ubuntu 8.04 Hardy Heron
4386 2A6F FFD4 4D5F 5842  6EA0 7ABE BBAB 9C0E 6B85



Problems to compile squid with ldap auth on openBSD 4.3

2008-09-23 Thread Ricardo Augusto de Souza
Hi,

I got some errors trying to compile squid with ldap auth on openbsd 4.3.

I used squid from ports and  compiled its source and I got same error
when I add --enable-auth=basic digest LDAP \  and
--enable-basic-auth-helpers=NCSA YP LDAP \ to ./configure.



Note I have already installed OpenLDAP .



Can anyone help me please?

Thanks



Error is:



Making all in helpers

Making all in basic_auth

Making all in LDAP

if gcc -DHAVE_CONFIG_H -I. -I. -I../../../include -I../../../include
-Wall -g -O2 -D_REENTRANT -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: lber.h: No such file or directory

squid_ldap_auth.c:124:18: ldap.h: No such file or directory

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: syntax error before '*' token

squid_ldap_auth.c:208: error: syntax error before '*' token

squid_ldap_auth.c: In function `squid_ldap_errno':

squid_ldap_auth.c:210: error: `ld' undeclared (first use in this
function)

squid_ldap_auth.c:210: error: (Each undeclared identifier is reported
only once

squid_ldap_auth.c:210: error: for each function it appears in.)

squid_ldap_auth.c: At top level:

squid_ldap_auth.c:213: error: syntax error before '*' token

squid_ldap_auth.c: In function `squid_ldap_set_aliasderef':

squid_ldap_auth.c:215: error: `ld' undeclared (first use in this
function)

squid_ldap_auth.c:215: error: `deref' undeclared (first use in this
function)

squid_ldap_auth.c: At top level:

squid_ldap_auth.c:218: error: syntax error before '*' token

squid_ldap_auth.c: In function `squid_ldap_set_referrals':

squid_ldap_auth.c:220: error: `referrals' undeclared (first use in this
function)

squid_ldap_auth.c:221: error: `ld' undeclared (first use in this
function)

squid_ldap_auth.c:221: error: `LDAP_OPT_REFERRALS' undeclared (first use
in this function)

squid_ldap_auth.c: At top level:

squid_ldap_auth.c:226: error: syntax error before '*' token

squid_ldap_auth.c: In function `squid_ldap_set_timelimit':

squid_ldap_auth.c:228: error: `ld' undeclared (first use in this
function)

squid_ldap_auth.c: At top level:

squid_ldap_auth.c:231: error: syntax error before '*' token

squid_ldap_auth.c:249: error: syntax error before '*' token

squid_ldap_auth.c:251: warning: return type defaults to `int'

squid_ldap_auth.c: In function `open_ldap_connection':

squid_ldap_auth.c:252: error: `LDAP' undeclared (first use in this
function)

squid_ldap_auth.c:252: error: `ld' undeclared (first use in this
function)

squid_ldap_auth.c:278: warning: implicit declaration of function
`ldap_init'

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: `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:414: error: `LDAP_SCOPE_SUBTREE' undeclared (first use
in this function)

squid_ldap_auth.c:438: error: `LDAP_DEREF_NEVER' 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: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 argument is not a pointer (arg 2)

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: syntax error before '*' token

squid_ldap_auth.c: In function `checkLDAP':

squid_ldap_auth.c:643: error: `LDAP' undeclared (first use in this
function)

squid_ldap_auth.c:643: error: `bind_ld' undeclared (first use in this
function)

squid_ldap_auth.c:645: error: `password' undeclared (first use in this
function)

squid_ldap_auth.c:656: error: `LDAPMessage' undeclared (first use in
this function)

squid_ldap_auth.c:656: error: `res' undeclared (first use in this
function)

squid_ldap_auth.c:657: error: `entry' undeclared (first use in this
function)

squid_ldap_auth.c:662: error: `search_ld' undeclared (first use in 

Re: Problems to compile squid with ldap auth on openBSD 4.3

2008-09-23 Thread Stuart Henderson
On 2008-09-23, Ricardo Augusto de Souza [EMAIL PROTECTED] wrote:
 I got some errors trying to compile squid with ldap auth on openbsd 4.3.

 I used squid from ports and  compiled its source and I got same error
 when I add --enable-auth=basic digest LDAP \  and
 --enable-basic-auth-helpers=NCSA YP LDAP \ to ./configure.

Use cvsweb and look at the -current version of the port, see how
that does things.



RES: Problems to compile squid with ldap auth on openBSD 4.3

2008-09-23 Thread Ricardo Augusto de Souza
Still the same error.

Making all in LDAP
if cc -DHAVE_CONFIG_H -I.
-I/usr/ports/www/squid/w-squid-2.7.STABLE3/squid-2.7.STABLE3/helpers/basic_au
th/LDAP -I../../../include
-I/usr/ports/www/squid/w-squid-2.7.STABLE3/squid-2.7.STABLE3/include -O2
-pipe -D_REENTRANT -MT squid_ldap_auth.o -MD -MP -MF
.deps/squid_ldap_auth.Tpo -c -o squid_ldap_auth.o
/usr/ports/www/squid/w-squid-2.7.STABLE3/squid-2.7.STABLE3/helpers/basic_auth
/LDAP/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
/usr/ports/www/squid/w-squid-2.7.STABLE3/squid-2.7.STABLE3/helpers/basic_auth
/LDAP/squid_ldap_auth.c:123:18: lber.h: No such file or directory
/usr/ports/www/squid/w-squid-2.7.STABLE3/squid-2.7.STABLE3/helpers/basic_auth
/LDAP/squid_ldap_auth.c:124:18: ldap.h: No such file or directory
/usr/ports/www/squid/w-squid-2.7.STABLE3/squid-2.7.STABLE3/helpers/basic_auth
/LDAP/squid_ldap_auth.c:137: error: `LDAP_SCOPE_SUBTREE' undeclared here (not
in a function)
/usr/ports/www/squid/w-squid-2.7.STABLE3/squid-2.7.STABLE3/helpers/basic_auth
/LDAP/squid_ldap_auth.c:141: error: `LDAP_DEREF_NEVER' undeclared here (not in
a function)
/usr/ports/www/squid/w-squid-2.7.STABLE3/squid-2.7.STABLE3/helpers/basic_auth
/LDAP/squid_ldap_auth.c:147: error: `LDAP_NO_LIMIT' undeclared here (not in a
function)
/usr/ports/www/squid/w-squid-2.7.STABLE3/squid-2.7.STABLE3/helpers/basic_auth
/LDAP/squid_ldap_auth.c:154: error: syntax error before '*' token
/usr/ports/www/squid/w-squid-2.7.STABLE3/squid-2.7.STABLE3/helpers/basic_auth
/LDAP/squid_ldap_auth.c:208: error: syntax error before '*' token
/usr/ports/www/squid/w-squid-2.7.STABLE3/squid-2.7.STABLE3/helpers/basic_auth
/LDAP/squid_ldap_auth.c: In function `squid_ldap_errno':
/usr/ports/www/squid/w-squid-2.7.STABLE3/squid-2.7.STABLE3/helpers/basic_auth
/LDAP/squid_ldap_auth.c:210: error: `ld' undeclared (first use in this
function)
/usr/ports/www/squid/w-squid-2.7.STABLE3/squid-2.7.STABLE3/helpers/basic_auth
/LDAP/squid_ldap_auth.c:210: error: (Each undeclared identifier is reported
only once
/usr/ports/www/squid/w-squid-2.7.STABLE3/squid-2.7.STABLE3/helpers/basic_auth
/LDAP/squid_ldap_auth.c:210: error: for each function it appears in.)
/usr/ports/www/squid/w-squid-2.7.STABLE3/squid-2.7.STABLE3/helpers/basic_auth
/LDAP/squid_ldap_auth.c: At top level:
/usr/ports/www/squid/w-squid-2.7.STABLE3/squid-2.7.STABLE3/helpers/basic_auth
/LDAP/squid_ldap_auth.c:213: error: syntax error before '*' token
/usr/ports/www/squid/w-squid-2.7.STABLE3/squid-2.7.STABLE3/helpers/basic_auth
/LDAP/squid_ldap_auth.c: In function `squid_ldap_set_aliasderef':
/usr/ports/www/squid/w-squid-2.7.STABLE3/squid-2.7.STABLE3/helpers/basic_auth
/LDAP/squid_ldap_auth.c:215: error: `ld' undeclared (first use in this
function)
/usr/ports/www/squid/w-squid-2.7.STABLE3/squid-2.7.STABLE3/helpers/basic_auth
/LDAP/squid_ldap_auth.c:215: error: `deref' undeclared (first use in this
function)
/usr/ports/www/squid/w-squid-2.7.STABLE3/squid-2.7.STABLE3/helpers/basic_auth
/LDAP/squid_ldap_auth.c: At top level:
/usr/ports/www/squid/w-squid-2.7.STABLE3/squid-2.7.STABLE3/helpers/basic_auth
/LDAP/squid_ldap_auth.c:218: error: syntax error before '*' token
/usr/ports/www/squid/w-squid-2.7.STABLE3/squid-2.7.STABLE3/helpers/basic_auth
/LDAP/squid_ldap_auth.c: In function `squid_ldap_set_referrals':
/usr/ports/www/squid/w-squid-2.7.STABLE3/squid-2.7.STABLE3/helpers/basic_auth
/LDAP/squid_ldap_auth.c:220: error: `referrals' undeclared (first use in this
function)
/usr/ports/www/squid/w-squid-2.7.STABLE3/squid-2.7.STABLE3/helpers/basic_auth
/LDAP/squid_ldap_auth.c:221: error: `ld' undeclared (first use in this
function)
/usr/ports/www/squid/w-squid-2.7.STABLE3/squid-2.7.STABLE3/helpers/basic_auth
/LDAP/squid_ldap_auth.c:221: error: `LDAP_OPT_REFERRALS' undeclared (first use
in this function)
/usr/ports/www/squid/w-squid-2.7.STABLE3/squid-2.7.STABLE3/helpers/basic_auth
/LDAP/squid_ldap_auth.c: At top level:
/usr/ports/www/squid/w-squid-2.7.STABLE3/squid-2.7.STABLE3/helpers/basic_auth
/LDAP/squid_ldap_auth.c:226: error: syntax error before '*' token
/usr/ports/www/squid/w-squid-2.7.STABLE3/squid-2.7.STABLE3/helpers/basic_auth
/LDAP/squid_ldap_auth.c: In function `squid_ldap_set_timelimit':
/usr/ports/www/squid/w-squid-2.7.STABLE3/squid-2.7.STABLE3/helpers/basic_auth
/LDAP/squid_ldap_auth.c:228: error: `ld' undeclared (first use in this
function)
/usr/ports/www/squid/w-squid-2.7.STABLE3/squid-2.7.STABLE3/helpers/basic_auth
/LDAP/squid_ldap_auth.c: At top level:
/usr/ports/www/squid/w-squid-2.7.STABLE3/squid-2.7.STABLE3/helpers/basic_auth
/LDAP/squid_ldap_auth.c:231: error: syntax error before '*' token
/usr/ports/www/squid/w-squid-2.7.STABLE3/squid-2.7.STABLE3/helpers/basic_auth
/LDAP/squid_ldap_auth.c:249: error: syntax error before '*' token
/usr/ports/www/squid/w-squid-2.7.STABLE3/squid-2.7.STABLE3/helpers/basic_auth
/LDAP/squid_ldap_auth.c: In function `open_ldap_connection':

Re: Problems to compile squid with ldap auth on openBSD 4.3

2008-09-23 Thread Giancarlo Razzolini
Ricardo Augusto de Souza escreveu:
 Hi,

 I got some errors trying to compile squid with ldap auth on openbsd 4.3.

 I used squid from ports and  compiled its source and I got same error
 when I add --enable-auth=basic digest LDAP \  and
 --enable-basic-auth-helpers=NCSA YP LDAP \ to ./configure.



 Note I have already installed OpenLDAP .



 Can anyone help me please?

 Thanks
   
I took a look at the -current tree of the ports and noticed they've
created a new flavor of squid called ldap. This solves a problem that i
had for a long time compiling ldap-auth on squid with openbsd. I did
make 2 patches, one for squid-ldap-auth and other for squid-group-auth.
I recommend that you checkout the -current version of ports, and try to
compile squid the following way:

FLAVOR=ldap make install

If it works, then you're done. If it not works, i assume you might have
to compile the -current kernel and userland. Or, i could send you the
patches i made for it. Since on this list there is the demime, as me and
i sent to you the patches in private. But first, try with ports.

My regards,

-- 
Giancarlo Razzolini
http://lock.razzolini.adm.br
Linux User 172199
Red Hat Certified Engineer no:804006389722501
Verify:https://www.redhat.com/certification/rhce/current/
Moleque Sem Conteudo Numero #002
OpenBSD Stable
Ubuntu 8.04 Hardy Heron
4386 2A6F FFD4 4D5F 5842  6EA0 7ABE BBAB 9C0E 6B85



RES: Problems to compile squid with ldap auth on openBSD 4.3

2008-09-23 Thread Ricardo Augusto de Souza
I already  tryied the -current ports and I got the same error.
Please send me the patch you  used.


-Mensagem original-
De: Giancarlo Razzolini [mailto:[EMAIL PROTECTED] Em nome de Giancarlo
Razzolini
Enviada em: terga-feira, 23 de setembro de 2008 14:34
Para: Ricardo Augusto de Souza
Cc: misc@openbsd.org
Assunto: Re: Problems to compile squid with ldap auth on openBSD 4.3

Ricardo Augusto de Souza escreveu:
 Hi,

 I got some errors trying to compile squid with ldap auth on openbsd 4.3.

 I used squid from ports and  compiled its source and I got same error
 when I add --enable-auth=basic digest LDAP \  and
 --enable-basic-auth-helpers=NCSA YP LDAP \ to ./configure.



 Note I have already installed OpenLDAP .



 Can anyone help me please?

 Thanks

I took a look at the -current tree of the ports and noticed they've
created a new flavor of squid called ldap. This solves a problem that i
had for a long time compiling ldap-auth on squid with openbsd. I did
make 2 patches, one for squid-ldap-auth and other for squid-group-auth.
I recommend that you checkout the -current version of ports, and try to
compile squid the following way:

FLAVOR=ldap make install

If it works, then you're done. If it not works, i assume you might have
to compile the -current kernel and userland. Or, i could send you the
patches i made for it. Since on this list there is the demime, as me and
i sent to you the patches in private. But first, try with ports.

My regards,

--
Giancarlo Razzolini
http://lock.razzolini.adm.br
Linux User 172199
Red Hat Certified Engineer no:804006389722501
Verify:https://www.redhat.com/certification/rhce/current/
Moleque Sem Conteudo Numero #002
OpenBSD Stable
Ubuntu 8.04 Hardy Heron
4386 2A6F FFD4 4D5F 5842  6EA0 7ABE BBAB 9C0E 6B85