Comments (12)
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.
from nginx-link-function.
A possible fix is to simply call dlerror()
before dlsym(scf->_app, (const char*)"ngx_link_func_init_cycle")
and dlsym(scf->_app, (const char*)"ngx_link_func_exit_cycle")
in ngx_link_func_module.c
to clear the error state.
from nginx-link-function.
Hi, it would be great if you could fork and pull request to fix this compatibility issue.
#if __FreeBSD__
- flush the dlerror().
#endif
from nginx-link-function.
Hi, Thanks for reporting, new code checked in fixed.
from nginx-link-function.
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.
from nginx-link-function.
HI @interkosmos , I have just deployed the new release.
https://github.com/Taymindis/nginx-link-function/releases/tag/3.2.2
from nginx-link-function.
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.
from nginx-link-function.
@interkosmos
is your OS FreeBSD or other BSD?
Could you try compile a simple C program and embedded this snippet
#if __FreeBSD__
printf("I am FreeBSD");
#endif
from nginx-link-function.
Example program:
/* test.c */
#include <stdio.h>
int main(void)
{
#if __FreeBSD__
printf("I am FreeBSD");
#endif
return 0;
}
Output:
$ uname -a
FreeBSD endeavour 12.1-RELEASE-p3 FreeBSD 12.1-RELEASE-p3 GENERIC amd64
$ cc -o test test.c
$ ./test
I am FreeBSD
from nginx-link-function.
My FreeBSD VM version is
12.1-RELEASE r354233 GENERIC amd64
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 live:.cid.307deb505c0a691
Thanks
from nginx-link-function.
Sorry, I’ve no Skype. But what I did was simply building the Port www/nginx
v. 1.18.0_4,2 with LINK
option enabled in Poudriere (cd /usr/local/ports/www/nginx/ && make config && make && make install
or portmaster www/nginx
should work equally). Then, I called pkg install www/nginx
to install the (Poudriere-built) package, and service nginx start
to start the daemon.
from nginx-link-function.
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
from nginx-link-function.
Related Issues (14)
- Could this be somehow used with golang? HOT 6
- How to get the value of a config file param during cycle init? HOT 2
- For windows dll HOT 2
- nginx: [emerg] unknown directive "ngx_http_c_func_link_lib" in /home/aimso/nginx-c-function/t/servroot/conf/nginx.conf HOT 3
- Make header installation after building HOT 4
- unknown directive "ngx_link_func_lib" HOT 5
- Nginx gzip filter compatibility issue HOT 4
- Facing client request blocking issue? HOT 1
- ngx_http_c_func_module.h not found in your system c header path, please copy latest ngx_http_c_func_module.h to your /usr/include or /usr/local/include HOT 2
- Logging? HOT 2
- Authentication Phase are not support for nginx-c-function with nginx -1.13.3 and below. HOT 1
- how to make an async call before proxy to another server? HOT 1
- How to subrequest in async way by using `ngx_link_func_subrequest ` HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nginx-link-function.