# Building git on Fedora

3 messages from 2005-04-17 to 2005-04-17. Participants: jeff millar, Chris Wedgwood, David Woodhouse.
Thread: https://gitlist.dev/t/92

## jeff millar, 2005-04-17 23:25

Subject: Building git on Fedora
Message-ID: <4262F07D.4050007@adelphia.net>
URL: https://gitlist.dev/e/4262F07D.4050007%40adelphia.net

```
Here's a tidbit to enable git to compile on Fedora.  Add the following 
line to /etc/rc.d/rc.local...

    ln -sf /lib/modules/`uname -r`/build/include/linux 
/usr/local/include/linux

This fix creates a symlink, on each boot up, in the local include 
directory that points to the kernel header files. If there's a better 
way to do this, I'm all ears.

jeff

```

## Chris Wedgwood, 2005-04-17 23:35

Subject: Re: Building git on Fedora
Message-ID: <20050417233501.GA12950@taniwha.stupidest.org>
URL: https://gitlist.dev/e/20050417233501.GA12950%40taniwha.stupidest.org
In-Reply-To: <4262F07D.4050007@adelphia.net>

```
On Sun, Apr 17, 2005 at 07:25:49PM -0400, jeff millar wrote:

> Here's a tidbit to enable git to compile on Fedora.  Add the
> following line to /etc/rc.d/rc.local...
>
>    ln -sf /lib/modules/`uname -r`/build/include/linux /usr/local/include/linux

I can't see why this should be needed.  What breaks without this?

```

## David Woodhouse, 2005-04-17 23:39

Subject: Re: Building git on Fedora
Message-ID: <1113781158.11910.15.camel@localhost.localdomain>
URL: https://gitlist.dev/e/1113781158.11910.15.camel%40localhost.localdomain
In-Reply-To: <4262F07D.4050007@adelphia.net>

```
On Sun, 2005-04-17 at 19:25 -0400, jeff millar wrote:
>     ln -sf /lib/modules/`uname -r`/build/include/linux /usr/local/include/linux
> 
> This fix creates a symlink, on each boot up, in the local include 
> directory that points to the kernel header files. If there's a better 
> way to do this, I'm all ears.

What's wrong with the contents of the glibc-kernheaders package? Can you
file specific bugs if you're having problems?

In the long run, the answer is to convince Linus that we _really_ need
the kernel to have a set of header files defining the ABI which are fit
for public consumption, rather than having a horrid mix of private and
exportable bits throughout the contents of the include/ directory. 

In the meantime, some poor mug has to clean the crap up and try to make
something suitable to live in /usr/include/linux -- and unfortunately at
the moment for Fedora that someone is me :)

Unless git is doing something with kernel-private headers that it
shouldn't, this probably wants to be discussed elsewhere -- most likely
in Bugzilla.

-- 
dwmw2


```
