From: Jonathan Wakely <jwakely.gcc@gmail.com>
To: Shaun Jackman <sjackman@gmail.com>
Cc: gcc-help <gcc-help@gcc.gnu.org>
Subject: Re: cc1: undefined reference to `libintl_textdomain'
Date: Wed, 03 Sep 2014 09:29:00 -0000 [thread overview]
Message-ID: <CAH6eHdRZ6MmpeaqbUViYR7m5CznRrtKpueZ-4ONN4CDzNYj=Kw@mail.gmail.com> (raw)
In-Reply-To: <CADX6M3rgW1+AhS7Hhj-=xx8A8AKhAWXBhPRUAbExSvG7eULXUA@mail.gmail.com>
On 3 September 2014 00:23, Shaun Jackman wrote:
> I found the cause! Both glibc and gettext provide libintl.h. I was
> using libintl.h provided by gettext. Using libintl.h from glibc
> resolves this issue. I found this conflict confusing.
https://gcc.gnu.org/PR56779
There should never be a need to install gettext's libintl.h on
GNU/Linux systems using glibc. If you have it installed you've borked
your system somehow.
> A related issue, both Linux and glibc provide a directory
> include/scsi. I was using the one provided by Linux. Compiling
> libsanitizer in GCC requires include/scsi/scsi.h from glibc. The moral
> of this story appears to be, in case of conflict, use the version
> provided by glibc.
Yes, that's generally always the case. User-space code should use
glibc headers, not kernel headers.
prev parent reply other threads:[~2014-09-03 9:29 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-02 20:42 Shaun Jackman
2014-09-02 21:10 ` Shaun Jackman
2014-09-02 23:23 ` Shaun Jackman
2014-09-03 9:29 ` Jonathan Wakely [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAH6eHdRZ6MmpeaqbUViYR7m5CznRrtKpueZ-4ONN4CDzNYj=Kw@mail.gmail.com' \
--to=jwakely.gcc@gmail.com \
--cc=gcc-help@gcc.gnu.org \
--cc=sjackman@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).