-
-
Notifications
You must be signed in to change notification settings - Fork 243
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
chore: use upstream e-dant/watcher headers and build system #1119
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
internal/watcher/watcher.go
Outdated
@@ -4,8 +4,7 @@ | |||
|
|||
package watcher | |||
|
|||
// #cgo LDFLAGS: -lwatcher -lstdc++ | |||
// #cgo CFLAGS: -Wall -Werror | |||
// #cgo LDFLAGS: -lwatcher-c -lstdc++ -Wl,-rpath /usr/local/lib |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will this require the watcher to be installed to /usr/local/lib
and/or does it affect static builds?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can be override using CGO_LDFLAGS
, but we'll likely be able to remove this soon: e-dant/watcher#59
1da25b1
to
21db402
Compare
I don't get why we get this linking issue https://github.com/dunglas/frankenphp/actions/runs/11543390970/job/32127719767?pr=1119 (same in the Docker image). It works on my computer (^^) but I'm on Mac. Maybe do you have an idea @e-dant? |
That looks correct to me. Running this locally in a container and strace'ing some stuff, the execve stuff also looks fine to me. Attaching output from a run of
The symbols must not be visible in the shared library. Everything else looks fine. |
What? |
One alternative is this:
Which does have these symbols... Not sure how I broke the CMake build, but something is wrong there. |
So, it turns out that our entire library was being optimized away with
This fixes it... |
Version 0.13.2 fixes this:
Should work |
Thank you very much @e-dant, this works! |
4794be4
to
41e90b8
Compare
❤️ |
See e-dant/watcher#58.