Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 613886 - x11-libs/motif 2.3.5 and 2.3.6 fail to build on musl
Summary: x11-libs/motif 2.3.5 and 2.3.6 fail to build on musl
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Ulrich Müller
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-26 10:37 UTC by chobaga
Modified: 2017-04-08 11:58 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description chobaga 2017-03-26 10:37:04 UTC
On both versions, the build fails during the configure step with

configure: error: C compiler cannot create executables

config.log contains the following info about the offending check:

configure:3483: checking whether the C compiler works
configure:3505: x86_64-gentoo-linux-musl-gcc -march=native -O2 -pipe -fno-strict-aliasing  -Wl,-O1 -Wl,--as-needed conftest.c -liconv >&5
/usr/lib/gcc/x86_64-gentoo-linux-musl/4.9.4/../../../../x86_64-gentoo-linux-musl/bin/ld: cannot find -liconv
collect2: error: ld returned 1 exit status
configure:3509: $? = 1
configure:3547: result: no

Can post output of emerge --info '=x11-libs/motif-2.3.5::gentoo' if necessary.
Comment 1 Felix Janda 2017-03-26 13:28:52 UTC
Try replacing

if use !elibc_glibc && use !elibc_uclibc && use unicode; then

by

if use !elibc_glibc && use !elibc_uclibc && use !elibc_musl && use unicode; then

in the ebuild.
Comment 2 chobaga 2017-03-26 16:07:47 UTC
Both packages compile successfully after this change and seem to work without any problems.
Comment 3 Ulrich Müller gentoo-dev 2017-04-08 11:58:45 UTC
Fixed in motif-2.3.6-r1.
Thanks for reporting.