[Openh323gk-users] Compiling gnugk gives loads of errors

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

 



Hi,

I am trying to compile gnugk 2.0.5 but get loads of errors.

Base system is Red Hat 8.0 with up2date patches but without pwlib or 
openh323.

Took pwlib 1.5.0 from Rawhide and recompiled it myself. Installed the 
pwlib and pwlib-devel packages.

Took openh323 1.12.0 from Rawhide and recompiled it myself. Installed the 
openh323 and openh323-devel packages.

Downloaded the gnugk 2.02 package and GNU gatekeeper 2.0.5 sources and 
tried to compile it. This ran into a spot of bother but I made some minor 
changes to the Makefile to point to the proper files.


+++ openh323gk/Makefile 2003-07-27 10:22:01.000000000 +0200
--- openh323gk/Makefile.orig    2003-07-27 10:20:59.000000000 +0200
@@ -160,9 +160,9 @@
 OPENH323DIR=$(HOME)/openh323
 endif

+VERSION_FILE := $(OPENH323DIR)/include/openh323/version.h
-VERSION_FILE := $(OPENH323DIR)/version.h

+include $(OPENH323DIR)/share/openh323/openh323u.mak
-include $(OPENH323DIR)/share/misc/openh323u.mak

 STDCCFLAGS     += -DMAJOR_VERSION=$(MAJOR_VERSION) 
-DMINOR_VERSION=$(MINOR_VERSION) -DBUILD_NUMBER=$(BUILD_NUMBER


I had to change and recompile openh323 as the version.h file was missing 
from the packaged version.

I can not compile gnugk as it gets loads of errors (about 100kB of them).

The relevant part is:


Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.34725
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd openh323gk
+ LANG=C
+ export LANG
+ NO_LDAP=1
+ export NO_LDAP
+ NO_MYSQL=1
+ export NO_MYSQL
+ PWLIBDIR=/usr
+ export PWLIBDIR
+ OPENH323DIR=/usr
+ export OPENH323DIR
+ /usr/bin/make optshared 'OPTCCFLAGS=-O2 -march=i386 -mcpu=i686'
/usr/bin/make P_SHAREDLIB=1 opt
make[1]: Entering directory `/usr/local/src/redhat/BUILD/openh323gk'
g++ -DHAS_RADIUS -DHAS_WAITARQ=1  -DP_LINUX=2.4.20 -D_REENTRANT -Wall -DP_USE_PRAGMA -DPHAS_TEMPLATES -I/usr/share/pwlib/include/ptlib/unix -I/usr/share/pwlib/include -DPTRACING -I/usr/include -DHAS_IXJ -DHAS_OSS -DMAJOR_VERSION=1 -DMINOR_VERSION=12 -DBUILD_NUMBER=0 -O2 -march=i386 -mcpu=i686  -c gk.cxx -o obj_linux_x86_r/gk.o
cc1plus: warning: changing search order for system directory "/usr/include"
cc1plus: warning:   as it has already been specified as a non-system directory
In file included from /usr/include/ptlib/contain.h:222,
                 from /usr/include/ptlib.h:139,
                 from gk.h:22,
                 from gk.cxx:28:
/usr/include/ptlib/object.h:585: ISO C++ forbids declaration of `BOOL' with no
   type
/usr/include/ptlib/object.h:585: parse error before `(' token
/usr/include/ptlib/object.h:1201: ISO C++ forbids declaration of `BOOL' with no
   type
/usr/include/ptlib/object.h:1201: `BOOL' declared as a `virtual' field
/usr/include/ptlib/object.h:1201: parse error before `(' token
/usr/include/ptlib/object.h:1214: ISO C++ forbids declaration of `BOOL' with no
   type
/usr/include/ptlib/object.h:1214: `BOOL' declared as a `virtual' field
/usr/include/ptlib/object.h:1214: declaration of `int PObject::BOOL'
/usr/include/ptlib/object.h:1201: conflicts with previous declaration `int
   PObject::BOOL'
/usr/include/ptlib/object.h:1214: parse error before `(' token
/usr/include/ptlib/object.h:1265: syntax error before `operator'
/usr/include/ptlib/object.h:1214: duplicate member `PObject::BOOL'
/usr/include/ptlib/object.h:1274: ISO C++ forbids defining types within return
   type
/usr/include/ptlib/object.h:1274: syntax error before `operator'
/usr/include/ptlib/object.h:1283: syntax error before `operator'
/usr/include/ptlib/object.h:1292: syntax error before `operator'
/usr/include/ptlib/object.h:1301: syntax error before `operator'
/usr/include/ptlib/object.h:1310: syntax error before `operator'
/usr/include/ptlib/object.h:1325: virtual outside class declaration


I am not a programmer but have repackaged dozens of RPMs to suite my 
systems and have made the occasional change.

I would appriciate any help that might result in a working package as I 
plan to build several experimental gateways for lab environments but do 
not want to compile the lot from source on each and every system.


Thanks,
Hugo.

-- 
 All email sent to me is bound to the rules described on my homepage.
    hvdkooij@vanderkooij.org		http://hvdkooij.xs4all.nl/
	    Don't meddle in the affairs of sysadmins,
	    for they are subtle and quick to anger.



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
List: Openh323gk-users@lists.sourceforge.net
Archive: http://sourceforge.net/mailarchive/forum.php?forum_id=8549
Homepage: http://www.gnugk.org/

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

  Powered by Linux