It did not work to add "-lboost_thread-mt" in
sipXcommserverLib/bin/Makefile.am, same errors as before.
------------------ Original ------------------
From: "Douglas Hubler"<[email protected]>;
Date: Wed, Nov 23, 2011 08:07 PM
To: "sipXecs developer discussions"<[email protected]>;
Cc: "猪霸街"<[email protected]>;
Subject: Re: [sipx-dev] 回复: 回复: 回复: 回复: libsipXcommserver.so: undefined
reference to `boost'
2011/11/23 Joegen Baclor <[email protected]>:
> I am running out of ideas. The compile flags seems correct. Perhaps
> Douglas has some insights.
I never got a direct response to my insights about including thread lib
>> /usr/local/sipx/lib/libsipXtack.so -L/usr/local/lib
>> /usr/local/sipx/lib/libsipXport.so -lpcre -lrt -lpthread -lboost_thread-mt
>> -lboost_filesystem-mt -ldl -lssl -lcrypto -lresolv -lmongoclient
>> -lboost_system-mt -lboost_regex-mt -Wl,--rpath -Wl,/usr/local/sipx/lib
>> ../src/.libs/libsipXcommserver.so: undefined reference to
>> `boost::detail::tss::set(void*)'
>
> Edit sipXcommserverLib/bin/Makefile.am and try adding
>
> -lboost_thread-mt
>
> to
>
> sipxconfigrpc_LDADD
>
> So something like
>
> sipxconfigrpc_LDADD = \
> ../src/libsipXcommserver.la \
> -lboost_thread-mt
>
> If this works, it may only get you a little further. We may have to go
> back and add dep to sipXcommserver lib .la.
>
> It's possible your system that actives some gcc compiler switch that
> adds a dependency to this library. If so, I'm happy to simply specify
> this dependency, it's all part of single boost install. Have you
> modified sipxecs source code at all?
_______________________________________________
sipx-dev mailing list
[email protected]
List Archive: http://list.sipfoundry.org/archive/sipx-dev/