SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I got mythtv up and running, and now I'm tryign to get my Remote setup and working next. I have a haupaugge 150 card. I read that I need to compile and setup the Linux Infrared Remote Control. I downloaded the lasted source. (lirc-.0.8.0). I also have the new 2.6.18 kernel. I have all the Infrared Drivers build as modules. But when i do a make I get the following output:
Code:
root@black_magic:/usr/src/lirc# make
make all-recursive
make[1]: Entering directory `/usr/src/lirc'
Making all in drivers
make[2]: Entering directory `/usr/src/lirc/drivers'
Making all in lirc_dev
make[3]: Entering directory `/usr/src/lirc/drivers/lirc_dev'
mv Makefile Makefile.automake
cp ../Makefile.kernel Makefile
make -C /lib/modules/2.6.18/build/ SUBDIRS=/usr/src/lirc/drivers/lirc_dev modules \
KBUILD_VERBOSE=1
make[4]: Entering directory `/usr/src/linux-2.6.18'
test -e include/linux/autoconf.h -a -e include/config/auto.conf || ( \
echo; \
echo " ERROR: Kernel configuration is invalid."; \
echo " include/linux/autoconf.h or include/config/auto.conf are missing."; \
echo " Run 'make oldconfig && make prepare' on kernel src to fix it."; \
echo; \
/bin/false)
mkdir -p /usr/src/lirc/drivers/lirc_dev/.tmp_versions
rm -f /usr/src/lirc/drivers/lirc_dev/.tmp_versions/*
make -f scripts/Makefile.build obj=/usr/src/lirc/drivers/lirc_dev
gcc -m32 -Wp,-MD,/usr/src/lirc/drivers/lirc_dev/.lirc_dev.o.d -nostdinc -isystem /usr/lib/gcc-lib/i486-slackware-linux/3.3.6/include -D__KERNEL__ -Iinclude -include include/linux/autoconf.h -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Os -pipe -msoft-float -mpreferred-stack-boundary=2 -march=i486 -ffreestanding -Iinclude/asm-i386/mach-default -fomit-frame-pointer -DIRCTL_DEV_MAJOR=61 -DEXPORT_SYMTAB -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/src/lirc/drivers/lirc_dev/../.. -I/lib/modules/2.6.18/build//include/ -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(lirc_dev)" -D"KBUILD_MODNAME=KBUILD_STR(lirc_dev)" -c -o /usr/src/lirc/drivers/lirc_dev/lirc_dev.o /usr/src/lirc/drivers/lirc_dev/lirc_dev.c
/usr/src/lirc/drivers/lirc_dev/lirc_dev.c:54:35: linux/devfs_fs_kernel.h: No such file or directory
/usr/src/lirc/drivers/lirc_dev/lirc_dev.c: In function `cleanup':
/usr/src/lirc/drivers/lirc_dev/lirc_dev.c:132: warning: implicit declaration of function `devfs_remove'
/usr/src/lirc/drivers/lirc_dev/lirc_dev.c: In function `lirc_register_plugin':
/usr/src/lirc/drivers/lirc_dev/lirc_dev.c:381: warning: implicit declaration of function `devfs_mk_cdev'
make[5]: *** [/usr/src/lirc/drivers/lirc_dev/lirc_dev.o] Error 1
make[4]: *** [_module_/usr/src/lirc/drivers/lirc_dev] Error 2
make[4]: Leaving directory `/usr/src/linux-2.6.18'
make[3]: *** [lirc_dev.o] Error 2
make[3]: Leaving directory `/usr/src/lirc/drivers/lirc_dev'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/lirc/drivers'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/lirc'
make: *** [all] Error 2
I'm not sure if this is a kernel issue or a dependencies issue. I looked for a tgz package on linuxpackages.net, but didn't find any. Can some one point me in the right direction or provide some insight. Thanks.
djgerbavor3
P.S. Once i get this up and running, I'm going to write a nice PVR setup guide, because the last two day I learned alot and think it would be helpful for other people. Because there isn't a good slackware PVR setup guide out there and there should be!!!!!!!
I'm no expert in this but it seems that it's having problems with locating the kernel headers.
FYI if you're using the mythtv package from linuxpackages.net - I don't think native LIRC support is compiled in. Check out the following link to see what the implications of that is.
Personally I recompiled the package to enable that function - makes setting up the remote that much easier.
You need to either get a source package that does not look for the devfs_fs_kernel.h file when compiling or drop back to a 2.6.17 kernel which still has that file in it.
As you can see it is in the 2.6.17 kernel tree/headers I compiled but not in the 2.6.18 I run now. BTW I don't really hold out much hope for getting this to compile anyways if you need the lirc_gpio module for the remote, now it has been a couple of months since I last tried the SVN 0.8 source but this is where the source has been failing on me since the version 0.7.?? something you never know though perhaps things have changed ...
I compiled lirc cvs version with slack 11 (both kernel and headers version 2.6.17.13) a few days back. It compiled for me cleanly and running fine.
Try compiling cvs version and see if it works for you. BTW, i'm using it PVR-350 and external channel changers so I'm using lirc_i2c and lirc_serial modules.
the linux directory in the above figure is a symbolic link to the 2.6.17 kernel.
However when i run make I get the same following error:
Code:
make all-recursive
make[1]: Entering directory `/usr/src/lirc'
Making all in drivers
make[2]: Entering directory `/usr/src/lirc/drivers'
Making all in lirc_dev
make[3]: Entering directory `/usr/src/lirc/drivers/lirc_dev'
Makefile:8: **************************************************
Makefile:8: *** Makefile trick not undone, trying to recover *
Makefile:8: **************************************************
mv Makefile.automake Makefile
make all
make[4]: Entering directory `/usr/src/lirc/drivers/lirc_dev'
mv Makefile Makefile.automake
cp ../Makefile.kernel Makefile
make -C /lib/modules/2.6.18/build/ SUBDIRS=/usr/src/lirc/drivers/lirc_dev modules \
KBUILD_VERBOSE=1
make[5]: Entering directory `/usr/src/linux-2.6.18'
test -e include/linux/autoconf.h -a -e include/config/auto.conf || ( \
echo; \
echo " ERROR: Kernel configuration is invalid."; \
echo " include/linux/autoconf.h or include/config/auto.conf are missing."; \
echo " Run 'make oldconfig && make prepare' on kernel src to fix it."; \
echo; \
/bin/false)
mkdir -p /usr/src/lirc/drivers/lirc_dev/.tmp_versions
rm -f /usr/src/lirc/drivers/lirc_dev/.tmp_versions/*
make -f scripts/Makefile.build obj=/usr/src/lirc/drivers/lirc_dev
gcc -m32 -Wp,-MD,/usr/src/lirc/drivers/lirc_dev/.lirc_dev.o.d -nostdinc -isystem /usr/lib/gcc-lib/i486-slackware-linux/3.3.6/include -D__KERNEL__ -Iinclude -include include/linux/autoconf.h -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Os -pipe -msoft-float -mpreferred-stack-boundary=2 -march=i486 -ffreestanding -Iinclude/asm-i386/mach-default -fomit-frame-pointer -DIRCTL_DEV_MAJOR=61 -DEXPORT_SYMTAB -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/src/lirc/drivers/lirc_dev/../.. -I/lib/modules/2.6.18/build//include/ -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(lirc_dev)" -D"KBUILD_MODNAME=KBUILD_STR(lirc_dev)" -c -o /usr/src/lirc/drivers/lirc_dev/lirc_dev.o /usr/src/lirc/drivers/lirc_dev/lirc_dev.c
/usr/src/lirc/drivers/lirc_dev/lirc_dev.c:54:35: linux/devfs_fs_kernel.h: No such file or directory
/usr/src/lirc/drivers/lirc_dev/lirc_dev.c: In function `cleanup':
/usr/src/lirc/drivers/lirc_dev/lirc_dev.c:132: warning: implicit declaration of function `devfs_remove'
/usr/src/lirc/drivers/lirc_dev/lirc_dev.c: In function `lirc_register_plugin':
/usr/src/lirc/drivers/lirc_dev/lirc_dev.c:381: warning: implicit declaration of function `devfs_mk_cdev'
make[6]: *** [/usr/src/lirc/drivers/lirc_dev/lirc_dev.o] Error 1
make[5]: *** [_module_/usr/src/lirc/drivers/lirc_dev] Error 2
make[5]: Leaving directory `/usr/src/linux-2.6.18'
make[4]: *** [lirc_dev.o] Error 2
make[4]: Leaving directory `/usr/src/lirc/drivers/lirc_dev'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/usr/src/lirc/drivers/lirc_dev'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/lirc/drivers'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/lirc'
make: *** [all] Error 2
So i tried poking around in the Makefile, and didn't have real much luck. I've tried to change the includedir and other variables, but no much luck. d
I'm not sure why the complier can't find this find. (Note: i always run the make clean, before I run make)
The file lirc_dev.c line 54 is a basic #include statement
the linux directory in the above figure is a symbolic link to the 2.6.17 kernel.
However when i run make I get the same following error:
Code:
make all-recursive
make[1]: Entering directory `/usr/src/lirc'
Making all in drivers
make[2]: Entering directory `/usr/src/lirc/drivers'
Making all in lirc_dev
make[3]: Entering directory `/usr/src/lirc/drivers/lirc_dev'
Makefile:8: **************************************************
Makefile:8: *** Makefile trick not undone, trying to recover *
Makefile:8: **************************************************
mv Makefile.automake Makefile
make all
make[4]: Entering directory `/usr/src/lirc/drivers/lirc_dev'
mv Makefile Makefile.automake
cp ../Makefile.kernel Makefile
make -C /lib/modules/2.6.18/build/ SUBDIRS=/usr/src/lirc/drivers/lirc_dev modules \
KBUILD_VERBOSE=1
make[5]: Entering directory `/usr/src/linux-2.6.18'
test -e include/linux/autoconf.h -a -e include/config/auto.conf || ( \
echo; \
echo " ERROR: Kernel configuration is invalid."; \
echo " include/linux/autoconf.h or include/config/auto.conf are missing."; \
echo " Run 'make oldconfig && make prepare' on kernel src to fix it."; \
echo; \
/bin/false)
mkdir -p /usr/src/lirc/drivers/lirc_dev/.tmp_versions
rm -f /usr/src/lirc/drivers/lirc_dev/.tmp_versions/*
make -f scripts/Makefile.build obj=/usr/src/lirc/drivers/lirc_dev
gcc -m32 -Wp,-MD,/usr/src/lirc/drivers/lirc_dev/.lirc_dev.o.d -nostdinc -isystem /usr/lib/gcc-lib/i486-slackware-linux/3.3.6/include -D__KERNEL__ -Iinclude -include include/linux/autoconf.h -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Os -pipe -msoft-float -mpreferred-stack-boundary=2 -march=i486 -ffreestanding -Iinclude/asm-i386/mach-default -fomit-frame-pointer -DIRCTL_DEV_MAJOR=61 -DEXPORT_SYMTAB -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/src/lirc/drivers/lirc_dev/../.. -I/lib/modules/2.6.18/build//include/ -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(lirc_dev)" -D"KBUILD_MODNAME=KBUILD_STR(lirc_dev)" -c -o /usr/src/lirc/drivers/lirc_dev/lirc_dev.o /usr/src/lirc/drivers/lirc_dev/lirc_dev.c
/usr/src/lirc/drivers/lirc_dev/lirc_dev.c:54:35: linux/devfs_fs_kernel.h: No such file or directory
/usr/src/lirc/drivers/lirc_dev/lirc_dev.c: In function `cleanup':
/usr/src/lirc/drivers/lirc_dev/lirc_dev.c:132: warning: implicit declaration of function `devfs_remove'
/usr/src/lirc/drivers/lirc_dev/lirc_dev.c: In function `lirc_register_plugin':
/usr/src/lirc/drivers/lirc_dev/lirc_dev.c:381: warning: implicit declaration of function `devfs_mk_cdev'
make[6]: *** [/usr/src/lirc/drivers/lirc_dev/lirc_dev.o] Error 1
make[5]: *** [_module_/usr/src/lirc/drivers/lirc_dev] Error 2
make[5]: Leaving directory `/usr/src/linux-2.6.18'
make[4]: *** [lirc_dev.o] Error 2
make[4]: Leaving directory `/usr/src/lirc/drivers/lirc_dev'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/usr/src/lirc/drivers/lirc_dev'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/lirc/drivers'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/lirc'
make: *** [all] Error 2
So i tried poking around in the Makefile, and didn't have real much luck. I've tried to change the includedir and other variables, but no much luck. d
I'm not sure why the complier can't find this find. (Note: i always run the make clean, before I run make)
The file lirc_dev.c line 54 is a basic #include statement
Am I doing something wrong?? Thanks for all your help and patiences.
djgerbavor3
When you say download do you mean download, compile then install 2.6.17 kernel rebooting using it? I ask because that is still looking in the 2.6.18 directory for the file.
I didn't compile the 2.6.17 kernel, I thought I just needed the source in order to compile lirc, not actually a running 2.6.17 kernel.
Anyways, after I compile the 2.6.17 kernel and compile lirc will I be able to run the lirc modules when running a 2.6.18 kernel?
I didn't compile the 2.6.17 kernel, I thought I just needed the source in order to compile lirc, not actually a running 2.6.17 kernel.
Anyways, after I compile the 2.6.17 kernel and compile lirc will I be able to run the lirc modules when running a 2.6.18 kernel?
Thanks for all your help.
The modules have to be built for the kernel you are running so if you build for running on 2.6.17 that is the kernel they will work on.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.