Opened 3 months ago

Closed 3 months ago

Last modified 8 weeks ago

#15209 closed defect (fixed)

Fix building Abiword with GCC-11

Reported by: Douglas R. Reno Owned by: Douglas R. Reno
Priority: normal Milestone: 11.0
Component: BOOK Version: git
Severity: normal Keywords:
Cc:

Description

Trying to build Abiword with GCC-11 on my laptop, I encounter the following error:

make  all-recursive
make[1]: Entering directory '/sources/abiword-3.0.4/abiword-3.0.4'
Making all in src
make[2]: Entering directory '/sources/abiword-3.0.4/abiword-3.0.4/src'
Making all in af
make[3]: Entering directory '/sources/abiword-3.0.4/abiword-3.0.4/src/af'
Making all in ev
make[4]: Entering directory '/sources/abiword-3.0.4/abiword-3.0.4/src/af/ev'
Making all in gtk
make[5]: Entering directory '/sources/abiword-3.0.4/abiword-3.0.4/src/af/ev/gtk'
  CXX      ev_UnixFontCombo.lo
ev_UnixFontCombo.cpp: In function ‘GType abi_cell_renderer_font_get_type()’:
ev_UnixFontCombo.cpp:248:25: warning: cast between incompatible function types from ‘void (*)(AbiCellRendererFontClass*)’ {aka ‘void (*)(_AbiCellRendererFontClass*)’} to ‘GClassInitFunc’ {aka ‘void (*)(void*, void*)’} [-Wcast-function-type]
  248 |                         (GClassInitFunc) abi_cell_renderer_font_class_init,
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ev_UnixFontCombo.cpp:253:25: warning: cast between incompatible function types from ‘void (*)(AbiCellRendererFont*)’ {aka ‘void (*)(_AbiCellRendererFont*)’} to ‘GInstanceInitFunc’ {aka ‘void (*)(_GTypeInstance*, void*)’} [-Wcast-function-type]
  253 |                         (GInstanceInitFunc) abi_cell_renderer_font_instance_init,
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ev_UnixFontCombo.cpp: In function ‘GType abi_font_combo_get_type()’:
ev_UnixFontCombo.cpp:403:25: warning: cast between incompatible function types from ‘void (*)(AbiFontComboClass*)’ {aka ‘void (*)(_AbiFontComboClass*)’} to ‘GClassInitFunc’ {aka ‘void (*)(void*, void*)’} [-Wcast-function-type]
  403 |                         (GClassInitFunc) abi_font_combo_class_init,
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ev_UnixFontCombo.cpp:408:25: warning: cast between incompatible function types from ‘void (*)(AbiFontCombo*)’ {aka ‘void (*)(_AbiFontCombo*)’} to ‘GInstanceInitFunc’ {aka ‘void (*)(_GTypeInstance*, void*)’} [-Wcast-function-type]
  408 |                         (GInstanceInitFunc) abi_font_combo_init,
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  CXX      ev_UnixKeyboard.lo
In file included from ../../../../src/af/util/xp/ut_mbtowc.h:14,
                 from ev_UnixKeyboard.cpp:34:
../../../../src/af/util/xp/ut_iconv.h:47:7: error: ISO C++17 does not allow dynamic exception specifications
   47 |       throw(UT_iconv_t);
      |       ^~~~~
make[5]: *** [Makefile:613: ev_UnixKeyboard.lo] Error 1
make[5]: Leaving directory '/sources/abiword-3.0.4/abiword-3.0.4/src/af/ev/gtk'
make[4]: *** [Makefile:539: all-recursive] Error 1
make[4]: Leaving directory '/sources/abiword-3.0.4/abiword-3.0.4/src/af/ev'
make[3]: *** [Makefile:539: all-recursive] Error 1
make[3]: Leaving directory '/sources/abiword-3.0.4/abiword-3.0.4/src/af'
make[2]: *** [Makefile:1182: all-recursive] Error 1
make[2]: Leaving directory '/sources/abiword-3.0.4/abiword-3.0.4/src'
make[1]: *** [Makefile:809: all-recursive] Error 1
make[1]: Leaving directory '/sources/abiword-3.0.4/abiword-3.0.4'
make: *** [Makefile:608: all] Error 2
19.5 Elasped Time - abiword-3.0.4

Looking over at Arch, I see a patch here: https://github.com/AbiWord/abiword/commit/ef29fc94.patch

Change History (3)

comment:1 by Douglas R. Reno, 3 months ago

Owner: changed from blfs-book to Douglas R. Reno
Status: newassigned

comment:2 by Douglas R. Reno, 3 months ago

Resolution: fixed
Status: assignedclosed

comment:3 by Bruce Dubbs, 8 weeks ago

Milestone: 10.211.0

Milestone renamed

Note: See TracTickets for help on using tickets.