LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-09-2006, 10:41 PM   #1
djgerbavore
Member
 
Registered: Jun 2004
Location: PA
Distribution: Fedora (latest git kernel)
Posts: 458

Rep: Reputation: 30
troubles compiling lirc-0.8.0


Hello,

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!!!!!!!
 
Old 10-10-2006, 03:15 PM   #2
yuchai
Member
 
Registered: Jan 2005
Location: New York, NY
Distribution: Slackware 13.0
Posts: 56

Rep: Reputation: 15
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.

http://www.mythtv.org/docs/mythtv-HOWTO-8.html

Last edited by yuchai; 10-10-2006 at 03:18 PM.
 
Old 10-10-2006, 03:44 PM   #3
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
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.

Code:
locate linux/devfs_fs_kernel
/usr/include/linux/devfs_fs_kernel.h
/usr/src/linux-2.6.17-1-smp/debian/linux-headers-2.6.17-ck1-1-smp/usr/src/linux-headers-2.6.17-ck1-1-smp/include/linux/devfs_fs_kernel.h
/usr/src/linux-2.6.17-1-smp/include/linux/devfs_fs_kernel.h
/usr/src/linux-headers-2.6.17-ck1-1-smp/include/linux/devfs_fs_kernel.h

uname -r
2.6.18-ck1-smp
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 ...
 
Old 10-10-2006, 04:06 PM   #4
tuxrules
Senior Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 -current
Posts: 1,158

Rep: Reputation: 62
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.
 
Old 10-11-2006, 10:56 PM   #5
djgerbavore
Member
 
Registered: Jun 2004
Location: PA
Distribution: Fedora (latest git kernel)
Posts: 458

Original Poster
Rep: Reputation: 30
HappyTux I took your advice and downloaded 2.6.17 kernel.

when i run slocate command I see the devfs_fs_kernel.h that I'm missing.
Code:
root@black_magic:/usr/src/lirc# !slocate
slocate devfs_fs_kernel.h
/usr/src/linux-2.4.31/include/linux/devfs_fs_kernel.h
/usr/src/linux-2.6.17/include/linux/devfs_fs_kernel.h
/usr/include/linux/devfs_fs_kernel.h
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
Code:
/* DevFS header */
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,0)
#include <linux/devfs_fs_kernel.h>
#endif
Am I doing something wrong?? Thanks for all your help and patiences.

djgerbavor3
 
Old 10-11-2006, 11:27 PM   #6
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally Posted by djgerbavore
HappyTux I took your advice and downloaded 2.6.17 kernel.

when i run slocate command I see the devfs_fs_kernel.h that I'm missing.
Code:
root@black_magic:/usr/src/lirc# !slocate
slocate devfs_fs_kernel.h
/usr/src/linux-2.4.31/include/linux/devfs_fs_kernel.h
/usr/src/linux-2.6.17/include/linux/devfs_fs_kernel.h
/usr/include/linux/devfs_fs_kernel.h
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
Code:
/* DevFS header */
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,0)
#include <linux/devfs_fs_kernel.h>
#endif
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.
 
Old 10-12-2006, 07:41 AM   #7
djgerbavore
Member
 
Registered: Jun 2004
Location: PA
Distribution: Fedora (latest git kernel)
Posts: 458

Original Poster
Rep: Reputation: 30
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.
 
Old 10-12-2006, 11:26 AM   #8
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally Posted by djgerbavore
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Lirc compiling fraz Linux - Software 0 06-07-2005 10:07 AM
Compiling LIRC on RH 8 Fennek Linux - Software 3 06-02-2005 03:21 PM
compiling lirc on fc2 gfem Linux - Software 1 11-17-2004 06:15 PM
LIRC and Compiling my Kernel phekno Linux - Software 4 03-15-2004 02:23 AM
Compiling LIRC Aeiri Linux - Software 0 02-27-2004 09:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration