Comments (6)
Can you try commenting out line 25 of evdev.c, and see if it compiles then?
(While that should/may fix it, this is a packaging bug on Debian's part, I think. See for example https://bugs.launchpad.net/ubuntu/+source/linux/+bug/933045)
from pommed-light.
Actually, I think it should also be fixed in my Makefile. Can you give me the output of find /usr/include | grep inotify
? Thanks.
from pommed-light.
Yes, with line 25 of evdev.c commented out, the build gets past that point. It goes on to have some other errors:
cel@cel:/usr/local/src/pommed-light$ make
make -C pommed OFLIB=
make[1]: Entering directory `/usr/local/src/pommed-light/pommed'
gcc -g -O2 -Wall -I/usr/include/alsa -DNO_SYS_INOTIFY_H -DNO_SYS_TIMERFD_H -c -o evdev.o evdev.c
evdev.c: In function ‘evdev_inotify_process’:
evdev.c:320:7: warning: implicit declaration of function ‘open’ [-Wimplicit-function-declaration]
gcc -g -O2 -Wall -I/usr/include/alsa -DNO_SYS_INOTIFY_H -DNO_SYS_TIMERFD_H -c -o conffile.o conffile.c
gcc -g -O2 -Wall -I/usr/include/alsa -DNO_SYS_INOTIFY_H -DNO_SYS_TIMERFD_H -c -o audio.o audio.c
gcc -g -O2 -Wall -I/usr/include/alsa -DNO_SYS_INOTIFY_H -DNO_SYS_TIMERFD_H -c -o evloop.o evloop.c
gcc -g -O2 -Wall -I/usr/include/alsa -DNO_SYS_INOTIFY_H -DNO_SYS_TIMERFD_H -c -o power.o power.c
gcc -g -O2 -Wall -I/usr/include/alsa -DNO_SYS_INOTIFY_H -DNO_SYS_TIMERFD_H -c -o beep.o beep.c
gcc -g -O2 -Wall -I/usr/include/alsa -DNO_SYS_INOTIFY_H -DNO_SYS_TIMERFD_H -c -o video.o video.c
gcc -g -O2 -Wall -I/usr/include/alsa -DNO_SYS_INOTIFY_H -DNO_SYS_TIMERFD_H -c -o sysfs_backlight.o sysfs_backlight.c
gcc -g -O2 -Wall -I/usr/include/alsa -DNO_SYS_INOTIFY_H -DNO_SYS_TIMERFD_H -c -o mactel/x1600_backlight.o mactel/x1600_backlight.c
mactel/x1600_backlight.c:40:21: fatal error: pci/pci.h: No such file or directory
compilation terminated.
make[1]: *** [mactel/x1600_backlight.o] Error 1
make[1]: Leaving directory `/usr/local/src/pommed-light/pommed'
make: *** [pommed] Error 2
finding inotify.h:
$ find /usr/include | grep inotify
/usr/include/linux/inotify.h
/usr/include/x86_64-linux-gnu/bits/inotify.h
/usr/include/x86_64-linux-gnu/sys/inotify.h
from pommed-light.
You need to install pciutils, or pciutils-dev, or whatever the debian package is with /usr/include/pci/pci.h.
Do you know why /usr/include/sys/inotify.h is missing in debian? Is it available in another package, or is makefile/autoconf voodoo the officially supported way to pick the right file?
from pommed-light.
Installed libpci-dev and built successfully! Thanks for your help.
I found that /usr/include/sys/inotify.h is provided by libc6-dev-i386. That has a bunch of deps so I am going to leave it uninstalled. I'm not sure what the best way to handle this is.
from pommed-light.
That's the 32-bit version of the header. Weird.
I don't have time to look into this tonight, but I still consider it a bug. I'm leaving this issue open until I can test things properly on debian (sometime over the weekend I suspect), and get it to compile without issue.
Thanks for the report.
from pommed-light.
Related Issues (18)
- Support for MacBookPro 9,2 HOT 2
- acpi_video0 backlight vs. intel_backlight HOT 5
- E: Unknown Apple machine: MacBookAir6,2 HOT 9
- E: Could not map GMA950/GMA965 memory HOT 1
- Add support for MacBookAir 2012 HOT 1
- Unknown apple machine: MacBookPro11,1 HOT 1
- E: Unknown Apple machine: MacBookPro12,1 HOT 5
- core-dump when starting pommed before sound card is ready HOT 2
- Unknown Apple machine: MacBookPro11,5 HOT 3
- Support for MacbookAir7,2 (and 7,1) HOT 10
- Macbook Pro 8,2: keyboard evdev discarded HOT 4
- LCD backlight probe fails on boot but not on restart HOT 4
- Outdated version macro M_VERSION in pommed.h
- Cut a new release? HOT 1
- KBD_TIMEOUT is too low, causes too many CPU usage
- Only works in TTY and only 3 brightness steps HOT 3
- Crash on Macbook Air -08 "Could not map GMA950/GMA965 memory" HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pommed-light.