Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 560728 - vlc-2.1.5-r1 fails to configure on musl x86 and amd64 - gawk: ./confoWJdGr/subs.awk:21: ^ syntax error
Summary: vlc-2.1.5-r1 fails to configure on musl x86 and amd64 - gawk: ./confoWJdGr/su...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo musl team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: musl-porting
  Show dependency tree
 
Reported: 2015-09-17 20:06 UTC by tt_1
Modified: 2015-10-25 09:21 UTC (History)
5 users (show)

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


Attachments
build log of =vlc-2.1.5-r1 (vlc-build.log,27.95 KB, text/plain)
2015-09-17 20:07 UTC, tt_1
Details
config.log from vlc-2.1.5-r1 (vlc-config.log,280.13 KB, text/plain)
2015-09-17 20:08 UTC, tt_1
Details
emerge.info (emerge.info.log,4.81 KB, text/plain)
2015-09-17 20:09 UTC, tt_1
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tt_1 2015-09-17 20:06:31 UTC
checking for NCURSES... yes
checking for UDEV... yes
checking whether GCRYCTL_SET_THREAD_CBS is declared... yes
checking for gcry_control in -lgcrypt... yes
checking whether byte ordering is bigendian... no
./configure: eval: line 51626: unexpected EOF while looking for matching `''
./configure: eval: line 51627: syntax error: unexpected end of file
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
gawk: ./confoWJdGr/subs.awk:21: S["COPYRIGHT_MESSAGE"]=© 1996-2014 the VideoLAN team%!_!# "Copyright © 1996-2014 the VideoLAN team"
gawk: ./confoWJdGr/subs.awk:21:                        ^ invalid char '\C2' in expression
gawk: ./confoWJdGr/subs.awk:21: S["COPYRIGHT_MESSAGE"]=© 1996-2014 the VideoLAN team%!_!# "Copyright © 1996-2014 the VideoLAN team"
gawk: ./confoWJdGr/subs.awk:21:                        ^ syntax error
config.status: error: could not create Makefile
./configure: eval: line 13: unexpected EOF while looking for matching `''
./configure: eval: line 14: syntax error: unexpected end of file

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/media-video/vlc-2.1.5-r1/work/vlc-2.1.5/config.log
Comment 1 tt_1 2015-09-17 20:07:23 UTC
Created attachment 412128 [details]
build log of =vlc-2.1.5-r1
Comment 2 tt_1 2015-09-17 20:08:55 UTC
Created attachment 412130 [details]
config.log from vlc-2.1.5-r1
Comment 3 tt_1 2015-09-17 20:09:36 UTC
Created attachment 412132 [details]
emerge.info
Comment 4 Alex Xu (Hello71) 2015-09-22 23:37:36 UTC
please test LANG=C emerge vlc.
Comment 5 Nick Andrade 2015-09-23 00:40:04 UTC
I must admit that prior to this bug, I was unaware of musl.  Looking at the config.log, it looks like configure is failing around _FORTIFY_SOURCE.  I've been doing some casual research on musl and it seems _FORTIFY_SOURCE is not supported. My work blocks openwall where the mailing lists are hosted and the musl wiki is throwing me a 404.  Can someone more familiar with musl confirm?
Comment 6 tt_1 2015-09-23 05:53:58 UTC
LANG=C emerge vlc is not working, the build fails with exactly the same errors. 

Actually it seems to be a amd64 exclusive bug as I switched over from x86, where vlc used to build just fine without any patching. I may try to sort this out and test with a recent x86 stage 3. 

I know that Alpine is using a seperate fortify headers package, but that is all I know about it. See http://git.2f30.org/fortify-headers/ for further informations.
Comment 7 tt_1 2015-09-23 18:03:18 UTC
vlc used to compile on x86 a few months ago. right now, it gives the same build failure as on amd64. 

so, is this a regression? can anyone else confirm?
Comment 8 Felix Janda 2015-09-24 16:57:10 UTC
Have you tried downgrading to musl-1.1.10-r1?
Comment 9 tt_1 2015-09-24 17:25:18 UTC
I may try if it's possible without breaking the system?
Comment 10 tt_1 2015-09-24 18:42:22 UTC
well, it seems possible to downgrade. and by doing so I found out that with =< musl-1.1.11 vlc is NOT failing to compile. but WITH musl 1.1.11-r1 it is failing - the only difference is the musl-1.1.11-fix-codeset.patch 

with musl-9999 it is neither working.
Comment 11 Felix Janda 2015-09-26 04:03:55 UTC
More minimal example for the eval errors:

printf '%s\n' "a='a © a'" | LC_ALL=C sed --posix 's/^\([a-z]*\)=.*/\1/'

The output is "a© a'" instead of "a" with the bad versions of musl. It
is important that GNU sed is used.
Comment 12 Ian Delaney (RETIRED) gentoo-dev 2015-10-04 07:32:47 UTC
overall this is a non issue re media-video/vlc.
vlc-2.1.5-r1 is still in portage because it is the stabled version and vlc-2.2.1.ebuild has not yet been made stable.

If this pertains to the 2.2.n set of vlc it then has some legitimacy.
sys-libs/musl is not even a build dep of vlc.
Comment 13 tt_1 2015-10-25 07:56:40 UTC
fixed with musl 1.1.12
Comment 14 Anthony Basile gentoo-dev 2015-10-25 09:21:35 UTC
(In reply to tt_1 from comment #13)
> fixed with musl 1.1.12

thanks.  i've confirmed that felix's reduced case works.