Re: GCC search path

2011-06-16 Thread Lisa Kachold
Hi Nathan, On Wed, Jun 15, 2011 at 12:38 PM, Nathan England wrote: > > > On Wed, Jun 15, 2011 at 12:32 PM, Lisa Kachold wrote: > >> Hi Nathan; >> >> On Wed, Jun 15, 2011 at 12:21 PM, Nathan England >> wrote: >> >>> I am having a problem compiling X and some of the drivers. I get things >>> suc

Re: GCC search path

2011-06-15 Thread Nathan England
WAHOOO!! Ted, thank you. I ran pkg-config --cflags xorg-server and it responded that dri2proto was not installed... So I installed that and all is happy. It was driving me batty because I had not done anything different, but something wasn't working!!! I must have remove dri2proto at some po

Re: GCC search path

2011-06-15 Thread Ted Gould
On Wed, 2011-06-15 at 13:07 -0700, Nathan England wrote: > So my question is why isn't gcc finding the necessary .h files unless > I tell it to include the directories within the /usr/include > directory? Because that's not how it works :-) It doesn't search for the file, it just checks for it.

Re: GCC search path

2011-06-15 Thread Nathan England
If I compile xf86-input-joystick-1.5.0 with ./configure --prefix=/usr it fails with multiple cannot find this or that... but if I compile it with CPPFLAGS="-I/usr/include/ -I/usr/include/xorg/ -I/usr/include/pixman-1/" ./configure --prefix=/usr then it works great. So my question is why isn't

Re: GCC search path

2011-06-15 Thread Nathan England
On Wed, Jun 15, 2011 at 12:32 PM, Lisa Kachold wrote: > Hi Nathan; > > On Wed, Jun 15, 2011 at 12:21 PM, Nathan England > wrote: > >> I am having a problem compiling X and some of the drivers. I get things >> such as: >> >> ../config.h:4:25: fatal error: xorg-server.h: No such file or directory >

Re: GCC search path

2011-06-15 Thread Lisa Kachold
Hi Nathan; On Wed, Jun 15, 2011 at 12:21 PM, Nathan England wrote: > I am having a problem compiling X and some of the drivers. I get things > such as: > > ../config.h:4:25: fatal error: xorg-server.h: No such file or directory > > yet xorg-server.h is in /usr/include/xorg/xorg-server.h > > Why i

GCC search path

2011-06-15 Thread Nathan England
I am having a problem compiling X and some of the drivers. I get things such as: ../config.h:4:25: fatal error: xorg-server.h: No such file or directory yet xorg-server.h is in /usr/include/xorg/xorg-server.h Why is gcc not searching directories inside my /usr/include directory? I have tried ed