Coder Social home page Coder Social logo

Comments (4)

avilella avatar avilella commented on August 13, 2024

Can you apply this command line and retry again?

sudo apt-get install build-essential
make clean
make

On Tue, Aug 2, 2011 at 10:46 AM, OliverColeman
[email protected]
wrote:

Was using this in an earlier kernel without issue, but since upgrading the kernel to 2.6.38-11 I get the following when trying to compile:

oliver@hubert:~/bin/acpi_call$ make
make -C /lib/modules/2.6.38-11-generic/build M=/home/oliver/bin/acpi_call modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.38-11-generic'
 CC [M]  /home/oliver/bin/acpi_call/acpi_call.o
In file included from /usr/src/linux-headers-2.6.38-11-generic/arch/x86/include/asm/percpu.h:44:0,
                from /usr/src/linux-headers-2.6.38-11-generic/arch/x86/include/asm/current.h:5,
                from /usr/src/linux-headers-2.6.38-11-generic/arch/x86/include/asm/processor.h:15,
                from ./include/linux/prefetch.h:14,
                from ./include/linux/list.h:7,
                from ./include/linux/module.h:9,
                from /home/oliver/bin/acpi_call/acpi_call.c:3:
./include/linux/kernel.h:12:20: fatal error: stdarg.h: No such file or directory
compilation terminated.
make[2]: *** [/home/oliver/bin/acpi_call/acpi_call.o] Error 1
make[1]: *** [_module_/home/oliver/bin/acpi_call] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.38-11-generic'
make: *** [default] Error 2

Reply to this email directly or view it on GitHub:
#10

from acpi_call.

OliverColeman avatar OliverColeman commented on August 13, 2024

Wow, speedy response. :)

build-essential was already installed (and I already tried "make clean; make")...

If it makes any difference I'm running Kubuntu 11.04.

from acpi_call.

mkottman avatar mkottman commented on August 13, 2024

I recently updated to Ubuntu 11.04, and I am getting the same error - stdarg.h is missing. I think it has something to do with Ubuntu changing the default paths in /lib and /usr/lib for 32 and 64 bit systems.

This is what I get for locate stdarg.h:

/usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5/include/stdarg.h

Maybe the kernel module Makefile misses this path... However, I tried the DKMS method used in bumblebee and is works, so please try running the bumblebee DKMS script.

from acpi_call.

OliverColeman avatar OliverColeman commented on August 13, 2024

I ended up just using the entire bumblebee package installed from the ppa for ubuntu, works like a charm. :)

from acpi_call.

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.