without invesstigating I would suggest rolling back gcc.  What version are you trying to compile lirc with? 

On 9/12/06, Blammo < blammo.doh@gmail.com> wrote:
Ok, I'm sure this is something simple, and small, but I'm pulling my
hair out. I can't get ANY version of LIRC to compile without errors,
including CVS, on a newly installed Centos 4.4 box.

uname -a : Linux frontend1 2.6.9-42.EL #1 Sat Aug 12 09:17:58 CDT 2006
i686 athlon i386 GNU/Linux


Here's the death message from trying to compile current CVS:

[root@frontend1 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'
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.9-42.EL/build/
SUBDIRS=/usr/src/lirc/drivers/lirc_dev modules \
        KBUILD_VERBOSE=1
make[5]: Entering directory `/usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9'
mkdir -p /usr/src/lirc/drivers/lirc_dev/.tmp_versions
make -f scripts/Makefile.build obj=/usr/src/lirc/drivers/lirc_dev
  gcc -Wp,-MD,/usr/src/lirc/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/lirc/drivers/lirc_dev/../..
-I/lib/modules/2.6.9-42.EL/build//include/
-I/lib/modules/2.6.9-42.EL/build//drivers/media/video/  -DMODULE
-DKBUILD_BASENAME=lirc_dev -DKBUILD_MODNAME=lirc_dev -c -o
/usr/src/lirc/drivers/lirc_dev/.tmp_lirc_dev.o
/usr/src/lirc/drivers/lirc_dev/lirc_dev.c
In file included from /usr/src/lirc/drivers/lirc_dev/lirc_dev.c:53:
/usr/src/lirc/drivers/lirc_dev/../../drivers/kcompat.h:30: error:
conflicting types for 'class_create'
include/linux/device.h:242: error: previous declaration of
'class_create' was here
/usr/src/lirc/drivers/lirc_dev/../../drivers/kcompat.h:30: error:
conflicting types for 'class_create'
include/linux/device.h:242: error: previous declaration of
'class_create' was here
/usr/src/lirc/drivers/lirc_dev/../../drivers/kcompat.h:35: error:
conflicting types for 'class_destroy'
include/linux/device.h:243: error: previous declaration of
'class_destroy' was here
/usr/src/lirc/drivers/lirc_dev/../../drivers/kcompat.h:35: error:
conflicting types for 'class_destroy'
include/linux/device.h:243: error: previous declaration of
'class_destroy' was here
/usr/src/lirc/drivers/lirc_dev/lirc_dev.c: In function `lirc_thread':
/usr/src/lirc/drivers/lirc_dev/lirc_dev.c:208: warning:
`interruptible_sleep_on' is deprecated (declared at
include/linux/wait.h:290)
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/redhat/BUILD/kernel-2.6.9/linux-2.6.9'
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


Same thing under 0.8.0:

[root@frontend1 lirc-0.8.0]# make
make  all-recursive
make[1]: Entering directory `/usr/src/lirc- 0.8.0'
Making all in drivers
make[2]: Entering directory `/usr/src/lirc-0.8.0/drivers'
Making all in lirc_dev
make[3]: Entering directory `/usr/src/lirc-0.8.0/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- 0.8.0/drivers/lirc_dev'
mv Makefile Makefile.automake
cp ../Makefile.kernel Makefile
make -C /lib/modules/2.6.9-42.EL/build/
SUBDIRS=/usr/src/lirc-0.8.0/drivers/lirc_dev modules \
        KBUILD_VERBOSE=1
make[5]: Entering directory `/usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9'
mkdir -p /usr/src/lirc-0.8.0/drivers/lirc_dev/.tmp_versions
make -f scripts/Makefile.build obj=/usr/src/lirc-0.8.0/drivers/lirc_dev
  gcc -Wp,-MD,/usr/src/lirc- 0.8.0/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/lirc-0.8.0/drivers/lirc_dev/../..
-I/lib/modules/2.6.9-42.EL/build//include/  -DMODULE
-DKBUILD_BASENAME=lirc_dev -DKBUILD_MODNAME=lirc_dev -c -o
/usr/src/lirc-0.8.0/drivers/lirc_dev/.tmp_lirc_dev.o
/usr/src/lirc-0.8.0/drivers/lirc_dev/lirc_dev.c
In file included from /usr/src/lirc-0.8.0/drivers/lirc_dev/lirc_dev.c:61:
/usr/src/lirc-0.8.0/drivers/lirc_dev/../../drivers/kcompat.h:21:
error: conflicting types for 'class_create'
include/linux/device.h:242: error: previous declaration of
'class_create' was here
/usr/src/lirc-0.8.0/drivers/lirc_dev/../../drivers/kcompat.h:21:
error: conflicting types for 'class_create'
include/linux/device.h:242: error: previous declaration of
'class_create' was here
/usr/src/lirc-0.8.0/drivers/lirc_dev/../../drivers/kcompat.h:26:
error: conflicting types for 'class_destroy'
include/linux/device.h:243: error: previous declaration of
'class_destroy' was here
/usr/src/lirc-0.8.0/drivers/lirc_dev/../../drivers/kcompat.h:26:
error: conflicting types for 'class_destroy'
include/linux/device.h:243: error: previous declaration of
'class_destroy' was here
/usr/src/lirc- 0.8.0/drivers/lirc_dev/lirc_dev.c: In function `lirc_thread':
/usr/src/lirc-0.8.0/drivers/lirc_dev/lirc_dev.c:207: warning:
`interruptible_sleep_on' is deprecated (declared at
include/linux/wait.h:290)
make[6]: *** [/usr/src/lirc- 0.8.0/drivers/lirc_dev/lirc_dev.o] Error 1
make[5]: *** [_module_/usr/src/lirc-0.8.0/drivers/lirc_dev] Error 2
make[5]: Leaving directory `/usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9'
make[4]: *** [lirc_dev.o] Error 2
make[4]: Leaving directory `/usr/src/lirc-0.8.0/drivers/lirc_dev'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/usr/src/lirc-0.8.0/drivers/lirc_dev'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/lirc- 0.8.0/drivers'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/lirc-0.8.0'


This makes me think I'm either missing something, or have some
incompatible version of something.

Help! Pulling my hair out!

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642