samnazarko / eventlircd

Automatically exported from code.google.com/p/eventlircd
GNU General Public License v2.0
0 stars 3 forks source link

build error on svn r44 #4

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
gcc -std=gnu99 -DHAVE_CONFIG_H -I.      
-DLIRCD_SOCKET=\"/usr/var/run/lirc/lircd\" 
-DEVMAP_DIR=\"/usr/etc/eventlircd.d\" -g -O2 -pedantic -flto 
-fvisibility=hidden -Werror -Wall -Wextra -Wcast-qual -Wfloat-equal -Wformat=2 
-Winit-self -Wmissing-include-dirs  -Wstrict-overflow=5 -Wundef -MT 
eventlircd-main.o -MD -MP -MF .deps/eventlircd-main.Tpo -c -o eventlircd-main.o 
`test -f 'main.c' || echo './'`main.c
cc1: warnings being treated as errors
main.c: In function ‘main’:
main.c:167:15: error: ignoring return value of ‘daemon’, declared with 
attribute warn_unused_result
make[2]: *** [eventlircd-main.o] Error 1

Original issue reported on code.google.com by carlos.l...@gmail.com on 3 Sep 2011 at 7:43

GoogleCodeExporter commented 8 years ago
The following commands fixed all build errors for me under Ubuntu 11.10:
sed -i 's/\s\-Werror//' configure.ac
autoreconf -vfi
./configure \
        --prefix=/usr \
        --sysconfdir=/etc \
        --disable-dependency-tracking \
        --with-lircd-socket=/var/run/lirc/lircd \
        --with-evmap-dir=/etc/eventlircd.d \
        --with-udev-dir=/lib/udev
libudev=$(sudo find / -name libudev.so | head -1); sed -i "s:^LIBS\ =.*:LIBS\ 
=\ ${libudev}:" src/Makefile
make
sudo make install

Original comment by e28.bee...@gmail.com on 3 Apr 2012 at 7:19

GoogleCodeExporter commented 8 years ago
packages needed: libudev-dev, build-essentials, automake

Original comment by e28.bee...@gmail.com on 2 Feb 2013 at 11:44