Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 634152 - media-plugins/live-2017.09.12 fails to build: include/Locale.hh:47:10: fatal error: xlocale.h: No such file or directory
Summary: media-plugins/live-2017.09.12 fails to build: include/Locale.hh:47:10: fatal ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: xlocale.h
  Show dependency tree
 
Reported: 2017-10-13 09:05 UTC by Michal Jakubowski
Modified: 2018-02-21 23:03 UTC (History)
17 users (show)

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


Attachments
emerge_info (emerge_info,7.51 KB, text/plain)
2017-10-13 09:05 UTC, Michal Jakubowski
Details
build.log (build.log,18.57 KB, text/x-log)
2017-10-13 10:01 UTC, Michal Jakubowski
Details
Patch but not perfect (noxlocale.patch,6.79 KB, patch)
2017-11-26 01:52 UTC, James
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michal Jakubowski 2017-10-13 09:05:03 UTC
Created attachment 498492 [details]
emerge_info

x86_64-pc-linux-gnu-g++ -m32 -c -Iinclude -I../UsageEnvironment/include -I../groupsock/include -I. -DSOCKLEN_T=socklen_t -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -fPIC -march=native -O2 -pipe H264or5VideoFileSink.cpp
x86_64-pc-linux-gnu-g++ -m32 -c -Iinclude -I../UsageEnvironment/include -I../groupsock/include -I. -DSOCKLEN_T=socklen_t -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -fPIC -march=native -O2 -pipe H264VideoFileSink.cpp
x86_64-pc-linux-gnu-g++ -m32 -c -Iinclude -I../UsageEnvironment/include -I../groupsock/include -I. -DSOCKLEN_T=socklen_t -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -fPIC -march=native -O2 -pipe H265VideoFileSink.cpp
x86_64-pc-linux-gnu-g++ -m32 -c -Iinclude -I../UsageEnvironment/include -I../groupsock/include -I. -DSOCKLEN_T=socklen_t -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -fPIC -march=native -O2 -pipe OggFileSink.cpp
x86_64-pc-linux-gnu-g++ -m32 -c -Iinclude -I../UsageEnvironment/include -I../groupsock/include -I. -DSOCKLEN_T=socklen_t -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -fPIC -march=native -O2 -pipe MPEG1or2AudioRTPSink.cpp
x86_64-pc-linux-gnu-g++ -m32 -c -Iinclude -I../UsageEnvironment/include -I../groupsock/include -I. -DSOCKLEN_T=socklen_t -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -fPIC -march=native -O2 -pipe MP3ADURTPSink.cpp
x86_64-pc-linux-gnu-g++ -m32 -c -Iinclude -I../UsageEnvironment/include -I../groupsock/include -I. -DSOCKLEN_T=socklen_t -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -fPIC -march=native -O2 -pipe MPEG1or2VideoRTPSink.cpp
x86_64-pc-linux-gnu-g++ -m32 -c -Iinclude -I../UsageEnvironment/include -I../groupsock/include -I. -DSOCKLEN_T=socklen_t -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -fPIC -march=native -O2 -pipe MPEG4LATMAudioRTPSink.cpp
x86_64-pc-linux-gnu-g++ -m32 -c -Iinclude -I../UsageEnvironment/include -I../groupsock/include -I. -DSOCKLEN_T=socklen_t -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -fPIC -march=native -O2 -pipe MPEG4GenericRTPSink.cpp
In file included from MPEG4GenericRTPSink.cpp:22:0:
include/Locale.hh:47:10: fatal error: xlocale.h: No such file or directory
 #include <xlocale.h> // because, on some systems, <locale.h> doesn't include <xlocale.h>; this makes sure that we get both
          ^~~~~~~~~~~
compilation terminated.
make[1]: *** [Makefile:32: MPEG4GenericRTPSink.o] Error 1
make[1]: Leaving directory '/var/tmp/portage/media-plugins/live-2017.09.12/work/live-2017.09.12-abi_x86_32.x86/live-shared/liveMedia'
make: *** [Makefile:33: all] Error 2
 * ERROR: media-plugins/live-2017.09.12::gentoo failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=media-plugins/live-2017.09.12::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=media-plugins/live-2017.09.12::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/media-plugins/live-2017.09.12/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-plugins/live-2017.09.12/temp/environment'.
 * Working directory: '/var/tmp/portage/media-plugins/live-2017.09.12/work/live-2017.09.12-abi_x86_32.x86/live-shared'
 * S: '/var/tmp/portage/media-plugins/live-2017.09.12/work/live-2017.09.12'

 * Messages for package media-plugins/live-2017.09.12:

 * ERROR: media-plugins/live-2017.09.12::gentoo failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=media-plugins/live-2017.09.12::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=media-plugins/live-2017.09.12::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/media-plugins/live-2017.09.12/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-plugins/live-2017.09.12/temp/environment'.
 * Working directory: '/var/tmp/portage/media-plugins/live-2017.09.12/work/live-2017.09.12-abi_x86_32.x86/live-shared'
 * S: '/var/tmp/portage/media-plugins/live-2017.09.12/work/live-2017.09.12'
Comment 1 Tomáš Mózes 2017-10-13 09:46:12 UTC
Please attach the full build log.
Comment 2 Michal Jakubowski 2017-10-13 10:01:16 UTC
Created attachment 498494 [details]
build.log
Comment 3 Alexey Korepanov 2017-11-16 23:44:11 UTC
I have this problem on arm64 with glibc-2.26-r3. With -DXLOCALE_NOT_USED it builds.
Comment 4 Toralf Förster gentoo-dev 2017-11-23 22:02:53 UTC
same on tinderbox image 17.0-systemd_libressl_20171120-180901
Comment 5 James 2017-11-26 01:52:05 UTC
Created attachment 506634 [details, diff]
Patch but not perfect

If I unpack the ebuild and patch it, this works to finish the compile, I'm not really good at making patches, so I'm certain I didn't quite do it right.
I used the -DXLOCALE_NOT_USED flag and placed it into all the config.linux files.
This bug comes from glibc-2.26 removing the xlocale file, as mentioned, it blocks that version of glibc from being stable.
Comment 6 Andrés Becerra Sandoval 2017-12-04 16:25:34 UTC
(In reply to James from comment #5)
> Created attachment 506634 [details, diff] [details, diff]
> Patch but not perfect
> 
> If I unpack the ebuild and patch it, this works to finish the compile, I'm
> not really good at making patches, so I'm certain I didn't quite do it right.
> I used the -DXLOCALE_NOT_USED flag and placed it into all the config.linux
> files.
> This bug comes from glibc-2.26 removing the xlocale file, as mentioned, it
> blocks that version of glibc from being stable.

James, 

Your patch does not apply for me, but manually including -DXLOCALE_NOT_USED in the referred files allows the compilation of live!
Comment 7 Alexey Korepanov 2017-12-04 16:28:48 UTC
Don't need to patch. The ebuild already manipulates with -DXLOCALE_NOT_USED. Just make it apply always.. Or only with high enough versions of glibc?

See my version here:
https://github.com/khumarahn/teres1-gentoo/blob/master/usr/local/portage/media-plugins/live/live-2017.09.12.ebuild#L72
Comment 8 Juergen Rose 2017-12-17 13:34:06 UTC
(In reply to Alexey Korepanov from comment #7)
> Don't need to patch. The ebuild already manipulates with -DXLOCALE_NOT_USED.
> Just make it apply always.. Or only with high enough versions of glibc?
> 
> See my version here:
> https://github.com/khumarahn/teres1-gentoo/blob/master/usr/local/portage/
> media-plugins/live/live-2017.09.12.ebuild#L72

The ebuild from https://github.com/khumarahn/teres1-gentoo/blob/master/usr/local/portage/media-plugins/live/live-2017.09.12.ebuild worked for me.
Comment 9 John Covici 2017-12-19 02:13:33 UTC
Me too, although I had trouble actually downloading the patch, had to extract from the htm, but it did work.

Thanks.
Comment 10 Larry the Git Cow gentoo-dev 2017-12-28 10:03:30 UTC
The bug has been closed via the following commit(s):

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

commit e8c4597e86598c495ea4e4dd43897c52941b4b08
Author:     Alexis Ballier <aballier@gentoo.org>
AuthorDate: 2017-12-28 10:03:15 +0000
Commit:     Alexis Ballier <aballier@gentoo.org>
CommitDate: 2017-12-28 10:03:24 +0000

    media-plugins/live: bump to 2017.10.28 and fix build with recent glibc versions.
    
    Closes: https://bugs.gentoo.org/634152
    Package-Manager: Portage-2.3.19, Repoman-2.3.6

 media-plugins/live/Manifest                  |   1 +
 media-plugins/live/files/config.gentoo-r1    |  17 ++++
 media-plugins/live/files/config.gentoo-so-r2 |  17 ++++
 media-plugins/live/live-2017.10.28.ebuild    | 128 +++++++++++++++++++++++++++
 4 files changed, 163 insertions(+)