Bug 254429

Summary: devel/libepoll-shim fails to build: undefined reference to sigandset
Product: Ports & Packages Reporter: L GILBERT <lg>
Component: Individual Port(s)Assignee: freebsd-x11 (Nobody) <x11>
Status: Closed Not A Bug    
Severity: Affects Only Me CC: arrowd, zeising
Priority: --- Flags: bugzilla: maintainer-feedback? (x11)
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
compilation log none

Description L GILBERT 2021-03-20 10:02:35 UTC
Created attachment 223446 [details]
compilation log

An error when updating a FREEBSD 13.0 server :

===>  Building for libepoll-shim-0.0.20210213

/usr/ports/devel/libepoll-shim/work/epoll-shim-c8491d3/src/signalfd_ctx.c:60:6: warning: implicit declaration of function 'sigandset' is invalid in C99 [-Wimplicit-function-declaration]
            sigandset(&pending_sigs, &pending_sigs, &signalfd->sigs) < 0) {
            ^
/usr/ports/devel/libepoll-shim/work/epoll-shim-c8491d3/src/signalfd_ctx.c:64:18: warning: implicit declaration of function 'sigisemptyset' is invalid in C99 [-Wimplicit-function-declaration]
        *has_pending = !sigisemptyset(&pending_sigs);
 

FAILED: test/tst-timerfd test/tst-timerfd_tests.cmake
FAILED: test/timerfd-mock-test test/timerfd-mock-test_tests.cmake
FAILED: test/tst-epoll test/tst-epoll_tests.cmake

ld: error: src/libepoll-shim.so.0: undefined reference to sigandset
ld: error: src/libepoll-shim.so.0: undefined reference to sigisemptyset
cc: error: linker command failed with exit code 1 (use -v to see invocation)

System : 
- FreeBSD 13.0-CURRENT #0 r354699
- FreeBSD clang version 9.0.0 (tags/RELEASE_900/final 372316) (based on LLVM 9.0.0)
Comment 1 Gleb Popov freebsd_committer freebsd_triage 2021-03-20 10:19:05 UTC
You're probably running too old CURRENT (which is 14 already).
Comment 2 L GILBERT 2021-03-20 10:57:37 UTC
I installed FREEBSD pre-v13 because all previous versions crashes at boot (HP MICROSERVER #221350)...
Comment 3 Niclas Zeising freebsd_committer freebsd_triage 2021-03-22 08:57:24 UTC
This is an ancient current system.  Clang 9.0 has not been the default for at least 6 months, probably even longer (I can't remember).  Please update to a newer version of FreeBSD and try again.