Re: [squid-users] make squid-3.1.1

2010-05-05 Thread lieven

Hi, this problem is solved, completely something on my side as expected:

It seems that my first try to download and compile the cvs of 
squid_kerb_auth had compromised the make with squid3.1.1. Even after 
make clean.


I installed a fresh debian lenny and this time compiling squid with the 
helpers worked fine.


thankyou,
Lieven


Henrik Nordström wrote:

ons 2010-04-28 klockan 18:46 +0200 skrev lieven:


squid_kerb_auth squid_kerb_auth.o base64.o  -lmiscutil -lm
../../../lib/libmiscutil.a(base64.o):(.rodata+0x0): multiple definition 
of `base64_code'

base64.o:(.rodata+0x0): first defined here


Try this:

echo >helpers/negotiate_auth/squid_kerb_auth/base64.c

Appears that file is duplicate and colliding with the same from within
the main parts of the Squid source tree.

Regards
Henrik



--

Please Visit us at V-ICT-OR shopt IT
25 May 2010 - De Montil - Affligem

Lieven De Puysseleir
BA N.V. - http://www.ba.be
Dalemhof 28, 3000 Leuven
tel: 0032 (0)16 29 80 45
<>

Re: [squid-users] make squid-3.1.1

2010-05-03 Thread Amos Jeffries

lieven wrote:

Thank you Henrik.

I just tried your suggestion and emptied the base64.c file.
It did solve one problem but a new one arises.

I took following actions:

make clean
./configure
make

and now it stops like this:





Maybe I can just compile the squid_kerb_auth helper and install the rest 
of squid3 with apt-get.


I already tried downloading the squid_kerb_auth from the cvs 
(sourceforge project) but couldn't get it to configure. Here, when I go 
into the squid_kerb_auth folder, at least the configure works.


Sorry if this sounds gibberish, I'm not a programmer.


Well done then. Perfect code-speak. ;)



thanks for your help.
Lieven


Henrik Nordström wrote:

ons 2010-04-28 klockan 18:46 +0200 skrev lieven:


squid_kerb_auth squid_kerb_auth.o base64.o  -lmiscutil -lm
../../../lib/libmiscutil.a(base64.o):(.rodata+0x0): multiple 
definition of `base64_code'

base64.o:(.rodata+0x0): first defined here


Try this:

echo >helpers/negotiate_auth/squid_kerb_auth/base64.c

Appears that file is duplicate and colliding with the same from within
the main parts of the Squid source tree.


Henrik,
 The file is bundled with the source as Marcus modified version of 
base64.c, it has a slightly nicer implementation of encode/decode but it 
seems some of the symbols were not prefixed with ska_ like they needed. 
Not sure yet why it passed all our build farm tests.


Lieven,
 In helpers/negotiate_auth/squid_kerb_auth/base64.c as provided with 
the sources remove the line with "base64_code = " and a list of alphabet 
characters.


 You may also need to remove some of the lines next to it if they also 
clash ('multiple definition of') on following "make".


 You do not have to "make clean" and "configure" for these changes, 
just "make" should find the .c changes fine.


I expect that will get it building for you.

PS: If you can list any other 'multiple definition of' you get while 
doing that we can see about cleaning up the squid code for future builds.


Amos
--
Please be using
  Current Stable Squid 2.7.STABLE9 or 3.1.3


Re: [squid-users] make squid-3.1.1

2010-05-03 Thread lieven

Thank you Henrik.

I just tried your suggestion and emptied the base64.c file.
It did solve one problem but a new one arises.

I took following actions:

make clean
./configure
make

and now it stops like this:


gcc  -g -O2 -Wall -Wextra -Werror -Wcomment -Wpointer-arith -Wcast-align 
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes 
-Wmissing-declarations -Wdeclaration-after-statement -Wshadow 
-Wl,-R/usr/lib -L/usr/lib -lgssapi -lheimntlm -lkrb5 -L../../../lib -o 
squid_kerb_auth squid_kerb_auth.o base64.o  -lmiscutil -lm

squid_kerb_auth.o: In function `main':
/opt/software/squid-3.1.1/helpers/negotiate_auth/squid_kerb_auth/squid_kerb_auth.c:374: 
undefined reference to `ska_base64_decode_len'
/opt/software/squid-3.1.1/helpers/negotiate_auth/squid_kerb_auth/squid_kerb_auth.c:379: 
undefined reference to `ska_base64_decode'
/opt/software/squid-3.1.1/helpers/negotiate_auth/squid_kerb_auth/squid_kerb_auth.c:429: 
undefined reference to `ska_base64_encode_len'
/opt/software/squid-3.1.1/helpers/negotiate_auth/squid_kerb_auth/squid_kerb_auth.c:437: 
undefined reference to `ska_base64_encode_len'
/opt/software/squid-3.1.1/helpers/negotiate_auth/squid_kerb_auth/squid_kerb_auth.c:437: 
undefined reference to `ska_base64_encode'

collect2: ld returned 1 exit status
make[5]: *** [squid_kerb_auth] Error 1
make[5]: Leaving directory 
`/opt/software/squid-3.1.1/helpers/negotiate_auth/squid_kerb_auth'

make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory 
`/opt/software/squid-3.1.1/helpers/negotiate_auth/squid_kerb_auth'

make[3]: *** [all] Error 2
make[3]: Leaving directory 
`/opt/software/squid-3.1.1/helpers/negotiate_auth/squid_kerb_auth'

make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory 
`/opt/software/squid-3.1.1/helpers/negotiate_auth'

make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/software/squid-3.1.1/helpers'
make: *** [all-recursive] Error 1


Maybe I can just compile the squid_kerb_auth helper and install the rest 
of squid3 with apt-get.


I already tried downloading the squid_kerb_auth from the cvs 
(sourceforge project) but couldn't get it to configure. Here, when I go 
into the squid_kerb_auth folder, at least the configure works.


Sorry if this sounds gibberish, I'm not a programmer.

thanks for your help.
Lieven


Henrik Nordström wrote:

ons 2010-04-28 klockan 18:46 +0200 skrev lieven:


squid_kerb_auth squid_kerb_auth.o base64.o  -lmiscutil -lm
../../../lib/libmiscutil.a(base64.o):(.rodata+0x0): multiple definition 
of `base64_code'

base64.o:(.rodata+0x0): first defined here


Try this:

echo >helpers/negotiate_auth/squid_kerb_auth/base64.c

Appears that file is duplicate and colliding with the same from within
the main parts of the Squid source tree.

Regards
Henrik



--

Please Visit us at V-ICT-OR shopt IT
25 May 2010 - De Montil - Affligem

Lieven De Puysseleir
BA N.V. - http://www.ba.be
Dalemhof 28, 3000 Leuven
tel: 0032 (0)16 29 80 45
<>

Re: [squid-users] make squid-3.1.1

2010-05-02 Thread Henrik Nordström
ons 2010-04-28 klockan 18:46 +0200 skrev lieven:

> squid_kerb_auth squid_kerb_auth.o base64.o  -lmiscutil -lm
> ../../../lib/libmiscutil.a(base64.o):(.rodata+0x0): multiple definition 
> of `base64_code'
> base64.o:(.rodata+0x0): first defined here

Try this:

echo >helpers/negotiate_auth/squid_kerb_auth/base64.c

Appears that file is duplicate and colliding with the same from within
the main parts of the Squid source tree.

Regards
Henrik



Re: [squid-users] make squid-3.1.1

2010-04-30 Thread lieven

Hi Nick,

Thank you very much for your reply.

I found the following page: 
http://www.mail-archive.com/debian-bugs-d...@lists.debian.org/msg535930.html


Next, I apt-get installed the following packets:
libldap2-dev, libpam0g-dev, sharutils, dpatch (>= 2.0.9), po-debconf, 
libdb-dev, libgssglue-dev, libkrb5-dev
except for libkrb5-dev because I have heimdal-dev (Maybe I should switch 
to MIT version?)


Anyways, after a
*) make clean
*) ./configure --enable-negotiate-auth-helpers=squid_kerb_auth 
--enable-stacktraces --prefix=/usr/local/sbin/squid-3.0

*) make

-> I get the same problem. It just stops the same way as before.

Then I tried an apt-get install squid3, this works fine but I do not 
have the much-wanted squid_kerb_auth because it is not included in the 
standard squid configure options.


thanks for your help though.

kind regards,
Lieven



Nick Cairncross wrote:

Dependencies perhaps - krb5, cyrus-sasl, gss etc?

-Original Message-
From: lieven [mailto:lie...@ba.be] 
Sent: 28 April 2010 17:47

To: squid-users@squid-cache.org
Subject: [squid-users] make squid-3.1.1

Dear list and people therein,

I'm currently trying to compile (make) the squid 3.1.1 which I just downloaded 
from the squid-cache site.

The OS is Debian Lenny 64bit.

build-essentials was installed.

./configure works fine, I get a make file.
Then I run make, it goes along for some time and then stops. (logging included 
below)

If anybody can point me in the good direction to solve this, thank you very 
much.

...
gcc  -g -O2 -Wall -Wextra -Werror -Wcomment -Wpointer-arith -Wcast-align 
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations 
-Wdeclaration-after-statement -Wshadow -Wl,-R/usr/lib -L/usr/lib -lgssapi 
-lheimntlm -lkrb5 -L../../../lib -o squid_kerb_auth squid_kerb_auth.o base64.o  
-lmiscutil -lm
../../../lib/libmiscutil.a(base64.o):(.rodata+0x0): multiple definition of 
`base64_code'
base64.o:(.rodata+0x0): first defined here
collect2: ld returned 1 exit status
make[5]: *** [squid_kerb_auth] Error 1
make[5]: Leaving directory
`/opt/software/squid-3.1.1/helpers/negotiate_auth/squid_kerb_auth'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory
`/opt/software/squid-3.1.1/helpers/negotiate_auth/squid_kerb_auth'
make[3]: *** [all] Error 2
make[3]: Leaving directory
`/opt/software/squid-3.1.1/helpers/negotiate_auth/squid_kerb_auth'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/opt/software/squid-3.1.1/helpers/negotiate_auth'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/software/squid-3.1.1/helpers'
make: *** [all-recursive] Error 1

kind regards,
Lieven

** Please consider the environment before printing this e-mail **

The information contained in this e-mail is of a confidential nature and is 
intended only for the addressee.  If you are not the intended addressee, any 
disclosure, copying or distribution by you is prohibited and may be unlawful.  
Disclosure to any party other than the addressee, whether inadvertent or 
otherwise, is not intended to waive privilege or confidentiality.  Internet 
communications are not secure and therefore Conde Nast does not accept legal 
responsibility for the contents of this message.  Any views or opinions 
expressed are those of the author.

Company Registration details:
The Conde Nast Publications Ltd
Vogue House
Hanover Square
London W1S 1JU

Registered in London No. 226900


--

Please Visit us at V-ICT-OR shopt IT
25 May 2010 - De Montil - Affligem

Lieven De Puysseleir
BA N.V. - http://www.ba.be
Dalemhof 28, 3000 Leuven
tel: 0032 (0)16 29 80 45
<>

RE: [squid-users] make squid-3.1.1

2010-04-29 Thread Nick Cairncross
Dependencies perhaps - krb5, cyrus-sasl, gss etc?

-Original Message-
From: lieven [mailto:lie...@ba.be] 
Sent: 28 April 2010 17:47
To: squid-users@squid-cache.org
Subject: [squid-users] make squid-3.1.1

Dear list and people therein,

I'm currently trying to compile (make) the squid 3.1.1 which I just downloaded 
from the squid-cache site.

The OS is Debian Lenny 64bit.

build-essentials was installed.

./configure works fine, I get a make file.
Then I run make, it goes along for some time and then stops. (logging included 
below)

If anybody can point me in the good direction to solve this, thank you very 
much.

...
gcc  -g -O2 -Wall -Wextra -Werror -Wcomment -Wpointer-arith -Wcast-align 
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations 
-Wdeclaration-after-statement -Wshadow -Wl,-R/usr/lib -L/usr/lib -lgssapi 
-lheimntlm -lkrb5 -L../../../lib -o squid_kerb_auth squid_kerb_auth.o base64.o  
-lmiscutil -lm
../../../lib/libmiscutil.a(base64.o):(.rodata+0x0): multiple definition of 
`base64_code'
base64.o:(.rodata+0x0): first defined here
collect2: ld returned 1 exit status
make[5]: *** [squid_kerb_auth] Error 1
make[5]: Leaving directory
`/opt/software/squid-3.1.1/helpers/negotiate_auth/squid_kerb_auth'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory
`/opt/software/squid-3.1.1/helpers/negotiate_auth/squid_kerb_auth'
make[3]: *** [all] Error 2
make[3]: Leaving directory
`/opt/software/squid-3.1.1/helpers/negotiate_auth/squid_kerb_auth'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/opt/software/squid-3.1.1/helpers/negotiate_auth'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/software/squid-3.1.1/helpers'
make: *** [all-recursive] Error 1

kind regards,
Lieven

** Please consider the environment before printing this e-mail **

The information contained in this e-mail is of a confidential nature and is 
intended only for the addressee.  If you are not the intended addressee, any 
disclosure, copying or distribution by you is prohibited and may be unlawful.  
Disclosure to any party other than the addressee, whether inadvertent or 
otherwise, is not intended to waive privilege or confidentiality.  Internet 
communications are not secure and therefore Conde Nast does not accept legal 
responsibility for the contents of this message.  Any views or opinions 
expressed are those of the author.

Company Registration details:
The Conde Nast Publications Ltd
Vogue House
Hanover Square
London W1S 1JU

Registered in London No. 226900


[squid-users] make squid-3.1.1

2010-04-28 Thread lieven

Dear list and people therein,

I'm currently trying to compile (make) the squid 3.1.1 which I just 
downloaded from the squid-cache site.


The OS is Debian Lenny 64bit.

build-essentials was installed.

./configure works fine, I get a make file.
Then I run make, it goes along for some time and then stops. (logging 
included below)


If anybody can point me in the good direction to solve this, thank you 
very much.


...
gcc  -g -O2 -Wall -Wextra -Werror -Wcomment -Wpointer-arith -Wcast-align 
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes 
-Wmissing-declarations -Wdeclaration-after-statement -Wshadow 
-Wl,-R/usr/lib -L/usr/lib -lgssapi -lheimntlm -lkrb5 -L../../../lib -o 
squid_kerb_auth squid_kerb_auth.o base64.o  -lmiscutil -lm
../../../lib/libmiscutil.a(base64.o):(.rodata+0x0): multiple definition 
of `base64_code'

base64.o:(.rodata+0x0): first defined here
collect2: ld returned 1 exit status
make[5]: *** [squid_kerb_auth] Error 1
make[5]: Leaving directory 
`/opt/software/squid-3.1.1/helpers/negotiate_auth/squid_kerb_auth'

make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory 
`/opt/software/squid-3.1.1/helpers/negotiate_auth/squid_kerb_auth'

make[3]: *** [all] Error 2
make[3]: Leaving directory 
`/opt/software/squid-3.1.1/helpers/negotiate_auth/squid_kerb_auth'

make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory 
`/opt/software/squid-3.1.1/helpers/negotiate_auth'

make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/software/squid-3.1.1/helpers'
make: *** [all-recursive] Error 1

kind regards,
Lieven
<>