Bug 2512861 - Building cmake packages that require libsndfile need a missing .cmake file, can't get the compilation to work
Summary: Building cmake packages that require libsndfile need a missing .cmake file, c...
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: libsndfile
Version: 45
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Andreas Thienemann
QA Contact: Fedora Extras Quality Assurance
URL: https://src.fedoraproject.org/fork/ow...
Whiteboard:
Depends On:
Blocks: MultimediaSIG
TreeView+ depends on / blocked
 
Reported: 2026-08-09 05:42 UTC by Owen Zimmerman
Modified: 2026-08-17 15:49 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Owen Zimmerman 2026-08-09 05:42:29 UTC
I am working on fixing the Terra zrythm package and getting this error:
https://github.com/terrapkg/packages/actions/runs/31284837876/job/93171757325?pr=13046#step:8:220
It needs a `.cmake` file that is currently not packaged by libsndfile as it's using the autotools build system.

I tried switching the package to the cmake build system myself, but getting an error I cannot figure out, if someone could assist me in finding a solution that would be great.

Here is my attempt: https://src.fedoraproject.org/fork/owensz/rpms/libsndfile/c/41816915993f775307cbae550fba9be4a0b4efab?branch=cmakeswitch

Reproducible: Always

Steps to Reproduce:
1. Switch to the cmakeswitch branch on my fork
2. Attempt a build
Actual Results:
/usr/bin/ld.bfd: libsndfile.so.1.0.37: undefined reference to `gsm610_init'


Expected Results:
The package should build and linked to libgsm properly.

Comment 1 Dominik 'Rathann' Mierzejewski 2026-08-09 20:55:29 UTC
Can you open a PR?

Also, please do not disable tests:
+%dnl LD_LIBRARY_PATH=$PWD/src/.libs make check

Comment 2 leigh scott 2026-08-13 22:00:14 UTC
(In reply to Owen Zimmerman from comment #0)

gsm610_init is part of libsndfile wrapper for gsm.

$ grep gsm610_init -r
src/aiff.c:				error = gsm610_init (psf) ;
src/wav.c:					error = gsm610_init (psf) ;
src/w64.c:					error = gsm610_init (psf) ;
src/gsm610.c:gsm610_init	(SF_PRIVATE *psf)
src/gsm610.c:} /* gsm610_init */
src/common.h:int		gsm610_init		(SF_PRIVATE *psf) ;
src/raw.c:				error = gsm610_init (psf) ;


> Actual Results:
> /usr/bin/ld.bfd: libsndfile.so.1.0.37: undefined reference to `gsm610_init'
> 
> 
It does link properly to libgsm

> Expected Results:
> The package should build and linked to libgsm properly.

This patch fixes building libsndfile with cmake https://src.fedoraproject.org/rpms/libsndfile/pull-request/8
I doubt fedora will switch build systems until %check is fixed, ctest fails to find the tests.

Comment 3 Aoife Moloney 2026-08-17 15:49:33 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 45 development cycle.
Changing version to 45.


Note You need to log in before you can comment on or make changes to this bug.