Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 829608 - media-libs/mlt-7.4.0 - /.../alltypes.h: error: conflicting types for locale_t; have struct _locale_struct
Summary: media-libs/mlt-7.4.0 - /.../alltypes.h: error: conflicting types for locale_t...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo musl team
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: musl-porting
  Show dependency tree
 
Reported: 2021-12-19 11:50 UTC by Toralf Förster
Modified: 2022-06-26 20:09 UTC (History)
2 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,15.42 KB, text/plain)
2021-12-19 11:50 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,179.43 KB, text/plain)
2021-12-19 11:50 UTC, Toralf Förster
Details
environment (environment,122.42 KB, text/plain)
2021-12-19 11:50 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,15.81 KB, application/x-bzip)
2021-12-19 11:50 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,4.87 KB, application/x-bzip)
2021-12-19 11:50 UTC, Toralf Förster
Details
media-libs:mlt-7.2.0-r1:20211219-000428.log (media-libs:mlt-7.2.0-r1:20211219-000428.log,12.97 KB, text/plain)
2021-12-19 11:50 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,29.31 KB, application/x-bzip)
2021-12-19 11:50 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 2021-12-19 11:50:05 UTC
                 from /usr/include/pthread.h:31,
                 from /var/tmp/portage/media-libs/mlt-7.2.0-r1/work/mlt-7.2.0/src/framework/../framework/mlt_transition.h:27,
                 from /var/tmp/portage/media-libs/mlt-7.2.0-r1/work/mlt-7.2.0/src/framework/../framework/mlt.h:47,
                 from /var/tmp/portage/media-libs/mlt-7.2.0-r1/work/mlt-7.2.0/src/modules/plus/filter_shape.c:22:
/usr/include/bits/alltypes.h:343:34: error: conflicting types for 'locale_t'; have 'struct __locale_struct *'
  343 | typedef struct __locale_struct * locale_t;
      |                                  ^~~~~~~~

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0_musl-j4-20211217-040058

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

gcc-config -l:
 [1] x86_64-gentoo-linux-musl-11.2.1 *
clang version 13.0.0
Target: x86_64-gentoo-linux-musl
Thread model: posix
InstalledDir: /usr/lib/llvm/13/bin
/usr/lib/llvm/13
13.0.0
Python 3.9.9
Available Ruby profiles:
  [1]   ruby26 (with Rubygems)
  [2]   ruby27 (with Rubygems)
  [3]   ruby30 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.57.0 *
php cli:
  [1]   php7.3
  [2]   php7.4
  [3]   php8.1 *

  HEAD of ::gentoo
commit 8c3bfd7dd8449bdf2b54a1550d689875a9f01402
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sat Dec 18 23:06:44 2021 +0000

    2021-12-18 23:06:43 UTC

emerge -qpvO media-libs/mlt
[ebuild  N    ] media-libs/mlt-7.2.0-r1  USE="-debug -ffmpeg -frei0r -gtk -jack -libsamplerate -opencv -opengl -python -qt5 -rtaudio -rubberband -sdl -test (-vdpau) -vidstab -xine -xml" PYTHON_SINGLE_TARGET="python3_9 -python3_8 -python3_10"
Comment 1 Toralf Förster gentoo-dev 2021-12-19 11:50:06 UTC
Created attachment 759669 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-12-19 11:50:07 UTC
Created attachment 759670 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2021-12-19 11:50:09 UTC
Created attachment 759671 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2021-12-19 11:50:10 UTC
Created attachment 759672 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2021-12-19 11:50:11 UTC
Created attachment 759673 [details]
logs.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2021-12-19 11:50:12 UTC
Created attachment 759674 [details]
media-libs:mlt-7.2.0-r1:20211219-000428.log
Comment 7 Toralf Förster gentoo-dev 2021-12-19 11:50:13 UTC
Created attachment 759675 [details]
temp.tar.bz2
Comment 8 Andreas Sturmlechner gentoo-dev 2021-12-29 13:58:02 UTC
What about 7.4.0?
Comment 9 Toralf Förster gentoo-dev 2021-12-29 14:49:48 UTC
(In reply to Andreas Sturmlechner from comment #8)
> What about 7.4.0?

same problem (under musl)
Comment 10 Agostino Sarubbo gentoo-dev 2022-01-27 07:16:06 UTC
tinderbox_musl has reproduced this issue with version 7.4.0 - Updating summary.
Comment 11 Larry the Git Cow gentoo-dev 2022-06-26 20:09:51 UTC
The bug has been closed via the following commit(s):

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

commit 1ff80614a9657203b3d50042bd266e7e90f6812f
Author:     Alfred Persson Forsberg <cat@catcream.org>
AuthorDate: 2022-06-26 19:14:54 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-06-26 20:08:25 +0000

    media-libs/mlt: fix build for musl
    
    There is no gurantee that either HAVE_STRTOD_L or HAVE_LOCALE_H will be
    defined at compile-time. Try for example building this project :)
    
    The locale usage is now defined in POSIX and therefore we can now
    assume it will be available on Linux, except for ancient systems.
    https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/locale.h.html
    
    Another way of dealing with this would be to have a global mlt_config.h
    where HAVE_LOCALE_H and HAVE_STRTOD_L are defined to values determined
    when mlt is installed.
    See-also:
    https://git.alpinelinux.org/aports/tree/community/mlt/musl-locale.patch, https://github.com/mltframework/mlt/pull/803
    
    Closes: https://bugs.gentoo.org/829608
    Signed-off-by: Alfred Persson Forsberg <cat@catcream.org>
    Closes: https://github.com/gentoo/gentoo/pull/26083
    Signed-off-by: Sam James <sam@gentoo.org>

 .../mlt/files/mlt-7.8.0-linux_locale_h.patch       | 37 ++++++++++++++++++++++
 media-libs/mlt/mlt-7.8.0.ebuild                    |  1 +
 2 files changed, 38 insertions(+)