Re: [squid-users] compile error in squid v6.1

2023-08-01 Thread botp
On Tue, Aug 1, 2023 at 1:32 PM botp  wrote:

> On Tue, Aug 1, 2023 at 12:05 AM Alex Rousskov <
> rouss...@measurement-factory.com> wrote:
>
>> IIRC, this error implies that your compiler does not fully support
>> C++17. Squid v6 requires decent C++17 support.
>>
>> you are probably right, Alex. I will upgrade my compiler and inform the
> list of the result.
>

Indeed, you are right, Alex. I installed and tested two versions of the
compiler: gcc-8.4 and gcc-9.2.1, and they both worked flawlessly! (and that
makes gcc-7.5 as a no-go for squid 6.1)

thanks again and best regards,
--botp
___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users


Re: [squid-users] compile error in squid v6.1

2023-07-31 Thread botp
On Tue, Aug 1, 2023 at 12:05 AM Alex Rousskov <
rouss...@measurement-factory.com> wrote:

>
> IIRC, this error implies that your compiler does not fully support
> C++17. Squid v6 requires decent C++17 support.
>
> If I am right, then you will need to use a different/modern compiler
> (but consider filing an enhancement request with Squid Bugzilla to
> improve Squid handling of this specific problem -- our ./configure
> should fail with a user-friendly error instead of the current outcome).
>
>
you are probably right, Alex. I will upgrade my compiler and inform the
list of the result.

thanks and kind regards,
--botp
___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users


Re: [squid-users] compile error in squid v6.1

2023-07-31 Thread botp
On Mon, Jul 31, 2023 at 11:31 PM Antony Stone <
antony.st...@squid.open.source.it> wrote:

> It might help to tell us what sort of system you're compiling it on:
>
>  - operating system
>  - version
>  - compiler name
>  - compiler version
>

oops, yes, Antony.

$ lsb_release -a && uname -an && gcc -v
No LSB modules are available.
Distributor ID: Ubuntu
Description:Ubuntu 18.04.6 LTS
Release:18.04
Codename:   bionic

Linux pc-ni-botp 5.4.0-150-generic #167~18.04.1-Ubuntu SMP Wed May 24
00:51:42 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/7/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu
7.5.0-3ubuntu1~18.04' --with-bugurl=file:///usr/share/doc/gcc-7/README.Bugs
--enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++ --prefix=/usr
--with-gcc-major-version-only --program-suffix=-7
--program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id
--libexecdir=/usr/lib --without-included-gettext --enable-threads=posix
--libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu
--enable-libstdcxx-debug --enable-libstdcxx-time=yes
--with-default-libstdcxx-abi=new --enable-gnu-unique-object
--disable-vtable-verify --enable-libmpx --enable-plugin
--enable-default-pie --with-system-zlib --with-target-system-zlib
--enable-objc-gc=auto --enable-multiarch --disable-werror
--with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32
--enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none
--without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu
--host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix

gcc version 7.5.0 (Ubuntu 7.5.0-3ubuntu1~18.04)


thanks and best regards,
--botp
___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users


Re: [squid-users] compile error in squid v6.1

2023-07-31 Thread Alex Rousskov

On 7/31/23 11:26, botp wrote:

Hi All,

' been  compiling (using default setting) squid since v5, my last 
version was 5.9, but, when i tried 6.1, i get the following error 
(enclosed in dashed lines):

-
src/ipc/TypedMsgHdr.h:120:5: error: static assertion failed: 
getPod() used for a POD
      static_assert(std::is_trivially_copyable::value, "getPod() 
used for a POD");

---


IIRC, this error implies that your compiler does not fully support 
C++17. Squid v6 requires decent C++17 support.


If I am right, then you will need to use a different/modern compiler 
(but consider filing an enhancement request with Squid Bugzilla to 
improve Squid handling of this specific problem -- our ./configure 
should fail with a user-friendly error instead of the current outcome).



HTH,

Alex.

___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users


Re: [squid-users] compile error in squid v6.1

2023-07-31 Thread Antony Stone
On Monday 31 July 2023 at 17:26:38, botp wrote:

> Hi All,
> 
> ' been  compiling

It might help to tell us what sort of system you're compiling it on:

 - operating system
 - version
 - compiler name
 - compiler version


Antony.

-- 
"I estimate there's a world market for about five computers."

 - Thomas J Watson, Chairman of IBM

   Please reply to the list;
 please *don't* CC me.
___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users


[squid-users] compile error in squid v6.1

2023-07-31 Thread botp
Hi All,

' been  compiling (using default setting) squid since v5, my last version
was 5.9, but, when i tried 6.1, i get the following error (enclosed in
dashed lines):
-
In file included from ActionParams.cc:13:0:
../../src/ipc/TypedMsgHdr.h: In instantiation of ‘void
Ipc::TypedMsgHdr::getPod(Pod&) const [with Pod = RequestFlags]’:
ActionParams.cc:29:25:   required from here
../../src/ipc/TypedMsgHdr.h:120:5: error: static assertion failed: getPod()
used for a POD
 static_assert(std::is_trivially_copyable::value, "getPod() used
for a POD");
 ^
../../src/ipc/TypedMsgHdr.h: In instantiation of ‘void
Ipc::TypedMsgHdr::putPod(const Pod&) [with Pod = RequestFlags]’:
ActionParams.cc:44:25:   required from here
../../src/ipc/TypedMsgHdr.h:128:5: error: static assertion failed: putPod()
used for a POD
 static_assert(std::is_trivially_copyable::value, "putPod() used
for a POD");
 ^
Makefile:894: recipe for target 'ActionParams.lo' failed
---

my steps are just basic:
1. ./configure
2. make
3. make install

they work fine, until i tried v6.1.

its obvious i have no knowledge on this. any help is highly appreciated.

thanks and kind regards
--botp
___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users