Compiled error included the extern library

Борис Долгов boris at dolgov.name
Sun Apr 4 10:14:54 MSD 2010


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 at 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 at nginx.org
> http://nginx.org/mailman/listinfo/nginx
>
>



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



More information about the nginx mailing list