Giter VIP home page Giter VIP logo

Comments (12)

interkosmos avatar interkosmos commented on June 24, 2024 1

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.

interkosmos avatar interkosmos commented on June 24, 2024

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.

Taymindis avatar Taymindis commented on June 24, 2024

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.

Taymindis avatar Taymindis commented on June 24, 2024

Hi, Thanks for reporting, new code checked in fixed.

from nginx-link-function.

interkosmos avatar interkosmos commented on June 24, 2024

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.

Taymindis avatar Taymindis commented on June 24, 2024

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.

interkosmos avatar interkosmos commented on June 24, 2024

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.

Taymindis avatar Taymindis commented on June 24, 2024

@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.

interkosmos avatar interkosmos commented on June 24, 2024

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.

Taymindis avatar Taymindis commented on June 24, 2024

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.

interkosmos avatar interkosmos commented on June 24, 2024

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.

Taymindis avatar Taymindis commented on June 24, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.