Re: compiling gnugk on Debian

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

 



Just take the compiled gnugk executable and copy it manually to your
preferred bin directory. Its just a single file.

Jan


Michael Miller wrote:
> ok, that worked for getting it compiled, but now I have the same thing when I try to install?
> 
> 
> g++ -I/root/ptlib-2.6.3/include -DHAS_SQLITE=1 -DHAS_RADIUS=1 -DHAS_MSG_NOSIGNAL=1  -D'MANUFACTURER=GNU' -D'PROGRAMMNAME=Gatekeeper' -DPTRACING  -DPTRACING=1 -D_REENTRANT  -fno-exceptions  -Wall  -DNDEBUG -Os  -DPTRACING -I/root/h323plus_src/h323plus/include -DMAJOR_VERSION=2 -DMINOR_VERSION=3 -DBUILD_NUMBER=0 -felide-constructors -Wreorder   -c gksql.cxx -o obj_linux_x86/gksql.o
> g++ -o obj_linux_x86/gnugk  -L/usr/lib    -L/root/ptlib-2.6.3/lib_linux_x86 -L/root/h323plus_src/h323plus/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_sqlite.o  ./obj_li
 nux_x86/sqlauth.o  ./obj_linux_x86/sqlacct.o  ./obj_linux_x86/gksql.o -lh323_linux_x86_  -lpt -lsqlite3   -lpthread -lresolv -ldl 
> make[1]: Leaving directory `/root/gnugk-2.3.0'
> debbie:~/gnugk-2.3.0# make install
> make -C /root/ptlib-2.6.3/src/ptlib/unix opt
> make[1]: Entering directory `/root/ptlib-2.6.3/src/ptlib/unix'
> make[1]: *** No rule to make target `opt'.  Stop.
> make[1]: Leaving directory `/root/ptlib-2.6.3/src/ptlib/unix'
> make: *** [/root/ptlib-2.6.3/lib_linux_x86/libpt.so] Error 2
> debbie:~/gnugk-2.3.0# make optnoshared install
> make DEBUG= P_SHAREDLIB=0 default_target
> make[1]: Entering directory `/root/gnugk-2.3.0'
> make[1]: Leaving directory `/root/gnugk-2.3.0'
> make -C /root/ptlib-2.6.3/src/ptlib/unix opt
> make[1]: Entering directory `/root/ptlib-2.6.3/src/ptlib/unix'
> make[1]: *** No rule to make target `opt'.  Stop.
> make[1]: Leaving directory `/root/ptlib-2.6.3/src/ptlib/unix'
> make: *** [/root/ptlib-2.6.3/lib_linux_x86/libpt.so] Error 2
> 
> 
> Any suggestions are greatly appreciated.  Let me know if more info is needed.
> 
> thanks
> 
> Michael
> 
> "If you're clear in your vision and trust the people in your team with clear objectives, they will invariably do their best to achieve everything desired, and usually deliver everything you could have hoped for and even more." -Paul Debevec
> 
> ----- Original Message -----
> From: "Jan Willamowius" <jan@xxxxxxxxxxxxxx>
> To: openh323gk-users@xxxxxxxxxxxxxxxxxxxxx
> Sent: Monday, June 22, 2009 2:49:17 PM GMT -06:00 US/Canada Central
> Subject: Re:  compiling gnugk on Debian
> 
> If you compile GnuGk with 'make optnoshared', you should also compile
> PTLib with 'make optnoshared'.
> 
> Regards,
> Jan
> 
> 
> Michael Miller wrote:
> > in /root/ptlib-2.6.3/  I did:
> > make clean
> > ./configure
> > make
> > <...snip...>
> > /root/ptlib-2.6.3/lib_linux_x86/obj/socks.o  /root/ptlib-2.6.3/lib_linux_x86/obj/pipechan.o  /root/ptlib-2.6.3/lib_linux_x86/obj/remconn.o  /root/ptlib-2.6.3/lib_linux_x86/obj/pwavfile.o  /root/ptlib-2.6.3/lib_linux_x86/obj/pwavfiledev.o  /root/ptlib-2.6.3/lib_linux_x86/obj/dtmf.o  /root/ptlib-2.6.3/lib_linux_x86/obj/serchan.o  /root/ptlib-2.6.3/lib_linux_x86/obj/modem.o  /root/ptlib-2.6.3/lib_linux_x86/obj/inetmail.o  /root/ptlib-2.6.3/lib_linux_x86/obj/url.o  /root/ptlib-2.6.3/lib_linux_x86/obj/http.o  /root/ptlib-2.6.3/lib_linux_x86/obj/httpclnt.o  /root/ptlib-2.6.3/lib_linux_x86/obj/httpform.o  /root/ptlib-2.6.3/lib_linux_x86/obj/html.o  /root/ptlib-2.6.3/lib_linux_x86/obj/svcproc.o  /root/ptlib-2.6.3/lib_linux_x86/obj/httpsvc.o  /root/ptlib-2.6.3/lib_linux_x86/obj/httpsrvr.o  /root/ptlib-2.6.3/lib_linux_x86/obj/config.o  /root/ptlib-2.6.3/lib_linux_x86/obj/threadpool.o  /root/ptlib-2.6.3/lib_linux_x86/obj/pvidfile.o  /root/ptlib-2.6.3/lib_linux_x86/obj/pvfiledev.o  /
 ro
>  ot/ptlib-2.6.3/lib_linux_x86/obj/pffvdev.o  /root/ptlib-2.6.3/lib_linux_x86/obj/uicmp.o  /root/ptlib-2.6.3/lib_linux_x86/obj/socket.o  /root/ptlib-2.6.3/lib_linux_x86/obj/udll.o  /root/ptlib-2.6.3/lib_linux_x86/obj/channel.o  /root/ptlib-2.6.3/lib_linux_x86/obj/osutil.o  /root/ptlib-2.6.3/lib_linux_x86/obj/tlib.o  /root/ptlib-2.6.3/lib_linux_x86/obj/switch.o  /root/ptlib-2.6.3/lib_linux_x86/obj/ipacl.o  /root/ptlib-2.6.3/lib_linux_x86/obj/qchannel.o  /root/ptlib-2.6.3/lib_linux_x86/obj/delaychan.o  /root/ptlib-2.6.3/lib_linux_x86/obj/memfile.o  /root/ptlib-2.6.3/lib_linux_x86/obj/cypher.o  /root/ptlib-2.6.3/lib_linux_x86/obj/random.o  /root/ptlib-2.6.3/lib_linux_x86/obj/inetprot.o  /root/ptlib-2.6.3/lib_linux_x86/obj/notifier_ext.o  /root/ptlib-2.6.3/lib_linux_x86/obj/guid.o  /root/ptlib-2.6.3/lib_linux_x86/obj/getdate.tab.o  /root/ptlib-2.6.3/lib_linux_x86/obj/assert.o  /root/ptlib-2.6.3/lib_linux_x86/obj/pluginmgr.o  /root/ptlib-2.6.3/lib_linux_x86/obj/sockets.o  /root/p
 tl
>  ib-2.6.3/lib_linux_x86/obj/psockbun.o  /root/ptlib-2.6.3/lib_linux_x86/obj/qos.o  /root/ptlib-2.6.3/lib_linux_x86/obj/ptime.o  /root/ptlib-2.6.3/lib_linux_x86/obj/osutils.o  /root/ptlib-2.6.3/lib_linux_x86/obj/safecoll.o  /root/ptlib-2.6.3/lib_linux_x86/obj/collect.o  /root/ptlib-2.6.3/lib_linux_x86/obj/contain.o  /root/ptlib-2.6.3/lib_linux_x86/obj/object.o  -lpthread -lresolv -ldl
> > cd /root/ptlib-2.6.3/lib_linux_x86 ; rm -f libpt.so ; ln -sf libpt.so.2.6.3 libpt.so
> > make[2]: Leaving directory `/root/ptlib-2.6.3/src'
> > make[1]: Leaving directory `/root/ptlib-2.6.3/src'
> > make[1]: Entering directory `/root/ptlib-2.6.3/plugins'
> > make DEBUG= P_SHAREDLIB=1 default_target
> > make[2]: Entering directory `/root/ptlib-2.6.3/plugins'
> > make[2]: Leaving directory `/root/ptlib-2.6.3/plugins'
> > set -e; 
> > make[1]: Leaving directory `/root/ptlib-2.6.3/plugins'
> > debbie:~/ptlib-2.6.3# make install
> > ( for dir in /usr/local/lib \
> > 		     /usr/local/bin \
> > 		     /usr/local/include/ptlib \
> >                      /usr/local/include/ptlib/unix/ptlib \
> >                      /usr/local/include/ptclib \
> >                      /usr/local/share/ptlib/make ; \
> > 		do mkdir -p $dir ; chmod 755 $dir ; \
> > 	done )
> > /usr/bin/install -c -m 444 /root/ptlib-2.6.3/lib_linux_x86/libpt.so.2.6.3 /usr/local/lib
> > /usr/bin/install -c -m 444 /root/ptlib-2.6.3/lib_linux_x86/libpt_s.a /usr/local/lib
> > 
> > <...snip...>
> > 
> > /usr/bin/install -c -m 755 make/ptlib-config /usr/local/share/ptlib/make/
> > (cd /usr/local/bin; rm -f ptlib-config ; ln -snf ../share/ptlib/make/ptlib-config ptlib-config)
> > mkdir -p /usr/local/lib/pkgconfig
> > chmod 755 /usr/local/lib/pkgconfig
> > /usr/bin/install -c -m 644 ptlib.pc /usr/local/lib/pkgconfig/
> > debbie:~/gnugk-2.3.0# make clean
> > make DEBUG= default_clean
> > make[1]: Entering directory `/root/gnugk-2.3.0'
> > rm -rf ./obj_linux_x86/addpasswd ./obj_linux_x86/addpasswd.o docs/manual/*.html   ./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  
> > 
> > <...snip...>
> > 
> > ./obj_linux_x86_d/clirw.dep  ./obj_linux_x86_d/cisco.dep  ./obj_linux_x86_d/ipauth.dep  ./obj_linux_x86_d/statusacct.dep  ./obj_linux_x86_d/syslogacct.dep  ./obj_linux_x86_d/capctrl.dep  ./obj_linux_x86_d/MakeCall.dep  ./obj_linux_x86_d/radproto.dep  ./obj_linux_x86_d/radauth.dep  ./obj_linux_x86_d/radacct.dep  ./obj_linux_x86_d/gksql_sqlite.dep  ./obj_linux_x86_d/sqlauth.dep  ./obj_linux_x86_d/sqlacct.dep  ./obj_linux_x86_d/gksql.dep core ./obj_linux_x86_d/gnugk
> > make[1]: Leaving directory `/root/gnugk-2.3.0'
> > debbie:~/gnugk-2.3.0# rm gnugkbuildopts.h
> > debbie:~/gnugk-2.3.0# ./configure
> > checking for g++... g++
> > checking for C++ compiler default output file name... a.out
> > checking whether the C++ compiler works... yes
> > checking whether we are cross compiling... no
> > checking for suffix of executables... 
> > checking for suffix of object files... o
> > checking whether we are using the GNU C++ compiler... yes
> > checking whether g++ accepts -g... yes
> > checking if MSG_NOSIGNAL is supported by recv call... checking for gcc... gcc
> > checking whether we are using the GNU C compiler... yes
> > checking whether gcc accepts -g... yes
> > checking for gcc option to accept ISO C89... none needed
> > yes
> > checking for /root/ptlib-2.6.3/make/unix.mak... yes
> > checking for ptlib-config... /root/ptlib-2.6.3/make/ptlib-config
> > PWLib prefix set to /root/ptlib-2.6.3
> > PTLib version is 2.6.3
> > checking for /root/ptlib-2.6.3/../openh323/version.h... yes
> > OpenH323 prefix set to /root/ptlib-2.6.3/../openh323
> > checking for /root/ptlib-2.6.3/../openh323/version.h... (cached) yes
> > OpenH323 version is 1.21.0
> > H.460.18 / H.460.19 support disabled
> > RADIUS support enabled
> > LARGE FDSET support disabled
> > checking for compress in -lz... yes
> > checking for mysql.h... no
> > configure: WARNING: mysql headers not found. Use --with-mysql-include-dir=<path>
> > configure: WARNING: MySQL disabled
> > MySQL support disabled
> > checking for libpq-fe.h... no
> > configure: WARNING: pgsql headers not found. Use --with-pgsql-include-dir=<path>
> > configure: WARNING: PostgreSQL disabled
> > PostgreSQL support disabled
> > checking for ibase.h... no
> > configure: WARNING: Firebird headers not found. Use --with-firebird-include-dir=<path>
> > configure: WARNING: Firebird disabled
> > Firebird support disabled
> > checking for sqlext.h... no
> > configure: WARNING: unixODBC headers not found. Use --with-unixodbc-include-dir=<path>
> > configure: WARNING: unixODBC disabled
> > unixODBC support disabled
> > checking for sqlite3.h... yes
> > checking for sqlite3_libversion in -lsqlite3... yes
> > SQLite support enabled
> > GNU Gatkeeper version is 2.3.0
> > configure: creating ./config.status
> > config.status: creating Makefile
> > config.status: creating gnugkbuildopts.h
> > debbie:~/gnugk-2.3.0# make optnoshared
> > make DEBUG= P_SHAREDLIB=0 default_target
> > make[1]: Entering directory `/root/gnugk-2.3.0'
> > g++ -I/root/ptlib-2.6.3/include -DHAS_SQLITE=1 -DHAS_RADIUS=1 -DHAS_MSG_NOSIGNAL=1  -D'MANUFACTURER=GNU' -D'PROGRAMMNAME=Gatekeeper' -DPTRACING  -DPTRACING=1 -D_REENTRANT  -fno-exceptions  -Wall  -DNDEBUG -Os  -DPTRACING -I/root/h323plus_src/h323plus/include -DMAJOR_VERSION=2 -DMINOR_VERSION=3 -DBUILD_NUMBER=0 -felide-constructors -Wreorder   -c main.cxx -o obj_linux_x86/main.o
> > 
> > <...snip...>
> > 
> > g++ -I/root/ptlib-2.6.3/include -DHAS_SQLITE=1 -DHAS_RADIUS=1 -DHAS_MSG_NOSIGNAL=1  -D'MANUFACTURER=GNU' -D'PROGRAMMNAME=Gatekeeper' -DPTRACING  -DPTRACING=1 -D_REENTRANT  -fno-exceptions  -Wall  -DNDEBUG -Os  -DPTRACING -I/root/h323plus_src/h323plus/include -DMAJOR_VERSION=2 -DMINOR_VERSION=3 -DBUILD_NUMBER=0 -felide-constructors -Wreorder   -c sqlacct.cxx -o obj_linux_x86/sqlacct.o
> > g++ -I/root/ptlib-2.6.3/include -DHAS_SQLITE=1 -DHAS_RADIUS=1 -DHAS_MSG_NOSIGNAL=1  -D'MANUFACTURER=GNU' -D'PROGRAMMNAME=Gatekeeper' -DPTRACING  -DPTRACING=1 -D_REENTRANT  -fno-exceptions  -Wall  -DNDEBUG -Os  -DPTRACING -I/root/h323plus_src/h323plus/include -DMAJOR_VERSION=2 -DMINOR_VERSION=3 -DBUILD_NUMBER=0 -felide-constructors -Wreorder   -c gksql.cxx -o obj_linux_x86/gksql.o
> > make -C /root/ptlib-2.6.3/src/ptlib/unix opt
> > make[2]: Entering directory `/root/ptlib-2.6.3/src/ptlib/unix'
> > make[2]: *** No rule to make target `opt'.  Stop.
> > make[2]: Leaving directory `/root/ptlib-2.6.3/src/ptlib/unix'
> > make[1]: *** [/root/ptlib-2.6.3/lib_linux_x86/libpt.a] Error 2
> > make[1]: Leaving directory `/root/gnugk-2.3.0'
> > make: *** [optnoshared] Error 2
> > debbie:~/gnugk-2.3.0# 
> > 
> > so I believe I done this correctly.  Did I miss something?  Please let me know if more info is needed.
> > 
> > thanks
> > 
> > Michael
> > 
> > 
> > 
> > 
> > "If you're clear in your vision and trust the people in your team with clear objectives, they will invariably do their best to achieve everything desired, and usually deliver everything you could have hoped for and even more." -Paul Debevec
> > 
> > ----- Original Message -----
> > From: "Jan Willamowius" <jan@xxxxxxxxxxxxxx>
> > To: openh323gk-users@xxxxxxxxxxxxxxxxxxxxx
> > Sent: Monday, June 22, 2009 11:55:07 AM GMT -06:00 US/Canada Central
> > Subject: Re:  compiling gnugk on Debian
> > 
> > Hi,
> > 
> > PTLib is not compiled automatically. You have to compile it, before you
> > start compiling GnuGk.
> > 
> > Regards,
> > Jan
> > 
> > 
> > Michael Miller wrote:
> > > Hello,
> > > 
> > > I'm trying to compile GNUgk 2.3.0 on Debian 5.1.  Initially I get an error about "no rule to make libpt_s.a" and "no rule to make libpt.so".  I had solved this in 2.2.8 by putting symlinks in the gnugk source directory:
> > > 
> > > lrwxrwxrwx 1 root root 41 2009-06-22 11:04 libpt.a -> /root/ptlib-2.6.3/lib_linux_x86/libpt_s.a
> > > lrwxrwxrwx 1 root root 40 2009-06-22 11:04 libpt.so -> /root/ptlib-2.6.3/lib_linux_x86/libpt.so
> > > 
> > > But now I get the following:
> > > 
> > > g++ -I/root/ptlib-2.6.3/include -DHAS_SQLITE=1 -DHAS_RADIUS=1 -DHAS_MSG_NOSIGNAL=1  -D'MANUFACTURER=GNU' -D'PROGRAMMNAME=Gatekeeper' -DPTRACING  -DPTRACING=1 -D_REENTRANT  -fno-exceptions  -Wall  -DNDEBUG -Os  -DPTRACING -I/root/h323plus_src/h323plus/include -DMAJOR_VERSION=2 -DMINOR_VERSION=3 -DBUILD_NUMBER=1 -felide-constructors -Wreorder   -c sqlacct.cxx -o obj_linux_x86/sqlacct.o
> > > g++ -I/root/ptlib-2.6.3/include -DHAS_SQLITE=1 -DHAS_RADIUS=1 -DHAS_MSG_NOSIGNAL=1  -D'MANUFACTURER=GNU' -D'PROGRAMMNAME=Gatekeeper' -DPTRACING  -DPTRACING=1 -D_REENTRANT  -fno-exceptions  -Wall  -DNDEBUG -Os  -DPTRACING -I/root/h323plus_src/h323plus/include -DMAJOR_VERSION=2 -DMINOR_VERSION=3 -DBUILD_NUMBER=1 -felide-constructors -Wreorder   -c gksql.cxx -o obj_linux_x86/gksql.o
> > > make -C /root/ptlib-2.6.3/src/ptlib/unix opt
> > > make[2]: Entering directory `/root/ptlib-2.6.3/src/ptlib/unix'
> > > make[2]: *** No rule to make target `opt'.  Stop.
> > > make[2]: Leaving directory `/root/ptlib-2.6.3/src/ptlib/unix'
> > > make[1]: *** [/root/ptlib-2.6.3/lib_linux_x86/libpt.a] Error 2
> > > make[1]: Leaving directory `/root/gnugk-2.3.0/openh323gk'
> > > make: *** [optnoshared] Error 2
> > > 
> > > Any suggestions are greatly appreciated.
> > > 
> > > thanks
> > > Michael

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

------------------------------------------------------------------------------
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
_______________________________________________________

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