Re: cc1: undefined reference to `libintl_textdomain'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux