Giter Site home page Giter Site logo

Trouble compiling about pommed-light HOT 6 CLOSED

bytbox avatar bytbox commented on July 23, 2024
Trouble compiling

from pommed-light.

Comments (6)

bytbox avatar bytbox commented on July 23, 2024

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.

bytbox avatar bytbox commented on July 23, 2024

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.

clehner avatar clehner commented on July 23, 2024

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.

bytbox avatar bytbox commented on July 23, 2024

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.

clehner avatar clehner commented on July 23, 2024

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.

bytbox avatar bytbox commented on July 23, 2024

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)

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.