Re: A couple of questions about gnugk 3.4 and unixODBC

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

 



Hi Alasdair,

one really shouldn't compile GnuGk without the PTRACING feature in
PTLib. As you just found out, you have no way to debug what happens
if things don't work on the first try. If anybody has a contact at
Gentoo, please tell them not to patch around this requirement.

I recently had a configuration with 2 unixODBC connections and that
worked fine. But there are lots of unixODBC drivers and I would check
the different versions and configurations of those.

You can disable unixODBC when compiling PTLib. It doesn't hurt, but
GnuGk uses its own implementation that allows dynamically loading of
the database libraries.

I fixed the link for libssh, but it shouldn't matter for your ODBC
issues which libssh version you have.

Regards,
Jan

-- 
Jan Willamowius, Founder of the GNU Gatekeeper Project
EMail  : jan@xxxxxxxxxxxxxx
Website: http://www.gnugk.org
Support: http://www.willamowius.com/gnugk-support.html

Relaxed Communications GmbH
Frahmredder 91
22393 Hamburg
Geschäftsführer: Jan Willamowius
HRB 125261 (Amtsgericht Hamburg)
USt-IdNr: DE286003584


Alasdair Ramsay wrote:
> Hi, 
> 
> I worked extensively with Gnugk a few years ago so was surprised when I couldn't get my old system configuration to work.
> 
> I'm attempting to build Gnugk on gentoo, it's the latest release and is using gcc 4.7.3 and glibc 2.15
> 
> My first problem appeared when I attempted to connect to unixODBC using the gatekeeper.  I use two different data sources, one for authorization to obtain the routing information and a second data source to write the accounting information to.  
> 
> When starting Gnugk it would immediatly fail.  I noticed that I couldn't get Gnugk to produce any debug output using the -ttt options.  I think this is due a patch that the gentoo ebuild is applying that surrounds all the 
> if (PTrace::CanTrace(6)) {}  blocks with 
> 
> #if PTRACING
> ...
> #endif  
> 
> so presumably there is something that is not defined that is disabling my debug output.
> 
> Eventually I gave up and downloaded the binary from Gnugk.org.  This should work with unixODBC and does for the first data source.  Both data sources work in the sense that if I disable accounting then it successfully gets a Database connection pool
> 2013/11/25 18:39:00.657 4               udll.cxx(333)   UDLL    opening libodbc.so
> 2013/11/25 18:39:00.664 3              gksql.cxx(102)   SQLAuth Database connection pool created: msn-01@localhost[auth]
> 
> likewise if I disable auth it will get a successful database connection for the accounting module.  
> 
> However with both enabled I get an error like
> 2013/11/25 18:39:00.664 1         gksql_odbc.cxx(479)   SQLAcct Failed to allocate an ODBC connection handle: Invalid ODBC handle passed
> 2013/11/25 18:39:00.664 1              gksql.cxx(97)    SQLAcct Database connection failed: msn-01@localhost[acct]
> 2013/11/25 18:39:00.664 0            sqlacct.cxx(141)   GKACCT  SQLAcct module creation failed: could not connect to the database
> 2013/11/25 18:39:00.664 0            sqlacct.cxx(142)   GKACCT  FATAL: Shutting down
> 
> This mirrors the behavaviour that I witnessed with my binary but obviously I have debug output with your binary.
> 
> I have even tried building building exactly using the libs recommended on the website.  
>       3.4 H323Plus 1.25.3 from CVS PTLib 2.10.9 libssh 0.5.5 
> 
> 
> It's also worth noting that the download link for libssh-0.5.5 is actually linked to libssh-0.5.4.tar.gz but I worked that out but no change.
> 
> I noticed some reference to disabling unixODBC when compiling h323plus 2.10.x.
> 
> Can you suggest a stable combination that will allow me to use unixODBC with a recent version of Gnugk/h323plus/ptlib
> 
> Best Regards
> 
> Alasdair Ramsay
> 
> 



------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
_______________________________________________________

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