LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-17-2021, 05:54 AM   #1
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,427

Rep: Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339
GTK header warnings


I tried compiling geeqie-1.6 from source as I'm running from the 2021-02-11 iso and experiencing crashes from geeqie. Never mind about geeqie - that's in a separate thread. The issue in this thread is about headers. The 470K(!) output of
Code:
make -j2 > header.warns 2>&1
is up here at https://pastebin.com/4GueCXWU
As you see, it's mainly 'deprecated type warnings and I get them from the linux headers too. Now people pat me on the head and say "Oh that's OK - they're only warnings." I'm not convinced, because a programmer who uses gtk-2.x syntax in a gtk-3.x file is cruising for a bruising. And headers are lookup tables, basically. When all that stuff has to get changed, the potential for error is huge.

I'm getting 100% crashes from geeqie. It IS NOT working. Hence the question.

EDIT: Using 'grep -c' I get 1598 uses of 'deprecated' and 589 uses of 'declared.' Did somebody not do their homework?

Last edited by business_kid; 04-17-2021 at 05:57 AM.
 
Old 04-17-2021, 10:09 AM   #2
EdGr
Senior Member
 
Registered: Dec 2010
Location: California, USA
Distribution: I run my own OS
Posts: 1,000

Rep: Reputation: 472Reputation: 472Reputation: 472Reputation: 472Reputation: 472
Unfortunately, the flood of GTK 3 deprecation warnings is normal.

GTK 3 deprecated large parts of its API that the developers consider "legacy" (i.e. superseded by newer widgets that GNOME uses). The deprecated API calls still work in GTK 3 but are removed entirely in GTK 4.

You can prevent warnings about real problems from being lost in the noise by defining GDK_DISABLE_DEPRECATION_WARNINGS.
Ed
 
Old 04-17-2021, 10:15 AM   #3
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,427

Original Poster
Rep: Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339
Quote:
Originally Posted by EdGr View Post
Unfortunately, the flood of GTK 3 deprecation warnings is normal.

GTK 3 deprecated large parts of its API that the developers consider "legacy" (i.e. superseded by newer widgets that GNOME uses). The deprecated API calls still work in GTK 3 but are removed entirely in GTK 4.

You can prevent warnings about real problems from being lost in the noise by defining GDK_DISABLE_DEPRECATION_WARNINGS.
Ed
Great. Is that
Code:
GDK_DISABLE_DEPRECATION_WARNINGS=true
make
or does it go in the configure?
 
Old 04-17-2021, 10:21 AM   #4
EdGr
Senior Member
 
Registered: Dec 2010
Location: California, USA
Distribution: I run my own OS
Posts: 1,000

Rep: Reputation: 472Reputation: 472Reputation: 472Reputation: 472Reputation: 472
It should go in the configure.
Code:
CFLAGS="-DGDK_DISABLE_DEPRECATION_WARNINGS=1"
or
Code:
CXXFLAGS="-DGDK_DISABLE_DEPRECATION_WARNINGS=1"
Ed
 
Old 04-17-2021, 11:29 AM   #5
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,427

Original Poster
Rep: Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339
Quote:
Originally Posted by EdGr View Post
Unfortunately, the flood of GTK 3 deprecation warnings is normal.

GTK 3 deprecated large parts of its API that the developers consider "legacy" (i.e. superseded by newer widgets that GNOME uses). The deprecated API calls still work in GTK 3 but are removed entirely in GTK 4.

You can prevent warnings about real problems from being lost in the noise by defining GDK_DISABLE_DEPRECATION_WARNINGS.
Ed
Great. Is that
Code:
GDK_DISABLE_DEPRECATION_WARNINGS=true
make
or does it go in the configure?

EDIT: it apparently gets configured in glib.h. Which glib.h is confusing
Quote:
bash-5.1$ locate glib.h
/usr/include/jpeglib.h
/usr/include/dbus-1.0/dbus/dbus-glib.h
/usr/include/glib-1.2/glib.h
/usr/include/glib-2.0/glib.h
/usr/include/harfbuzz/hb-glib.h
/usr/include/json-glib-1.0/json-glib/json-glib.h
/usr/include/libdbusmenu-glib-0.4/libdbusmenu-glib/dbusmenu-glib.h
/usr/include/libical-glib/libical-glib.h
/usr/include/libmbim-glib/libmbim-glib.h
/usr/include/libmm-glib/libmm-glib.h
/usr/include/libqmi-glib/libqmi-glib.h
/usr/include/palemoon-29.0.1/jpeglib.h
/usr/include/palemoon-29.0.1/harfbuzz/hb-glib.h
/usr/include/pygtk-2.0/pyglib.h
/usr/include/reglib/reglib.h
/usr/include/taglib/taglib.h
/usr/share/gtk-doc/html/glib/glib.html
/usr/share/gtk-doc/html/harfbuzz/harfbuzz-hb-glib.html
/usr/src/linux-5.10.15/include/config/blk/dev/bsglib.h
Now which glib.h is it in? Or do I have to define it myself?
 
Old 04-17-2021, 11:37 AM   #6
EdGr
Senior Member
 
Registered: Dec 2010
Location: California, USA
Distribution: I run my own OS
Posts: 1,000

Rep: Reputation: 472Reputation: 472Reputation: 472Reputation: 472Reputation: 472
Quote:
Originally Posted by business_kid View Post
Now which glib.h is it in? Or do I have to define it myself?
You define GDK_DISABLE_DEPRECATION_WARNINGS yourself in the CFLAGS or CXXFLAGS when you configure Geeqie. You should not change the system headers.

The Geeqie crash indicates a real bug. Turning off the GTK 3 deprecation warnings may help you find it.
Ed
 
Old 04-18-2021, 06:52 AM   #7
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,427

Original Poster
Rep: Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339
OK, I set CFLAGS & CXXFLAGS as GDK_DISABLE_DEPRECATION_WARNINGS, and rebuilt the Slackware source from scratch. It didn't kill the log spam. The entire left panel is an un-adjustable mess, and I can't use keyboard shortcuts or resize anything in the left panel. Geeqie is now on a par with mirage here. All the sophistication is gone.
 
Old 04-18-2021, 07:44 AM   #8
EdGr
Senior Member
 
Registered: Dec 2010
Location: California, USA
Distribution: I run my own OS
Posts: 1,000

Rep: Reputation: 472Reputation: 472Reputation: 472Reputation: 472Reputation: 472
I rebuilt Geeqie-1.6 with:

Code:
CFLAGS="$SLKCFLAGS -DGDK_DISABLE_DEPRECATION_WARNINGS=1" \
CXXFLAGS="$SLKCFLAGS -DGDK_DISABLE_DEPRECATION_WARNINGS=1" \
./configure \
  --prefix=/usr \
  --sysconfdir=/etc \
  --localstatedir=/var \
  --mandir=/usr/man \
  --with-readmedir=/usr/doc/geeqie-$VERSION \
  --with-htmldir=/usr/doc/geeqie-$VERSION/html \
  --program-prefix="" \
  --program-suffix="" \
  --build=$ARCH-slackware-linux || exit 1
That turned off the GTK 3 deprecation warnings. There are still a few warnings from other libraries.

Geeqie-1.6 came up with the panes in poor positions. Adjusting the panes made Geeqie usable. It did not crash for me at least in brief use (I don't use Geeqie).

ETA: Try removing ~/.config/geeqie to see if that fixes the crash.
Ed

Last edited by EdGr; 04-18-2021 at 08:07 AM.
 
Old 04-18-2021, 10:34 AM   #9
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,427

Original Poster
Rep: Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339
It is an absolute piece of <expletive>.

Compiled your way and the warnings went. I was missing the '-D' bit, but the CFLAGS are switches to gcc.


geeqie -r pukes. Plain geeqie works on the same or lower level as Mirage. No left panel adjustment. If someone handed that up as a CS project, he'd fail.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot get past GDISK- Caution: Invalid backup GPT header, but valid main header, regenerating backup header from main header. murde Linux - Newbie 2 05-30-2020 08:23 PM
gcc-8.1.1 spewing warnings with gtk+2 and gtk+3 chrisVV Slackware 1 06-28-2018 02:41 PM
GTK Warnings installing Crossover Office Meowatilla Linux - Newbie 6 11-26-2004 12:48 PM
Gtk-Warnings, and multiple application crashes nullcreation Arch 1 10-19-2003 12:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration