Re: stable Squid build fails to be built on all EL9 distros for the past 2 years

Amos Jeffries <[email protected]> Wed, 23 Oct 2024 20:53:18 +1300
Newsgroups gmane.comp.web.squid.devel
Message-ID <[email protected]>
On 23/10/24 10:50, [email protected] wrote:
> Hey Everyone,
> 
> I have encountered a build issue on EL9 distros since 5.7 and while some of
> the issues were fixed the 6.10 still wouldn't build on all EL9 distros.
> It can be built on many other distributions and as far as I can tell it can
> be built on Fedora 40.
> 
> I have updated the bug from 2022 to reflect the current issues:
> https://bugs.squid-cache.org/show_bug.cgi?id=5236
> 

The old bug was about out-of-bounds memory access in pinger.
That needed a code fix to Squid sources.


The new build trace you have is showing libltdl errors.
"
../libltdl/.libs/libltdlcS.c:27:12: error: type of 
'dlopen_LTX_get_vtable' does not match original declaration 
[-Werror=lto-type-mismatch]
../libltdl/loaders/dlopen.c:61:1: note: return value type mismatch
    61 | get_vtable (lt_user_data loader_data)
       | ^
../libltdl/loaders/dlopen.c:61:1: note: 'dlopen_LTX_get_vtable' was 
previously declared here
../libltdl/loaders/dlopen.c:61:1: note: code may be misoptimized unless 
'-fno-strict-aliasing' is used
lto1: all warnings being treated as errors
lto-wrapper: fatal error: g++ returned 1 exit status
compilation terminated.
"

These can usually be resolve by re-bootstrapping the sources on the 
affected OS.


Amos