[LyX/master] Fix compilation with gcc-12

Kornel Benko kornel at lyx.org
Thu Jan 27 16:39:24 UTC 2022


Am Thu, 27 Jan 2022 16:27:26 +0000
schrieb José Abílio Matos <jamatos at lyx.org>:

> On Thursday, 27 January 2022 15.44.56 WET José Abílio Matos wrote:
> > The previous patch was all that it was required to compile lyx-2.4 with
> > gcc-12. :-)
> 
> But then it does not run:
> 
> $ src/lyx
> src/lyx: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.30' not found (required 
> by src/lyx)
> 
> it is not using the new library. Is there any flag that can be passed to 
> configure to account for this?
> 
> I can always run it as:
> 
> $ LD_LIBRARY_PATH=/ src/lyx
> 
> and it works...

Proposing to add file 'i686-linux-gnu-gcc-something.conf' to '/etc/ld.so.conf.d/'
with content
	/opt/gcc-latest/lib64

and then use
  $ sudo ldconfig

	Kornel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: Digitale Signatur von OpenPGP
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20220127/d025d5fc/attachment.asc>


More information about the lyx-devel mailing list