asciiman
asked on
Cannot install LIRC on Suse 7.0
I'm trying to instal a remote control in linux. I've tried both lirc-0.6.6 and lirc-0.7pre2 but they both won't compile on my Suse box. (Both have the same problem)
Here's the output(I've removed my username and replaced it by ***):
linux:/home/***/Installati on/lirc/li rc-0.7.0pr e2 # make
make all-recursive
make[1]: Entering directory `/home/***/Installation/li rc/lirc-0. 7.0pre2'
Making all in drivers
make[2]: Entering directory `/home/***/Installation/li rc/lirc-0. 7.0pre2/dr ivers'
Making all in lirc_dev
make[3]: Entering directory `/home/***/Installation/li rc/lirc-0. 7.0pre2/dr ivers/lirc _dev'
DIR=`pwd`; (cd /usr/src/linux/; make SUBDIRS=$DIR obj-m=lirc_dev.o modules)
/usr/src/linux-2.4.21-99/s cripts/pat hdown.sh: line 4: TOPDIR: parameter null or not set
make[4]: Entering directory `/usr/src/linux-2.4.21-99'
make[4]: *** No rule to make target `lirc_dev.o', needed by `modules'. Stop.
make[4]: Leaving directory `/usr/src/linux-2.4.21-99'
make[3]: *** [lirc_dev.o] Error 2
make[3]: Leaving directory `/home/***/Installation/li rc/lirc-0. 7.0pre2/dr ivers/lirc _dev'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/***/Installation/li rc/lirc-0. 7.0pre2/dr ivers'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/***/Installation/li rc/lirc-0. 7.0pre2'
make: *** [all] Error 2
I've checked that /usr/src/linux-2.4.21-99 exists and is filled with the kernel source. Does anybody know what is going on? I've posted this question to several mailing list without any results.
Here's the output(I've removed my username and replaced it by ***):
linux:/home/***/Installati
make all-recursive
make[1]: Entering directory `/home/***/Installation/li
Making all in drivers
make[2]: Entering directory `/home/***/Installation/li
Making all in lirc_dev
make[3]: Entering directory `/home/***/Installation/li
DIR=`pwd`; (cd /usr/src/linux/; make SUBDIRS=$DIR obj-m=lirc_dev.o modules)
/usr/src/linux-2.4.21-99/s
make[4]: Entering directory `/usr/src/linux-2.4.21-99'
make[4]: *** No rule to make target `lirc_dev.o', needed by `modules'. Stop.
make[4]: Leaving directory `/usr/src/linux-2.4.21-99'
make[3]: *** [lirc_dev.o] Error 2
make[3]: Leaving directory `/home/***/Installation/li
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/***/Installation/li
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/***/Installation/li
make: *** [all] Error 2
I've checked that /usr/src/linux-2.4.21-99 exists and is filled with the kernel source. Does anybody know what is going on? I've posted this question to several mailing list without any results.
/usr/src/linux-2.4.21-99/s cripts/pat hdown.sh: line 4: TOPDIR: parameter null or not set
what does the pathdown.sh file look like? What version of the kerneal are you running ( uname -a )do you have the same sourcefile?
try this
cd /usr/src/linux
make SUBDIRS=/home/***/Installa tion/lirc/ lirc-0.7.0 pre2/drive rs/lirc_de v obj-m=lirc_dev.o modules
does that give your the same error?>
what does the pathdown.sh file look like? What version of the kerneal are you running ( uname -a )do you have the same sourcefile?
try this
cd /usr/src/linux
make SUBDIRS=/home/***/Installa
does that give your the same error?>
ASKER
khkremer: Yes I am running this as root.
I'm not trying to upgrade... I just want to install it. Lirc is not included with the suse distro.
willy: My kernel is 'linux-2.4.21-99-default' (what uname reports) , but the source is in 'linux-2.4.21-99'
I'll paste the pathdown script in here soon. Hope that'll help. And I'll try your suggestion in the process.
I'm not trying to upgrade... I just want to install it. Lirc is not included with the suse distro.
willy: My kernel is 'linux-2.4.21-99-default' (what uname reports) , but the source is in 'linux-2.4.21-99'
I'll paste the pathdown script in here soon. Hope that'll help. And I'll try your suggestion in the process.
ASKER
khkermer: Correction, it is included in the distro, but it was not installed.
willy: Here's the script:
#!/bin/sh
UP=
DN=${PWD:?}
TP=${TOPDIR:?}
while [ ! $TP/$UP/. -ef $DN ] ;do
UP=`basename $PWD`/$UP
cd ..
if [ "$PWD" = "/" ]; then echo "Lost"; exit 1; fi
done
echo $UP
exit 0
And as for the command:
linux:/usr/src/linux# make SUBDIRS=/home/***/Installa tion/lirc/ lirc-0.7.0 pre2/drive rs/lirc_de v obj-m=lirc_dev.o modules
/usr/src/linux-2.4.21-99/s cripts/pat hdown.sh: line 4: TOPDIR: parameter null or not set
make: *** No rule to make target `lirc_dev.o', needed by `modules'. Stop.
I guess we have found the culprit.
willy: Here's the script:
#!/bin/sh
UP=
DN=${PWD:?}
TP=${TOPDIR:?}
while [ ! $TP/$UP/. -ef $DN ] ;do
UP=`basename $PWD`/$UP
cd ..
if [ "$PWD" = "/" ]; then echo "Lost"; exit 1; fi
done
echo $UP
exit 0
And as for the command:
linux:/usr/src/linux# make SUBDIRS=/home/***/Installa
/usr/src/linux-2.4.21-99/s
make: *** No rule to make target `lirc_dev.o', needed by `modules'. Stop.
I guess we have found the culprit.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Had the same problem with Suse 9.0. The solution was a bit odd. Suse includes the kernel source, but does not store the configuration file in this source. The configure script therefore got out of wack. Therefore you should run:
cp /boot/config-(kernel version) /usr/src/linux/.config
cd /usr/src/linux/
make mrporper
make oldconfig
make depend
Next recompile lirc and everything is fine.
I think we should close this question.
cp /boot/config-(kernel version) /usr/src/linux/.config
cd /usr/src/linux/
make mrporper
make oldconfig
make depend
Next recompile lirc and everything is fine.
I think we should close this question.
Have you considered to upgrade your system to something newer version of SuSE? The problem with old systems like yours is that you cannot upgrade to 9.x in one step, you have to go via 8.x.