This Question is Answered

1 "correct" answer available (4 pts) 2 "helpful" answers available (2 pts)
2 Replies Last post: Jun 7, 2008 4:29 AM by jun.wen  
Click to view jun.wen's profile   5 posts since
May 28, 2008

May 28, 2008 11:33 AM

Help for OpenSBC compile error


Hi, Gentlmen,

When I CVS the latest OpenSBC code and compiled it ( make bothnoshared). I encountered a compile error as followings. Pls help to look what's going wrong. I've CVS&compiled Opensipstack and no error reported.

Regards,


g++ -o obj_linux_x86_r/opensbc -L/opt/opensipstack/lib -L/opt/opensipstack/lib ./obj_linux_x86_r/Main.o ./obj_linux_x86_r/SBCCallHandler.o ./obj_linux_x86_r/SBCRoutingHandler.o ./obj_linux_x86_r/SBCAuthHandler.o ./obj_linux_x86_r/SBCIVRHandler.o ./obj_linux_x86_r/SBCTrunk.o ./obj_linux_x86_r/SBCBackDoorTrunk.o ./obj_linux_x86_r/SBCCALEATrunk.o ./obj_linux_x86_r/SBCSIPTrunk.o ./obj_linux_x86_r/SBCSIPTrunkConnection.o ./obj_linux_x86_r/SBCSIPTrunkConfig.o ./obj_linux_x86_r/SBCSIPTrunkEndPoint.o ./obj_linux_x86_r/SBCSIPTrunkReg.o ./obj_linux_x86_r/SBCSIPTrunkRegManager.o ./obj_linux_x86_r/SBCSIPTrunkRegSession.o ./obj_linux_x86_r/SBCSIPTrunkRoutingHandler.o ./obj_linux_x86_r/SBCPHPSapi.o ./obj_linux_x86_r/OpenSBC.o ./obj_linux_x86_r/Router.o ./obj_linux_x86_r/RouteRecord.o -lopensipstack_linux_x86_r_s -lpt_linux_x86_r_s -lpthread -lexpat -lresolv -ldl -lpthread -lexpat -lresolv -ldl
./obj_linux_x86_r/OpenSBC.o: In function `OpenSBCDaemon::OnLoadResourceCounters(PString const&)':
OpenSBC.cxx:(.text+0x7826): undefined reference to `PThread::m_Count'
./obj_linux_x86_r/OpenSBC.o: In function `OpenSBCDaemon::OnStart(Tools::OSSAppConfig&)':
OpenSBC.cxx:(.text+0xca82): undefined reference to `PThread::m_Count'
/opt/opensipstack/lib/libopensipstack_linux_x86_r_s.a(connection.o): In function `OpalConnection::CreateSession(OpalTransport const&, unsigned int, RTP_QOS*)':
connection.cxx:(.text+0x266e): undefined reference to `RTP_UDP::RTP_UDP(unsigned int)'
/opt/opensipstack/lib/libopensipstack_linux_x86_r_s.a(ivr.o):(.rodata._ZTV18OpalIVRMediaStreamvtable for OpalIVRMediaStream+0x38): undefined reference to `OpalMediaStream::UpdateMediaFormat(OpalMediaFormat const&)'
collect2: ld returned 1 exit status
make[2]: *** obj_linux_x86_r/opensbc Error 1
make[2]: Leaving directory `/opt/opensbc'
make[1]: *** optnoshared Error 2
make[1]: Leaving directory `/opt/opensbc'
make: *** bothnoshared Error 2

Click to view joegen's profile   125 posts since
Apr 28, 2007
1. Jun 3, 2008 6:01 AM in response to: jun.wen
Re: Help for OpenSBC compile error
I was doing a lot of stuffs in CVS lately. You might have stumbled upon those unsync moments. Try CVS again. It should already behave properly.