On 11/02/2014 11:06 PM, Guy Dalziel wrote:
> I thought I would post this in case anyone finds it useful. It's not a problem
> with the compilation instructions, but rather the way I set up my environment.
> 
> When I started to compile Xorg I started compiling the protocol headers, and 
> the
> first one that it tried to compile threw back this:
> 
> checking whether the C compiler works... no
> configure: error: in
> `/home/krendoshazin/src/packages/xc/proto/bigreqsproto-1.1.2':
> configure: error: C compiler cannot create executables
> See `config.log' for more details
> 
> Checking config.log showed me 'gcc: error: ./specs: Is a directory'. It seems
> that GCC was reacting to the presence of the specs directory and expecting it 
> to
> be a file.
> 
> After a bit of digging it turns out that the problem is the LIBRARY_PATH
> variable as I'd set up my bash environment to set this up for me by default 
> with
> LIBRARY_PATH=$LIBRARY_PATH:$XORG_PREFIX/lib. This is necessary for when Xorg 
> is
> built in a directory other than /usr as I do.
> 

I tend to use append instead of prepend, so it goes: export
LD_LIBRARY_PATH=$XORG_PREFIX/lib:$LD_LIBRARY_PATH. Even if
LD_LIBRARY_PATH was empty, nothing will get broken that way.

> Since LIBRARY_PATH didn't have anything in it, the resulting value became
> LIBRARY_PATH=:/usr/X11/lib, and it's this null value that's throwing it off.
> 
> -bash-4.3$ pwd
> /home/krendoshazin/src/packages/xc/proto/bigreqsproto-1.1.2
> -bash-4.3$ echo $LIBRARY_PATH
> :/usr/X11/lib
> -bash-4.3$ gcc --version
> gcc: error: ./specs: Is a directory
> -bash-4.3$ export LIBRARY_PATH=/usr/X11/lib
> -bash-4.3$ gcc --version
> gcc (GCC) 4.9.2
> Copyright (C) 2014 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions.  There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
> 
> This colon can ruin your entire day. One to watch out for.
> 


-- 
Note: My last name is not Krejzi.

Attachment: signature.asc
Description: OpenPGP digital signature

-- 
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to