Webrtc2Sip Compilation Error on Ubuntu 11.04

591 views
Skip to first unread message

James Mortensen

unread,
Aug 24, 2012, 4:39:56 PM8/24/12
to doub...@googlegroups.com
Hello,

I'm trying to build the Webrtc2Sip application and have not been successful.  Here is the error message that I'm seeing:

In file included from BerkeleyDb.cxx:14:0:
../repro/BerkeleyDb.hxx:8:19: fatal error: db_cxx.h: No such file or directory
compilation terminated.
make[3]: *** [BerkeleyDb.lo] Error 1
make[3]: Leaving directory `/mnt/src/resiprocate/repro'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/mnt/src/resiprocate/repro'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/mnt/src/resiprocate'
make: *** [all] Error 2
root@asterisk11-west:/mnt/src/resiprocate# l


The file it's complaining about not finding, db_cxx.h is located in the path /resiprocate/contrib/db/build_vxworks.  I've also tried using different configure commands from the README Debian build instructions, as well as the build instructions on the website http://code.google.com/p/webrtc2sip/.

./configure --with-ssl --with-mysql CXXFLAGS="-DRESIP_FIXED_POINT -I`pwd`/contrib/Netxx-0.3.2/include " LDFLAGS="-L`pwd`/contrib/Netxx-0.3.2/src"

All attempts have led to the same error about db_cxx.h not being found.

Here is more information that may or may not be helpful:
  • libdb4.2++-dev wasn't available on my distro.  Instead, I installed libdb4.8-dev
  • Here is the result of the uname -r command:
2.6.38-8-virtual
  • And cat /proc/version
Linux version 2.6.38-8-virtual (buildd@allspice) (gcc version 4.5.2 (Ubuntu/Linaro 4.5.2-8ubuntu3) ) #42-Ubuntu SMP Mon Apr 11 04:06:34 UTC 2011

  • And cat /etc/issue
cat /etc/issue
Ubuntu 11.04 \n \l

 

Mamadou

unread,
Aug 24, 2012, 4:45:02 PM8/24/12
to doub...@googlegroups.com, James Mortensen
We haven't tried to build with mysql enabled (only ssl and ipv6 are required). Why do you want it enabled?
You should just try with the command line provided in the website.
--
 
 

James Mortensen

unread,
Aug 24, 2012, 4:54:45 PM8/24/12
to doub...@googlegroups.com, James Mortensen
Hi Mamadou,

I tried the code on the website first, both on the Ubuntu 11.04 server as well as my local Ubuntu 12.04 box.  Same error no matter which instructions I follow.

To clarify, if this is the site you're referring to:  http://code.google.com/p/webrtc2sip/, then those are the instructions I followed first.

What system did you use to build on? So far I've had no luck on either Ubuntu 12.04 or 11.04, assuming the platform is the problem...

Hope this helps!
James

Mamadou

unread,
Aug 24, 2012, 4:56:30 PM8/24/12
to doub...@googlegroups.com
I'm using Centos64 but your issue is not related to the OS but C++ code.
Are you sure you have checked out the right revision and applied the patch as explained?
--
 
 

Mamadou

unread,
Aug 24, 2012, 5:03:11 PM8/24/12
to doub...@googlegroups.com
I have checked the source code and it looks like this error could only happen if 'WIN32' is defined.
could you please share the result for 'echo $CFLAGS'
--
 
 

James Mortensen

unread,
Aug 24, 2012, 5:21:24 PM8/24/12
to doub...@googlegroups.com
Hi Mamadou,

root@asterisk11-west:/mnt/src/resiprocate# echo $CFLAGS

root@asterisk11-west:/mnt/src/resiprocate# 

The flag does not appear to be defined. Not sure if this helps, but I looked in the Makefile and this is what I see:

CFLAGS = -g -O2 -Wall -Wno-deprecated

James

Hadi Ams

unread,
Aug 24, 2012, 5:25:25 PM8/24/12
to doub...@googlegroups.com
Dear Mamadou ,
I am having exactly the same problem as James , and I'm running Ubuntu 12.04 .
I tried several thing but no success so far . As I understood from searching on google , there is a problem with the path of included header(db_cxx.h) to the libraries that are included in Berkeley's libdb4 and there is also a hint from the HOWTO page :
"On some systems (e.g. debian), #include <db4/db_cxx.h> may need to be changed to #include <db_cxx.h>"
but I can't figure out how to solve this issue and I can not locate the Berkeley libdb directories on the drive.
I tried to copy the db_cxx.h from " /resiprocate/contrib/db/build_vxworks" to "repro" and run the installation again but this time it passes the db_cxx.h but right after that it complains about :"db.h" and I found several different copies of db.h in the directories and I don't know what to do .
Please advice and thank you for all the efforts.

Hadi Ams

unread,
Aug 24, 2012, 5:26:57 PM8/24/12
to doub...@googlegroups.com
Same output on my box ;)

Mamadou

unread,
Aug 24, 2012, 5:29:22 PM8/24/12
to doub...@googlegroups.com
On 8/24/2012 11:26 PM, Hadi Ams wrote:
Same output on my box ;)
--
 
 
Is it possible to have the 'config.h' file generated after running configure script?

Mamadou

unread,
Aug 24, 2012, 5:42:51 PM8/24/12
to doub...@googlegroups.com
--
 
 
and the result for 'find / -name db_cxx.h'
I have:
/usr/include/db4/db_cxx.h
/usr/include/db_cxx.h

James Mortensen

unread,
Aug 24, 2012, 5:46:39 PM8/24/12
to doub...@googlegroups.com
Since the db_cxx.h file is in the contrib/db/build_vxworks folder, I assume the db.h file the compiler needs is the one located in that particular folder. So I symlinked  them both in the resiprocate folder and reran make. The compiler ran for several minutes and now I get a different error response:

ibtool: link: g++ -shared -nostdlib /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/../../../crti.o /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/crtbeginS.o  .libs/RouteStore.o .libs/UserStore.o .libs/ConfigStore.o .libs/AclStore.o .libs/StaticRegStore.o .libs/FilterStore.o .libs/SiloStore.o .libs/Store.o .libs/AbstractDb.o .libs/BerkeleyDb.o .libs/CommandServer.o .libs/CommandServerThread.o .libs/ProxyConfig.o .libs/ReproVersion.o .libs/HttpBase.o .libs/HttpConnection.o .libs/WebAdmin.o .libs/WebAdminThread.o .libs/Proxy.o .libs/Registrar.o .libs/RegSyncClient.o .libs/RegSyncServer.o .libs/RegSyncServerThread.o .libs/ReproRunner.o .libs/ReproServerAuthManager.o .libs/RequestContext.o .libs/ResponseContext.o .libs/RRDecorator.o .libs/Processor.o .libs/ProcessorChain.o .libs/Target.o .libs/WorkerThread.o .libs/XmlRpcConnection.o .libs/XmlRpcServerBase.o .libs/Dispatcher.o .libs/OutboundTarget.o .libs/QValueTarget.o .libs/CertificateAuthenticator.o .libs/DigestAuthenticator.o .libs/StrictRouteFixup.o .libs/AmIResponsible.o .libs/IsTrustedNode.o .libs/ConstantLocationMonkey.o .libs/LocationServer.o .libs/OutboundTargetHandler.o .libs/RecursiveRedirect.o .libs/SimpleStaticRoute.o .libs/StaticRoute.o .libs/QValueTargetHandler.o .libs/SimpleTargetHandler.o .libs/GeoProximityTargetSorter.o .libs/RequestFilter.o .libs/MessageSilo.o .libs/CertServer.o .libs/CertPublicationHandler.o .libs/CertSubscriptionHandler.o .libs/PrivateKeyPublicationHandler.o .libs/PrivateKeySubscriptionHandler.o   -L/mnt/src/resiprocate/rutil/dns/ares -ldb_cxx -lrt -L/usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2 -L/usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/../../.. -L/usr/lib/x86_64-linux-gnu -lstdc++ -lm -lc -lgcc_s /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/crtendS.o /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/../../../crtn.o    -Wl,-soname -Wl,librepro-1.9.so -o .libs/librepro-1.9.so
/usr/bin/ld: cannot find -ldb_cxx
collect2: ld returned 1 exit status
make[3]: *** [librepro.la] Error 1
make[3]: Leaving directory `/mnt/src/resiprocate/repro'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/mnt/src/resiprocate/repro'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/mnt/src/resiprocate'
make: *** [all] Error 2
root@asterisk11-west:/mnt/src/resiprocate# 

James

Mamadou

unread,
Aug 24, 2012, 5:48:45 PM8/24/12
to doub...@googlegroups.com
No, you MUST NOT do this.
Do you have '/usr/include/db4/db_cxx.h' in your system?
--
 
 

Hadi Ams

unread,
Aug 24, 2012, 5:54:36 PM8/24/12
to doub...@googlegroups.com
Config.h is attached  ;)

the output of find command is : 

resiprocate/contrib/db/build_windows/db_cxx.h
resiprocate/contrib/db/build_vxworks/db_cxx.h

It's strange that I can't find the db4 directory although I installed the correct version of libdb before the installation as it was instructed on the project page :)
config.h

James Mortensen

unread,
Aug 24, 2012, 5:56:53 PM8/24/12
to doub...@googlegroups.com
No, that file isn't there. The only place where I have cd_cxx.h is in the resiprocate project.

James

--
 
 



--
James Mortensen
Project Manager, VoiceCurve, Inc.
866-707-4590
james.m...@voicecurve.com

Mamadou

unread,
Aug 24, 2012, 6:00:24 PM8/24/12
to doub...@googlegroups.com, James Mortensen
Ok. I'll install Ubuntu and try to reproduce the issue.
--
 
 

James Mortensen

unread,
Aug 24, 2012, 6:04:28 PM8/24/12
to doub...@googlegroups.com
Hey Hadi, 

Which libdb-dev version did you install?  The docs called for libdb4.2++-dev, but the Ubuntu repository never heard of it!  I ended up using libdb4.8-dev and libdb-dev.  

Am wondering if you ran into the same issues I did with that step.  

James

--
 
 

Carlos Paz - Callnet Communications

unread,
Aug 24, 2012, 6:05:30 PM8/24/12
to doub...@googlegroups.com
James.

I have installed Sucessfully in Debian and Centos. Did you installed BerkelyDb?. I think that is your issue.

Regards.
CarloS Paz
President-CTO 
CALLNET Communications
Email: carl...@fcallnet.com
MSN: systel...@hotmail.com
Skype: callnet3
Tel: +34659136921
Tel: +1 9543977910
28670 - Villaviciosa de Odon - Madrid
Spain
--
 
 

James Mortensen

unread,
Aug 24, 2012, 6:10:02 PM8/24/12
to doub...@googlegroups.com
Hi Carlos, 

I was actually trying to figure out where to get the Berkeley DB?   I assumed that's what libdb-dev was.  Can you point me in the right direction if this isn't the case?

Thank you!
James

Carlos Paz - Callnet Communications

unread,
Aug 24, 2012, 6:36:30 PM8/24/12
to doub...@googlegroups.com, James Mortensen
I installed Berkeley 4.6 in Debian (aptitude install libdb4.6++-dev or libdb4.2++-dev ), and in centos yum install db4 db4-devel

Can you share again te patch Doubango for avoid INVITE and Cypto issues ? I found this Mamadou link, but it's broken. https://groups.google.com/forum/?fromgroups=#!topic/doubango/m7FCqYxRcQc


Regards.

 
CarloS Paz
President-CTO 
CALLNET Communications
Email: carl...@fcallnet.com
MSN: systel...@hotmail.com
Skype: callnet3
Tel: +34659136921
Tel: +1 9543977910
28670 - Villaviciosa de Odon - Madrid
Spain
--
 
 

Mamadou

unread,
Aug 24, 2012, 7:08:12 PM8/24/12
to doub...@googlegroups.com, Carlos Paz - Callnet Communications, James Mortensen
--
 
 

Carlos Paz - Callnet Communications

unread,
Aug 24, 2012, 7:10:36 PM8/24/12
to Mamadou, doub...@googlegroups.com, James Mortensen
Thank you very much.

CarloS Paz
President-CTO 
CALLNET Communications
Email: carl...@fcallnet.com
MSN: systel...@hotmail.com
Skype: callnet3
Tel: +34659136921
Tel: +1 9543977910
28670 - Villaviciosa de Odon - Madrid
Spain

Mamadou

unread,
Aug 24, 2012, 8:22:50 PM8/24/12
to doub...@googlegroups.com, Carlos Paz - Callnet Communications, James Mortensen
Installed clean Ubuntu 12.04 and followed the steps from the web. Made required changes (added Ubuntu section).
As you have already installed all required libraries, just install Berkeley package:
sudo apt-get install libdb++-dev
then
make && make install
For now we have: Debian, CentOS and Ubuntu :)
--
 
 

Message has been deleted

Hadi Ams

unread,
Aug 25, 2012, 6:15:49 AM8/25/12
to doub...@googlegroups.com, Carlos Paz - Callnet Communications, James Mortensen
Thank you very much for the great support Mamadou.
Finally compiled and installed successfully on Ubuntu 12.04 using the updated build instructions for Ubuntu on the WebRTC2SIP project page.

@James : Initially I tried with the required version (libdb4.2++-dev) and it was installed with no problem ( I suppose it was available on my box ) and then tried with libdb4.8 and no success.
Finally I used the updated instructions and tried "libdb++-dev" which automatically loaded the versions 4.8 and 5.1 .
currently I have these packages installed :

dpkg --get-selections | grep libdb
libdb++-dev					install
libdb4.8					install
libdb5.1					install
libdb5.1:i386					install
libdb5.1++					install
libdb5.1++-dev					install
libdb5.1-dev					install
libdbus-1-3					install
libdbus-1-3:i386				install
libdbus-glib-1-2				install
libdbus-glib-1-2:i386				install
libdbusmenu-glib4				install
libdbusmenu-gtk3-4				install
libdbusmenu-gtk4				install
libdbusmenu-qt2					install

Руслан Корнев

unread,
Mar 27, 2014, 6:43:25 PM3/27/14
to doub...@googlegroups.com
Also may be usefull for strangers.

➜  resiprocate git:(21cef27) ✗ apt-file search db_cxx.h           
db5.1-doc: /usr/share/doc/db5.1-doc/upgrading/upgrade_3_0_db_cxx.html
libdb5.1++-dev: /usr/include/db_cxx.h

суббота, 25 августа 2012 г., 14:15:49 UTC+4 пользователь Hadi Ams написал:
Reply all
Reply to author
Forward
0 new messages