Welcome! Log In Create A New Profile

Advanced

Re: How can i compile nginx with specific lib linkage

January 27, 2014 05:58AM
Maxim Dounin Wrote:
-------------------------------------------------------
> Hello!
>
> On Thu, Jan 23, 2014 at 11:35:44PM -0500, humank wrote:
>
> > I have customized a new nginx add on module,and the module use an
> external
> > lib ( mytest.so).
> > The method i called in mytest.so is kimtest method.
> > How can i configure the ./configure file and Makefile to prevent the
> error "
> > undefined reference to `kimtest' "
> >
> > Here is the configure file..
> >
> > auto/configure --with-debug --with-ld-opt="-L/usr/local/lib64"
> > --add-module=./src/my_nginx_module
> >
> > while configuring .. everything seems ok, no error occurs.
> > but while making ... " undefined reference to `kimtest' "
>
> Something like
>
> CORE_LIBS="$CORE_LIBS -lmytest"
>
> in your module config file should do the trick.
>
> --
> Maxim Dounin
> http://nginx.org/
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx

Hi Maxim Dounin,

i solved the problem as you provided solution.
But i face another problem, that is while starting the nginx server, still lack of the library at runtime.
I should set the LIBRARY_PATH in order to start the nginx correctly. ( export LD_LIBRARY_PATH)
Is there any suggestion or setting to set the install config ?

BRs,
Kim
Subject Author Posted

How can i compile nginx with specific lib linkage

humank January 23, 2014 11:35PM

Re: How can i compile nginx with specific lib linkage

Maxim Dounin January 24, 2014 10:50AM

Re: How can i compile nginx with specific lib linkage

humank January 27, 2014 05:58AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 318
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready