cc1: undefined reference to `libintl_textdomain'

Jonathan Wakely jwakely.gcc@gmail.com
Wed Sep 3 09:29:00 GMT 2014


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.



More information about the Gcc-help mailing list