Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unknown symbol EVFILT_USER for bee.epoll on OpenBSD #41

Closed
lcheylus opened this issue Apr 23, 2024 · 2 comments
Closed

Unknown symbol EVFILT_USER for bee.epoll on OpenBSD #41

lcheylus opened this issue Apr 23, 2024 · 2 comments

Comments

@lcheylus
Copy link

lcheylus commented Apr 23, 2024

I'm trying to compile latest version of luamake on OpenBSD current/amd64.

I have an error during build with unknown symbol EVFILT_USER.

$ cd luamake
$ ./compile/build.sh
[3/36] Compile C++ build/openbsd/obj/source_bee/bpoll_bsd.obj
FAILED: build/openbsd/obj/source_bee/bpoll_bsd.obj
clang -MMD -MT build/openbsd/obj/source_bee/bpoll_bsd.obj -MF build/openbsd/obj/source_bee/bpoll_bsd.obj.d -std=c++17 -fno-rtti -O2 -Wall -fvisibility=hidden -Ibee.lua -isystem /usr/local/include/inotify -DNDEBUG -o build/openbsd/obj/source_bee/bpoll_bsd.obj -c bee.lua/bee/net/bpoll_bsd.cpp
In file included from bee.lua/bee/net/bpoll_bsd.cpp:1:
bee.lua/bee/net/bpoll_osx.cpp:48:37: error: use of undeclared identifier 'EVFILT_USER'
            EV_SET(&ev[n], kev_key, EVFILT_USER, EV_ADD, 0, 0, 0);
                                    ^
bee.lua/bee/net/bpoll_osx.cpp:51:41: error: use of undeclared identifier 'EVFILT_USER'
                EV_SET(&ev[n], kev_key, EVFILT_USER, EV_DELETE, 0, 0, 0);
                                        ^
bee.lua/bee/net/bpoll_osx.cpp:70:37: error: use of undeclared identifier 'EVFILT_USER'
            EV_SET(&ev[i], kev_key, EVFILT_USER, EV_RECEIPT, 0, 0, 0);
                                    ^
3 errors generated.
[5/36] Compile C++ build/openbsd/obj/source_bee/format.obj
ninja: build stopped: subcommand failed.

After a few analysis, this error is due to the recent addition of bee.poll (source bee/net/bpoll_osx.cpp): the symbol EVFILT_USER is not supported on OpenBSD => see include sys/event.h https://github.com/openbsd/src/blob/master/sys/sys/event.h

Before the recent addition of bee.poll, I have no issue to compile luamake on OpenBSD amd64.

@actboy168
Copy link
Owner

I have removed EVFILT_USER.

@lcheylus
Copy link
Author

OK, thanks.

With update of bee.lua submodule, my compilation of luamake on OpenBSD/amd64 is OK.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants