I am running out of ideas. The compile flags seems correct. Perhaps
Douglas has some insights.
On 11/23/2011 11:15 AM, 猪霸街 wrote:
the following boost and jam were installed in my dev box.
[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
After I reinstalled boost from sipx rpm, I deleted the directory of
sipxecs and git clone git://github.com/dhubler/sipxecs.git sipxecs again.
Since my previous buiding process always claimed not found
-libboost_system-mt, I have to create soft link of
libboost_system-mt.so to libboost_system-gcc41-mt-1_39.so, same
situation on libboost_filesystem.so, libboost_regex-mt.so and
libboost_thread.so in /usr/lib.
Then I entered /opt/sipxecs to do followings -
autoreconf -if
./configure
make build
Please refer to my build log file attached.
------------------ 原始邮件 ------------------
*发件人:* "Joegen Baclor"<[email protected]>;
*发送时间:* 2011年11月22日(星期二) 晚上7:28
*收件人:* "猪霸街"<[email protected]>;
*抄送:* "sipXecs developer discussions"<[email protected]>;
*主题:* Re: 回复: [sipx-dev] 回复: 回复: libsipXcommserver.so:
undefined reference to `boost'
Can you attach the entire compiler output when you attempt to compile
commServerLib? Might be an annoying question but did you clean your
project first after you have reinstalled boost from the sipx rpm?
On 11/22/2011 07:24 AM, 猪霸街 wrote:
I installed the boot rpms from
http://download.sipfoundry.org/pub/sipXecs/4.4.0/CentOS_5/i386/ since
I am running 32bit Centos in my dev server. Still going nowhere.
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
------------------ 原始邮 件 ------------------
*发件人:* "Joegen Baclor"<[email protected]>;
*发送时间:* 2011年11月21日(星期一) 晚上10:06
*收件人:* "sipXecs developer discussions"<[email protected]>;
*抄送:* "猪霸街"<[email protected]>;
*主题:* Re: [sipx-dev] 回复: 回复: libsipXcommserver.so: undefined
reference to `boost'
Bummer. I forgot that we do build 1.39 becuase of mongo. you can get
the correct boost rpms here
http://download.sipfoundry.org/pub/sipXecs/4.4.0/CentOS_5/x86_64/
On 11/21/2011 08:33 PM, 猪霸街 wrote:
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] <mailto:[email protected]>>
To: "sipXecs developer discussions" <[email protected]
<mailto:[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] <mailto:[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/
_______________________________________________
sipx-dev mailing list
[email protected]
List Archive: http://list.sipfoundry.org/archive/sipx-dev/