Bug 2512861

Summary: Building cmake packages that require libsndfile need a missing .cmake file, can't get the compilation to work
Product: [Fedora] Fedora Reporter: Owen Zimmerman <owen>
Component: libsndfileAssignee: Andreas Thienemann <andreas>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 45CC: andreas, dominik, mhlavink
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
URL: https://src.fedoraproject.org/fork/owensz/rpms/libsndfile/c/41816915993f775307cbae550fba9be4a0b4efab?branch=cmakeswitch
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2218117    

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.