public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Bug 919184 - sys-libs/libstdc++-v3-3.3.6-r4
@ 2024-09-10  0:33 João Matos
  2024-09-10  0:50 ` Michael Orlitzky
       [not found] ` <ed67d337034263d841e97d76c883d734@shitposting.expert>
  0 siblings, 2 replies; 5+ messages in thread
From: João Matos @ 2024-09-10  0:33 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 349 bytes --]

Dear list,

I'm trying to install the Checkpoint client for linux (cshell_install). It
requires sys-libs/libstdc++-v3, 32 bits. I couldn't compile it and found
this bug: https://bugs.gentoo.org/919184

Do you know any way of work around this? Maybe copying the binary file from
another distro or try to use another gcc version?

Thank you,
-- 
Neto

[-- Attachment #2: Type: text/html, Size: 649 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-user] Bug 919184 - sys-libs/libstdc++-v3-3.3.6-r4
  2024-09-10  0:33 [gentoo-user] Bug 919184 - sys-libs/libstdc++-v3-3.3.6-r4 João Matos
@ 2024-09-10  0:50 ` Michael Orlitzky
  2024-09-10  6:36   ` Filip Kobierski
  2024-09-10 14:57   ` Eli Schwartz
       [not found] ` <ed67d337034263d841e97d76c883d734@shitposting.expert>
  1 sibling, 2 replies; 5+ messages in thread
From: Michael Orlitzky @ 2024-09-10  0:50 UTC (permalink / raw
  To: gentoo-user

On Mon, 2024-09-09 at 21:33 -0300, João Matos wrote:
> Dear list,
> 
> I'm trying to install the Checkpoint client for linux (cshell_install). It
> requires sys-libs/libstdc++-v3, 32 bits. I couldn't compile it and found
> this bug: https://bugs.gentoo.org/919184

TIL that we have a twenty-year-old libstdc++ in the tree.


> Do you know any way of work around this? Maybe copying the binary file from
> another distro or try to use another gcc version?

It's running a test program to find the glibc minor version:

  #include <features.h>
  main(argc, argv)
       int argc;          
       char *argv[];
  {
    printf("%d\n", __GLIBC_MINOR__);
    return 0;
  }

But this test program, having been written 20+ years ago, is crap. It's
missing <stdio.h> and a correct signature for "main" at least. Newer
GCCs (like the one that you're using) will refuse to compile it. So the
test fails unexpectedly, and the build stops. You might be able to
trick it by disabling -Wimplicit-int, -Wimplicit-function-declaration,
and whatever other warnings that program raises... but then you have to
actually compile the rest of it with a new GCC. Good luck :)



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-user] Bug 919184 - sys-libs/libstdc++-v3-3.3.6-r4
  2024-09-10  0:50 ` Michael Orlitzky
@ 2024-09-10  6:36   ` Filip Kobierski
  2024-09-10 14:57   ` Eli Schwartz
  1 sibling, 0 replies; 5+ messages in thread
From: Filip Kobierski @ 2024-09-10  6:36 UTC (permalink / raw
  To: gentoo-user@lists.gentoo.org


[-- Attachment #1.1: Type: text/plain, Size: 1568 bytes --]

>  TIL that we have a twenty-year-old libstdc++ in the tree.

Maybe we should mask it?
It is supossed to work with gcc <3.4 and the oldest we have is 8.5.0, which is masked already.


-------- Original Message --------
On 9/10/24 02:50, Michael Orlitzky <mjo@gentoo.org> wrote:

>  On Mon, 2024-09-09 at 21:33 -0300, João Matos wrote:
>  > Dear list,
>  >
>  > I'm trying to install the Checkpoint client for linux (cshell_install). It
>  > requires sys-libs/libstdc++-v3, 32 bits. I couldn't compile it and found
>  > this bug: https://bugs.gentoo.org/919184
>  
>  TIL that we have a twenty-year-old libstdc++ in the tree.
>  
>  
>  > Do you know any way of work around this? Maybe copying the binary file from
>  > another distro or try to use another gcc version?
>  
>  It's running a test program to find the glibc minor version:
>  
>    #include <features.h>
>    main(argc, argv)
>         int argc;
>         char *argv[];
>    {
>      printf("%d\n", __GLIBC_MINOR__);
>      return 0;
>    }
>  
>  But this test program, having been written 20+ years ago, is crap. It's
>  missing <stdio.h> and a correct signature for "main" at least. Newer
>  GCCs (like the one that you're using) will refuse to compile it. So the
>  test fails unexpectedly, and the build stops. You might be able to
>  trick it by disabling -Wimplicit-int, -Wimplicit-function-declaration,
>  and whatever other warnings that program raises... but then you have to
>  actually compile the rest of it with a new GCC. Good luck :)
>  
>  
>

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 249 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Fwd: Re: [gentoo-user] Bug 919184 - sys-libs/libstdc++-v3-3.3.6-r4
       [not found]   ` <edc063bc721a6639fcd7ca1175e21815@shitposting.expert>
@ 2024-09-10 12:17     ` Alexe Stefan
  0 siblings, 0 replies; 5+ messages in thread
From: Alexe Stefan @ 2024-09-10 12:17 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 2279 bytes --]

Resending from a different email, as I got an error sending on my main
email.

---------- Forwarded message ---------
De la: stefan11111 <stefan11111@shitposting.expert>
Date: mar., 10 sept. 2024, 15:13
Subject: Fwd: Re: [gentoo-user] Bug 919184 - sys-libs/libstdc++-v3-3.3.6-r4
To: Stefanalexe48 <stefanalexe48@gmail.com>




-------- Original Message --------
Subject: Re: [gentoo-user] Bug 919184 - sys-libs/libstdc++-v3-3.3.6-r4
Date: 2024-09-10 11:59
 From: stefan11111 <stefan11111@shitposting.expert>
To: gentoo-user@lists.gentoo.org

On 2024-09-10 00:33, João Matos wrote:
> Dear list,
>
> I'm trying to install the Checkpoint client for linux (cshell_install).
> It
> requires sys-libs/libstdc++-v3, 32 bits. I couldn't compile it and
> found
> this bug: https://bugs.gentoo.org/919184
>
> Do you know any way of work around this? Maybe copying the binary file
> from
> another distro or try to use another gcc version?
>
> Thank you,
Hi.
I don't know if you tried, but passing -fpermissive via /etc/portage/env
is not enough.
You need to write wrapper scripts to get around the gcc14 issue.

> $ cat /usr/bin/cc
> #!/bin/sh
>
> exec cc.real -fpermissive "$@"
>
> $ cat /usr/bin/gcc
> #!/bin/sh
>
> exec gcc.real -fpermissive "$@"
>
> $ cat /usr/bin/x86_64-pc-linux-gnu-cc
> #!/bin/sh
>
> exec x86_64-pc-linux-gnu-cc.real -fpermissive "$@"
>
> $ cat /usr/bin/x86_64-pc-linux-gnu-gcc
> #!/bin/sh
>
> exec x86_64-pc-linux-gnu-gcc.real -fpermissive "$@"
>

where the original files were moved to the .real files.

-- 
Linux-gentoo-x86_64-Intel-R-_Core-TM-_i5-7400_CPU_@_3.00GHz

COMMON_FLAGS="-O3 -pipe -march=native -fno-stack-protector
-ftree-vectorize -ffast-math -funswitch-loops -fuse-linker-plugin -flto
-fdevirtualize-at-ltrans -fno-plt -fno-semantic-interposition
-falign-functions=64 -fgraphite-identity -floop-nest-optimize"

USE="-* git verify-sig rsync-verify man alsa X grub ssl ipv6 lto
libressl olde-gentoo asm native-symlinks threads jit jumbo-build minimal
strip system-man"

INSTALL_MASK="/etc/systemd /lib/systemd /usr/lib/systemd
/usr/lib/modules-load.d /usr/lib/tmpfiles.d *tmpfiles* /var/lib/dbus
/lib/udev /usr/share/icons /usr/share/applications
/usr/share/gtk-3.0/emoji"

[-- Attachment #2: Type: text/html, Size: 3183 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-user] Bug 919184 - sys-libs/libstdc++-v3-3.3.6-r4
  2024-09-10  0:50 ` Michael Orlitzky
  2024-09-10  6:36   ` Filip Kobierski
@ 2024-09-10 14:57   ` Eli Schwartz
  1 sibling, 0 replies; 5+ messages in thread
From: Eli Schwartz @ 2024-09-10 14:57 UTC (permalink / raw
  To: gentoo-user


[-- Attachment #1.1: Type: text/plain, Size: 1515 bytes --]

On 9/9/24 8:50 PM, Michael Orlitzky wrote:
> On Mon, 2024-09-09 at 21:33 -0300, João Matos wrote:
>> Dear list,
>>
>> I'm trying to install the Checkpoint client for linux (cshell_install). It
>> requires sys-libs/libstdc++-v3, 32 bits. I couldn't compile it and found
>> this bug: https://bugs.gentoo.org/919184
> 
> TIL that we have a twenty-year-old libstdc++ in the tree.
> 
> 
>> Do you know any way of work around this? Maybe copying the binary file from
>> another distro or try to use another gcc version?
> 
> It's running a test program to find the glibc minor version:
> 
>   #include <features.h>
>   main(argc, argv)
>        int argc;          
>        char *argv[];
>   {
>     printf("%d\n", __GLIBC_MINOR__);
>     return 0;
>   }
> 
> But this test program, having been written 20+ years ago, is crap. It's
> missing <stdio.h> and a correct signature for "main" at least. Newer
> GCCs (like the one that you're using) will refuse to compile it. So the
> test fails unexpectedly, and the build stops. You might be able to
> trick it by disabling -Wimplicit-int, -Wimplicit-function-declaration,
> and whatever other warnings that program raises... but then you have to
> actually compile the rest of it with a new GCC. Good luck :)


It shouldn't be *that* hard.

https://bugs.gentoo.org/923112#c13

And as Sam noted:

"""
I concur with Eli and Enne. We should just strip it all. It's a brittle
package for ancient binaries.
"""

-- 
Eli Schwartz


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 236 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-09-10 14:57 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-10  0:33 [gentoo-user] Bug 919184 - sys-libs/libstdc++-v3-3.3.6-r4 João Matos
2024-09-10  0:50 ` Michael Orlitzky
2024-09-10  6:36   ` Filip Kobierski
2024-09-10 14:57   ` Eli Schwartz
     [not found] ` <ed67d337034263d841e97d76c883d734@shitposting.expert>
     [not found]   ` <edc063bc721a6639fcd7ca1175e21815@shitposting.expert>
2024-09-10 12:17     ` Fwd: " Alexe Stefan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox