Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 578424 - sys-libs/timezone-data: build fails on musl: ld: cannot find -lintl
Summary: sys-libs/timezone-data: build fails on musl: ld: cannot find -lintl
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
: 579104 (view as bug list)
Depends on:
Blocks: musl-porting
  Show dependency tree
 
Reported: 2016-03-28 02:26 UTC by OGINO Masanori
Modified: 2016-04-12 01:47 UTC (History)
2 users (show)

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


Attachments
A patch to fix the problem. (timezone-data-2015g-musl.patch,979 bytes, patch)
2016-03-28 02:26 UTC, OGINO Masanori
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description OGINO Masanori 2016-03-28 02:26:16 UTC
Created attachment 429126 [details, diff]
A patch to fix the problem.

sys-libs/timezone-data tries to link programs with libintl with USE=nls and not with glibc. However, this causes a link error on musl profile because the built-in libintl is used on that profile. Just checking elibc_musl works well.

I've confirmed with 2015g and 2016a.

Error log:
> x86_64-gentoo-linux-musl-gcc -o zic -O2 -pipe -std=gnu99 -Wl,-O1 -Wl,--as-needed zic.o -lintl
> /usr/lib/gcc/x86_64-gentoo-linux-musl/4.9.3/../../../../x86_64-gentoo-linux-musl/bin/ld: cannot find -lintl
> collect2: error: ld returned 1 exit status
> Makefile:401: recipe for target 'zic' failed
> make: *** [zic] Error 1

Reproducible: always
Comment 1 Anthony Basile gentoo-dev 2016-04-08 10:29:33 UTC
*** Bug 579104 has been marked as a duplicate of this bug. ***
Comment 2 Felix Janda 2016-04-10 11:41:48 UTC
https://github.com/gentoo/gentoo/pull/1227