This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: cc1: undefined reference to `libintl_textdomain'


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]