Menu

#322 unable to compile lirc on Arch Linux

Future
closed
nobody
None
notabug
2019-01-01
2018-02-25
John A.
No

I am unable to compile lirc on Arch Linux. The make step is erroring out. I attached the compile log. Below is an excerpt. Advice is appreciated.

``
Making all in daemons
lircd.cpp: In function ‘void drop_privileges()’:
lircd.cpp:705:55: error: invalid conversion from ‘int*’ to ‘gid_t {aka unsigned int}’ [-fpermissive]
r = getgrouplist(user, pw->pw_gid, groups, &group_cnt);
^
In file included from lircd.cpp:33:0:
/usr/include/grp.h:186:12: note: initializing argument 3 of ‘int getgrouplist(const char*,
gid_t, gid_t, int)’
extern int getgrouplist (const char *
user, gid_t group,
^~~~~~~~~~~~
make[2]: [Makefile:532: lircd.o] Error 1
make[2]:
Waiting for unfinished jobs....
libtool: link: g++ -march=x86-64 -O2 -pipe -fstack-protector-strong -fdiagnostics-color -fno-plt -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z -Wl,relro -Wl,-z -Wl,now -o .libs/lircmd lircmd-lircmd.o -lpthread -lsystemd ../lib/.libs/liblirc.so -ldl -ludev -Wl,-rpath -Wl,/usr/local/lib
make[1]: [Makefile:1092: all-recursive] Error 1
make:
[Makefile:572: all] Error 2

``

Here is the complete configure and make log:
``
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
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 ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
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 for sh... /usr/bin/sh
checking for modinfo... modinfo
checking for pkg-config... yes
checking for xsltproc... yes
checking for man2html... no
checking for doxygen... no
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /usr/bin/dd
checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1
checking for mt... no
checking if : is a manifest tool... no
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 for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC 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.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) 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... no
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for a Python interpreter with version >= 3.1... python
checking for python... /usr/bin/python
checking for python version... 3.6
checking for python platform... linux
checking for python script directory... ${prefix}/lib/python3.6/site-packages
checking for python extension module directory... ${exec_prefix}/lib/python3.6/site-packages
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for PYTHON... yes
checking for PYTHON... yes
checking for ANSI C header files... (cached) yes
checking whether time.h and sys/time.h may both be included... yes
checking whether termios.h defines TIOCGWINSZ... no
checking whether sys/ioctl.h defines TIOCGWINSZ... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking libutil.h usability... no
checking libutil.h presence... no
checking for libutil.h... no
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking linux/ioctl.h usability... yes
checking linux/ioctl.h presence... yes
checking for linux/ioctl.h... yes
checking linux/sched.h usability... yes
checking linux/sched.h presence... yes
checking for linux/sched.h... yes
checking poll.h usability... yes
checking poll.h presence... yes
checking for poll.h... yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/poll.h usability... yes
checking sys/poll.h presence... yes
checking for sys/poll.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 util.h usability... no
checking util.h presence... no
checking for util.h... no
checking pty.h usability... yes
checking pty.h presence... yes
checking for pty.h... yes
checking for inline... inline
checking for pid_t... yes
checking for size_t... yes
checking for int8_t... yes
checking for int16_t... yes
checking for int32_t... yes
checking for int64_t... yes
checking for uint8_t... yes
checking for uint16_t... yes
checking for uint32_t... yes
checking for uint64_t... yes
checking Figure out if getgrouplist() needs gid_t or int... int
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 library containing dlopen... -ldl
checking for daemon... yes
checking for clock_gettime... yes
checking python module: yaml... no
checking for forkpty... no
checking for forkpty in -lutil... yes
checking for linux kernel... yes
checking for X... libraries , headers
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... no
checking usb.h usability... yes
checking usb.h presence... yes
checking for usb.h... yes
checking libusb-1.0/libusb.h usability... yes
checking libusb-1.0/libusb.h presence... yes
checking for libusb-1.0/libusb.h... yes
checking libusb.h usability... no
checking libusb.h presence... no
checking for libusb.h... no
checking for usb_get_string in -lusb... yes
checking for libusb_get_port_number in -lusb-1.0... yes
checking for FTDI... no
checking for FTDI... yes
checking for PORTAUDIO... no
checking alsa/asoundlib.h usability... yes
checking alsa/asoundlib.h presence... yes
checking for alsa/asoundlib.h... yes
checking for snd_async_del_handler in -lasound... yes
checking for ALSA SB RC hwdep support... yes
checking for devinput... no
checking for working poll(2)... yes
checking linux/input.h usability... yes
checking linux/input.h presence... yes
checking for linux/input.h... yes
checking linux/lirc.h usability... yes
checking linux/lirc.h presence... yes
checking for linux/lirc.h... yes
checking scsi/sg.h usability... yes
checking scsi/sg.h presence... yes
checking for scsi/sg.h... yes
checking mach/mach_time.h usability... no
checking mach/mach_time.h presence... no
checking for mach/mach_time.h... no
checking IOKit/IOCFPlugIn.h usability... no
checking IOKit/IOCFPlugIn.h presence... no
checking for IOKit/IOCFPlugIn.h... no
checking for linux/input.h... (cached) yes
checking linux/types.h usability... yes
checking linux/types.h presence... yes
checking for linux/types.h... yes
checking for linux/hiddev.h... yes
checking for HIDDEV_FLAG_UREF support... yes
checking sys/soundcard.h usability... yes
checking sys/soundcard.h presence... yes
checking for sys/soundcard.h... yes
checking linux/i2c-dev.h usability... yes
checking linux/i2c-dev.h presence... yes
checking for linux/i2c-dev.h... yes
checking for SYSTEMD... no
checking for SYSTEMD... yes
checking for udev_device_new_from_device_id in -ludev... yes
checking libudev.h usability... yes
checking libudev.h presence... yes
checking for libudev.h... yes
checking for LIBUDEV... yes
checking systemd system unit directory... /usr/lib/systemd/system
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating VERSION
config.status: creating Makefile
config.status: creating lirc.pc
config.status: creating lirc-driver.pc
config.status: WARNING: 'lirc-driver.pc.in' seems to ignore the --datarootdir setting
config.status: creating daemons/Makefile
config.status: creating plugins/Makefile
config.status: creating tools/Makefile
config.status: creating lib/Makefile
config.status: creating doc/Makefile
config.status: creating configs/Makefile
config.status: creating doc/docpage.xsl
config.status: creating systemd/Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands

Summary of selected options:

prefix: /usr/local
lockdir: /var/lock
sysconfdir: ${prefix}/etc
x_progs: irxevent xmode2
host: x86_64-unknown-linux-gnu
host_os: linux-gnu
forkpty: -lutil
LIBUSB_LIBS: -lusb -lusb-1.0
PORTAUDIO_LIBS:

Conditionals:

BUILD_ALSA_SB_RC: yes BUILD_DSP: yes
BUILD_FTDI: yes BUILD_HIDDEV: yes
BUILD_I2CUSER: yes BUILD_LIBALSA: yes
BUILD_LIBPORTAUDIO: no BUILD_USB: yes
BUILD_XTOOLS: yes HAVE_DOXYGEN: no
HAVE_MAN2HTML: no HAVE_PYMOD_YAML: no
ENABLE_UINPUT: no INSTALL_ETC: yes
IS_CROSS_COMPILE: no DEVEL: no
LINUX_KERNEL: yes HAVE_DEVINPUT: no
WITH_SYSTEMDSYSTEMUNITDIR: yes HAVE_PYTHON35: yes

configure: WARNING:
python3-yaml is missing. lirc-setup will not work; then :
table.html
and lirc.hwdb will not be created.

Making all in lib
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -Wall -Wp,-D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -march=x86-64 -O2 -pipe -fstack-protector-strong -fdiagnostics-color -fno-plt -I/usr/include/python3.6m -MT dump_config.lo -MD -MP -MF .deps/dump_config.Tpo -c dump_config.c -fPIC -DPIC -o .libs/dump_config.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -Wall -Wp,-D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -march=x86-64 -O2 -pipe -fstack-protector-strong -fdiagnostics-color -fno-plt -I/usr/include/python3.6m -MT drv_admin.lo -MD -MP -MF .deps/drv_admin.Tpo -c drv_admin.c -fPIC -DPIC -o .libs/drv_admin.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -Wall -Wp,-D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -march=x86-64 -O2 -pipe -fstack-protector-strong -fdiagnostics-color -fno-plt -I/usr/include/python3.6m -MT config_file.lo -MD -MP -MF .deps/config_file.Tpo -c config_file.c -fPIC -DPIC -o .libs/config_file.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -Wall -Wp,-D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -march=x86-64 -O2 -pipe -fstack-protector-strong -fdiagnostics-color -fno-plt -I/usr/include/python3.6m -MT ir_remote.lo -MD -MP -MF .deps/ir_remote.Tpo -c ir_remote.c -fPIC -DPIC -o .libs/ir_remote.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -Wall -Wp,-D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -march=x86-64 -O2 -pipe -fstack-protector-strong -fdiagnostics-color -fno-plt -I/usr/include/python3.6m -MT ciniparser.lo -MD -MP -MF .deps/ciniparser.Tpo -c ciniparser.c -fPIC -DPIC -o .libs/ciniparser.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -Wall -Wp,-D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -march=x86-64 -O2 -pipe -fstack-protector-strong -fdiagnostics-color -fno-plt -I/usr/include/python3.6m -MT dictionary.lo -MD -MP -MF .deps/dictionary.Tpo -c dictionary.c -fPIC -DPIC -o .libs/dictionary.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -Wall -Wp,-D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -march=x86-64 -O2 -pipe -fstack-protector-strong -fdiagnostics-color -fno-plt -I/usr/include/python3.6m -MT lirc_log.lo -MD -MP -MF .deps/lirc_log.Tpo -c lirc_log.c -fPIC -DPIC -o .libs/lirc_log.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -Wall -Wp,-D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -march=x86-64 -O2 -pipe -fstack-protector-strong -fdiagnostics-color -fno-plt -I/usr/include/python3.6m -MT driver.lo -MD -MP -MF .deps/driver.Tpo -c driver.c -fPIC -DPIC -o .libs/driver.o
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -Wall -Wp,-D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -march=x86-64 -O2 -pipe -fstack-protector-strong -fdiagnostics-color -fno-plt -MT line_buffer.lo -MD -MP -MF .deps/line_buffer.Tpo -c line_buffer.cpp -fPIC -DPIC -o .libs/line_buffer.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -Wall -Wp,-D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -march=x86-64 -O2 -pipe -fstack-protector-strong -fdiagnostics-color -fno-plt -I/usr/include/python3.6m -MT curl_poll.lo -MD -MP -MF .deps/curl_poll.Tpo -c curl_poll.c -fPIC -DPIC -o .libs/curl_poll.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -Wall -Wp,-D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -march=x86-64 -O2 -pipe -fstack-protector-strong -fdiagnostics-color -fno-plt -I/usr/include/python3.6m -MT lirc_options.lo -MD -MP -MF .deps/lirc_options.Tpo -c lirc_options.c -fPIC -DPIC -o .libs/lirc_options.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -Wall -Wp,-D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -march=x86-64 -O2 -pipe -fstack-protector-strong -fdiagnostics-color -fno-plt -I/usr/include/python3.6m -MT lirc-utils.lo -MD -MP -MF .deps/lirc-utils.Tpo -c lirc-utils.c -fPIC -DPIC -o .libs/lirc-utils.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -Wall -Wp,-D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -march=x86-64 -O2 -pipe -fstack-protector-strong -fdiagnostics-color -fno-plt -I/usr/include/python3.6m -MT receive.lo -MD -MP -MF .deps/receive.Tpo -c receive.c -fPIC -DPIC -o .libs/receive.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -Wall -Wp,-D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -march=x86-64 -O2 -pipe -fstack-protector-strong -fdiagnostics-color -fno-plt -I/usr/include/python3.6m -MT release.lo -MD -MP -MF .deps/release.Tpo -c release.c -fPIC -DPIC -o .libs/release.o
lirc-utils.c: In function ‘drop_sudo_root’:
lirc-utils.c:49:37: warning: pointer targets in passing argument 3 of ‘getgrouplist’ differ in signedness [-Wpointer-sign]
r = getgrouplist(user, pw->pw_gid, groups, &group_cnt);
^~~~~~
In file included from lirc-utils.c:12:0:
/usr/include/grp.h:186:12: note: expected ‘gid_t * {aka unsigned int }’ but argument is of type ‘int
extern int getgrouplist (const char *
user, gid_t group,
^~~~~~~~~~~~
lirc-utils.c:54:27: warning: pointer targets in passing argument 2 of ‘setgroups’ differ in signedness [-Wpointer-sign]
r = setgroups(group_cnt, groups);
^~~~~~
In file included from lirc-utils.c:12:0:
/usr/include/grp.h:176:12: note: expected ‘const gid_t * {aka const unsigned int }’ but argument is of type ‘int
extern int setgroups (size_t
n, const gid_t *groups) THROW;
^~~~~~~~~
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -Wall -Wp,-D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -march=x86-64 -O2 -pipe -fstack-protector-strong -fdiagnostics-color -fno-plt -I/usr/include/python3.6m -MT serial.lo -MD -MP -MF .deps/serial.Tpo -c serial.c -fPIC -DPIC -o .libs/serial.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -Wall -Wp,-D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -march=x86-64 -O2 -pipe -fstack-protector-strong -fdiagnostics-color -fno-plt -I/usr/include/python3.6m -MT transmit.lo -MD -MP -MF .deps/transmit.Tpo -c transmit.c -fPIC -DPIC -o .libs/transmit.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -Wall -Wp,-D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -march=x86-64 -O2 -pipe -fstack-protector-strong -fdiagnostics-color -fno-plt -I/usr/include/python3.6m -MT lirc_client.lo -MD -MP -MF .deps/lirc_client.Tpo -c lirc_client.c -fPIC -DPIC -o .libs/lirc_client.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -Wall -Wp,-D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -march=x86-64 -O2 -pipe -fstack-protector-strong -fdiagnostics-color -fno-plt -I/usr/include/python3.6m -MT irrecord.lo -MD -MP -MF .deps/irrecord.Tpo -c irrecord.c -fPIC -DPIC -o .libs/irrecord.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -Wall -Wp,-D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -march=x86-64 -O2 -pipe -fstack-protector-strong -fdiagnostics-color -fno-plt -I/usr/include/python3.6m -MT drv_enum.lo -MD -MP -MF .deps/drv_enum.Tpo -c drv_enum.c -fPIC -DPIC -o .libs/drv_enum.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -Wall -Wp,-D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -march=x86-64 -O2 -pipe -fstack-protector-strong -fdiagnostics-color -fno-plt -I/usr/include/python3.6m -MT input_map.lo -MD -MP -MF .deps/input_map.Tpo -c input_map.c -fPIC -DPIC -o .libs/input_map.o
libtool: link: g++ -fPIC -DPIC -shared -nostdlib /usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/../../../../lib/crti.o /usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/crtbeginS.o .libs/config_file.o .libs/ciniparser.o .libs/dictionary.o .libs/driver.o .libs/drv_admin.o .libs/dump_config.o .libs/input_map.o .libs/ir_remote.o .libs/line_buffer.o .libs/lirc_log.o .libs/lirc_options.o .libs/lirc-utils.o .libs/curl_poll.o .libs/receive.o .libs/release.o .libs/serial.o .libs/transmit.o -ldl -ludev -L/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0 -L/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/../../../../lib -L/lib/../lib -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/../../.. -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/crtendS.o /usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/../../../../lib/crtn.o -march=x86-64 -O2 -fstack-protector-strong -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z -Wl,relro -Wl,-z -Wl,now -Wl,-soname -Wl,liblirc.so.0 -o .libs/liblirc.so.0.0.0
libtool: link: gcc -shared -fPIC -DPIC .libs/lirc_client.o .libs/curl_poll.o .libs/lirc_log.o -ldl -ludev -march=x86-64 -O2 -fstack-protector-strong -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z -Wl,relro -Wl,-z -Wl,now -Wl,-soname -Wl,liblirc_client.so.0 -o .libs/liblirc_client.so.0.6.0
libtool: link: (cd ".libs" && rm -f "liblirc.so.0" && ln -s "liblirc.so.0.0.0" "liblirc.so.0")
libtool: link: (cd ".libs" && rm -f "liblirc.so" && ln -s "liblirc.so.0.0.0" "liblirc.so")
libtool: link: (cd ".libs" && rm -f "liblirc_client.so.0" && ln -s "liblirc_client.so.0.6.0" "liblirc_client.so.0")
libtool: link: (cd ".libs" && rm -f "liblirc_client.so" && ln -s "liblirc_client.so.0.6.0" "liblirc_client.so")
libtool: link: ( cd ".libs" && rm -f "liblirc.la" && ln -s "../liblirc.la" "liblirc.la" )
libtool: link: ( cd ".libs" && rm -f "liblirc_client.la" && ln -s "../liblirc_client.la" "liblirc_client.la" )
libtool: link: gcc -shared -fPIC -DPIC .libs/drv_enum.o .libs/ir_remote.o .libs/lirc_log.o .libs/curl_poll.o .libs/receive.o .libs/release.o .libs/serial.o .libs/transmit.o -Wl,-rpath -Wl,/build/lirc/src/lirc-0.10.1/lib/.libs -Wl,-rpath -Wl,/usr/local/lib ./.libs/liblirc.so -lusb -lusb-1.0 -ldl -ludev -march=x86-64 -O2 -fstack-protector-strong -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z -Wl,relro -Wl,-z -Wl,now -Wl,-soname -Wl,liblirc_driver.so.0 -o .libs/liblirc_driver.so.0.3.0
libtool: link: (cd ".libs" && rm -f "liblirc_driver.so.0" && ln -s "liblirc_driver.so.0.3.0" "liblirc_driver.so.0")
libtool: link: (cd ".libs" && rm -f "liblirc_driver.so" && ln -s "liblirc_driver.so.0.3.0" "liblirc_driver.so")
libtool: link: gcc -shared -fPIC -DPIC .libs/irrecord.o -Wl,-rpath -Wl,/build/lirc/src/lirc-0.10.1/lib/.libs -Wl,-rpath -Wl,/usr/local/lib ./.libs/liblirc.so -ldl -ludev -march=x86-64 -O2 -fstack-protector-strong -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z -Wl,relro -Wl,-z -Wl,now -Wl,-soname -Wl,libirrecord.so.0 -o .libs/libirrecord.so.0.0.0
libtool: link: ( cd ".libs" && rm -f "liblirc_driver.la" && ln -s "../liblirc_driver.la" "liblirc_driver.la" )
libtool: link: (cd ".libs" && rm -f "libirrecord.so.0" && ln -s "libirrecord.so.0.0.0" "libirrecord.so.0")
libtool: link: (cd ".libs" && rm -f "libirrecord.so" && ln -s "libirrecord.so.0.0.0" "libirrecord.so")
libtool: link: ( cd ".libs" && rm -f "libirrecord.la" && ln -s "../libirrecord.la" "libirrecord.la" )
Making all in daemons
lircd.cpp: In function ‘void drop_privileges()’:
lircd.cpp:705:55: error: invalid conversion from ‘int*’ to ‘
gid_t {aka unsigned int}’ [-fpermissive]
r = getgrouplist(user, pw->pw_gid, groups, &group_cnt);
^
In file included from lircd.cpp:33:0:
/usr/include/grp.h:186:12: note: initializing argument 3 of ‘int getgrouplist(const char, gid_t, gid_t, int)’
extern int getgrouplist (const char
user, gid_t __group,
^~~~~~~~~~~~
make[2]: [Makefile:532: lircd.o] Error 1
make[2]:
Waiting for unfinished jobs....
libtool: link: g++ -march=x86-64 -O2 -pipe -fstack-protector-strong -fdiagnostics-color -fno-plt -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z -Wl,relro -Wl,-z -Wl,now -o .libs/lircmd lircmd-lircmd.o -lpthread -lsystemd ../lib/.libs/liblirc.so -ldl -ludev -Wl,-rpath -Wl,/usr/local/lib
make[1]: [Makefile:1092: all-recursive] Error 1
make:
[Makefile:572: all] Error 2
``

Discussion

  • Alec Leamas

    Alec Leamas - 2018-02-26

    The root cause is that the configure test for using gid_t or int to getgrouplist() fails. The logic is that if compiling a small test program fails, lirc uses int, otherwise it uses gid_t. This problem is most likely about the test program compilation failing for some other reason. Please scan config.log fior gid_t and see if/how that compilation fails.

     
    • Alec Leamas

      Alec Leamas - 2018-02-26

      Also, please check the discussion in [#318] which more or less looks like a duplicate.

       

      Related

      Tickets: #318


      Last edit: Alec Leamas 2018-02-26
  • John A.

    John A. - 2018-02-26

    I think you're right about the similarity ... I am not knowledgable enough to craft a patch to modify the behavior. Is this something you feel is unrelated to your source? I think the gcc package with which Arch ships will trigger this every time.

    Here is the complete config.log: https://gist.github.com/graysky2/a203bbccd74d002d9a7d542091487192

     

    Last edit: John A. 2018-02-26
    • Alec Leamas

      Alec Leamas - 2018-02-27

      think you're right about the similarity ..

      Yes, looking at the logs it's exactly the same problem

      Is this something you feel is unrelated to your source?

      Yes. This is Arch using an inconsistent set of CFLAGS when compiling lirc. If you cannot resolve this by yourself it is a bug in the downstream packaging which should be filed in the Arch bugtracker (with a reference to [#318]).

      I'm inclined to close this bug as a duplicate of #318.

       

      Related

      Tickets: #318


      Last edit: Alec Leamas 2018-02-27
  • John A.

    John A. - 2018-02-27
     
    • Alec Leamas

      Alec Leamas - 2018-02-27

      Well, at a glance it looks like lirc builds on Arch using a patch, and I guess that should solve the immediate problem. The patch is described as "upstreamable" so let's see if Lukas submits it; if so, I will certainly review it. For now, everybody should be happy and this upstream bug could be closed, right?

       
  • John A.

    John A. - 2018-02-27

    I think you're good to close unelss you want that patched attached to this ticket. I am happy to submit it if loqs doesn't want to/is too busy.

     
  • John A.

    John A. - 2018-02-28

    @Alec - Since it's 100% related to this ticket, please view the attached patch by loqs.

     
  • Alec Leamas

    Alec Leamas - 2019-01-01
    • status: open --> closed
    • Resolution: na --> notabug
    • Milestone: 0.10.1 --> Future
     
  • Alec Leamas

    Alec Leamas - 2019-01-01

    Sorry for long delay. That patch basically disables the test. While it might work on Arch it is not a general solution so it's not acceptable. Sorry also for that.

    Since this is a downstream issue I'm closing the bug. Please push the issue in the mailing list if you still have problems with this.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.