This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: cc1: undefined reference to `libintl_textdomain'
- From: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- To: Shaun Jackman <sjackman at gmail dot com>
- Cc: gcc-help <gcc-help at gcc dot gnu dot org>
- Date: Wed, 3 Sep 2014 10:29:32 +0100
- Subject: Re: cc1: undefined reference to `libintl_textdomain'
- Authentication-results: sourceware.org; auth=none
- References: <CADX6M3q1=EPn_vRowGPapMACJqOevTeJkA=bSnpDDoVL2LQn_A at mail dot gmail dot com> <CADX6M3rBwM6ATOprfT_hXpv-RRdZ4LnYw9afDUt+S9gYYaPj3A at mail dot gmail dot com> <CADX6M3rgW1+AhS7Hhj-=xx8A8AKhAWXBhPRUAbExSvG7eULXUA at mail dot gmail dot 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.