GTKDialog - problems with GCC-14 - fix anybody?

an incubator for software projects


Moderator: Forum moderators

Post Reply
User avatar
peebee
Posts: 1630
Joined: Mon Jul 13, 2020 10:54 am
Location: Worcestershire, UK
Has thanked: 157 times
Been thanked: 713 times
Contact:

GTKDialog - problems with GCC-14 - fix anybody?

Post by peebee »

GCC-14 introduces much stricter error checking than earlier versions.

There are problems building GTKDialog with GCC-14:
https://github.com/puppylinux-woof-CE/g ... issues/160

01micko wrote:

The code base is ancient . Thunor did what he could and he certainly was a fine programmer, but he's been awol for years. Unfortunately, none of the big distros (apart from pclinuxos - a mandrake fork - and we all know what happened to mandrake) ever picked up on it.

Without a few fine software engineers I'm afraid that gtkdialog is on it's last legs.

Anybody up to the challenge of updating the GTKDialog software for the future?? I know some people already think it's dead but the Puppy community has such a lot invested in GTKDialog apps it seems worth trying to prolong it's life if possible.

Builder of LxPups, SPups, UPup32s, VoidPups; LXDE, LXQt, Xfce addons; Chromium, Firefox etc. sfs; & Kernels

dimkr
Posts: 2415
Joined: Wed Dec 30, 2020 6:14 pm
Has thanked: 53 times
Been thanked: 1199 times

Re: GTKDialog - problems with GCC-14 - fix anybody?

Post by dimkr »

https://github.com/puppylinux-woof-CE/g ... g/pull/163 should fix this.

However, gtkdialog is only one old and unmaintained package that fails to build with GCC 14 (for legitimate reasons, passing int * to a function that expects a size_t * is a real C sin and testimony to the code quality of gtkdialog) - I had to fix multiple packages (see https://github.com/vanilla-dpup/woof-CE ... 2024-08-12).

(gtkdialog is out of my dpup builds, so this is a one time thing. I'm not going to bother with gtkdialog again, and I'm definitely not going to maintain it.)

User avatar
rockedge
Site Admin
Posts: 6524
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 2736 times
Been thanked: 2615 times
Contact:

Re: GTKDialog - problems with GCC-14 - fix anybody?

Post by rockedge »

My son is a computer engineer and software engineer/programmer so I asked him if he could perhaps take a look at gtkdialog to access the work needed to do an overhaul. It is a big maybe but for now @dimkr has helped tremendously and made the adjustments needed in gtkdialog to have the source compile successfully with gcc 14.

I have at the max gcc 13 at the moment and both a gtk3 and gtk2 version built successfully using KLV and the Void Linux development tools.

a major thank you goes out to @dimkr for the time and effort fixing it despite moving forward and away from gtkdialog. :geek: :thumbup:

User avatar
peebee
Posts: 1630
Joined: Mon Jul 13, 2020 10:54 am
Location: Worcestershire, UK
Has thanked: 157 times
Been thanked: 713 times
Contact:

Re: GTKDialog - problems with GCC-14 - fix anybody?

Post by peebee »

Thanks @dimkr

Builder of LxPups, SPups, UPup32s, VoidPups; LXDE, LXQt, Xfce addons; Chromium, Firefox etc. sfs; & Kernels

Clarity
Posts: 3813
Joined: Fri Jul 24, 2020 10:59 pm
Has thanked: 1618 times
Been thanked: 519 times

Re: GTKDialog - problems with GCC-14 - fix anybody?

Post by Clarity »

  1. Which replacement, 'supported by worldwide linux development', is a good replacement delivering similar GUI needs?
    .

  2. Is there a similar utility that exist in the QT6 arena similar to this GTK utility?

Curious

User avatar
wiak
Posts: 4074
Joined: Tue Dec 03, 2019 6:10 am
Location: Packing - big job
Has thanked: 65 times
Been thanked: 1204 times
Contact:

Re: GTKDialog - problems with GCC-14 - fix anybody?

Post by wiak »

Con Te Partirò

https://www.tinylinux.info/
DOWNLOAD wd_multi for hundreds of 'distros' at your fingertips: viewtopic.php?p=99154#p99154
Αξίζει να μεταφραστεί;

User avatar
BarryK
Posts: 2675
Joined: Tue Dec 24, 2019 1:04 pm
Has thanked: 130 times
Been thanked: 735 times

Re: GTKDialog - problems with GCC-14 - fix anybody?

Post by BarryK »

wiak wrote: Sun Sep 15, 2024 12:19 pm

Con Te Partirò

Ha ha, I had to translate that:

I will leave with you

Ditto.

Note, it is possible to turn off all of the gcc-14 "improvements". peebee posted a link on github, that shows the new errors can be turned back into warnings:

https://gcc.gnu.org/gcc-14/porting_to.html

User avatar
peebee
Posts: 1630
Joined: Mon Jul 13, 2020 10:54 am
Location: Worcestershire, UK
Has thanked: 157 times
Been thanked: 713 times
Contact:

Re: GTKDialog - problems with GCC-14 - fix anybody?

Post by peebee »

BarryK wrote: Sun Sep 15, 2024 1:54 pm

Note, it is possible to turn off all of the gcc-14 "improvements". peebee posted a link on github, that shows the new errors can be turned back into warnings:

https://gcc.gnu.org/gcc-14/porting_to.html

gtkdialog would not build on Debian Trixie gcc14 even with the -fpermissive gcc switch - interestingly it would build on the Slackware Current gcc14!!

Builder of LxPups, SPups, UPup32s, VoidPups; LXDE, LXQt, Xfce addons; Chromium, Firefox etc. sfs; & Kernels

dimkr
Posts: 2415
Joined: Wed Dec 30, 2020 6:14 pm
Has thanked: 53 times
Been thanked: 1199 times

Re: GTKDialog - problems with GCC-14 - fix anybody?

Post by dimkr »

Maybe it's because you're doing a 32 bit Slackware build and a 64 bit Debian build? You'll get more warnings and errors in a 64 bit build because the size of a pointer and the size of an int are different, making 64 builds more likely to fail.

(I think this new GCC behavior is great, it catches many pointer type mismatches that eventually lead to corruption or overflows)

User avatar
wiak
Posts: 4074
Joined: Tue Dec 03, 2019 6:10 am
Location: Packing - big job
Has thanked: 65 times
Been thanked: 1204 times
Contact:

Re: GTKDialog - problems with GCC-14 - fix anybody?

Post by wiak »

BarryK wrote: Sun Sep 15, 2024 1:54 pm
wiak wrote: Sun Sep 15, 2024 12:19 pm

Con Te Partirò

Ha ha, I had to translate that:

I will leave with you

Ditto.

Well... that's a fair alternative per translation to my intended meaning, and I will definitely leave that fix gtkdialog effort with whoever wants to do it.
However, we have benefited greatly over the years from old gtkdialog, albeit with occasional blood, sweat and tears, but I feel it is now fondly, somewhat nostalgically:

One parting thought is that the original gtkdialog source code by Pere László was very much simpler (a single source code file as far as I remember, but I've lost my copy so not sure), albeit nothing like as functional as the Thunor extended variant. That earlier, around version 0.7.x of 2007, was what we once used and maybe there is more chance of resuscitating that one, by I take the thought back even as I speak it...

https://www.tinylinux.info/
DOWNLOAD wd_multi for hundreds of 'distros' at your fingertips: viewtopic.php?p=99154#p99154
Αξίζει να μεταφραστεί;

User avatar
peebee
Posts: 1630
Joined: Mon Jul 13, 2020 10:54 am
Location: Worcestershire, UK
Has thanked: 157 times
Been thanked: 713 times
Contact:

Re: GTKDialog - problems with GCC-14 - fix anybody?

Post by peebee »

dimkr wrote: Sun Sep 15, 2024 2:59 pm

Maybe it's because you're doing a 32 bit Slackware build and a 64 bit Debian build? You'll get more warnings and errors in a 64 bit build because the size of a pointer and the size of an int are different, making 64 builds more likely to fail.

(I think this new GCC behavior is great, it catches many pointer type mismatches that eventually lead to corruption or overflows)

No both 64-bit

Builder of LxPups, SPups, UPup32s, VoidPups; LXDE, LXQt, Xfce addons; Chromium, Firefox etc. sfs; & Kernels

Post Reply

Return to “Development”