LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 01-02-2006, 11:51 AM   #1
dittohead
Member
 
Registered: Jul 2003
Location: /dev/random
Distribution: Ubuntu 5.10, Fedora Core 4, Gentoo
Posts: 62

Rep: Reputation: 15
Streamzap remote and LIRC rpmbuild erroring out


I know this may or may not be the right place to post this, I haven't been in here in a long time

My brother and I are building a MythTV based off of Fedora Core 4. I installed LIRC and the LIRC kernel modules assuming that it would have the drivers for my Streamzap IR Remote. Well it didn't. Some googling found the answer was an easy one, just uninstall the current RPMs and download the SRPM. Then do the following:

# rpmbuild --rebuild --with modules --target i686 lirc-0.7.2-1.1.fc4.src.rpm

I downloaded that RPM from FC4 extras.

Great I thought, this should be easy. Not so. Here's the output I got:

[root@mythtv mythtv]# rpmbuild --rebuild --with modules --target i686 lirc-0.7.2-1.1.fc4.src.rpm
Installing lirc-0.7.2-1.1.fc4.src.rpm
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
Building target platforms: i686
Building for target i686
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.29688

# removed non-relevant output...

+ ./configure --build=i686-redhat-linux-gnu --host=i686-redhat-linux-gnu --target=i686-redhat-linux-gnu --program-prefix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/usr/com --mandir=/usr/share/man --infodir=/usr/share/info --disable-dependency-tracking --enable-debug --enable-sandboxed --with-syslog=LOG_DAEMON --with-kerneldir=/usr/src/kernels/2.6.14-1.1653_FC4-i686 --with-moduledir=/lib/modules/2.6.14-1.1653_FC4/extra/lirc --with-driver=any

# removed non-relevant output...

checking for Linux kernel sources... /usr/src/kernels/2.6.14-1.1653_FC4-i686/

# removed non-relevant output...

creating drivers/Makefile
creating drivers/lirc_atiusb/Makefile
creating drivers/lirc_bt829/Makefile
creating drivers/lirc_cmdir/Makefile
creating drivers/lirc_dev/Makefile
creating drivers/lirc_gpio/Makefile
creating drivers/lirc_i2c/Makefile
creating drivers/lirc_igorplugusb/Makefile
creating drivers/lirc_imon/Makefile
creating drivers/lirc_it87/Makefile
creating drivers/lirc_mceusb/Makefile
creating drivers/lirc_mceusb2/Makefile
creating drivers/lirc_parallel/Makefile
creating drivers/lirc_sasem/Makefile
creating drivers/lirc_serial/Makefile
creating drivers/lirc_sir/Makefile
creating drivers/lirc_streamzap/Makefile
creating daemons/Makefile
creating tools/Makefile
creating doc/Makefile
creating doc/man/Makefile
creating config.h

# removed non-relevant output...

make[2]: Entering directory `/usr/src/kernels/2.6.14-1.1653_FC4-i686'
mkdir -p /usr/src/redhat/BUILD/lirc-0.7.2/drivers/lirc_atiusb/.tmp_versions
make -f scripts/Makefile.build obj=/usr/src/redhat/BUILD/lirc-0.7.2/drivers/lirc_atiusb
gcc -m32 -Wp,-MD,/usr/src/redhat/BUILD/lirc-0.7.2/drivers/lirc_atiusb/.lirc_atiusb.o.d -nostdinc -isystem /usr/lib/gcc/i386-redhat-linux/4.0.2/include -D__KERNEL__ -Iinclude -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -ffreestanding -O2 -fomit-frame-pointer -g -pipe -msoft-float -fno-builtin-sprintf -fno-builtin-log2 -fno-builtin-puts -mpreferred-stack-boundary=2 -fno-unit-at-a-time -march=i686 -mtune=pentium4 -mregparm=3 -Iinclude/asm-i386/mach-default -Wdeclaration-after-statement -Wno-pointer-sign -DIRCTL_DEV_MAJOR=61 -DEXPORT_SYMTAB -DHAVE_CONFIG_H -I. -I. -I../.. -I /usr/src/redhat/BUILD/lirc-0.7.2/drivers/lirc_atiusb/../.. -I /usr/src/kernels/2.6.14-1.1653_FC4-i686//include/ -DMODULE -DKBUILD_BASENAME=lirc_atiusb -DKBUILD_MODNAME=lirc_atiusb -c -o /usr/src/redhat/BUILD/lirc-0.7.2/drivers/lirc_atiusb/.tmp_lirc_atiusb.o /usr/src/redhat/BUILD/lirc-0.7.2/drivers/lirc_atiusb/lirc_atiusb.c
/usr/src/redhat/BUILD/lirc-0.7.2/drivers/lirc_atiusb/lirc_atiusb.c: In function 'send_packet':
/usr/src/redhat/BUILD/lirc-0.7.2/drivers/lirc_atiusb/lirc_atiusb.c:276: error: 'URB_ASYNC_UNLINK' undeclared (first use in this function)
/usr/src/redhat/BUILD/lirc-0.7.2/drivers/lirc_atiusb/lirc_atiusb.c:276: error: (Each undeclared identifier is reported only once
/usr/src/redhat/BUILD/lirc-0.7.2/drivers/lirc_atiusb/lirc_atiusb.c:276: error: for each function it appears in.)
/usr/src/redhat/BUILD/lirc-0.7.2/drivers/lirc_atiusb/lirc_atiusb.c: In function 'set_use_dec':
/usr/src/redhat/BUILD/lirc-0.7.2/drivers/lirc_atiusb/lirc_atiusb.c:357: error: 'URB_ASYNC_UNLINK' undeclared (first use in this function)
/usr/src/redhat/BUILD/lirc-0.7.2/drivers/lirc_atiusb/lirc_atiusb.c: In function 'usb_remote_recv':
/usr/src/redhat/BUILD/lirc-0.7.2/drivers/lirc_atiusb/lirc_atiusb.c:612: error: 'URB_ASYNC_UNLINK' undeclared (first use in this function)
/usr/src/redhat/BUILD/lirc-0.7.2/drivers/lirc_atiusb/lirc_atiusb.c: In function 'usb_remote_send':
/usr/src/redhat/BUILD/lirc-0.7.2/drivers/lirc_atiusb/lirc_atiusb.c:675: error: 'URB_ASYNC_UNLINK' undeclared (first use in this function)
/usr/src/redhat/BUILD/lirc-0.7.2/drivers/lirc_atiusb/lirc_atiusb.c: In function 'free_in_endpt':
/usr/src/redhat/BUILD/lirc-0.7.2/drivers/lirc_atiusb/lirc_atiusb.c:723: error: 'URB_ASYNC_UNLINK' undeclared (first use in this function)
/usr/src/redhat/BUILD/lirc-0.7.2/drivers/lirc_atiusb/lirc_atiusb.c: In function 'free_out_endpt':
/usr/src/redhat/BUILD/lirc-0.7.2/drivers/lirc_atiusb/lirc_atiusb.c:817: error: 'URB_ASYNC_UNLINK' undeclared (first use in this function)
make[3]: *** [/usr/src/redhat/BUILD/lirc-0.7.2/drivers/lirc_atiusb/lirc_atiusb.o] Error 1
make[2]: *** [_module_/usr/src/redhat/BUILD/lirc-0.7.2/drivers/lirc_atiusb] Error 2
make[2]: Leaving directory `/usr/src/kernels/2.6.14-1.1653_FC4-i686'
make[1]: *** [lirc_atiusb.o] Error 2
make[1]: Leaving directory `/usr/src/redhat/BUILD/lirc-0.7.2/drivers/lirc_atiusb'
make: *** [all-recursive] Error 1
make: Leaving directory `/usr/src/redhat/BUILD/lirc-0.7.2/drivers'
error: Bad exit status from /var/tmp/rpm-tmp.29688 (%build)


RPM build errors:
user mockbuild does not exist - using root
group mockbuild does not exist - using root
user mockbuild does not exist - using root
group mockbuild does not exist - using root
user mockbuild does not exist - using root
group mockbuild does not exist - using root
user mockbuild does not exist - using root
group mockbuild does not exist - using root
user mockbuild does not exist - using root
group mockbuild does not exist - using root
user mockbuild does not exist - using root
group mockbuild does not exist - using root
user mockbuild does not exist - using root
group mockbuild does not exist - using root
user mockbuild does not exist - using root
group mockbuild does not exist - using root
Bad exit status from /var/tmp/rpm-tmp.29688 (%build)
[root@mythtv mythtv]#


I also tried axel's latest ATrpm:

[root@mythtv Desktop]# rpmbuild --rebuild --with modules --target i686 lirc-0.8.0-52_cvs20051114.rhfc4.at.src.rpm
Installing lirc-0.8.0-52_cvs20051114.rhfc4.at.src.rpm
Building target platforms: i686
Building for target i686
error: line 1: Unknown tag: %kmdl lirc


Thanks for any help, it's just slightly strange to me that ther streamzap usb driver isn't built and included in the standard RPM...is there any sane reason for this?
 
Old 01-02-2006, 01:05 PM   #2
dittohead
Member
 
Registered: Jul 2003
Location: /dev/random
Distribution: Ubuntu 5.10, Fedora Core 4, Gentoo
Posts: 62

Original Poster
Rep: Reputation: 15
OK, I got it working to a degree. I was able to change the spec file so it only built the streamzap remote, then I used the -bb command in place of the --rebuild and used the spec file found in /usr/src/redhat/SPECS/lirc.spec instead of the src.rpm.

This built a nice small package, but it doesn't work. It complains that it requires lirc-0.7.2 to be installed. I try to install the build I made of it but that complains that it's blocked by lib-lirc 0.8.cvs...

My problem is that removing lib-lirc removes all packages that require it, which unfortunetly removes mplayer and mythtv. Those two are built with 0.8-cvs. I wouldn't mind using the source rpm for the .8-cvs of lirc but as I stated in the first post that doesn't work.

I uninstalled lirc-lib along with mythtv and mplayer. I then installed lirc and the kernel module I built and for some strange reason when I yum install mythtv-suite it's not asking to install lirc-lib...I thought it needed that...

The kernel module worked just fine and lirc is working, so I'll give the install of mythtv a go and see if lirc works with it.
 
Old 01-02-2006, 04:35 PM   #3
dittohead
Member
 
Registered: Jul 2003
Location: /dev/random
Distribution: Ubuntu 5.10, Fedora Core 4, Gentoo
Posts: 62

Original Poster
Rep: Reputation: 15
OK, everything seems to be working now, I installed lib-lirc-0.8.0-cvs after installing lirc and mythtv.

Rather circuitous way of doing things if I do say so myself, I only wish Axel had built the Streamzap drivers along with all the others in the original package.

I hope this helps anyone else who has this particular problem.
 
  


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 - two remote controls conflicting... Csigaa Linux - Hardware 3 11-20-2005 04:59 AM
how to use TV IR remote with FC4 (LIRC?) alesz Linux - Hardware 4 10-01-2005 11:23 AM
StreamZap Remote sall Linux - Hardware 1 08-13-2005 12:35 PM
How to get LIRC with StreamZap Remote adrenaline_NZ Linux - Software 1 07-24-2005 11:10 PM
Lirc remote control SchwipSchwap Linux - Newbie 6 09-23-2003 04:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 09:58 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