LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-07-2005, 10:07 AM   #1
fraz
Member
 
Registered: Nov 2004
Location: Edinburgh, Scotland
Distribution: Ubuntu
Posts: 149

Rep: Reputation: 15
Lirc compiling


Hi,
I've got a serial homebrew ir receiver which as far as I've been able to tell requires a recompile of lirc.
I was originally getting a message saying that I needed the Kernel source (FC3) so I downloaded the rpm etc untarred the gz file and setup a symlink for this directory to /usr/src/linux.
Ok, on rerunning ./autogen.sh and ./setup.sh everything seems to work despite warnings, I think. I get through the configure process ok but if I type make, lirc doesn't compile. From my limited programming experience it looks like the wrong compiler is being used, am I right? What do I do to fix this?
Please help!

here is autogen output:


processing /root/lirc
Running libtoolize...
Running aclocal ...
acinclude.m4:11: warning: underquoted definition of AC_PATH_KERNEL_SOURCE_SEARCH
run info '(automake)Extending aclocal'
or see http://sources.redhat.com/automake/a...ending-aclocal
acinclude.m4:65: warning: underquoted definition of AC_PATH_KERNEL_SOURCE
/usr/share/aclocal/openhbci.m4:8: warning: underquoted definition of AM_PATH_OPENHBCI
/usr/share/aclocal/netatalk.m4:9: warning: underquoted definition of AM_PATH_NETATALK
/usr/share/aclocal/gob2.m4:7: warning: underquoted definition of GOB2_HOOK
/usr/share/aclocal/g-wrap.m4:7: warning: underquoted definition of AC_GWRAP_CHECK_GUILE
/usr/share/aclocal/g-wrap.m4:23: warning: underquoted definition of AM_PATH_GWRAP
/usr/share/aclocal/ao.m4:9: warning: underquoted definition of XIPH_PATH_AO
Running autoheader...
autoheader: WARNING: Using auxiliary files such as `acconfig.h', `config.h.bot'
autoheader: WARNING: and `config.h.top', to define templates for `config.h.in'
autoheader: WARNING: is deprecated and discouraged.
autoheader:
autoheader: WARNING: Using the third argument of `AC_DEFINE' and
autoheader: WARNING: `AC_DEFINE_UNQUOTED' allows to define a template without
autoheader: WARNING: `acconfig.h':
autoheader:
autoheader: WARNING: AC_DEFINE([NEED_FUNC_MAIN], 1,
autoheader: [Define if a function `main' is needed.])
autoheader:
autoheader: WARNING: More sophisticated templates can also be produced, see the
autoheader: WARNING: documentation.
Running automake --gnu ...
Running autoconf ...
Creating setup-driver.sh ...



here is setup.sh output


setup.sh written by Karsten Scheibler, 1999-JUN-28

If you have problems or questions please consult the mailing list
<http://lists.sourceforge.net/mailman/listinfo/lirc-list>

Configuration: .setup.config, executable shell script: configure.sh
Starting the generated shell script which will call configure with the right
parameters...
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
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 build system type... i686-redhat-linux-gnu
checking host system type... i686-redhat-linux-gnu
checking for a sed that does not truncate output... /bin/sed
checking for egrep... grep -E
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 how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for g77... g77
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether g77 accepts -g... yes
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc static flag works... yes
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
appending configuration tag "F77" to libtool
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for g77 option to produce PIC... -fPIC
checking if g77 PIC flag -fPIC works... yes
checking if g77 supports -c -o file.o... yes
checking whether the g77 linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking for ANSI C header files... (cached) yes
checking whether time.h and sys/time.h may both be included... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking for unistd.h... (cached) yes
checking for an ANSI C-conforming 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 _doprnt... no
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 vga.h usability... no
checking vga.h presence... no
checking for vga.h... no
checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include
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... /tmp/LIRCMF.R26334:486: .config: No such file or directory
/tmp/LIRCMF.R26334:486: .config: No such file or directory
/tmp/LIRCMF.R26334:486: .config: No such file or directory
/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 portaudio.h usability... yes
checking portaudio.h presence... yes
checking for portaudio.h... yes
checking for Pa_Initialize in -lportaudio... yes
checking alsa/asoundlib.h usability... yes
checking alsa/asoundlib.h presence... yes
checking for alsa/asoundlib.h... yes
checking for snd_pcm_open in -lasound... yes
checking scsi/sg.h usability... yes
checking scsi/sg.h presence... yes
checking for scsi/sg.h... yes
checking linux/input.h usability... yes
checking linux/input.h presence... yes
checking for linux/input.h... yes
checking sys/soundcard.h usability... yes
checking sys/soundcard.h presence... yes
checking for sys/soundcard.h... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating drivers/Makefile
config.status: creating drivers/lirc_atiusb/Makefile
config.status: creating drivers/lirc_bt829/Makefile
config.status: creating drivers/lirc_dev/Makefile
config.status: creating drivers/lirc_gpio/Makefile
config.status: creating drivers/lirc_i2c/Makefile
config.status: creating drivers/lirc_igorplugusb/Makefile
config.status: creating drivers/lirc_imon/Makefile
config.status: creating drivers/lirc_it87/Makefile
config.status: creating drivers/lirc_mceusb/Makefile
config.status: creating drivers/lirc_parallel/Makefile
config.status: creating drivers/lirc_sasem/Makefile
config.status: creating drivers/lirc_serial/Makefile
config.status: creating drivers/lirc_sir/Makefile
config.status: creating drivers/lirc_streamzap/Makefile
config.status: creating daemons/Makefile
config.status: creating tools/Makefile
config.status: creating doc/Makefile
config.status: creating doc/man/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands

You will have to use the lirc_serial kernel module.

Now enter 'make' and 'make install' to compile and install the package.



And finally here is some of the make output



include/linux/elf.h:441: warning: array '_DYNAMIC' assumed to have one element
include/linux/sched.h:221: error: storage size of `mmap_sem' isn't known
include/linux/sched.h:255: error: storage size of `default_kioctx' isn't known
include/linux/sched.h:263: error: storage size of `action' isn't known
include/linux/sched.h:284: error: storage size of `shared_pending' isn't known
include/linux/sched.h:331: error: storage size of `rlim' isn't known
include/linux/sched.h:602: error: storage size of `start_time' isn't known
include/linux/sched.h:624: error: storage size of `thread' isn't known
include/linux/sched.h:636: error: storage size of `pending' isn't known
include/linux/stat.h:68: error: storage size of `atime' isn't known
include/linux/stat.h:69: error: storage size of `mtime' isn't known
include/linux/stat.h:70: error: storage size of `ctime' isn't known
include/linux/fs.h:278: error: storage size of `ia_atime' isn't known
include/linux/fs.h:279: error: storage size of `ia_mtime' isn't known
include/linux/fs.h:280: error: storage size of `ia_ctime' isn't known
include/linux/quota.h:223: error: storage size of `dq_dqb' isn't known
include/linux/fs.h:363: error: storage size of `bd_sem' isn't known
include/linux/fs.h:364: error: storage size of `bd_mount_sem' isn't known
include/linux/fs.h:439: error: storage size of `i_atime' isn't known
include/linux/fs.h:440: error: storage size of `i_mtime' isn't known
include/linux/fs.h:441: error: storage size of `i_ctime' isn't known
include/linux/fs.h:449: error: storage size of `i_sem' isn't known
include/linux/fs.h:450: error: storage size of `i_alloc_sem' isn't known
include/linux/fs.h:586: error: storage size of `f_owner' isn't known
include/linux/fs.h:770: error: storage size of `s_umount' isn't known
include/linux/fs.h:771: error: storage size of `s_lock' isn't known
include/linux/fs.h:800: error: storage size of `s_vfs_rename_sem' isn't known
include/linux/device.h:373: error: storage size of `dev' isn't known
/root/lirc/drivers/lirc_dev/lirc_dev.c:817: error: storage size of `fops' isn't known
{standard input}: Assembler messages:
{standard input}:392: Error: symbol `seq' is already defined
{standard input}:440: Error: symbol `sem_nsems' is already defined
{standard input}:462: Error: symbol `lock' is already defined
{standard input}:1200: Error: symbol `flags' is already defined
{standard input}:1546: Error: symbol `files' is already defined
{standard input}:1741: Error: symbol `blocks' is already defined
{standard input}:2482: Error: symbol `d_flags' is already defined
{standard input}:3085: Error: symbol `flags' is already defined
{standard input}:3160: Error: symbol `s_type' is already defined
{standard input}:3376: Error: symbol `mmap' is already defined
{standard input}:3418: Error: symbol `lock' is already defined
{standard input}:3567: Error: symbol `private' is already defined
{standard input}:3621: Error: symbol `release' is already defined
make[5]: *** [/root/lirc/drivers/lirc_dev/lirc_dev.o] Error 1
make[4]: *** [_module_/root/lirc/drivers/lirc_dev] Error 2
make[4]: Leaving directory `/usr/src/redhat/SOURCES/linux-2.6.11'
make[3]: *** [lirc_dev.o] Error 2
make[3]: Leaving directory `/root/lirc/drivers/lirc_dev'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/lirc/drivers'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/lirc'
make: *** [all] Error 2
 
  


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
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
Problems compiling lirc under FC2 doctorv Fedora 0 06-21-2004 01:51 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 - Software

All times are GMT -5. The time now is 05:40 AM.

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