Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 637084 - net-libs/rpcsvc-proto depends on libintl but forgets to link against it and fails to compile
Summary: net-libs/rpcsvc-proto depends on libintl but forgets to link against it and f...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All OS X
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-11-10 18:50 UTC by Anton
Modified: 2020-01-07 19:52 UTC (History)
3 users (show)

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


Attachments
build.log (build.log,9.07 KB, application/octet-stream)
2017-11-10 18:50 UTC, Anton
Details
emerge --info '=net-libs/rpcsvc-proto-1.2-r1::gentoo_prefix' (emerge-info.log,4.83 KB, text/plain)
2017-11-10 18:51 UTC, Anton
Details
emerge -pqv '=net-libs/rpcsvc-proto-1.2-r1::gentoo_prefix' (emerge-pqv.log,46 bytes, text/plain)
2017-11-10 18:52 UTC, Anton
Details
Patch config.ac to look for the libintl library (link_against_libintl.patch,307 bytes, patch)
2017-11-10 19:04 UTC, Anton
Details | Diff
alternative patch (0001-Allow-building-against-external-libintl.patch,19.79 KB, patch)
2017-11-10 21:53 UTC, Andreas K. Hüttel
Details | Diff
build.log with the alternative patch (build.log,11.04 KB, application/octet-stream)
2017-11-11 00:41 UTC, Anton
Details
Build-log (rpcsvc-proto-log.txt,30.22 KB, text/plain)
2018-08-11 14:25 UTC, Michael Lawrence
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Anton 2017-11-10 18:50:57 UTC
Created attachment 503506 [details]
build.log

emerge fails with:

Undefined symbols for architecture x86_64:
  "_libintl_gettext", referenced from:                                       
      _main in rpc_main.o
      _usage in rpc_main.o
...

at the link phase. This can be fixed by including -lintl as a linker flag.

This happens on Prefix on a Mac, but I'd expect the problem to be the same elsewhere.
Comment 1 Anton 2017-11-10 18:51:48 UTC
Created attachment 503508 [details]
emerge --info '=net-libs/rpcsvc-proto-1.2-r1::gentoo_prefix'
Comment 2 Anton 2017-11-10 18:52:56 UTC
Created attachment 503510 [details]
emerge -pqv '=net-libs/rpcsvc-proto-1.2-r1::gentoo_prefix'
Comment 3 Anton 2017-11-10 19:04:13 UTC
Created attachment 503512 [details, diff]
Patch config.ac to look for the libintl library

This patch adds the appropriate AC_CHECK_LIB to configure.ac to make it find libintl library and add it to the list of libraries.

This patch works-for-me, but I cannot judge how portable it is to other architectures.

Also, the ebuild should probably be changed to declare its dependence on virtual/libintl
Comment 4 Andreas K. Hüttel archtester gentoo-dev 2017-11-10 21:53:30 UTC
Created attachment 503520 [details, diff]
alternative patch

Could you please test if this patch works for you as well? Thanks!
Comment 5 Anton 2017-11-11 00:41:02 UTC
Created attachment 503554 [details]
build.log with the alternative patch

Nope, same-looking error...

Maybe if you explain the intent I'll see what additional feedback you might need?
Comment 6 Michael Lawrence 2018-08-11 14:21:07 UTC
vanilla from git on arm64 seems to re-build with newer glibc... 

@revdep  since moving glibc higher... wont... 

just for gen wishlist builds on newer glibc..
Comment 7 Michael Lawrence 2018-08-11 14:25:57 UTC
Created attachment 543096 [details]
Build-log

----RDEPEND="!<sys-libs/glibc-2.26"

+++ RDEPEND="sys-libs/glib"  try this ... 
namely would be nice to get openstack-arm64 image via the openstack toy... 
however rebuild of this it whines...
Comment 8 Michael Lawrence 2018-08-11 14:28:50 UTC
(In reply to Michael Lawrence from comment #6)
> vanilla from git on arm64 seems to re-build with newer glibc... 
> 
> @revdep  since moving glibc higher... wont... as upgrADES  did so... 
> 
> just for gen wishlist builds on newer glibc..

https://isshoni.org/pi64pie/sys-libs/  

used a number of base bins to get my chroot cooking faster.. 
>=/glibc-2.26-r7 likely or close to glib ver or higher..
Comment 9 Michael Lawrence 2018-08-26 21:34:30 UTC
 net-libs/rpcsvc-proto 

RDEPEND="!<sys-libs/glibc-2.26" arm64 

RDEPEND="sys-libs/glibc"
repoman manifest...  

wala.. shuts up portage... as it wants to drop my gclibc which would be bad..
Comment 10 Joshua Kinard gentoo-dev 2018-10-25 06:27:47 UTC
(In reply to Anton from comment #3)
> Created attachment 503512 [details, diff] [details, diff]
> Patch config.ac to look for the libintl library
> 
> This patch adds the appropriate AC_CHECK_LIB to configure.ac to make it find
> libintl library and add it to the list of libraries.
> 
> This patch works-for-me, but I cannot judge how portable it is to other
> architectures.
> 
> Also, the ebuild should probably be changed to declare its dependence on
> virtual/libintl

This patch works on mips64 under uclibc-ng.


(In reply to Andreas K. Hüttel from comment #4)
> Created attachment 503520 [details, diff] [details, diff]
> alternative patch
> 
> Could you please test if this patch works for you as well? Thanks!

This one fails to work under the same target.
Comment 11 Sergei Trofimovich (RETIRED) gentoo-dev 2019-12-29 22:47:59 UTC
link failure is also reproducible on x86_64-gentoo-linux-uclibc stage3 against =net-libs/rpcsvc-proto-1.4:

86_64-gentoo-linux-uclibc-gcc  -O2 -pipe -fdiagnostics-show-option -frecord-gcc-switches  -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -o rpcgen rpc_clntout.o rpc_cout.o rpc_hout.o rpc_main.o rpc_parse.o rpc_sample.o rpc_scan.o rpc_svcout.o rpc_tblout.o rpc_util.o
/usr/lib/gcc/x86_64-gentoo-linux-uclibc/9.2.0/../../../../x86_64-gentoo-linux-uclibc/bin/ld: rpc_main.o: in function `usage':
rpc_main.c:(.text+0x1a): undefined reference to `libintl_gettext'
/usr/lib/gcc/x86_64-gentoo-linux-uclibc/9.2.0/../../../../x86_64-gentoo-linux-uclibc/bin/ld: rpc_main.c:(.text+0x3d): undefined reference to `libintl_gettext'
/usr/lib/gcc/x86_64-gentoo-linux-uclibc/9.2.0/../../../../x86_64-gentoo-linux-uclibc/bin/ld: rpc_main.c:(.text+0x60): undefined reference to `libintl_gettext'
/usr/lib/gcc/x86_64-gentoo-linux-uclibc/9.2.0/../../../../x86_64-gentoo-linux-uclibc/bin/ld: rpc_main.c:(.text+0x83): undefined reference to `libintl_gettext'
/usr/lib/gcc/x86_64-gentoo-linux-uclibc/9.2.0/../../../../x86_64-gentoo-linux-uclibc/bin/ld: rpc_main.c:(.text+0xa6): undefined reference to `libintl_gettext'
/usr/lib/gcc/x86_64-gentoo-linux-uclibc/9.2.0/../../../../x86_64-gentoo-linux-uclibc/bin/ld: rpc_main.o:rpc_main.c:(.text+0xc2): more undefined references to `libintl_gettext' follow
Comment 12 Sergei Trofimovich (RETIRED) gentoo-dev 2019-12-29 23:42:26 UTC
Proposed fix upstream as https://github.com/thkukuk/rpcsvc-proto/pull/5
Comment 13 Larry the Git Cow gentoo-dev 2020-01-07 19:52:42 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=81052c9a262f68e6d9898e54fc35678cc8b2e822

commit 81052c9a262f68e6d9898e54fc35678cc8b2e822
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: 2020-01-07 19:52:26 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2020-01-07 19:52:36 +0000

    net-libs/rpcsvc-proto: use external libintl where needed, bug #637084
    
    Reported-by: Anton
    Closes: https://bugs.gentoo.org/637084
    Package-Manager: Portage-2.3.84, Repoman-2.3.20
    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>

 .../files/rpcsvc-proto-1.4-external-libintl.patch  | 47 ++++++++++++++++++++++
 net-libs/rpcsvc-proto/rpcsvc-proto-1.4-r1.ebuild   | 36 +++++++++++++++++
 2 files changed, 83 insertions(+)