Summary: | net-libs/rpcsvc-proto depends on libintl but forgets to link against it and fails to compile | ||
---|---|---|---|
Product: | Gentoo/Alt | Reporter: | Anton <anton.stay.connected> |
Component: | Prefix Support | Assignee: | Gentoo's Team for Core System packages <base-system> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | embedded, prefix, toolchain |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | OS X | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
build.log
emerge --info '=net-libs/rpcsvc-proto-1.2-r1::gentoo_prefix' emerge -pqv '=net-libs/rpcsvc-proto-1.2-r1::gentoo_prefix' Patch config.ac to look for the libintl library alternative patch build.log with the alternative patch Build-log |
Created attachment 503508 [details]
emerge --info '=net-libs/rpcsvc-proto-1.2-r1::gentoo_prefix'
Created attachment 503510 [details]
emerge -pqv '=net-libs/rpcsvc-proto-1.2-r1::gentoo_prefix'
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
Created attachment 503520 [details, diff]
alternative patch
Could you please test if this patch works for you as well? Thanks!
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?
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.. 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...
(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.. 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.. (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. 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 Proposed fix upstream as https://github.com/thkukuk/rpcsvc-proto/pull/5 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(+) |
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.