Re: FreeBSD, almost there...

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

 



Try to delete InstanceOf declaration (line 88, singleton.h)
and definition (lines 131-141, singleton.h). Also, gk.cxx
needs to be changed: replace InstanceOf<Toolkit>() 
with Toolkit::Instance().
Please let me know whether it works. If so, I'll commit the fix
to the cvs.

On Sun, 2004-08-15 at 10:19, Sergio Lenzi wrote:
> Almost there...
> 
> I compilled the voxgratia stable release of pwlib and openh323
> and it works ok, builds the libs..
> 
> The problem arises when I try to compile the gnugk
> seems that gcc3-4.2
> ---------------------------------------------
> cc -v
> Using built-in specs.
> Configured with: FreeBSD/i386 system compiler
> Thread model: posix
> gcc version 3.4.2 [FreeBSD] 20040728
> ----------------------------------------------------
> does not likes the  code....
> 
> ===>  Building for gatekeeper-2.0.8_2
> gmake P_SHAREDLIB=0 opt
> gmake[1]: Entering directory `/usr/ports/net/gatekeeper/work/openh323gk'
> c++ -DHAS_PGSQL=1 -I`pg_config --includedir` -DHAS_ACCT=1 -DHAS_RADIUS=1 -DHAS_W                        AITARQ=1  -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/wo                        rk/openh323/include -DHAS_OSS -DMAJOR_VERSION=1 -DMINOR_VERSION=14 -DBUILD_NUMBE                        R=4 -Os  -O -pthread  -felide-constructors -x c++ -c MulticastGRQ.cxx -o obj_Fre                        eBSD_x86_r/MulticastGRQ.o
> In file included from Toolkit.h:18,
>                  from MulticastGRQ.cxx:38:
> singleton.h:88: error: `InstanceOf' is neither function nor member function; cannot be declared friend
> singleton.h:88: error: expected `;' before '<' token
> In file included from MulticastGRQ.cxx:38:
> singleton.h: In function `T* InstanceOf() [with T = Toolkit]':
> Toolkit.h:308:   instantiated from here
> singleton.h:144: error: `SingletonBase*Singleton<Toolkit>::m_Instance' is private
> singleton.h:134: error: within this context
> Toolkit.h:308:   instantiated from here
> singleton.h:145: error: `PMutex Singleton<Toolkit>::m_CreationLock' is private
> singleton.h:135: error: within this context
> Toolkit.h:308:   instantiated from here
> singleton.h:144: error: `SingletonBase*Singleton<Toolkit>::m_Instance' is private
> singleton.h:137: error: within this context
> singleton.h:144: error: `SingletonBase*Singleton<Toolkit>::m_Instance' is private
> singleton.h:138: error: within this context
> singleton.h:144: error: `SingletonBase*Singleton<Toolkit>::m_Instance' is private
> singleton.h:140: error: within this context
> gmake[1]: ** [obj_FreeBSD_x86_r/MulticastGRQ.o] Erro 1
> gmake[1]: Leaving directory `/usr/ports/net/gatekeeper/work/openh323gk'
> gmake: ** [optnoshared] Erro 2
> *** Error code 2
> =================================================
> 
> any ideas??????????
> 
> thanks for any help...
> 
> Sergio




-------------------------------------------------------
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