Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 932436 - app-text/enchant-1.6.1-r2 - enchant.c: error: passing argument 4 of enchant_pwl_suggest from incompatible pointer type [-Wincompatible-pointer-types]
Summary: app-text/enchant-1.6.1-r2 - enchant.c: error: passing argument 4 of enchant_p...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on: 629772 769305
Blocks: c99-porting gcc-14-stable
  Show dependency tree
 
Reported: 2024-05-22 08:18 UTC by Toralf Förster
Modified: 2024-11-22 14:04 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,18.70 KB, text/plain)
2024-05-22 08:18 UTC, Toralf Förster
Details
app-text:enchant-1.6.1-r2:20240522-011058.log (app-text:enchant-1.6.1-r2:20240522-011058.log,24.37 KB, text/plain)
2024-05-22 08:18 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,76.47 KB, text/plain)
2024-05-22 08:18 UTC, Toralf Förster
Details
environment (environment,26.38 KB, text/plain)
2024-05-22 08:18 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.19 KB, application/x-xz)
2024-05-22 08:18 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,25.55 KB, application/x-xz)
2024-05-22 08:18 UTC, Toralf Förster
Details
logs.tar.xz (logs.tar.xz,9.36 KB, application/x-xz)
2024-05-22 08:18 UTC, Toralf Förster
Details
qlist-info.txt (qlist-info.txt,162.12 KB, text/plain)
2024-05-22 08:18 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,7.93 KB, application/x-xz)
2024-05-22 08:18 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2024-05-22 08:18:35 UTC
      |                                             ^
enchant.c: In function enchant_session_new:
enchant.c:672:44: warning: cast between incompatible function types from void (*)(void *) to void (*)(void *, void *) [-Wcast-function-type]
  672 |         g_slist_foreach (user_config_dirs, (GFunc)g_free, NULL);
      |                                            ^
enchant.c: In function enchant_dict_suggest:
enchant.c:991:87: error: passing argument 4 of enchant_pwl_suggest from incompatible pointer type [-Wincompatible-pointer-types]
  991 | l_suggs = enchant_pwl_suggest(session->personal, word, len, dict_suggs, &n_pwl_suggs);
      |                                                             ^~~~~~~~~~

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 23.0_desktop_systemd-20240520-094755

  The attached etc.portage.tar.xz has all details.
  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-14 *
clang/llvm (if any):
clang version 18.1.6
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/18/bin
Configuration file: /etc/clang/x86_64-pc-linux-gnu-clang.cfg
/usr/lib/llvm/18
18.1.6
Python 3.11.9
Available Rust versions:
  [1]   rust-bin-1.77.1 *
The following VMs are available for generation-2:
*)	Eclipse Temurin JDK 21.0.3_p9 [openjdk-bin-21]
Available Java Virtual Machines:
  [1]   openjdk-bin-21  system-vm

The Glorious Glasgow Haskell Compilation System, version 9.2.8
php cli (if any):
go version go1.22.3 linux/amd64

  HEAD of ::gentoo
commit e6d3e6b6b2fc6120d523ee687df634b3b3757220
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Tue May 21 22:18:45 2024 +0000

    2024-05-21 22:18:45 UTC

emerge -qpvO app-text/enchant
Comment 1 Toralf Förster gentoo-dev 2024-05-22 08:18:36 UTC
Created attachment 893725 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2024-05-22 08:18:37 UTC
Created attachment 893726 [details]
app-text:enchant-1.6.1-r2:20240522-011058.log
Comment 3 Toralf Förster gentoo-dev 2024-05-22 08:18:38 UTC
Created attachment 893727 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2024-05-22 08:18:39 UTC
Created attachment 893728 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2024-05-22 08:18:40 UTC
Created attachment 893729 [details]
etc.clang.tar.xz
Comment 6 Toralf Förster gentoo-dev 2024-05-22 08:18:41 UTC
Created attachment 893730 [details]
etc.portage.tar.xz
Comment 7 Toralf Förster gentoo-dev 2024-05-22 08:18:43 UTC
Created attachment 893731 [details]
logs.tar.xz
Comment 8 Toralf Förster gentoo-dev 2024-05-22 08:18:44 UTC
Created attachment 893732 [details]
qlist-info.txt
Comment 9 Toralf Förster gentoo-dev 2024-05-22 08:18:45 UTC
Created attachment 893733 [details]
temp.tar.xz
Comment 10 Davide Palma 2024-11-01 17:30:48 UTC
Same problem, tried with clang 18 and 19, gcc 13 and 14.
Comment 11 Davide Palma 2024-11-02 11:55:08 UTC
Errata, compiles with GCC 13, but not with 14.
Comment 12 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-11-22 12:33:05 UTC
For anyone hitting this, why do you have enchant:0? What is pulling it in for you?

I don't see any deps on enchant:0 at a glance. I see some enchant:* deps we should maybe fix to be :2 to help get rid of :0.
Comment 13 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-11-22 12:38:41 UTC
(In reply to Sam James from comment #12)
> For anyone hitting this, why do you have enchant:0? What is pulling it in
> for you?
> 
> I don't see any deps on enchant:0 at a glance. I see some enchant:* deps we
> should maybe fix to be :2 to help get rid of :0.

i.e. Please share output of emerge -pvc app-text/enchant:0.
Comment 14 Leonid Kopylov 2024-11-22 12:44:48 UTC
(In reply to Sam James from comment #13)
> (In reply to Sam James from comment #12)
> > For anyone hitting this, why do you have enchant:0? What is pulling it in
> > for you?
> > 
> > I don't see any deps on enchant:0 at a glance. I see some enchant:* deps we
> > should maybe fix to be :2 to help get rid of :0.
> 
> i.e. Please share output of emerge -pvc app-text/enchant:0.

# emerge -pvc app-text/enchant:0

Calculating dependencies... done!
  app-text/enchant-1.6.1-r2 pulled in by:
    app-text/gtkspell-2.0.16-r2 requires >=app-text/enchant-1.1.6:0
Comment 15 Zdenek Sojka 2024-11-22 12:46:05 UTC
  app-text/enchant-1.6.1-r2 pulled in by:
    app-text/gtkspell-2.0.16-r2 requires >=app-text/enchant-1.1.6:0

  app-text/gtkspell-2.0.16-r2 pulled in by:
    net-im/pidgin-2.14.13 requires >=app-text/gtkspell-2.0.2:2
Comment 16 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-11-22 12:47:50 UTC
OK, apparently my grepping was poor ;)

Thanks, let me look. If Pidgin is really stuck on older gtkspell (likely until it ports to gtk3/4 finally), then I'll just fix enchant.
Comment 17 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-11-22 12:51:23 UTC
Interestingly, gtkspell-3 does support both gtk2 and gtk3.
Comment 18 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-11-22 12:54:56 UTC
Fedora just did https://src.fedoraproject.org/rpms/enchant/c/c4f1921ba3df8453d9fd4c8cc1c11b3adc794e10?branch=rawhide and maybe that's good enough given nothing is really using this except for Pidgin and Pidgin got https://discourse.imfreedom.org/t/pidgin-3-0-0-experimental-1-announcement/216 earlier.
Comment 19 Larry the Git Cow gentoo-dev 2024-11-22 14:04:25 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0cc24169b9ded53a4552542036291f7df5a2571c

commit 0cc24169b9ded53a4552542036291f7df5a2571c
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-11-22 14:01:27 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-11-22 14:01:27 +0000

    app-text/enchant: build with -std=gnu89 for :0
    
    Done with regret but :0 is absolutely ancient and I don't think it's
    worth spending time on this given only pidgin->gtkspell-2 is left
    depending on this.
    
    Do the same as Fedora and built w/ -std=gnu89.
    
    Closes: https://bugs.gentoo.org/932436
    Signed-off-by: Sam James <sam@gentoo.org>

 app-text/enchant/enchant-1.6.1-r2.ebuild | 5 +++++
 1 file changed, 5 insertions(+)