[Gluster-users] problem building fuse on CentOS 4

Matt Lawrence matt.lawrence at tamu.edu
Mon Dec 22 17:18:07 UTC 2008

Harshavardhana Ranganath wrote:
> Hi Matt,
>      Check the rpm spec file for few more options to specify the 
> kernel and
> #   --define "ksrc <srcdir>"
> #       Build with kernel header files found in <srcdir>.
> #       By default, the build script will try to find the kernel headers
> #       matching the specified kernel or, if no kernel was specified, the
> #       current kernel.
> #
> #   --define "kernel <version>"
> #       Specify kernel version to build the module for.
> #       By default, the version is derived from the kernel source 
> files, or
> #       failing that, from "uname -r".
>       If you have kernel source in non standard path or looks like you 
> have src release tag different than the kernel installed. 
>       Check if you have ls -l /usr/src/kernels/ and uname -r match. If 
> they don't match then a proper work around to fix this is to use 
> --define "kernel <version>". Let us see give it a try, if there are 
> issues then we can look into it.

Here is what I'm getting:

[root at windfarm-gw ~]# uname -r
[root at windfarm-gw ~]# ls -l /usr/src/kernels/
total 8
drwxr-xr-x  17 root root 4096 Dec 21 18:44 2.6.9-78.0.8.EL-smp-x86_64
drwxr-xr-x  17 root root 4096 Dec 21 18:43 2.6.9-78.0.8.EL-x86_64

Not quite an exact match.

[root at windfarm-gw ~]# rpmbuild -ta fuse-2.7.3glfs10.tar.gz --with 
modules --define "kernel 2.6.9-78.0.8.EL-smp"

RPM build errors:
    File not found: 
    File not found: 

And, rpmbuild -ta fuse-2.7.3glfs10.tar.gz --with modules --define 
"kernel 2.6.9-78.0.8.EL-smp-x86_64"

RPM build errors:
    File not found: 
    File not found: 

What should I try next?

-- Matt

More information about the Gluster-users mailing list