Bug 2412438

Summary: baresip and libre: FTBFS in Fedora Rawhide
Product: [Fedora] Fedora Reporter: Dominik 'Rathann' Mierzejewski <dominik>
Component: libreAssignee: Robert Scheck <redhat-bugzilla>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: redhat-bugzilla
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
URL: https://koschei.fedoraproject.org/package/baresip
Whiteboard:
Fixed In Version: libre-4.3.0-1.fc44 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-12-01 21:10:19 UTC Type: Bug
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: 2413097    
Bug Blocks:    

Description Dominik 'Rathann' Mierzejewski 2025-11-05 08:59:54 UTC
Description of problem:
Packages libre and baresip fail to build from source in Fedora Rawhide.

Version-Release number of selected component (if applicable):
baresip-4.1.0-1.fc44
libre-4.1.0-1.fc44

Steps to Reproduce:
koji build --scratch f44 baresip-4.1.0-1.fc44.src.rpm
koji build --scratch f44 libre-4.1.0-1.fc44.src.rpm

Additional info:
These packages are tracked by Koschei. See:
https://koschei.fedoraproject.org/package/baresip
https://koschei.fedoraproject.org/package/libre

baresip and libre started to fail with this glibc update:
https://koschei.fedoraproject.org/build/21603986
https://koschei.fedoraproject.org/build/21609981

Compilation error:
In file included from /usr/include/re/re.h:60,
                 from /builddir/build/BUILD/baresip-4.1.0-build/baresip-4.1.0/modules/sdl/sdl.c:8:
/usr/include/re/re_thread.h:45:9: warning: ‘ONCE_FLAG_INIT’ redefined
   45 | #define ONCE_FLAG_INIT PTHREAD_ONCE_INIT
      |         ^~~~~~~~~~~~~~
In file included from /usr/include/stdlib.h:1162,
                 from /usr/include/SDL2/SDL_stdinc.h:42,
                 from /usr/include/SDL2/SDL_main.h:25,
                 from /usr/include/SDL2/SDL.h:31,
                 from /builddir/build/BUILD/baresip-4.1.0-build/baresip-4.1.0/modules/sdl/sdl.c:7:
/usr/include/bits/types/once_flag.h:25:9: note: this is the location of the previous definition
   25 | #define ONCE_FLAG_INIT __ONCE_FLAG_INIT
      |         ^~~~~~~~~~~~~~
/usr/include/re/re_thread.h:46:24: error: conflicting types for ‘once_flag’; have ‘pthread_once_t’ {aka ‘int’}
   46 | typedef pthread_once_t once_flag;
      |                        ^~~~~~~~~
/usr/include/bits/types/once_flag.h:24:21: note: previous declaration of ‘once_flag’ with type ‘once_flag’
   24 | typedef __once_flag once_flag;
      |                     ^~~~~~~~~
/usr/include/re/re_thread.h:132:6: error: conflicting types for ‘call_once’; have ‘void(int *, void (*)(void))’
  132 | void call_once(once_flag *flag, void (*func)(void));
      |      ^~~~~~~~~
/usr/include/stdlib.h:1166:13: note: previous declaration of ‘call_once’ with type ‘void(once_flag *, void (*)(void))’
 1166 | extern void call_once (once_flag *__flag, void (*__func)(void));
      |             ^~~~~~~~~

Looks like it's a new conflict between libre (/usr/include/re/re_thread.h) and glibc (/usr/include/bits/types/once_flag.h).

Comment 1 Fedora Update System 2025-12-01 21:07:09 UTC
FEDORA-2025-d31b388a7c (baresip-4.3.0-1.fc44 and libre-4.3.0-1.fc44) has been submitted as an update to Fedora 44.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-d31b388a7c

Comment 2 Fedora Update System 2025-12-01 21:10:19 UTC
FEDORA-2025-d31b388a7c (baresip-4.3.0-1.fc44 and libre-4.3.0-1.fc44) has been pushed to the Fedora 44 stable repository.
If problem still persists, please make note of it in this bug report.