Re: Compile errors with gcc-3.4.2

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

 



The problem is that template binding time has changed
and now forward declarations do not work with templates.
I need to think on a fix.

----- Original Message ----- 
From: "Sergio Lenzi" <enigma@xxxxxxxxxxxxxxxxx>
Sent: Wednesday, August 18, 2004 2:39 AM


> Hello all...
> 
> The code for the gnugk  
> version 2.0.8  are ok with 
> gcc-3.4.2
> 
> my problem now is with 2.2B4
> and the Module SoftPBX.cxx and the include RasPDU.h
> I looked at the code and see (for me unfortunatly) no
> reason why it does not find the type and why the type
> is declared forward...struct RasServer
> 
> seems like the syntax for template <xxxxxx>  .... have changed or
> is invalid... 
> if I remove the templates, it compiles but stops in another module
> that needs the templates...
> 
> 
> ==============================================================
> gcc -v
> Using built-in specs.
> Configured with: FreeBSD/i386 system compiler
> Thread model: posix
> gcc version 3.4.2 [FreeBSD] 20040728
> 
> =============================================================
> gmake[2]: Entering directory `/usr/ports/net/gnugk/work/openh323gk'
> g++ -DHAS_PGSQL=1 -DLARGE_FDSET=32768 -DHAS_RADIUS=1  
> -D'MANUFACTURER=GNU' -D'PROGRAMMNAME=Gatekeeper' -DPTRACING  -DP_USE_PRAGMA
> -D_REENTRANT -DOPENSSL_NO_KRB5 -I/usr/local/include -I/usr/ports/devel/pwlib/work/pwlib/include
> -DPTRACING -I/usr/ports/net/openh323/work/openh323/include
> -DHAS_OSS -DMAJOR_VERSION=2 -DMINOR_VERSION=2 -DBUILD_NUMBER=4
> -Os  -O -pthread -felide-constructors -x c++ -c SoftPBX.cxx -o obj_FreeBSD_x86_r/SoftPBX.o
> In file included from RasSrv.h:28,
>                  from SoftPBX.cxx:24:
> RasPDU.h: In member function `void GkInterface::SetListener(WORD, WORD&, Listener*&, Listener*(GkInterface::*)())':
> RasPDU.h:195: error: invalid use of undefined type `struct RasServer'
> RasTbl.h:34: error: forward declaration of `struct RasServer'
> RasPDU.h: In destructor `Requester<RAS>::~Requester()':
> RasPDU.h:302: error: invalid use of undefined type `struct RasServer'
> RasTbl.h:34: error: forward declaration of `struct RasServer'
> RasPDU.h: In constructor `Requester<RAS>::Requester(H225_RasMessage&, const PIPSocket::Address&)':
> RasPDU.h:313: error: invalid use of undefined type `struct RasServer'
> RasTbl.h:34: error: forward declaration of `struct RasServer'
> RasPDU.h: In constructor `HookedPDU<RAS>::Creator::Creator()':
> RasPDU.h:349: error: `m_old' undeclared (first use this function)
> RasPDU.h:349: error: (Each undeclared identifier is reported only once for each function it appears in.)
> RasPDU.h: In member function `virtual RasMsg* HookedPDU<RAS>::Creator::operator()(GatekeeperMessage*) const':
> RasPDU.h:351: error: `m_old' undeclared (first use this function)
> gmake[2]: ** [obj_FreeBSD_x86_r/SoftPBX.o] Erro 1
> gmake[2]: Leaving directory `/usr/ports/net/gnugk/work/openh323gk'
> gmake[1]: ** [optshared] Erro 2
> gmake[1]: Leaving directory `/usr/ports/net/gnugk/work/openh323gk'



-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285

_______________________________________________________

List: Openh323gk-users@xxxxxxxxxxxxxxxxxxxxx
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