Hi Ap, thanks for sharing your recipe with the group. Quick notes: You should install libssl-dev (before compiling PTLib), otherwise you can't properly handle H.235 tokens. If you want to use SNMP, you should also install libsnmp-dev. Right now you only have the stripped down SNMP support based on PTLib. (Package names from Ubuntu, Debian names might vary ?) Regards, Jan Ap.Muthu wrote: > Thanks Jan, > > Have used Debian Wheezy's backports into Squeeze for libssh v0.5.2 and > compiled GNUgk successfully. > It's been years since v2.0.9 on windows that's still the workhorse for old > equipment and finally decided to take the plunge. > > The following is the final build set in Debian Squeeze in an OpenVZ > container: > > ======================================================= > Final Method - Installing GNUGK v3.1+ on Debian Squeeze > ======================================================= > > cd /usr/src > apt-get update > apt-get install flex bison build-essential pkg-config automake > apt-get install libmysqlclient-dev libmysql++-dev libsnmp-base libsnmp-dev > wget > http://backports.debian.org/debian-backports/pool/main/libs/libssh/libssh-4_0.5.2-1~bpo60+1_i386.deb > dpkg -i libssh-4_0.5.2-1~bpo60+1_i386.deb > wget > http://backports.debian.org/debian-backports/pool/main/libs/libssh/libssh-dev_0.5.2-1~bpo60+1_i386.deb > dpkg -i libssh-dev_0.5.2-1~bpo60+1_i386.deb > > # Get static version download - do not use SVN: > > wget > http://sourceforge.net/projects/opalvoip/files/v3.10%20Luyten/Stable%207/ptlib-2.10.7.tar.bz2 > tar -jxf ptlib-2.10.7.tar.bz2 > mv ptlib-2.10.7 ptlib > > export PTLIBDIR=/usr/src/ptlib > cd /usr/src/ptlib > cat version.h > ======= > #define MAJOR_VERSION 2 > #define MINOR_VERSION 10 > #define BUILD_TYPE ReleaseCode > #define BUILD_NUMBER 7 > ======= > ./configure > make optnoshared > > cd /usr/src > > # Get from CVS Web Snapshot download: > > wget > http://h323plus.cvs.sourceforge.net/viewvc/h323plus/h323plus/?view=tar -O > h323plus.tar.gz > export OPENH323DIR=/usr/src/h323plus > cd h323plus > cat version.h > ==== > #define MAJOR_VERSION 1 > #define MINOR_VERSION 24 > #define BUILD_TYPE ReleaseCode > #define BUILD_NUMBER 1 > ==== > > ./configure > > =================== Plugin configuration ====================== > prefix : /usr/local > exec_prefix : ${prefix} > libdir : ${exec_prefix}/lib > Audio Codec plugin install dir : ${libdir}/opal-1.24.1/codecs/audio > Video Codec plugin install prefix: ${libdir}/opal-1.24.1/codecs/video > LID plugin install prefix : ${libdir}/opal-1.24.1/lid > FAX plugin install prefix : ${libdir}/opal-1.24.1/fax > > GSM : yes (internal) > gsm-amr : yes > iLBC : yes (internal) > Speex : yes (internal, version 1.1.11.1) > LPC10 : yes > G.726 : yes > IMA_ADPCM : yes > SBC : no > > H.261 : yes > H.263 : no (ffmpeg version) > H.263/H.263+ : no > H.264 : no > THEORA : no > MPEG4 Part 2 : no > CELT : no > > SpanDSP FAX : no > > CAPI : no > Quicknet xJACK support : no > Voicetronics VPB support : yes > > OS Type : linux-gnu > Machine Type : i686 > > If all settings are OK, type make and make install > ======================================================== > > make optnoshared > > > === > [CC] /usr/src/h323plus/src/h460/h460_std18.cxx > /usr/src/h323plus/src/h460/h460_std18.cxx:54:2: warning: #warning > ("H.460.18/.19 Enabled. See Tandberg Patent License. > http://www.tandberg.com/collateral/tandberg-ITU-license.pdf") > [CC] /usr/src/h323plus/src/h460/h46018_h225.cxx > [CC] /usr/src/h323plus/src/h460/h460_std23.cxx > /usr/src/h323plus/src/h460/h460_std23.cxx:59:2: warning: #warning > ("H.460.23/.24 Enabled. Contact consulting@xxxxxxxxxxxx for licensing > terms.") > === > > cd /usr/src > > # Get from CVS Web Snapshot download: > > wget > http://openh323gk.cvs.sourceforge.net/viewvc/openh323gk/openh323gk/?view=tar > -O gnugk.tar.gz > tar -xzf gnugk.tar.gz > cd openh323gk > cat version.h > === > # define GNUGK_MAJOR_VERSION 3 > # define GNUGK_MINOR_VERSION 2 > # define GNUGK_BUILD_TYPE ReleaseCode > # define GNUGK_BUILD_NUMBER 0 > === > > ./configure --enable-h46018 --with-large-fdset=8192 > make optnoshared > > ========= > make DEBUG= P_SHAREDLIB=0 default_target > make[1]: Entering directory `/usr/src/openh323gk' > [CC] yasocket.cxx > [CC] h323util.cxx > [CC] Toolkit.cxx > [CC] SoftPBX.cxx > [CC] GkStatus.cxx > [CC] RasTbl.cxx > [CC] Routing.cxx > [CC] Neighbor.cxx > [CC] GkClient.cxx > [CC] gkauth.cxx > [CC] RasSrv.cxx > [CC] ProxyChannel.cxx > [CC] gk.cxx > [CC] version.cxx > [CC] gkacct.cxx > [CC] gktimer.cxx > [CC] gkconfig.cxx > [CC] sigmsg.cxx > [CC] clirw.cxx > [CC] cisco.cxx > [CC] ipauth.cxx > [CC] statusacct.cxx > [CC] syslogacct.cxx > [CC] capctrl.cxx > [CC] MakeCall.cxx > [CC] h460presence.cxx > [CC] forwarding.cxx > [CC] snmp.cxx > [CC] radproto.cxx > [CC] radauth.cxx > [CC] radacct.cxx > [CC] gksql_mysql.cxx > [CC] sqlauth.cxx > [CC] sqlacct.cxx > [CC] gksql.cxx > [LD] obj_linux_x86_s/gnugk > make[1]: Leaving directory `/usr/src/openh323gk' > ========== > > cd /usr/src/openh323gk > nano gatekeeper.ini > ====== > [Gatekeeper::Main] > [GkStatus::Auth] > rule=allow > ====== > > > === Run it === > > /usr/src/openh323gk/obj_linux_x86_s/gnugk -c > /usr/src/openh323gk/obj_linux_x86_s/gatekeeper.ini > > ======== > > GNU Gatekeeper with ID 'OpenH323GK' started > Gatekeeper(GNU) Version(3.2.0) > Ext(pthreads=1,radius=1,mysql=1,pgsql=0,firebird=0,odbc=0,sqlite=0,large_fdset=8192,crypto/ssl=0,h46018=1,h46023=1,ldap=0,ssh=1,ipv6=0,h235media=0,lua=0,h46017=1,snmp=1) > H323Plus(1.24.1) PTLib(2.10.7) Build(Sep 2 2012, 20:03:59) Sys(Linux i686 > 2.6.32-7-pve) > > Listen on 192.168.1.101,127.0.0.1,127.0.0.2 > > For documentation and updates please visit http://www.gnugk.org/. > > This program is free software; you can redistribute it and/or > modify it under the terms of the GNU General Public License version 2. > We also explicitly grant the right to link this code > with the OpenH323/H323Plus and OpenSSL library. > > This program contains H.460.18 and H.460.19 technology patented by Tandberg > and licensed to the GNU Gatekeeper Project. > > This program contains H.460.23 and H.460.24 technology > licensed to the GNU Gatekeeper Project. > > ======== > > === In another session, check status === > > ======== > # telnet localhost 7000 > Trying ::1... > Trying 127.0.0.1... > Connected to localhost. > Escape character is '^]'. > Version: > Gatekeeper(GNU) Version(3.2.0) > Ext(pthreads=1,radius=1,mysql=1,pgsql=0,firebird=0,odbc=0,sqlite=0,large_fdset=8192,crypto/ssl=0,h46018=1,h46023=1,ldap=0,ssh=1,ipv6=0,h235media=0,lua=0,h46017=1,snmp=1) > H323Plus(1.24.1) PTLib(2.10.7) Build(Sep 2 2012, 20:03:59) Sys(Linux i686 > 2.6.32-7-pve) > Startup: Sun, 02 Sep 2012 20:05:03 GMT Running: 0 days 00:00:35 > > ======== > q (To QUIT) > > > > Regards, > Ap.Muthu > apmuthu@xxxxxxx > > > > Message: 6 > > Date: Sun, 2 Sep 2012 20:56:29 +0200 > > From: Jan Willamowius <jan@xxxxxxxxxxxxxx> > > Subject: Re: Compiling in Debian Squeeze > > > > Your libssh is probably too old. You need at least 0.5.x. > > > > Regards, > > Jan > > > > Ap.Muthu wrote: > >> Attempting to compile openh323gk after PTLIB and H232Plus compiled okay: > .. > .. > >> checking for libssh/server.h... yes > >> checking for ssh_handle_key_exchange()/ssh_blocking_flush() in libssh... > >> no > >> configure: WARNING: libssh lib not found. > >> Use --with-libssh-lib-dir=<path> > >> configure: WARNING: libssh disabled > >> libssh support disabled > >> > >> the libssh*.so files are in /usr/lib and the *.h files are in > >> /usr/include/libssh > >> even a: > >> cp /usr/lib/libssh* /usr/include/libssh > >> did not help. > >> > >> -Ap.Muthu -- Jan Willamowius, jan@xxxxxxxxxxxxxx, http://www.gnugk.org/ ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________________ 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/