Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 944028 - app-text/mupdf-1.24.8 - [ncurses-6.5] [gcc-15] thirdparty/.../fg_init_x11.c: error: conflicting types for fgPlatformDestroyContext; have void(SFG_PlatformDisplay, struct
Summary: app-text/mupdf-1.24.8 - [ncurses-6.5] [gcc-15] thirdparty/.../fg_init_x11.c: ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Philipp Rösner
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: c23-porting
  Show dependency tree
 
Reported: 2024-11-19 18:15 UTC by Toralf Förster
Modified: 2024-12-07 01:30 UTC (History)
0 users

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


Attachments
emerge-info.txt (emerge-info.txt,19.50 KB, text/plain)
2024-11-19 18:15 UTC, Toralf Förster
Details
app-text:mupdf-1.24.8:20241119-153903.log (app-text:mupdf-1.24.8:20241119-153903.log,201.22 KB, text/plain)
2024-11-19 18:15 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,232.79 KB, text/plain)
2024-11-19 18:15 UTC, Toralf Förster
Details
environment (environment,98.09 KB, text/plain)
2024-11-19 18:15 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.20 KB, application/x-xz)
2024-11-19 18:15 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,23.60 KB, application/x-xz)
2024-11-19 18:15 UTC, Toralf Förster
Details
logs.tar.xz (logs.tar.xz,232.07 KB, application/x-xz)
2024-11-19 18:15 UTC, Toralf Förster
Details
qlist-info.txt.xz (qlist-info.txt.xz,65.24 KB, application/x-xz)
2024-11-19 18:15 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,22.11 KB, application/x-xz)
2024-11-19 18:15 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-11-19 18:15:11 UTC
too long lines were shrinked:

mkdir -p build/debug/thirdparty/freeglut/src/x11/ ; x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-diagnostics-color -DFZ_ENABLE_JS=1 -ffunction-sections -fdata-sections -fPIC -Iinclude -MMD -MP -o build/debug/thirdparty/freeglut/src/x11/fg_display_x11_glx.o -c thirdparty/freeglut/src/x11/fg_d
mkdir -p build/debug/thirdparty/freeglut/src/ ; x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-diagnostics-color -DFZ_ENABLE_JS=1 -ffunction-sections -fdata-sections -fPIC -Iinclude -MMD -MP -o build/debug/thirdparty/freeglut/src/fg_window.o -c thirdparty/freeglut/src/fg_window.c  -Ithirdparty
mkdir -p build/debug/thirdparty/freeglut/src/x11/ ; x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-diagnostics-color -DFZ_ENABLE_JS=1 -ffunction-sections -fdata-sections -fPIC -Iinclude -MMD -MP -o build/debug/thirdparty/freeglut/src/x11/fg_ext_x11.o -c thirdparty/freeglut/src/x11/fg_ext_x11.c
mkdir -p build/debug/source/tools/ ; x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-diagnostics-color -DFZ_ENABLE_JS=1 -ffunction-sections -fdata-sections -fPIC -Iinclude -MMD -MP -o build/debug/source/tools/murun.o -c source/tools/murun.c  -Wall -Wsign-compare -I/usr/include/freetype2  -I/usr
mkdir -p build/debug/thirdparty/freeglut/src/x11/ ; x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-diagnostics-color -DFZ_ENABLE_JS=1 -ffunction-sections -fdata-sections -fPIC -Iinclude -MMD -MP -o build/debug/thirdparty/freeglut/src/x11/fg_glutfont_definitions_x11.o -c thirdparty/freeglut/src
mkdir -p build/debug/thirdparty/freeglut/src/x11/ ; x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-diagnostics-color -DFZ_ENABLE_JS=1 -ffunction-sections -fdata-sections -fPIC -Iinclude -MMD -MP -o build/debug/thirdparty/freeglut/src/x11/fg_init_x11.o -c thirdparty/freeglut/src/x11/fg_init_x11
thirdparty/freeglut/src/x11/fg_init_x11.c:348:6: error: conflicting types for fgPlatformDestroyContext; have void(SFG_PlatformDisplay,  struct __GLXcontextRec *) {aka void(struct tagSFG_PlatformDisplay,  struct __GLXcontextRec *)}
  348 | void fgPlatformDestroyContext ( SFG_PlatformDisplay pDisplay, SFG_WindowContextType MContext )
      |      ^~~~~~~~~~~~~~~~~~~~~~~~

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 23.0_desktop_plasma_systemd-20241112-111005

  UNMASKED:
  <sys-devel/gcc-15.0.9999:15
    Issues involving opaque types / incomplete typedefs should block bug 930805
  >=sys-libs/ncurses-6.5

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-15 *
clang version 19.1.3
llvm-config: 19.1.3
Python 3.12.7
go version go1.23.3 linux/amd64
Available Ruby profiles:
  [1]   ruby32 (with Rubygems)
  [2]   ruby33 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.81.0
  [2]   rust-bin-1.82.0
  [3]   rust-1.82.0 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 17.0.13_p11 [openjdk-bin-17]
*)	Eclipse Temurin JDK 21.0.5_p11 [openjdk-bin-21]
3)	Eclipse Temurin JDK 8.432_p06 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-17 
  [3]   openjdk-bin-21  system-vm


  HEAD of ::gentoo
commit de765f835b3f026976cb9a677407daa271e65b55
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Tue Nov 19 14:52:21 2024 +0000

    2024-11-19 14:52:20 UTC

emerge -qpvO =app-text/mupdf-1.24.8
[ebuild  N    ] app-text/mupdf-1.24.8  USE="X javascript opengl ssl -archive"
Comment 1 Toralf Förster gentoo-dev 2024-11-19 18:15:12 UTC
Created attachment 910241 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2024-11-19 18:15:13 UTC
Created attachment 910242 [details]
app-text:mupdf-1.24.8:20241119-153903.log
Comment 3 Toralf Förster gentoo-dev 2024-11-19 18:15:15 UTC
Created attachment 910243 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2024-11-19 18:15:16 UTC
Created attachment 910244 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2024-11-19 18:15:17 UTC
Created attachment 910245 [details]
etc.clang.tar.xz
Comment 6 Toralf Förster gentoo-dev 2024-11-19 18:15:18 UTC
Created attachment 910246 [details]
etc.portage.tar.xz
Comment 7 Toralf Förster gentoo-dev 2024-11-19 18:15:19 UTC
Created attachment 910247 [details]
logs.tar.xz
Comment 8 Toralf Förster gentoo-dev 2024-11-19 18:15:21 UTC
Created attachment 910248 [details]
qlist-info.txt.xz
Comment 9 Toralf Förster gentoo-dev 2024-11-19 18:15:22 UTC
Created attachment 910249 [details]
temp.tar.xz
Comment 10 Larry the Git Cow gentoo-dev 2024-12-07 01:30:22 UTC
The bug has been closed via the following commit(s):

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

commit dbb84af6533b0c940d1973199fbe6d84e25589d1
Author:     steveo314 <sschaefering@gmail.com>
AuthorDate: 2024-12-03 14:48:28 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-12-07 01:26:44 +0000

    app-text/mupdf: fix build w/ GCC 15
    
    Patch to allow this version of mupdf to compile using gcc15/C23
    as unprototyped functions were removed, so this onflicted with the
    definition in fg_init_x11.c.
    
    Closes: https://github.com/gentoo/gentoo/pull/39590
    Closes: https://bugs.gentoo.org/944028
    Signed-off-by: steveo314 <sschaefering@gmail.com>
    Signed-off-by: Sam James <sam@gentoo.org>

 app-text/mupdf/files/mupdf-1.24.8-c23.patch | 17 +++++++++++++++++
 app-text/mupdf/mupdf-1.24.8.ebuild          |  1 +
 2 files changed, 18 insertions(+)

Additionally, it has been referenced in the following commit(s):

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

commit 3ee03db96417024bf46a64cd9166114648d6148c
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-12-07 01:29:07 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-12-07 01:29:07 +0000

    app-text/mupdf: add more context to patch
    
    Bug: https://bugs.gentoo.org/944028
    Signed-off-by: Sam James <sam@gentoo.org>

 app-text/mupdf/files/mupdf-1.24.8-c23.patch | 3 +++
 1 file changed, 3 insertions(+)