Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 716658 - net-irc/anope-2.0.7 : language.cpp:(.text+<snip>): undefined reference to _nl_msg_cat_cntr
Summary: net-irc/anope-2.0.7 : language.cpp:(.text+<snip>): undefined reference to _nl...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Sam James
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2020-04-08 07:07 UTC by Toralf Förster
Modified: 2020-05-05 13:07 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,17.04 KB, text/plain)
2020-04-08 07:07 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,367.37 KB, text/plain)
2020-04-08 07:07 UTC, Toralf Förster
Details
environment (environment,108.02 KB, text/plain)
2020-04-08 07:07 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,26.36 KB, application/x-bzip)
2020-04-08 07:07 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,5.33 KB, application/x-bzip)
2020-04-08 07:07 UTC, Toralf Förster
Details
net-irc:anope-2.0.6:20200408-001358.log (net-irc:anope-2.0.6:20200408-001358.log,39.60 KB, text/plain)
2020-04-08 07:07 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,28.62 KB, application/x-bzip)
2020-04-08 07:07 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2020-04-08 07:07:02 UTC
/usr/lib/gcc/x86_64-gentoo-linux-musl/9.3.0/../../../../x86_64-gentoo-linux-musl/bin/ld: src/CMakeFiles/services.dir/language.o: warning: relocation against _nl_msg_cat_cntr in read-only section .text
/usr/lib/gcc/x86_64-gentoo-linux-musl/9.3.0/../../../../x86_64-gentoo-linux-musl/bin/ld: src/CMakeFiles/services.dir/language.o: in function Language::Translate(char const*, char const*) [clone .part.0]:
language.cpp:(.text+0x33): undefined reference to _nl_msg_cat_cntr
/usr/lib/gcc/x86_64-gentoo-linux-musl/9.3.0/../../../../x86_64-gentoo-linux-musl/bin/ld: warning: creating a DT_TEXTREL in object
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0_musl_hardened-20200328-201618

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-gentoo-linux-musl-9.3.0 *
clang version 10.0.0 
Target: x86_64-gentoo-linux-musl
Thread model: posix
InstalledDir: /usr/lib/llvm/10/bin
/usr/lib/llvm/10
10.0.0
Available Python interpreters, in order of preference:
  [1]   python3.8
  [2]   python3.7
  [3]   python3.6
  [4]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby24 (with Rubygems)
  [2]   ruby25 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.42.0 *
Available Java Virtual Machines:
  (none found)


timestamp of HEAD at this tinderbox image:
/var/db/repos/gentoo	Tue Apr  7 23:37:48 UTC 2020
/var/db/repos/musl	Sat Apr  4 03:02:24 UTC 2020

emerge -qpvO net-irc/anope
[ebuild  N    ] net-irc/anope-2.0.6  USE="pcre ssl -chanstats -cs-fantasy-stats -cs-fantasy-top -gnutls -irc2sql -ldap -ldap-auth -ldap-oper -mysql -posix -sql-auth -sql-log -sql-oper -sqlite -tre"
Comment 1 Toralf Förster gentoo-dev 2020-04-08 07:07:04 UTC
Created attachment 631262 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-04-08 07:07:07 UTC
Created attachment 631264 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-04-08 07:07:10 UTC
Created attachment 631266 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-04-08 07:07:14 UTC
Created attachment 631268 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-04-08 07:07:16 UTC
Created attachment 631270 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-04-08 07:07:19 UTC
Created attachment 631272 [details]
net-irc:anope-2.0.6:20200408-001358.log
Comment 7 Toralf Förster gentoo-dev 2020-04-08 07:07:22 UTC
Created attachment 631274 [details]
temp.tbz2
Comment 8 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-04-08 11:00:27 UTC
I'm currently bumping Anope to 2.0.7. I'll try out musl on there and see what the situation is.
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-05-05 10:44:02 UTC
(In reply to Sam James (sec padawan) from comment #8)
> I'm currently bumping Anope to 2.0.7. I'll try out musl on there and see
> what the situation is.

I can reproduce this.
Comment 10 Larry the Git Cow gentoo-dev 2020-05-05 13:07:13 UTC
The bug has been closed via the following commit(s):

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

commit dcb698cc426e1285f5aabe2f645b29f7bf135227
Author:     Sam James (sam_c) <sam@cmpct.info>
AuthorDate: 2020-05-05 11:24:22 +0000
Commit:     Thomas Deutschmann <whissi@gentoo.org>
CommitDate: 2020-05-05 13:05:56 +0000

    net-irc/anope: Fix musl build
    
    __USE_GNU_GETTEXT is exposed by musl because they provide
    a GNU gettext-compatible interface. This doesn't mean they
    provide all the internals that glibc does.
    
    Check for __GLIBC__ if using internal _nl_msg_cat_cntr.
    
    Closes: https://bugs.gentoo.org/716658
    Package-Manager: Portage-2.3.89, Repoman-2.3.20
    Signed-off-by: Sam James (sam_c) <sam@cmpct.info>
    Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>

 net-irc/anope/anope-2.0.7.ebuild       |  1 +
 net-irc/anope/files/musl-libintl.patch | 22 ++++++++++++++++++++++
 2 files changed, 23 insertions(+)