What steps will reproduce the problem?
1. autoreconf -fi
2. ./configure
3. make
What is the expected output? What do you see instead?
I get this compile error message:
gcc -std=gnu99 -DLIRCD_SOCKET=\"/var/run/lirc/lircd\"
-DEVMAP_DIR=\"/etc/eventlircd.d\" -g -O2 -pedantic -flto -fvisibility=hidden
-Wall -Wextra -Wcast-qual -Wfloat-equal -Wformat=2 -Winit-self
-Wmissing-include-dirs -Wstrict-overflow=5 -Wundef -ludev -flto
-fuse-linker-plugin -fwhole-program -fvisibility=hidden -Wl,--as-needed -o
eventlircd eventlircd-main.o eventlircd-monitor.o eventlircd-input.o
eventlircd-lircd.o
/tmp/ccbvG62k.ltrans2.ltrans.o: In function `input_init':
/home/bananapi/MLD/eventlircd/src/eventlircd/src/input.c:2114: undefined
reference to `udev_new'
/home/bananapi/MLD/eventlircd/src/eventlircd/src/input.c:2122: undefined
reference to `udev_monitor_new_from_netlink'
/home/bananapi/MLD/eventlircd/src/eventlircd/src/input.c:2130: undefined
reference to `udev_monitor_get_fd'
/home/bananapi/MLD/eventlircd/src/eventlircd/src/input.c:2138: undefined
reference to `udev_monitor_filter_add_match_subsystem_devtype'
/home/bananapi/MLD/eventlircd/src/eventlircd/src/input.c:2146: undefined
reference to `udev_monitor_enable_receiving'
/home/bananapi/MLD/eventlircd/src/eventlircd/src/input.c:2154: undefined
reference to `udev_enumerate_new'
/home/bananapi/MLD/eventlircd/src/eventlircd/src/input.c:2162: undefined
reference to `udev_enumerate_add_match_subsystem'
/home/bananapi/MLD/eventlircd/src/eventlircd/src/input.c:2163: undefined
reference to `udev_enumerate_scan_devices'
/home/bananapi/MLD/eventlircd/src/eventlircd/src/input.c:2164: undefined
reference to `udev_enumerate_get_list_entry'
/home/bananapi/MLD/eventlircd/src/eventlircd/src/input.c:2166: undefined
reference to `udev_list_entry_get_name'
/home/bananapi/MLD/eventlircd/src/eventlircd/src/input.c:2170: undefined
reference to `udev_device_new_from_syspath'
/home/bananapi/MLD/eventlircd/src/eventlircd/src/input.c:2178: undefined
reference to `udev_device_unref'
/home/bananapi/MLD/eventlircd/src/eventlircd/src/input.c:2165: undefined
reference to `udev_list_entry_get_next'
/home/bananapi/MLD/eventlircd/src/eventlircd/src/input.c:2180: undefined
reference to `udev_enumerate_unref'
/tmp/ccbvG62k.ltrans1.ltrans.o: In function `input_device_add.4412':
/home/bananapi/MLD/eventlircd/src/eventlircd/src/input.c:1346: undefined
reference to `udev_device_get_parent'
/home/bananapi/MLD/eventlircd/src/eventlircd/src/input.c:1346: undefined
reference to `udev_device_get_property_value'
/home/bananapi/MLD/eventlircd/src/eventlircd/src/input.c:1351: undefined
reference to `udev_device_get_devnode'
/home/bananapi/MLD/eventlircd/src/eventlircd/src/input.c:1356: undefined
reference to `udev_device_get_property_value'
/home/bananapi/MLD/eventlircd/src/eventlircd/src/input.c:1361: undefined
reference to `udev_device_get_property_value'
/home/bananapi/MLD/eventlircd/src/eventlircd/src/input.c:1369: undefined
reference to `udev_device_get_property_value'
/tmp/ccbvG62k.ltrans3.ltrans.o: In function `input_exit':
/home/bananapi/MLD/eventlircd/src/eventlircd/src/input.c:2064: undefined
reference to `udev_monitor_get_udev'
/home/bananapi/MLD/eventlircd/src/eventlircd/src/input.c:2065: undefined
reference to `udev_monitor_unref'
/home/bananapi/MLD/eventlircd/src/eventlircd/src/input.c:2068: undefined
reference to `udev_unref'
/tmp/ccbvG62k.ltrans3.ltrans.o: In function `input_handler.4361':
/home/bananapi/MLD/eventlircd/src/eventlircd/src/input.c:2019: undefined
reference to `udev_monitor_receive_device'
/home/bananapi/MLD/eventlircd/src/eventlircd/src/input.c:2024: undefined
reference to `udev_device_get_action'
/home/bananapi/MLD/eventlircd/src/eventlircd/src/input.c:2037: undefined
reference to `udev_device_unref'
/tmp/ccbvG62k.ltrans3.ltrans.o: In function `input_device_remove':
/home/bananapi/MLD/eventlircd/src/eventlircd/src/input.c:1284: undefined
reference to `udev_device_get_devnode'
collect2: error: ld returned 1 exit status
make[1]: *** [eventlircd] Error 1
make[1]: Leaving directory
`/home/bananapi/MLD/eventlircd/src/eventlircd-2015.01.12/src'
make: *** [all] Error 2
What version of the product are you using? On what operating system?
I take the latest version and compile on an ARM system on Ubuntu-14.04
Please provide any additional information below.
I have create this patch to fix it:
--- eventlircd/src/Makefile.am.orig 2015-01-09 04:59:54.000000000 +0100
+++ eventlircd/src/Makefile.am 2015-01-13 15:08:02.661480822 +0100
@@ -1,6 +1,7 @@
sbin_PROGRAMS = eventlircd
eventlircd_SOURCES = main.c monitor.c monitor.h input.c input.h lircd.c lircd.h
eventlircd_CFLAGS = $(AM_CFLAGS) $(LIBUDEV_CFLAGS) -DLIRCD_SOCKET=\"$(LIRCD_SOCKET)\" -DEVMAP_DIR=\"$(EVMAP_DIR)\"
-eventlircd_LDFLAGS = $(AM_CFLAGS) $(LIBUDEV_LIBS)
+eventlircd_LDFLAGS = $(AM_CFLAGS)
+eventlircd_LDADD = $(LIBUDEV_LIBS)
nodist_eventlircd_SOURCES = event_name_to_code.h evkey_code_to_name.h evkey_type.h
Original issue reported on code.google.com by muuscl...@gmail.com on 13 Jan 2015 at 4:21
Original issue reported on code.google.com by
muuscl...@gmail.com
on 13 Jan 2015 at 4:21