-
Notifications
You must be signed in to change notification settings - Fork 42
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
ngx_link_func_init_cycle()
not found on FreeBSD
#14
Comments
A possible fix is to simply call |
Hi, it would be great if you could fork and pull request to fix this compatibility issue. #if __FreeBSD__
- flush the dlerror().
#endif |
Hi, Thanks for reporting, new code checked in fixed. |
Thank you. Do you mind publishing a new release soon? The FreeBSD port of nginx could be updated then to be compiled with the fix. |
HI @interkosmos , I have just deployed the new release. https://github.com/Taymindis/nginx-link-function/releases/tag/3.2.2 |
Thank you for the rapid release. The FreeBSD port of nginx has been updated to include the fix. I recompiled nginx, but unfortunately, the issue is still not resolved. The very same error persists. |
@interkosmos Could you try compile a simple C program and embedded this snippet #if __FreeBSD__
printf("I am FreeBSD");
#endif |
Example program:
Output:
|
My FreeBSD VM version is
I could not replicate the issue anymore after i fixed it. The only different is I was not installing from Ports. Maybe you can show me how you install it with Nginx? Please skype me if you're free Thanks |
Sorry, I’ve no Skype. But what I did was simply building the Port |
I replicated the issue, I think the issue is happened when starting nginx for validity checking, I have fixed them and release 3.2.3. Thanks |
Thank you, the FreeBSD port now builds successfully and the issue seems to be solved. I’ve sent the required patches to the port maintainer and suppose that the port will be updated soon. |
The following basic example is not accepted by the
nginx-link-function
module on FreeBSD 12 with nginx 1.18 :Compilation:
The shared library is then loaded with:
Starting nginx fails with:
But the shared library contains the wanted function:
The text was updated successfully, but these errors were encountered: