Re: gk cannot compile

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Lambros,

that sounds pretty strange. Did you follow the compile instructions on
http://www.gnugk.org/compiling-gnugk.html and
http://www.gnugk.org/compile-cvs.html ?

Regards,
Jan


lambros galanis wrote:
> Hello,
> 
> I want to use gnugk in order to have a complete h323 solution for the
> voip softswitch we use. 
> I tried to compile various versions and combinations of h323plus ptlib
> and gnugk, but with no success. My two latest attempts where with the
> cvs/svn versions and h323plus 1.21.0 and ptlib 2.4.5, following the
> instructions posted on the site. For these versions I compiled all three
> prerequisites with no errors, but when gnugk make opnoshared tried to
> link the files I got the error attached. These appear both on cvs
> versions, versions mentioned above and gnugk 2.3.0.
> I think that something is missing and I'm doing effords to find out
> what. If someone knows or may help to find out what is the problem, I
> would appreciate.
> 
> Regards, 
> Lambros 
> 
> 
> make optnoshared
> make DEBUG= P_SHAREDLIB=0 default_target
> make[1]: Entering directory `/usr/src/gnugk-2.3.0'
> g++ -o obj_linux_x86/gnugk  -L/usr/lib -L/usr/lib
> -L/usr/src/ptlib-2.4.5//lib_linux_x86
> -L/usr/src/h323plus1/lib   ./obj_linux_x86/main.o  ./obj_linux_x86/singleton.o  ./obj_linux_x86/job.o  ./obj_linux_x86/yasocket.o  ./obj_linux_x86/h323util.o  ./obj_linux_x86/Toolkit.o  ./obj_linux_x86/SoftPBX.o  ./obj_linux_x86/GkStatus.o  ./obj_linux_x86/RasTbl.o  ./obj_linux_x86/Routing.o  ./obj_linux_x86/Neighbor.o  ./obj_linux_x86/GkClient.o  ./obj_linux_x86/gkauth.o  ./obj_linux_x86/RasSrv.o  ./obj_linux_x86/ProxyChannel.o  ./obj_linux_x86/gk.o  ./obj_linux_x86/version.o  ./obj_linux_x86/gkacct.o  ./obj_linux_x86/gktimer.o  ./obj_linux_x86/gkconfig.o  ./obj_linux_x86/sigmsg.o  ./obj_linux_x86/clirw.o  ./obj_linux_x86/cisco.o  ./obj_linux_x86/ipauth.o  ./obj_linux_x86/statusacct.o  ./obj_linux_x86/syslogacct.o  ./obj_linux_x86/capctrl.o  ./obj_linux_x86/MakeCall.o  ./obj_linux_x86/radproto.o  ./obj_linux_x86/radauth.o  ./obj_linux_x86/radacct.o  ./obj_linux_x86/gksql_mysql.o  ./obj_linux_x86/gksql_sqlite.o  ./obj_linux_x86/sqlauth.o  ./obj_linux_x86/sqlacct.o  ./obj_li
 nux_x86/gksql.o -lh323_linux_x86__s  -lpt_s -lsqlite3  -lmysqlclient  -lz  -lpthread -lsasl2 -lssl -lcrypto -ldl -lz   -lexpat  -lSDL -lpthread   -lresolv -ldl 
> ./obj_linux_x86/Toolkit.o: In function `NetworkAddress::AsString()
> const':
> Toolkit.cxx:(.text+0x31c4): undefined reference to
> `PIPSocket::Address::AsString() const'
> ./obj_linux_x86/Toolkit.o: In function
> `Toolkit::AssignedGatekeepers::DatabaseLookup(PString const&,
> PIPSocket::Address const&, PStringArray&)':
> Toolkit.cxx:(.text+0x5504): undefined reference to
> `PIPSocket::Address::AsString() const'
> ./obj_linux_x86/Toolkit.o: In function
> `Toolkit::GetGKHome(std::vector<PIPSocket::Address,
> std::allocator<PIPSocket::Address> >&) const':
> Toolkit.cxx:(.text+0x6c42): undefined reference to
> `PIPSocket::Address::AsString() const'
> ./obj_linux_x86/Toolkit.o: In function
> `Toolkit::AssignedGatekeepers::GetAssignedGK(PString const&,
> PIPSocket::Address const&, H225_ArrayOf_AlternateGK&)':
> Toolkit.cxx:(.text+0x76a3): undefined reference to
> `PIPSocket::Address::AsString() const'
> ./obj_linux_x86/Toolkit.o: In function
> `Toolkit::RouteTable::InitTable()':
> Toolkit.cxx:(.text+0x1296a): undefined reference to
> `PIPSocket::GetGatewayAddress(PIPSocket::Address&)'
> Toolkit.cxx:(.text+0x1297c): undefined reference to
> `PIPSocket::Address::AsString() const'
> ./obj_linux_x86/Toolkit.o: In function
> `Toolkit::RouteTable::CreateRouteTable(PString const&)':
> Toolkit.cxx:(.text+0x13f11): undefined reference to
> `PIPSocket::Address::AsString() const'
> Toolkit.cxx:(.text+0x13fc5): undefined reference to
> `PIPSocket::Address::AsString() const'
> Toolkit.cxx:(.text+0x14007): undefined reference to
> `PIPSocket::Address::AsString() const'
> ./obj_linux_x86/Toolkit.o: In function
> `Toolkit::VirtualRouteTable::CreateTable()':
> Toolkit.cxx:(.text+0x14dde): undefined reference to
> `PIPSocket::Address::AsString() const'
> ./obj_linux_x86/GkStatus.o:GkStatus.cxx:(.text+0x83a4): more undefined
> references to `PIPSocket::Address::AsString() const' follow
> ./obj_linux_x86/gk.o: In function `Gatekeeper::Gatekeeper(char const*,
> char const*, unsigned short, unsigned short, PProcess::CodeStatus,
> unsigned short)':
> gk.cxx:(.text+0x6b): undefined reference to `PProcess::PProcess(char
> const*, char const*, unsigned short, unsigned short,
> PProcess::CodeStatus, unsigned short)'
> ./obj_linux_x86/gk.o: In function `Gatekeeper::Gatekeeper(char const*,
> char const*, unsigned short, unsigned short, PProcess::CodeStatus,
> unsigned short)':
> gk.cxx:(.text+0xbb): undefined reference to `PProcess::PProcess(char
> const*, char const*, unsigned short, unsigned short,
> PProcess::CodeStatus, unsigned short)'
> ./obj_linux_x86/gk.o: In function `Gatekeeper::Main()':
> gk.cxx:(.text+0x5686): undefined reference to
> `PIPSocket::Address::AsString() const'
> ./obj_linux_x86/gk.o:(.rodata._ZTV10Gatekeeper[vtable for
> Gatekeeper]+0x7c): undefined reference to `PProcess::_main(void*)'
> ./obj_linux_x86/gkacct.o: In function
> `GkAcctLogger::GetUsername(SmartPtr<CallRec> const&) const':
> gkacct.cxx:(.text+0x1686): undefined reference to
> `PIPSocket::Address::AsString() const'
> ./obj_linux_x86/gkacct.o: In function
> `GkAcctLogger::SetupAcctParams(std::map<PString, PString,
> std::less<PString>, std::allocator<std::pair<PString const, PString> >
> >&, SmartPtr<CallRec> const&, PString const&) const':
> gkacct.cxx:(.text+0x4ed7): undefined reference to
> `PIPSocket::Address::AsString() const'
> gkacct.cxx:(.text+0x526f): undefined reference to
> `PIPSocket::Address::AsString() const'
> gkacct.cxx:(.text+0x548d): undefined reference to
> `PIPSocket::Address::AsString() const'
> gkacct.cxx:(.text+0x5c65): undefined reference to
> `PIPSocket::Address::AsString() const'
> ./obj_linux_x86/ipauth.o:ipauth.cxx:(.text+0x1f55): more undefined
> references to `PIPSocket::Address::AsString() const' follow
> ./obj_linux_x86/radproto.o: In function
> `RadiusSocket::RadiusSocket(PIPSocket::Address const&, unsigned short)':
> radproto.cxx:(.text+0x41c5): undefined reference to
> `PUDPSocket::PUDPSocket(unsigned short)'
> ./obj_linux_x86/radproto.o: In function
> `RadiusSocket::RadiusSocket(PIPSocket::Address const&, unsigned short)':
> radproto.cxx:(.text+0x5acf): undefined reference to
> `PUDPSocket::PUDPSocket(unsigned short)'
> ./obj_linux_x86/radproto.o: In function
> `RadiusSocket::RadiusSocket(unsigned short)':
> radproto.cxx:(.text+0x5eaf): undefined reference to
> `PUDPSocket::PUDPSocket(unsigned short)'
> ./obj_linux_x86/radproto.o: In function
> `RadiusSocket::RadiusSocket(unsigned short)':
> radproto.cxx:(.text+0x62b5): undefined reference to
> `PUDPSocket::PUDPSocket(unsigned short)'
> ./obj_linux_x86/radacct.o: In function
> `RadAcct::Log(GkAcctLogger::AcctEvent, SmartPtr<CallRec> const&)':
> radacct.cxx:(.text+0x265e): undefined reference to
> `PIPSocket::Address::AsString() const'
> ./obj_linux_x86/sqlauth.o: In function
> `SQLAuth::Check(RasPDU<H225_RegistrationRequest>&, RRQAuthData&)':
> sqlauth.cxx:(.text+0x2400): undefined reference to
> `PIPSocket::Address::AsString() const'
> sqlauth.cxx:(.text+0x264e): undefined reference to
> `PIPSocket::Address::AsString() const'
> sqlauth.cxx:(.text+0x2708): undefined reference to
> `PIPSocket::Address::AsString() const'
> ./obj_linux_x86/sqlauth.o: In function
> `SQLAuth::Check(RasPDU<H225_AdmissionRequest>&, ARQAuthData&)':
> sqlauth.cxx:(.text+0x5175): undefined reference to
> `PIPSocket::Address::AsString() const'
> ./obj_linux_x86/sqlauth.o:sqlauth.cxx:(.text+0x53cf): more undefined
> references to `PIPSocket::Address::AsString() const' follow
> /usr/src/h323plus1/lib/libh323_linux_x86__s.a(transports.o): In function
> `H323TransportUDP::DiscoverGatekeeper(H323Gatekeeper&, H323RasPDU&,
> H323TransportAddress const&)':
> transports.cxx:(.text+0x363c): undefined reference to
> `PIPSocket::InterfaceEntry::InterfaceEntry(PString const&,
> PIPSocket::Address const&, PIPSocket::Address const&, PString const&)'
> transports.cxx:(.text+0x3a04): undefined reference to
> `PUDPSocket::PUDPSocket(unsigned short)'
> transports.cxx:(.text+0x3dc7): undefined reference to
> `PUDPSocket::PUDPSocket(unsigned short)'
> /usr/src/h323plus1/lib/libh323_linux_x86__s.a(transports.o): In function
> `H323TransportUDP::H323TransportUDP(H323EndPoint&, PIPSocket::Address,
> unsigned short, unsigned short)':
> transports.cxx:(.text+0x5d28): undefined reference to
> `PUDPSocket::PUDPSocket(unsigned short)'
> /usr/src/h323plus1/lib/libh323_linux_x86__s.a(transports.o): In function
> `H323TransportUDP::H323TransportUDP(H323EndPoint&, PIPSocket::Address,
> unsigned short, unsigned short)':
> transports.cxx:(.text+0x5f6c): undefined reference to
> `PUDPSocket::PUDPSocket(unsigned short)'
> /usr/src/h323plus1/lib/libh323_linux_x86__s.a(rtp.o): In function
> `RTP_Session::OnReceiveData(RTP_DataFrame const&, RTP_UDP const&)':
> rtp.cxx:(.text+0x2f9f): undefined reference to
> `PIPSocket::Address::AsString() const'
> rtp.cxx:(.text+0x30b5): undefined reference to
> `PIPSocket::Address::AsString() const'
> /usr/src/h323plus1/lib/libh323_linux_x86__s.a(rtp.o): In function
> `RTP_UDP::Open(PIPSocket::Address, unsigned short, unsigned short,
> unsigned char, H323Connection const&, PNatMethod*, RTP_QOS*)':
> rtp.cxx:(.text+0x4f4d): undefined reference make[1]: Leaving directory
> `/usr/src/gnugk-2.3.0'
> to `PUDPSocket::PUDPSocket(PQoS*, unsigned short)'
> rtp.cxx:(.text+0x4f6e): undefined reference to
> `PUDPSocket::PUDPSocket(PQoS*, unsigned short)'
> /usr/lib/libpt_s.a(osutil.o): In function `PTimer::Tick()':
> (.text+0x2859): undefined reference to `clock_gettime'
> collect2: ld returned 1 exit status
> make[1]: *** [obj_linux_x86/gnugk] Error 1
> make: *** [optnoshared] Error 2
> 
> 
> 


-- 
Jan Willamowius, jan@xxxxxxxxxxxxxx, http://www.gnugk.org/

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________________

Posting: mailto:Openh323gk-users@xxxxxxxxxxxxxxxxxxxxx
Archive: http://sourceforge.net/mailarchive/forum.php?forum_name=openh323gk-users
Unsubscribe: http://lists.sourceforge.net/lists/listinfo/openh323gk-users
Homepage: http://www.gnugk.org/

[Index of Archives]     [SIP]     [Open H.323]     [Gnu Gatekeeper]     [Asterisk PBX]     [ISDN Cause Codes]     [Yosemite News]

  Powered by Linux