Skip to content
This repository has been archived by the owner on Feb 26, 2020. It is now read-only.

UTS_RELEASE checking is depricated #8

Closed
nevenchannyy opened this issue Jun 4, 2010 · 3 comments
Closed

UTS_RELEASE checking is depricated #8

nevenchannyy opened this issue Jun 4, 2010 · 3 comments

Comments

@nevenchannyy
Copy link

checking spl license... GPL
checking spl config... all
checking kernel source directory... /usr/src/linux-2.6.34-gentoo
checking kernel build directory... /usr/src/linux-2.6.34-gentoo
checking kernel source version... Not found
configure: error:
*** Cannot determine the version of the linux kernel source.
*** Please prepare the kernel before running this script
behaviourism behlendorf-spl-5c04498 #

@nevenchannyy
Copy link
Author

behaviourism zfs # diff ./a/spl-build.m4 ./b/spl-build.m4
163,169d162
< elif test -r $kernelbuild/include/generated/utsrelease.h &&
< fgrep -q UTS_RELEASE $kernelbuild/include/generated/utsrelease.h; then
<
< kernsrcver=(echo "#include <generated/utsrelease.h>"; < echo "kernsrcver=UTS_RELEASE") | < cpp -I $kernelbuild/include | < grep "^kernsrcver=" | cut -d \" -f 2

@behlendorf
Copy link
Contributor

Thanks for the bug report.

@behlendorf
Copy link
Contributor

Fixed by commit fd921c2

The 2.6.33 kernels moved the UTS_RELEASE definition again. The above commit updates the code to check all three places I know of where your kernel may have defined it.

This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants