root@frontend1 SPECS]# rpmbuild -ba --target=i686 lirc72.spec Building target platforms: i686 Building for target i686 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.93046 + umask 022 + cd /usr/src/redhat/BUILD + LANG=C + export LANG + unset DISPLAY + cd /usr/src/redhat/BUILD + rm -rf lirc-0.7.2 + /usr/bin/bzip2 -dc /usr/src/redhat/SOURCES/lirc-0.7.2.tar.bz2 + tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + cd lirc-0.7.2 ++ /usr/bin/id -u + '[' 0 = 0 ']' + /bin/chown -Rhf root . ++ /usr/bin/id -u + '[' 0 = 0 ']' + /bin/chgrp -Rhf root . + /bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/bin/perl -pi -e 's|^CFLAGS="-O2 -g -Wall"|CFLAGS="\$CFLAGS -Wall"|' configure + chmod 644 contrib/irman2lirc contrib/lirc.debian contrib/lirc.m4 contrib/lirc.redhat contrib/lirc.rules contrib/lirc.suse contrib/lirc.suse6.2 contrib/lirc.suse7.1 contrib/lircd.conf contrib/lircmd.conf contrib/lircrc contrib/lircs contrib/sendxevent.c + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.93046 + umask 022 + cd /usr/src/redhat/BUILD + cd lirc-0.7.2 + LANG=C + export LANG + unset DISPLAY + CFLAGS='-O2 -g -pipe -m32 -march=i686 -mtune=pentium4' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -m32 -march=i686 -mtune=pentium4' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -m32 -march=i686 -mtune=pentium4' + export FFLAGS ++ find . -name config.guess -o -name config.sub + for i in '$(find . -name config.guess -o -name config.sub)' ++ basename ./config.sub + '[' -f /usr/lib/rpm/redhat/config.sub ']' + /bin/rm -f ./config.sub ++ basename ./config.sub + /bin/cp -fv /usr/lib/rpm/redhat/config.sub ./config.sub `/usr/lib/rpm/redhat/config.sub' -> `./config.sub' + for i in '$(find . -name config.guess -o -name config.sub)' ++ basename ./config.guess + '[' -f /usr/lib/rpm/redhat/config.guess ']' + /bin/rm -f ./config.guess ++ basename ./config.guess + /bin/cp -fv /usr/lib/rpm/redhat/config.guess ./config.guess `/usr/lib/rpm/redhat/config.guess' -> `./config.guess' + ./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 --with-syslog=LOG_DAEMON --enable-sandboxed --enable-debug --disable-dependency-tracking --with-driver=any creating cache ./config.cache checking for a BSD compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for mawk... no checking for gawk... gawk checking whether make sets ${MAKE}... yes checking for gcc... gcc checking whether the C compiler (gcc -O2 -g -pipe -m32 -march=i686 -mtune=pentium4 -Wall ) works... yes checking whether the C compiler (gcc -O2 -g -pipe -m32 -march=i686 -mtune=pentium4 -Wall ) is a cross-compiler... no checking whether we are using GNU C... yes checking whether gcc accepts -g... yes checking for style of include used by make... GNU checking dependency style of gcc... none checking for a BSD compatible install... /usr/bin/install -c checking whether make sets ${MAKE}... (cached) yes checking for mknod... /bin/mknod checking for mkfifo... /usr/bin/mkfifo checking for depmod... /sbin/depmod checking for libusb-config... /usr/bin/libusb-config checking whether ln -s works... yes checking for Cygwin environment... no checking for mingw32 environment... no checking how to run the C preprocessor... gcc -E checking host system type... i686-redhat-linux-gnu checking build system type... i686-redhat-linux-gnu checking for ld used by GCC... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for /usr/bin/ld option to reload object files... -r checking for BSD-compatible nm... /usr/bin/nm -B checking for a sed that does not truncate output... /bin/sed checking how to recognise dependent libraries... pass_all checking for object suffix... o checking for executable suffix... no checking command to parse /usr/bin/nm -B output... ok checking for dlfcn.h... yes checking for ranlib... ranlib checking for strip... strip checking for objdir... .libs checking for gcc option to produce PIC... -fPIC checking if gcc PIC flag -fPIC works... yes checking if gcc static flag -static works... yes checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.lo... yes checking if gcc supports -fno-rtti -fno-exceptions... yes checking whether the linker (/usr/bin/ld) supports shared libraries... yes checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking dynamic linker characteristics... GNU/Linux ld.so checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... yes checking whether -lc should be explicitly linked in... no creating libtool checking for ANSI C header files... yes checking whether time.h and sys/time.h may both be included... yes checking for fcntl.h... yes checking for limits.h... yes checking for sys/ioctl.h... yes checking for sys/time.h... yes checking for syslog.h... yes checking for unistd.h... yes checking for working const... yes checking for inline... inline checking for off_t... yes checking for pid_t... yes checking for size_t... yes checking whether struct tm is in sys/time.h or time.h... time.h checking return type of signal handlers... void checking for vprintf... yes checking for gethostname... yes checking for gettimeofday... yes checking for mkfifo... yes checking for select... yes checking for socket... yes checking for strdup... yes checking for strerror... yes checking for strtoul... yes checking for snprintf... yes checking for strsep... yes checking for vsyslog... yes checking for daemon... yes checking for forkpty... no checking for forkpty in -lutil... yes checking for vga.h... no checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include checking for dnet_ntoa in -ldnet... no checking for dnet_ntoa in -ldnet_stub... no checking for gethostbyname... yes checking for connect... yes checking for remove... yes checking for shmat... yes checking for IceConnectionNumber in -lICE... yes checking for getopt_long... yes checking for mktemp... yes checking for Linux kernel sources... /usr/src/linux/ checking for which drivers can be installed on this system... checking for caraca_init in -lcaraca_client... no checking for ir_strerror in -lirman... no checking for ir_strerror in -lirman_sw... no checking for portaudio.h... yes checking for Pa_Initialize in -lportaudio... yes checking for alsa/asoundlib.h... yes checking for snd_pcm_open in -lasound... yes checking for ALSA SB RC hwdep support... no checking for scsi/sg.h... yes checking for linux/input.h... yes checking for sys/soundcard.h... yes updating cache ./config.cache creating ./config.status creating Makefile 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 All kernel mdoules will be built. Now enter 'make' and 'make install' to compile and install the package. + make make all-recursive [root@frontend1 SPECS]# rpmbuild -ba --target=i686 lirc72.spec Building target platforms: i686 Building for target i686 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.30193 + umask 022 + cd /usr/src/redhat/BUILD + LANG=C + export LANG + unset DISPLAY + cd /usr/src/redhat/BUILD + rm -rf lirc-0.7.2 + /usr/bin/bzip2 -dc /usr/src/redhat/SOURCES/lirc-0.7.2.tar.bz2 + tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + cd lirc-0.7.2 ++ /usr/bin/id -u + '[' 0 = 0 ']' + /bin/chown -Rhf root . ++ /usr/bin/id -u + '[' 0 = 0 ']' + /bin/chgrp -Rhf root . + /bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/bin/perl -pi -e 's|^CFLAGS="-O2 -g -Wall"|CFLAGS="\$CFLAGS -Wall"|' configure + chmod 644 contrib/irman2lirc contrib/lirc.debian contrib/lirc.m4 contrib/lirc.redhat contrib/lirc.rules contrib/lirc.suse contrib/lirc.suse6.2 contrib/lirc.suse7.1 contrib/lircd.conf contrib/lircmd.conf contrib/lircrc contrib/lircs contrib/sendxevent.c + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.30193 + umask 022 + cd /usr/src/redhat/BUILD + cd lirc-0.7.2 + LANG=C + export LANG + unset DISPLAY + CFLAGS='-O2 -g -pipe -m32 -march=i686 -mtune=pentium4' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -m32 -march=i686 -mtune=pentium4' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -m32 -march=i686 -mtune=pentium4' + export FFLAGS ++ find . -name config.guess -o -name config.sub + for i in '$(find . -name config.guess -o -name config.sub)' ++ basename ./config.sub + '[' -f /usr/lib/rpm/redhat/config.sub ']' + /bin/rm -f ./config.sub ++ basename ./config.sub + /bin/cp -fv /usr/lib/rpm/redhat/config.sub ./config.sub `/usr/lib/rpm/redhat/config.sub' -> `./config.sub' + for i in '$(find . -name config.guess -o -name config.sub)' ++ basename ./config.guess + '[' -f /usr/lib/rpm/redhat/config.guess ']' + /bin/rm -f ./config.guess ++ basename ./config.guess + /bin/cp -fv /usr/lib/rpm/redhat/config.guess ./config.guess `/usr/lib/rpm/redhat/config.guess' -> `./config.guess' + ./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 --with-syslog=LOG_DAEMON --enable-sandboxed --enable-debug --disable-dependency-tracking --with-driver=any creating cache ./config.cache checking for a BSD compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for mawk... no checking for gawk... gawk checking whether make sets ${MAKE}... yes checking for gcc... gcc checking whether the C compiler (gcc -O2 -g -pipe -m32 -march=i686 -mtune=pentium4 -Wall ) works... yes checking whether the C compiler (gcc -O2 -g -pipe -m32 -march=i686 -mtune=pentium4 -Wall ) is a cross-compiler... no checking whether we are using GNU C... yes checking whether gcc accepts -g... yes checking for style of include used by make... GNU checking dependency style of gcc... none checking for a BSD compatible install... /usr/bin/install -c checking whether make sets ${MAKE}... (cached) yes checking for mknod... /bin/mknod checking for mkfifo... /usr/bin/mkfifo checking for depmod... /sbin/depmod checking for libusb-config... /usr/bin/libusb-config checking whether ln -s works... yes checking for Cygwin environment... no checking for mingw32 environment... no checking how to run the C preprocessor... gcc -E checking host system type... i686-redhat-linux-gnu checking build system type... i686-redhat-linux-gnu checking for ld used by GCC... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for /usr/bin/ld option to reload object files... -r checking for BSD-compatible nm... /usr/bin/nm -B checking for a sed that does not truncate output... /bin/sed checking how to recognise dependent libraries... pass_all checking for object suffix... o checking for executable suffix... no checking command to parse /usr/bin/nm -B output... ok checking for dlfcn.h... yes checking for ranlib... ranlib checking for strip... strip checking for objdir... .libs checking for gcc option to produce PIC... -fPIC checking if gcc PIC flag -fPIC works... yes checking if gcc static flag -static works... yes checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.lo... yes checking if gcc supports -fno-rtti -fno-exceptions... yes checking whether the linker (/usr/bin/ld) supports shared libraries... yes checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking dynamic linker characteristics... GNU/Linux ld.so checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... yes checking whether -lc should be explicitly linked in... no creating libtool checking for ANSI C header files... yes checking whether time.h and sys/time.h may both be included... yes checking for fcntl.h... yes checking for limits.h... yes checking for sys/ioctl.h... yes checking for sys/time.h... yes checking for syslog.h... yes checking for unistd.h... yes checking for working const... yes checking for inline... inline checking for off_t... yes checking for pid_t... yes checking for size_t... yes checking whether struct tm is in sys/time.h or time.h... time.h checking return type of signal handlers... void checking for vprintf... yes checking for gethostname... yes checking for gettimeofday... yes checking for mkfifo... yes checking for select... yes checking for socket... yes checking for strdup... yes checking for strerror... yes checking for strtoul... yes checking for snprintf... yes checking for strsep... yes checking for vsyslog... yes checking for daemon... yes checking for forkpty... no checking for forkpty in -lutil... yes checking for vga.h... no checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include checking for dnet_ntoa in -ldnet... no checking for dnet_ntoa in -ldnet_stub... no checking for gethostbyname... yes checking for connect... yes checking for remove... yes checking for shmat... yes checking for IceConnectionNumber in -lICE... yes checking for getopt_long... yes checking for mktemp... yes checking for Linux kernel sources... /usr/src/linux/ checking for which drivers can be installed on this system... checking for caraca_init in -lcaraca_client... no checking for ir_strerror in -lirman... no checking for ir_strerror in -lirman_sw... no checking for portaudio.h... yes checking for Pa_Initialize in -lportaudio... yes checking for alsa/asoundlib.h... yes checking for snd_pcm_open in -lasound... yes checking for ALSA SB RC hwdep support... no checking for scsi/sg.h... yes checking for linux/input.h... yes checking for sys/soundcard.h... yes updating cache ./config.cache creating ./config.status creating Makefile 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 All kernel mdoules will be built. Now enter 'make' and 'make install' to compile and install the package. + make make all-recursive make[1]: Entering directory `/usr/src/redhat/BUILD/lirc-0.7.2' Making all in drivers make[2]: Entering directory `/usr/src/redhat/BUILD/lirc-0.7.2/drivers' Making all in lirc_dev make[3]: Entering directory `/usr/src/redhat/BUILD/lirc-0.7.2/drivers/lirc_dev' mv Makefile Makefile.automake cp ../Makefile.kernel Makefile make -C /usr/src/linux/ SUBDIRS=/usr/src/redhat/BUILD/lirc-0.7.2/drivers/lirc_dev modules \ KBUILD_VERBOSE=1 make[4]: Entering directory `/usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9' mkdir -p /usr/src/redhat/BUILD/lirc-0.7.2/drivers/lirc_dev/.tmp_versions make -f scripts/Makefile.build obj=/usr/src/redhat/BUILD/lirc-0.7.2/drivers/lirc_dev gcc -Wp,-MD,/usr/src/redhat/BUILD/lirc-0.7.2/drivers/lirc_dev/.lirc_dev.o.d -nostdinc -iwithprefix include -D__KERNEL__ -Iinclude -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Os -fomit-frame-pointer -g -Wdeclaration-after-statement -pipe -msoft-float -m32 -fno-builtin-sprintf -fno-builtin-log2 -fno-builtin-puts -mpreferred-stack-boundary=2 -fno-unit-at-a-time -march=i686 -mregparm=3 -Iinclude/asm-i386/mach-default -DIRCTL_DEV_MAJOR=61 -DEXPORT_SYMTAB -DHAVE_CONFIG_H -I. -I. -I../.. -I /usr/src/redhat/BUILD/lirc-0.7.2/drivers/lirc_dev/../.. -I /usr/src/linux//include/ -DMODULE -DKBUILD_BASENAME=lirc_dev -DKBUILD_MODNAME=lirc_dev -c -o /usr/src/redhat/BUILD/lirc-0.7.2/drivers/lirc_dev/.tmp_lirc_dev.o /usr/src/redhat/BUILD/lirc-0.7.2/drivers/lirc_dev/lirc_dev.c In file included from /usr/src/redhat/BUILD/lirc-0.7.2/drivers/lirc_dev/lirc_dev.c:61: /usr/src/redhat/BUILD/lirc-0.7.2/drivers/lirc_dev/../../drivers/kcompat.h:20: error: conflicting types for 'class_create' include/linux/device.h:242: error: previous declaration of 'class_create' was here /usr/src/redhat/BUILD/lirc-0.7.2/drivers/lirc_dev/../../drivers/kcompat.h:20: error: conflicting types for 'class_create' include/linux/device.h:242: error: previous declaration of 'class_create' was here /usr/src/redhat/BUILD/lirc-0.7.2/drivers/lirc_dev/../../drivers/kcompat.h:25: error: conflicting types for 'class_destroy' include/linux/device.h:243: error: previous declaration of 'class_destroy' was here /usr/src/redhat/BUILD/lirc-0.7.2/drivers/lirc_dev/../../drivers/kcompat.h:25: error: conflicting types for 'class_destroy' include/linux/device.h:243: error: previous declaration of 'class_destroy' was here /usr/src/redhat/BUILD/lirc-0.7.2/drivers/lirc_dev/lirc_dev.c: In function `lirc_thread': /usr/src/redhat/BUILD/lirc-0.7.2/drivers/lirc_dev/lirc_dev.c:207: warning: `interruptible_sleep_on' is deprecated (declared at include/linux/wait.h:290) make[5]: *** [/usr/src/redhat/BUILD/lirc-0.7.2/drivers/lirc_dev/lirc_dev.o] Error 1 make[4]: *** [_module_/usr/src/redhat/BUILD/lirc-0.7.2/drivers/lirc_dev] Error 2 make[4]: Leaving directory `/usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9' make[3]: *** [lirc_dev.o] Error 2 make[3]: Leaving directory `/usr/src/redhat/BUILD/lirc-0.7.2/drivers/lirc_dev' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/usr/src/redhat/BUILD/lirc-0.7.2/drivers' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/src/redhat/BUILD/lirc-0.7.2' make: *** [all] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.30193 (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.30193 (%build) [root@frontend1 SPECS]#