pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/50556: comms/lirc fails with gcc 5.3.1 (Linux)



>Number:         50556
>Category:       pkg
>Synopsis:       comms/lirc fails with gcc 5.3.1 (Linux)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Dec 15 04:05:00 +0000 2015
>Originator:     coypu
>Release:        pkgsrc-current, not NetBSD
>Organization:
>Environment:
Linux localhost.localdomain 4.4.0-0.rc4.git4.1.fc24.x86_64 #1 SMP Fri Dec 11 17:39:06 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
>Description:
can't build comms/lirc under Linux
>How-To-Repeat:
attempt to build comms/lirc, fails because of use of 'inline fun(...' instead of 'static inline fun(...'.

this is a GNU C89 extension not supported by default on newer GCC.

produces the following errors:

libhw_module.a(receive.o): In function `receive_decode':
receive.c:(.text+0x1b0f): undefined reference to `sync_rec_buffer'
receive.c:(.text+0x1b73): undefined reference to `get_header'
receive.c:(.text+0x1b8d): undefined reference to `get_repeat'
receive.c:(.text+0x1d16): undefined reference to `sync_rec_buffer'
receive.c:(.text+0x1d39): undefined reference to `get_header'
>Fix:
adding CFLAGS+=-fgnu89-inline to Makefile

alternatively: replacing all instances of '^inline' with 'static inline'.


Home | Main Index | Thread Index | Old Index