Git Product home page Git Product logo

Comments (7)

gianlucaborello avatar gianlucaborello commented on July 30, 2024

Hi,

So the in-tree build is a big no-no as the cmake's automatically generated Makefile will overwrite the one from the driver, out-of-tree build is the way to go.

For your problem, you just need to install the kernel headers. In my case, starting from a fresh OpenSUSE AMI, this will do it:

zypper install kernel-ec2-devel

You might have to use kernel-devel instead of kernel-ec2-devel, but that's the idea, the package will create you the right symlink in /lib/modules/$(uname -r)/build.

Also, make sure you're using the latest available kernel version because kernel and kernel-devel packages must match version.

Feel free to reopen if you have other issues.

from sysdig.

richmoore avatar richmoore commented on July 30, 2024

I had the kernel headers installed. The problem is that the 'build' subdirectory doesn't exist.

from sysdig.

richmoore avatar richmoore commented on July 30, 2024

I don't seem to have the rights to reopen the issue, btw.

from sysdig.

gianlucaborello avatar gianlucaborello commented on July 30, 2024

That's definitely strange, it just worked on mine, so I suspect there's something else:

Please paste the output for

uname -a
ls /lib/modules
ls /usr/src

Thanks

from sysdig.

richmoore avatar richmoore commented on July 30, 2024

Here you go:

rich@monster:/src/sysdig> uname -a
Linux monster.site 3.7.10-1.1-desktop #1 SMP PREEMPT Thu Feb 28 15:06:29 UTC 2013 (82d3f21) x86_64 x86_64 x86_64 GNU/Linux
rich@monster:
/src/sysdig> ls /lib/modules
3.7.10-1.1-desktop 3.7.10-1.28-desktop 3.7.7-1.2-desktop
rich@monster:/src/sysdig> ls /usr/src
linux linux-3.7.10-1.28 linux-3.7.10-1.28-obj linux-obj packages
rich@monster:
/src/sysdig> ls -l /usr/src
total 16
lrwxrwxrwx 1 root root 17 Apr 4 13:53 linux -> linux-3.7.10-1.28
drwxr-xr-x 23 root root 4096 Apr 4 13:53 linux-3.7.10-1.28
drwxr-xr-x 3 root root 4096 Apr 4 13:53 linux-3.7.10-1.28-obj
drwxr-xr-x 3 root root 4096 Apr 4 13:53 linux-obj
drwxr-xr-x 8 root root 4096 Mar 6 2013 packages

from sysdig.

gianlucaborello avatar gianlucaborello commented on July 30, 2024

Yeah, that's what I suspected, you're running 3.7.10-1.1-desktop but you only have installed kernel headers for linux-3.7.10-1.28, so your chances are:

  1. Upgrade your running kernel to linux-3.7.10-1.28
  2. Downgrade your kernel-headers package to 3.7.10-1.1 (not sure the exact command line as I'm not a big OpenSUSE user myself)

Let me know if it works after these steps.

from sysdig.

richmoore avatar richmoore commented on July 30, 2024

Yep, that was it. I've installed the older kernel headers and it's now built fine. Thanks for the help!

from sysdig.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.