[squid-users] using clang to compile squid 4-5

2019-01-22 Thread graf huy
Hi, The purpose is to compile squid to get HTTPS or SSL with bump support, on Debian 10 (Buster). After trying to compile squid-4-5  with clang (clang version 7.0.1-4 (tags/RELEASE_701/final)), it doesn't work. Target: x86_64-pc-linux-gnu Thread model: posix InstalledDir: /usr/bin Found candida

Re: [squid-users] using clang to compile squid 4-5

2019-01-22 Thread Alex Rousskov
On 1/22/19 6:21 AM, graf huy wrote: > The Makefile is modified so each line with gcc is replaced with clang > and each line of g++ replaced with clang++. But gcc is still used. I am not sure you are doing that, but, just in case, you should not be modifying Makefiles (or any other files generated

Re: [squid-users] using clang to compile squid 4-5

2019-01-22 Thread Amos Jeffries
On 23/01/19 5:17 am, Alex Rousskov wrote: > On 1/22/19 6:21 AM, graf huy wrote: > >> The Makefile is modified so each line with gcc is replaced with clang >> and each line of g++ replaced with clang++. But gcc is still used. > > I am not sure you are doing that, Seconded. With both my Squid Proj

Re: [squid-users] using clang to compile squid 4-5

2019-01-30 Thread graf huy
Hi, Using update-alternatives to set clang++ was a success, and export CC=/usr/bin/clang does the job (trying two differents methods). Debian project recommended to use export (CC,CCX) for versioning and only update-alternatives for alternative as it says.Anyway compilation with clang was as qu

Re: [squid-users] using clang to compile squid 4-5

2019-01-30 Thread Amos Jeffries
On 30/01/19 9:38 pm, graf huy wrote: > Hi, > > Using update-alternatives to set clang++ was a success, and export > CC=/usr/bin/clang does the job (trying two differents methods). Debian > project recommended to use export (CC,CCX) for versioning and only > update-alternatives for alternative as i

Re: [squid-users] using clang to compile squid 4-5

2019-01-30 Thread L . P . H . van Belle
en: woensdag 30 januari 2019 14:08 > Aan: graf huy; squid-users@lists.squid-cache.org > Onderwerp: Re: [squid-users] using clang to compile squid 4-5 > > On 30/01/19 9:38 pm, graf huy wrote: > > Hi, > > > > Using update-alternatives to set clang++ was a success, and

Re: [squid-users] using clang to compile squid 4-5

2019-01-30 Thread Amos Jeffries
On 31/01/19 5:12 am, L.P.H. van Belle wrote: > Hai, > > Good to hear there are more then Luigi :-) > > I builded debian packages yesterday for squid 4.5 > Which was pretty simple and worked fine in the end. > > Get the source of 4.4 ( apt-get source -t unstable squid ) > Copy the debian fo

Re: [squid-users] using clang to compile squid 4-5

2019-01-31 Thread Amos Jeffries
On 31/01/19 9:22 am, Amos Jeffries wrote: > On 31/01/19 5:12 am, L.P.H. van Belle wrote: >> Hai, >> >> Good to hear there are more then Luigi :-) >> >> I builded debian packages yesterday for squid 4.5 >> Which was pretty simple and worked fine in the end. >> >> Get the source of 4.4 ( apt-get

Re: [squid-users] using clang to compile squid 4-5

2019-02-01 Thread graf huy
Hi, >I'm not sure I follow that. Are you building with patched GCC? or a >patched libc? or something else? No, these are the versions used. (ldd --version) ldd (Debian GLIBC2.28-5) 2.28 Copyright © 2018Free Software Foundation, Inc. (gcc -v) Using built-inspecs. COLLECT_GCC=gcc COLL

Re: [squid-users] using clang to compile squid 4-5

2019-02-04 Thread Amos Jeffries
On 1/02/19 11:17 pm, graf huy wrote: > Hi, > >>I'm not sure I follow that. Are you building with patched GCC? or a >>patched libc? or something else? > > No, these are the versions used. > Hmm. That is odd. With the exception of my GCC being one patch ahead, mine are identical. I have followed