Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 883075 - x11-libs/motif-2.3.8-r4 - /.../WmError.c: error: incompatible function pointer types passing void (char ) to parameter of type voi
Summary: x11-libs/motif-2.3.8-r4 - /.../WmError.c: error: incompatible function pointe...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Ulrich Müller
URL:
Whiteboard: fixed in 2.3.8-r4
Keywords:
Depends on:
Blocks: c99-porting
  Show dependency tree
 
Reported: 2022-11-25 22:12 UTC by Toralf Förster
Modified: 2024-10-29 16:10 UTC (History)
0 users

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


Attachments
emerge-info.txt (emerge-info.txt,16.82 KB, text/plain)
2022-11-25 22:12 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,18.08 KB, text/plain)
2022-11-25 22:12 UTC, Toralf Förster
Details
environment (environment,115.89 KB, text/plain)
2022-11-25 22:12 UTC, Toralf Förster
Details
etc.clang.tar.bz2 (etc.clang.tar.bz2,701 bytes, application/x-bzip)
2022-11-25 22:12 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,34.07 KB, application/x-bzip)
2022-11-25 22:12 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,11.78 KB, application/x-bzip)
2022-11-25 22:12 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,712.47 KB, application/x-bzip)
2022-11-25 22:12 UTC, Toralf Förster
Details
var.tmp.clang.tar.bz2 (var.tmp.clang.tar.bz2,2.14 KB, application/x-bzip)
2022-11-25 22:12 UTC, Toralf Förster
Details
x11-libs:motif-2.3.8-r4:20221125-203335.log.bz2 (x11-libs:motif-2.3.8-r4:20221125-203335.log.bz2,27.66 KB, application/x-bzip)
2022-11-25 22:12 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 2022-11-25 22:12:40 UTC
too long lines were shrinked:

clang -DHAVE_CONFIG_H -I. -I/var/tmp/portage/x11-libs/motif-2.3.8-r4/work/motif-2.3.8/clients/mwm -I../../include -I../../lib/Xm -DLARGECURSORS -DR2_COMPAT -DUNMAP_ON_RESTART -DCDE_INSTALLATION_TOP=\"/usr/dt\" -DCDE_CONFIGURATION_TOP=\"/usr/etc/dt\" -DBITMAPDIR=\"/usr/include/X11/bitmaps\" -DMWMRCDI
clang -DHAVE_CONFIG_H -I. -I/var/tmp/portage/x11-libs/motif-2.3.8-r4/work/motif-2.3.8/clients/mwm -I../../include -I../../lib/Xm -DLARGECURSORS -DR2_COMPAT -DUNMAP_ON_RESTART -DCDE_INSTALLATION_TOP=\"/usr/dt\" -DCDE_CONFIGURATION_TOP=\"/usr/etc/dt\" -DBITMAPDIR=\"/usr/include/X11/bitmaps\" -DMWMRCDI
clang -DHAVE_CONFIG_H -I. -I/var/tmp/portage/x11-libs/motif-2.3.8-r4/work/motif-2.3.8/clients/mwm -I../../include -I../../lib/Xm -DLARGECURSORS -DR2_COMPAT -DUNMAP_ON_RESTART -DCDE_INSTALLATION_TOP=\"/usr/dt\" -DCDE_CONFIGURATION_TOP=\"/usr/etc/dt\" -DBITMAPDIR=\"/usr/include/X11/bitmaps\" -DMWMRCDI
clang -DHAVE_CONFIG_H -I. -I/var/tmp/portage/x11-libs/motif-2.3.8-r4/work/motif-2.3.8/clients/mwm -I../../include -I../../lib/Xm -DLARGECURSORS -DR2_COMPAT -DUNMAP_ON_RESTART -DCDE_INSTALLATION_TOP=\"/usr/dt\" -DCDE_CONFIGURATION_TOP=\"/usr/etc/dt\" -DBITMAPDIR=\"/usr/include/X11/bitmaps\" -DMWMRCDI
/var/tmp/portage/x11-libs/motif-2.3.8-r4/work/motif-2.3.8/clients/mwm/WmError.c:134:24: error: incompatible function pointer types passing 'void (char *)' to parameter of type 'void (*)(String) __attribute__((noreturn))' (aka 'void (*)(char *) __attribute__((noreturn))') [-Werror,-Wincompatible-func
    XtSetErrorHandler (WmXtErrorHandler);
                       ^~~~~~~~~~~~~~~~

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1-j4-20221125-160004

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

GNUMAKEFLAGS="$GNUMAKEFLAGS --jobserver-style=pipe"
GNUMAKEFLAGS="$GNUMAKEFLAGS --shuffle"
CC=clang
CXX=clang++
gcc-config -l:
 [1] x86_64-pc-linux-gnu-12 *
clang/llvm (if any):
clang version 15.0.5
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/15/bin
Configuration file: /etc/clang/clang.cfg
/usr/lib/llvm/15
15.0.5
Python 3.10.8
Available Rust versions:
  [1]   rust-bin-1.65.0 *
php cli (if any):

  HEAD of ::gentoo
commit f8540b5a862eb91a5661f50f6855f6900cfea63c
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Fri Nov 25 20:16:51 2022 +0000

    2022-11-25 20:16:51 UTC

emerge -qpvO x11-libs/motif
[ebuild  N    ] x11-libs/motif-2.3.8-r4  USE="motif22-compatibility png unicode -examples -jpeg -static-libs -xft" ABI_X86="(64) -32 (-x32)"
Comment 1 Toralf Förster gentoo-dev 2022-11-25 22:12:41 UTC
Created attachment 836807 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-11-25 22:12:42 UTC
Created attachment 836809 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2022-11-25 22:12:44 UTC
Created attachment 836811 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2022-11-25 22:12:45 UTC
Created attachment 836813 [details]
etc.clang.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2022-11-25 22:12:46 UTC
Created attachment 836815 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-11-25 22:12:47 UTC
Created attachment 836817 [details]
logs.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2022-11-25 22:12:49 UTC
Created attachment 836819 [details]
temp.tar.bz2
Comment 8 Toralf Förster gentoo-dev 2022-11-25 22:12:50 UTC
Created attachment 836821 [details]
var.tmp.clang.tar.bz2
Comment 9 Toralf Förster gentoo-dev 2022-11-25 22:12:51 UTC
Created attachment 836823 [details]
x11-libs:motif-2.3.8-r4:20221125-203335.log.bz2
Comment 10 Larry the Git Cow gentoo-dev 2022-11-26 13:41:31 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/dev/ulm.git/commit/?id=4ef04b81b4723e339bd9eeabaa7133c1164b1a5d

commit 4ef04b81b4723e339bd9eeabaa7133c1164b1a5d
Author:     Ulrich Müller <ulm@gentoo.org>
AuthorDate: 2022-11-26 13:32:48 +0000
Commit:     Ulrich Müller <ulm@gentoo.org>
CommitDate: 2022-11-26 13:32:48 +0000

    motif: More clang stupidity
    
    Bug: https://bugs.gentoo.org/883075
    Signed-off-by: Ulrich Müller <ulm@gentoo.org>

 patchsets/motif/2.3.8/12_all_noreturn.patch | 13 +++++++++++++
 1 file changed, 13 insertions(+)
Comment 11 Larry the Git Cow gentoo-dev 2022-11-26 13:41:53 UTC
The bug has been closed via the following commit(s):

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

commit d3c160efee152c7d7154b5093182d42ce39e4a2a
Author:     Ulrich Müller <ulm@gentoo.org>
AuthorDate: 2022-11-26 13:38:56 +0000
Commit:     Ulrich Müller <ulm@gentoo.org>
CommitDate: 2022-11-26 13:38:56 +0000

    x11-libs/motif: Fix build with clang
    
    Closes: https://bugs.gentoo.org/883075
    Signed-off-by: Ulrich Müller <ulm@gentoo.org>

 x11-libs/motif/Manifest              | 2 +-
 x11-libs/motif/motif-2.3.8-r4.ebuild | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
Comment 12 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-04-15 06:16:01 UTC
Fedora's fixes are listed at https://gitlab.com/fweimer-rh/fedora-modernc/-/commit/6fbf75ea71315169236d8f99b81c3efaa13dd718. I haven't compared them to ours though.
Comment 13 Ulrich Müller gentoo-dev 2023-04-15 10:15:49 UTC
(In reply to Sam James from comment #12)
> Fedora's fixes are listed at
> https://gitlab.com/fweimer-rh/fedora-modernc/-/commit/6fbf75ea71315169236d8f99b81c3efaa13dd718.
> I haven't compared them to ours though.

Well, maybe they should bump their version. :) Looks like they're still at 2.3.4, so they must apply upstream fixes that are 10 years old:
https://sourceforge.net/p/motif/code/ci/56dae22f7c2e7446852af1d68116f1809edae633
https://sourceforge.net/p/motif/code/ci/d094e8c4a6a1890520ade3e1900229454dc2eac2
https://sourceforge.net/p/motif/code/ci/7a52b1ea7e1ec88ba854db30a51d9f68f2f0078f

AFAICS these are all included in the 2.3.8 release.