the boost version installed through yum is 1.33 while it looks boost >=1.39 is 
required in build checking. I thus installed boost 1.39 rpm package downloaded 
from sipxecs repository but had the same build errors.
  
 The following are boost and boost-jam rpm installed in my dev server.
 [root@localhost sipxecs]# rpm -qa | grep boost
boost-debuginfo-1.39.0-1
boost-jam-3.1.17-3.1
boost-jam-debuginfo-3.1.17-3.1
boost-1.39.0-1
boost-devel-1.39.0-1
  
 While when I looked at what I missed in deps and found erlmongo missed. Is 
that the real reason of my build error ?
  
 [root@localhost sipxecs]# make sipx.deps-missing-build-list
erlmongo

   
  
  ------------------ 原始邮件 ------------------
  发件人: "Joegen Baclor"<[email protected]>;
 发送时间: 2011年11月21日(星期一) 上午9:54
 收件人: "sipXecs developer discussions"<[email protected]>; 
 抄送: "猪霸街"<[email protected]>; 
 主题: Re: [sipx-dev] 回复: libsipXcommserver.so: undefined reference to `boost'

  
I suggest you uninstall all copies of boost in your dev box and install through 
yum.  You dont have a missing dependency.  what you have is a conlict in lib 
and header versions.  

On 11/19/2011 08:37 PM, 猪霸街 wrote:   I fixed the issue of missing of 
-lboost_system-mt by adding softlink to  -lboost_system-gcc411-mt, but make 
build was broken again at following errors.
  
 I didn't make any source code change yet.
  
 I also followed your suggestion to edit sipXcommserverLib/bin/Makefile.am but 
it looks not work as well.
  
  
 -----------------
 mkdir .libs
g++ -DSIP_TLS -I/usr/local/sipx/include -I/usr/local/sipx/include 
-I/usr/include -I/usr/local/sipx/include -g -O2 -D__pingtel_on_posix__ 
-D_linux_ -D_REENTRANT -D_FILE_OFFSET_BITS=64 -fmessage-length=0 -Wall -Wformat 
-Wwrite-strings -Wpointer-arith -I/usr/include -o .libs/sipxconfigrpc 
configrpc.o  -L/usr/local/sipx/lib ../src/.libs/libsipXcommserver.so -L/usr/lib 
-lodbc /usr/local/sipx/lib/libsipXtack.so /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*)'
../src/.libs/libsipXcommserver.so: undefined reference to 
`boost::detail::condition_impl::condition_impl()'
../src/.libs/libsipXcommserver.so: undefined reference to 
`boost::thread::thread(boost::function0<void, 
std::allocator<boost::function_base> > const&)'
../src/.libs/libsipXcommserver.so: undefined reference to 
`boost::call_once(void (*)(), int&)'
../src/.libs/libsipXcommserver.so: undefined reference to 
`boost::detail::tss::init(boost::function1<void, void*, 
std::allocator<boost::function_base> >*)'
../src/.libs/libsipXcommserver.so: undefined reference to 
`boost::detail::tss::cleanup(void*)'
../src/.libs/libsipXcommserver.so: undefined reference to 
`boost::mutex::do_unlock()'
../src/.libs/libsipXcommserver.so: undefined reference to 
`boost::mutex::do_lock()'
../src/.libs/libsipXcommserver.so: undefined reference to 
`boost::xtime_get(boost::xtime*, int)'
../src/.libs/libsipXcommserver.so: undefined reference to 
`boost::detail::tss::get() const'
   
  
  ------------------ 原始邮 件 ------------------
  发件人: "猪霸 街"<[email protected]>;
 发送时间: 2011年11月19日(星期六) 下午4:54
 收件人: "sipXecs developer discussions"<[email protected]>; 
 主题: Re: [sipx-dev] libsipXcommserver.so: undefined reference to `boost'

  
  I re-installed boost from boost-1.39.0-1.src.rpm but my make buidl was broken 
by "/usr/bin/ld: cannot find -lboost_system-mt".
  
 Is that the right version of boost ? I bjamed boost, not yum install boost.
  
 ----- Original Message -----  From: "Douglas Hubler" <[email protected]>
 To: "sipXecs developer discussions" <[email protected]>
 Sent: Friday, November 18, 2011 11:22 PM
 Subject: Re: [sipx-dev] libsipXcommserver.so: undefined reference to `boost'

 

2011/11/18 猪霸街 <[email protected]>:
> ../src/.libs/libsipXcommserver.so -L/usr/lib -lodbc
> /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/
_______________________________________________
sipx-dev mailing list
[email protected]
List Archive: http://list.sipfoundry.org/archive/sipx-dev/

Reply via email to