Compiled error included the extern library

quan nexthop quan.nexthop at gmail.com
Sun Apr 4 06:46:31 MSD 2010


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20100404/2ee2e8eb/attachment.html>


More information about the nginx mailing list