Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 578424

Summary: sys-libs/timezone-data: build fails on musl: ld: cannot find -lintl
Product: Gentoo Linux Reporter: OGINO Masanori <masanori.ogino>
Component: [OLD] Core systemAssignee: Gentoo Toolchain Maintainers <toolchain>
Severity: normal CC: blueness, fsvm88
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 430702    
Attachments: A patch to fix the problem.

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