Bug 254429 - devel/libepoll-shim fails to build: undefined reference to sigandset
Summary: devel/libepoll-shim fails to build: undefined reference to sigandset
Status: Closed Not A Bug
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-x11 (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-03-20 10:02 UTC by L GILBERT
Modified: 2021-03-22 08:57 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (x11)


Attachments
compilation log (24.70 KB, text/plain)
2021-03-20 10:02 UTC, L GILBERT
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.