Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

I'm running

Linux version 2.6.32-504.8.1.el6.x86_64 ([email protected]) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-11) (GCC) 

and trying to install libX11-devel from source on a machine where I don't have root access (with the end goal of runnning CERN's ROOT).

However, I've been getting this error when processing lib/libXau

      CC     AuDispose.lo
In file included from $HOME/include/X11/Xfuncs.h:46:0,
                 from ./include/X11/Xauth.h:57,
                 from AuDispose.c:30:
/usr/include/string.h:548:5: error: unknown type name ‘__locale_t’
     __locale_t __loc)
     ^
/usr/include/string.h:552:18: error: unknown type name ‘__locale_t’
      size_t __n, __locale_t __loc)
                  ^

I see other people usually have this error while building GCC, and the problem is resolved by downloading a newer version, but I've tried that and haven't had any luck. What is causing this error?

share|improve this question
    
It looks like you may have a formatting / copy&paste error on the last line of your error message block.  Please check (and edit, if necessary): does the ^ point to the __n or the __locale_t? –  G-Man Aug 18 at 3:08
    
Ah, thanks. It wasn't indented with the code block, so it was 4 spaces off. Does that lend any insight? –  Snoozer Aug 18 at 3:39
    
Sorry, no, I can't answer this; I just wanted to make sure that the question was clear, for the benefit of people who might be able to help you. –  G-Man Aug 18 at 4:02

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.