Welcome! Log In Create A New Profile

Advanced

Re: Compiled error included the extern library

April 04, 2010 02:22AM
Looks like this library must be linked with posix threading library.

You can add "-pthread" to CORE_LIBS.

2010/4/4 quan nexthop <quan.nexthop@gmail.com>:
> HI all:
>
> I met a compiled error when I included a static library.
>
> -------------------------------------------------------------
> 1. the config file for my module
> CORE_LIBS="$CORE_LIBS ${XTRUNK}/target/lib/libfilter.a \
>                       /usr/local/lib/libmxml.a\
>                       ${XTRUNK}/target/lib/libsigture.a"   <---call the xml
> function
> 2. The error infor is as following
> /usr/local/lib/libmxml.a(mxml-private.o): In function `_mxml_global':
> /Trunk/src/3rd/mxml-2.6/mxml-private.c:148: undefined reference to
> `pthread_once'
> /Trunk/src/3rd/mxml-2.6/mxml-private.c:150: undefined reference to
> `pthread_getspecific'
> /Trunk/src/3rd/mxml-2.6/mxml-private.c:153: undefined reference to
> `pthread_setspecific'
> /usr/local/lib/libmxml.a(mxml-private.o): In function `_mxml_init':
>
> the static library of libsigature.a call the XML function.
>
> 3. If I change the RED mark with -lmxml, the issue is still happened.
>
>
> Could you please help me for thise ?
>
> Thanks
> Nexthop
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://nginx.org/mailman/listinfo/nginx
>
>



--
С уважением, Борис Долгов.
icq 77556665
e-mail boris@dolgov.name

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

Compiled error included the extern library

nexthop April 03, 2010 10:50PM

Re: Compiled error included the extern library

Boris Dolgov April 04, 2010 02:22AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 146
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