Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 955913 - media-sound/owntone-28.9_p20240903-r1 - fails to compile with GCC 15: [meson] ld: /.../libwebsockets.so: undefined reference to lejp_destruct
Summary: media-sound/owntone-28.9_p20240903-r1 - fails to compile with GCC 15: [meson]...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Sebastian Pipping
URL: https://github.com/owntone/owntone-se...
Whiteboard:
Keywords:
Depends on:
Blocks: gcc-15
  Show dependency tree
 
Reported: 2025-05-13 12:01 UTC by Toralf Förster
Modified: 2025-05-17 02:23 UTC (History)
2 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,19.04 KB, text/plain)
2025-05-13 12:01 UTC, Toralf Förster
Details
emerge-history.txt.xz (emerge-history.txt.xz,76.48 KB, application/x-xz)
2025-05-13 12:01 UTC, Toralf Förster
Details
environment (environment,53.38 KB, text/plain)
2025-05-13 12:01 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.20 KB, application/x-xz)
2025-05-13 12:01 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,37.27 KB, application/x-xz)
2025-05-13 12:01 UTC, Toralf Förster
Details
logs.tar.xz (logs.tar.xz,15.37 KB, application/x-xz)
2025-05-13 12:01 UTC, Toralf Förster
Details
media-sound:owntone-28.9_p20240903-r1:20250513-114320.log (media-sound:owntone-28.9_p20240903-r1:20250513-114320.log,99.90 KB, text/plain)
2025-05-13 12:01 UTC, Toralf Förster
Details
qlist-info.txt.xz (qlist-info.txt.xz,82.15 KB, application/x-xz)
2025-05-13 12:01 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,16.59 KB, application/x-xz)
2025-05-13 12:01 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 2025-05-13 12:01:30 UTC
too long lines were shrinked:

make[3]: Entering directory '/var/tmp/portage/media-sound/owntone-28.9_p20240903-r1/work/owntone-server-40c22e3d2f716177ad737998f3ef909f20c4acfa/src'
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..  -Wall -DCONFIG_GCRYPT -I/usr/include/json-c -I/usr/include/libxml2 -D_REENTRANT -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/elogind  -D_GNU_SOURCE -DDATADIR=\"/usr/share/owntone\" -DCONFDIR=\"/etc\" -DSTATEDIR=\"/var/lib\" -D
make[3]: Leaving directory '/var/tmp/portage/media-sound/owntone-28.9_p20240903-r1/work/owntone-server-40c22e3d2f716177ad737998f3ef909f20c4acfa/src'
make[3]: Entering directory '/var/tmp/portage/media-sound/owntone-28.9_p20240903-r1/work/owntone-server-40c22e3d2f716177ad737998f3ef909f20c4acfa/src'
/bin/sh ../libtool  --tag=CC   --mode=link x86_64-pc-linux-gnu-gcc  -O2 -pipe -march=native -fno-diagnostics-color -Werror=lto-type-mismatch -Werror=strict-aliasing -Werror=odr -flto  -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,--defsym=__gentoo_check_ldflags__=0 -Werror=lto-type-mismatc
libtool: link: x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-diagnostics-color -Werror=lto-type-mismatch -Werror=strict-aliasing -Werror=odr -flto -Wl,-O1 -Wl,-z -Wl,pack-relative-relocs -Wl,--defsym=__gentoo_check_ldflags__=0 -Werror=lto-type-mismatch -Werror=strict-aliasing -Werror=odr -flt
/usr/lib/gcc/x86_64-pc-linux-gnu/15/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/15/../../../../lib64/libwebsockets.so: undefined reference to `lejp_destruct'
/usr/lib/gcc/x86_64-pc-linux-gnu/15/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/15/../../../../lib64/libwebsockets.so: undefined reference to `lejp_construct'
/usr/lib/gcc/x86_64-pc-linux-gnu/15/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/15/../../../../lib64/libwebsockets.so: undefined reference to `lejp_error_to_string'

  -------------------------------------------------------------------
  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 23.0_no_multilib-20250507-171502

  KEYWORDED/UNMASKED

  [meson] Please re-assign to ztrawhcse@ if it works with regular meson.
  <dev-build/meson-9999

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-15 *
clang version 20.1.4
llvm-config: 20.1.4
Python 3.13.3
go version go1.24.2 linux/amd64
Available Ruby profiles:
  [1]   ruby32 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.81.0
  [2]   rust-bin-1.86.0 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 11.0.27_p6 [openjdk-bin-11]
2)	Eclipse Temurin JDK 17.0.15_p6 [openjdk-bin-17]
*)	Eclipse Temurin JDK 21.0.7_p6 [openjdk-bin-21]
4)	Eclipse Temurin JDK 8.452_p09 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-11 
  [3]   openjdk-bin-17 
  [4]   openjdk-bin-21  system-vm

  HEAD of ::gentoo
commit e04607948c1cf5a7114cc872121fbe61bd19812d
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Tue May 13 09:09:27 2025 +0000

    2025-05-13 09:09:27 UTC

The tinderbox task was: media-sound/owntone

emerge -qpvO =media-sound/owntone-28.9_p20240903-r1
[ebuild  N    ] media-sound/owntone-28.9_p20240903-r1  USE="alsa chromecast"
Comment 1 Toralf Förster gentoo-dev 2025-05-13 12:01:31 UTC
Created attachment 928698 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2025-05-13 12:01:32 UTC
Created attachment 928699 [details]
emerge-history.txt.xz
Comment 3 Toralf Förster gentoo-dev 2025-05-13 12:01:33 UTC
Created attachment 928700 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2025-05-13 12:01:34 UTC
Created attachment 928701 [details]
etc.clang.tar.xz
Comment 5 Toralf Förster gentoo-dev 2025-05-13 12:01:35 UTC
Created attachment 928702 [details]
etc.portage.tar.xz
Comment 6 Toralf Förster gentoo-dev 2025-05-13 12:01:36 UTC
Created attachment 928703 [details]
logs.tar.xz
Comment 7 Toralf Förster gentoo-dev 2025-05-13 12:01:37 UTC
Created attachment 928704 [details]
media-sound:owntone-28.9_p20240903-r1:20250513-114320.log
Comment 8 Toralf Förster gentoo-dev 2025-05-13 12:01:38 UTC
Created attachment 928705 [details]
qlist-info.txt.xz
Comment 9 Toralf Förster gentoo-dev 2025-05-13 12:01:39 UTC
Created attachment 928706 [details]
temp.tar.xz
Comment 10 Sebastian Pipping gentoo-dev 2025-05-16 19:21:58 UTC
It seems fine with GCC 13 and 14 but not 15 (though my local error is slightly different). I have taken this issue upstream now.

Fabian, just theoretically: If upstream replies with interest in a fix, would
me fixing compilation for GCC 15 once and then setting it to no-maintainer
instead of tree-cleaning the package work for you?
Comment 11 Fabian Groffen gentoo-dev 2025-05-16 19:27:57 UTC
yes, that would be fine, if course, I have nothing against the package ;)
Comment 12 Sebastian Pipping gentoo-dev 2025-05-16 19:34:24 UTC
Thanks for your quick reply, let's see what and if we get something from upstream in the next few days…
Comment 13 Larry the Git Cow gentoo-dev 2025-05-16 23:02:15 UTC
The bug has been closed via the following commit(s):

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

commit 92ab272c013f00fc8c229cf1c82c2bf4cf351c01
Author:     Sebastian Pipping <sping@gentoo.org>
AuthorDate: 2025-05-16 22:46:29 +0000
Commit:     Sebastian Pipping <sping@gentoo.org>
CommitDate: 2025-05-16 23:01:56 +0000

    media-sound/owntone: 28.12 + GCC 15 fixes
    
    Closes: https://bugs.gentoo.org/955913
    Signed-off-by: Sebastian Pipping <sping@gentoo.org>

 media-sound/owntone/Manifest                       |  1 +
 .../owntone/files/owntone-28.12-gcc-15.patch       | 49 ++++++++++++
 media-sound/owntone/owntone-28.12.ebuild           | 91 ++++++++++++++++++++++
 3 files changed, 141 insertions(+)

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

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

commit d18d488cad9ae36c7ce37735fd03858e801834a9
Author:     Sebastian Pipping <sping@gentoo.org>
AuthorDate: 2025-05-16 22:53:26 +0000
Commit:     Sebastian Pipping <sping@gentoo.org>
CommitDate: 2025-05-16 23:01:57 +0000

    profiles: Stop last-rites of media-sound/owntone as discussed
    
    Bug: https://bugs.gentoo.org/955913
    Signed-off-by: Sebastian Pipping <sping@gentoo.org>

 profiles/package.mask | 6 ------
 1 file changed, 6 deletions(-)

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

commit 18f5dd296fb9923282a45b97d6ec1b261d206acd
Author:     Sebastian Pipping <sping@gentoo.org>
AuthorDate: 2025-05-16 22:55:09 +0000
Commit:     Sebastian Pipping <sping@gentoo.org>
CommitDate: 2025-05-16 23:01:56 +0000

    media-sound/owntone: Set maintainer-needed
    
    Bug: https://bugs.gentoo.org/955913
    Signed-off-by: Sebastian Pipping <sping@gentoo.org>

 media-sound/owntone/metadata.xml | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
Comment 14 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-05-16 23:19:26 UTC
Something to keep in mind with AC_USE_SYSTEM_EXTENSIONS (which is great) is that you need to make sure config.h is consistently always included before any standard headers. It looks like there's a few missing here.
Comment 15 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-05-16 23:31:27 UTC
(In reply to Larry the Git Cow from comment #13)
> 
> commit 18f5dd296fb9923282a45b97d6ec1b261d206acd
> Author:     Sebastian Pipping <sping@gentoo.org>
> AuthorDate: 2025-05-16 22:55:09 +0000
> Commit:     Sebastian Pipping <sping@gentoo.org>
> CommitDate: 2025-05-16 23:01:56 +0000
> 
>     media-sound/owntone: Set maintainer-needed
>     
>     Bug: https://bugs.gentoo.org/955913
>     Signed-off-by: Sebastian Pipping <sping@gentoo.org>
> 
>  media-sound/owntone/metadata.xml | 4 +---
>  1 file changed, 1 insertion(+), 3 deletions(-)

FTR, it's considered uncouth to save something from last-rites but keep it as maintainer-needed.
Comment 16 Sebastian Pipping gentoo-dev 2025-05-17 02:23:01 UTC
(In reply to Sam James from comment #15)
> FTR, it's considered uncouth to save something from last-rites but keep it
> as maintainer-needed.

It was agreed with grobian and if he could have just released it to
maintainer-needed in the first place, we're still better off now.
I do understand your point.