Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 461800 - sys-process/procps-3.3.*[nls]: fails to compile on uclibc based system due to libintl
Summary: sys-process/procps-3.3.*[nls]: fails to compile on uclibc based system due to...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on: 547292
Blocks: uclibc-porting
  Show dependency tree
 
Reported: 2013-03-15 11:15 UTC by Tibor Vago
Modified: 2018-10-14 12:08 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,14.59 KB, text/plain)
2013-03-15 11:16 UTC, Tibor Vago
Details
emerge --info (emerge.info,4.10 KB, text/plain)
2013-03-15 11:17 UTC, Tibor Vago
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tibor Vago 2013-03-15 11:15:46 UTC
x86_64-gentoo-linux-uclibc-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I..  -include ../config.h -I../include -DTEST_PROGRAM   -w -O2 -march=native -pipe -c strutils.c
x86_64-gentoo-linux-uclibc-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I..  -include ../config.h -I../include -DTEST_PROGRAM   -w -O2 -march=native -pipe -c fileutils.c
/bin/sh ../libtool --tag=CC   --mode=link x86_64-gentoo-linux-uclibc-gcc -std=gnu99  -w -O2 -march=native -pipe  -Wl,-O1 -Wl,--as-needed -o test_fileutils fileutils.o
/bin/sh ../libtool --tag=CC   --mode=link x86_64-gentoo-linux-uclibc-gcc -std=gnu99  -w -O2 -march=native -pipe  -Wl,-O1 -Wl,--as-needed -o test_strutils strutils.o
libtool: link: x86_64-gentoo-linux-uclibc-gcc -std=gnu99 -w -O2 -march=native -pipe -Wl,-O1 -Wl,--as-needed -o test_fileutils fileutils.o
libtool: link: x86_64-gentoo-linux-uclibc-gcc -std=gnu99 -w -O2 -march=native -pipe -Wl,-O1 -Wl,--as-needed -o test_strutils strutils.o
fileutils.o: In function `close_stdout':
fileutils.c:(.text+0xe0): undefined reference to `libintl_gettext'
collect2: ld returned 1 exit status
make[2]: *** [test_fileutils] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/tmp/portage/sys-process/procps-3.3.4/work/procps-ng-3.3.4/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/sys-process/procps-3.3.4/work/procps-ng-3.3.4'
make: *** [all] Error 2

Reproducible: Always

Steps to Reproduce:
emerge procps-3.3.4 or 3.3.6



If I add LDFLAGS="-lintl" then procps compiles fine
Comment 1 Tibor Vago 2013-03-15 11:16:44 UTC
Created attachment 342114 [details]
build.log
Comment 2 Tibor Vago 2013-03-15 11:17:08 UTC
Created attachment 342116 [details]
emerge --info
Comment 3 Tibor Vago 2013-03-15 11:18:54 UTC
Its the same on my armv5tel based system. I tried re-emerge gettext but doesn't success.
Comment 4 Rafał Mużyło 2013-03-15 17:15:06 UTC
It looks like nobody tested this package outside glibc (or at least a libc without gettext).

The configure macros are in place, but Makefile.am aren't quite correct.

AM_GNU_GETTEXT sets up LTLIBINTL for this need.
lib/Makefile.am is probably just the first place where it needs to be added to LIBADD/LDADD.

It's an upstream bug.
Comment 5 SpanKY gentoo-dev 2013-03-16 15:06:48 UTC
builds fine for me, but i don't bother installing things like gettext
Comment 7 Tibor Vago 2013-03-19 07:55:44 UTC
Works fine, thx SpanKY
Comment 8 Tibor Vago 2013-03-21 16:18:04 UTC
Ahm, sorry, I mean it compiles with USE="-nls". I'll test with USE="nls"...
Comment 9 Tibor Vago 2013-03-23 15:26:17 UTC
It compiles fine on glibc based systems. On uclibc based systems "nls" USE flag is masked out in profile.
Comment 10 Anthony Basile gentoo-dev 2015-04-21 13:11:33 UTC
(In reply to Tibor Vago from comment #9)
> It compiles fine on glibc based systems. On uclibc based systems "nls" USE
> flag is masked out in profile.

I have nls use.masked on all default/linux/uclibc and hardened/linux/uclibc profiles for this reason.  Take a look at bug #547292 for what's going on here.  Once I fix that bug, I'll be able to unmask nls.
Comment 11 Anthony Basile gentoo-dev 2018-10-14 12:08:47 UTC
sys-libs/uclibc has been removed from the tree, replaced by sys-libs/uclibc-ng