[Asterisk-Users] Channel H323, RH9, OpenH323_1.12.2, pwlib_1.5.2 +GnuGK

Brian Wilkins brian at hcc.net
Wed Sep 15 10:00:07 MST 2004


Here is the information on doing SIP to H323 :

http://lists.digium.com/pipermail/asterisk-users/2004-July/056425.html

On Wednesday 15 September 2004 08:43 pm, Carlos Maynard wrote:
> Hello....
>
> Asterisk is compiled and running perfectly...
> But when i try to compile Channel_h323... that's another story :-|.
>
> I'm compiling using RH9, OpenH323_1.12.2, pwlib_1.5.2, i compiled and
> installed them myself... GnuGk is running smoothly using them.
>
> Also my intention is to terminate calls from a SIP client through
> Asterisk and into my GnuGK... has anyone accomplished this ?
>
> I'm pasting below the error message that i get when compiling channel_h323.
>
> Any help will be appreciated.
>
> Best regards,
>
> Carlos Maynard.
>
>
> [root at elias h323]# make
> g++ -g -c -fno-rtti -o ast_h323.o -march=i686
> -DPBYTE_ORDER=PLITTLE_ENDIAN -DNDEBUG -DDO_CRASH -DDEBUG_THREADS -pipe
> -Wall -fPIC -DP_LINUX -D_REENTRANT -D_GNU_SOURCE -DP_HAS_SEMAPHORES
> -DP_SSL -DP_PTHREADS -DPHAS_TEMPLATES -DPTRACING -DP_USE_PRAGMA
> -I../../include -I/root/pwlib/include/ptlib/unix -I/root/pwlib/include
> -I/root/openh323/include -Wno-missing-prototypes
> -Wno-missing-declarations ast_h323.cpp
> cc1plus: warning: "-Wno-missing-declarations" is valid for C/ObjC but
> not for
>    C++
> In file included from /usr/local/include/ptlib/contain.h:222,
>                  from /usr/local/include/ptlib.h:139,
>                  from ast_h323.cpp:34:
> /usr/local/include/ptlib/object.h:585: error: parse error before `(' token
> /usr/local/include/ptlib/object.h:1201: error: `BOOL' declared as a
> `virtual'
>    field
> /usr/local/include/ptlib/object.h:1201: error: parse error before `(' token
> /usr/local/include/ptlib/object.h:1214: error: `BOOL' declared as a
> `virtual'
>    field
> /usr/local/include/ptlib/object.h:1214: error: declaration of `int
>    PObject::BOOL'
> /usr/local/include/ptlib/object.h:1201: error: conflicts with previous
>    declaration `int PObject::BOOL'
> /usr/local/include/ptlib/object.h:1214: error: parse error before `(' token
> /usr/local/include/ptlib/object.h:1265: error: syntax error before
> `operator'
> /usr/local/include/ptlib/object.h:1274: error: ISO C++ forbids defining
> types
>    within return type
> /usr/local/include/ptlib/object.h:1274: error: syntax error before
> `operator'
> /usr/local/include/ptlib/object.h:1283: error: syntax error before
> `operator'
> /usr/local/include/ptlib/object.h:1292: error: syntax error before
> `operator'
> /usr/local/include/ptlib/object.h:1301: error: syntax error before
> `operator'
> /usr/local/include/ptlib/object.h:1310: error: syntax error before
> `operator'
> /usr/local/include/ptlib/object.h:1325: error: virtual outside class
>    declaration
> /usr/local/include/ptlib/object.h:1325: error: non-member function `void
>    PrintOn(std::ostream&)' cannot have `const' method qualifier
> /usr/local/include/ptlib/object.h:1335: error: virtual outside class
>    declaration
> /usr/local/include/ptlib/object.h:1346: error: can't initialize friend
> function
>    `operator<<'
> /usr/local/include/ptlib/object.h:1346: error: friend declaration not in
> class
>    definition
> /usr/local/include/ptlib/object.h: In function `std::ostream&
>    operator<<(std::ostream&, const PObject&)':
> /usr/local/include/ptlib/object.h:1346: error: `PrintOn' undeclared
> (first use
>    this function)
> /usr/local/include/ptlib/object.h:1346: error: (Each undeclared
> identifier is
>    reported only once for each function it appears in.)
> /usr/local/include/ptlib/object.h: At global scope:
> /usr/local/include/ptlib/object.h:1356: error: can't initialize friend
> function
>    `operator>>'
> /usr/local/include/ptlib/object.h:1356: error: friend declaration not in
> class
>    definition
> /usr/local/include/ptlib/object.h: In function `std::istream&
>    operator>>(std::istream&, PObject&)':
> /usr/local/include/ptlib/object.h:1356: error: `ReadFrom' undeclared
> (first use
>    this function)
> /usr/local/include/ptlib/object.h: At global scope:
> /usr/local/include/ptlib/object.h:1375: error: syntax error before `('
> token /usr/local/include/ptlib/object.h:1398: error: virtual outside class
> declaration
> /usr/local/include/ptlib/object.h:1420: error: virtual outside class
>    declaration
> /usr/local/include/ptlib/object.h:1437: error: virtual outside class
>    declaration
> /usr/local/include/ptlib/object.h:1437: error: non-member function
> `PObject* Clone()' cannot have `const' method qualifier
> /usr/local/include/ptlib/object.h:1450: error: syntax error before `('
> token /usr/local/include/ptlib/object.h:1509: error: parse error before `('
> token /usr/local/include/ptlib/object.h:1549: error: `BOOL' declared as a
> `virtual'
>    field
> /usr/local/include/ptlib/object.h:1549: error: parse error before `(' token
> /usr/local/include/ptlib/object.h:1549: error: ISO C++ forbids defining
> types
>    within return type
> /usr/local/include/ptlib/object.h:1549: error: syntax error before `('
> token /usr/local/include/ptlib/object.h:1549: error: syntax error before
> `(' token /usr/local/include/ptlib/object.h:1558: error: virtual outside
> class declaration
> /usr/local/include/ptlib/object.h:1558: error: `PSerialiser&
> operator<<(char)'
>    must have an argument of class or enumerated type
> /usr/local/include/ptlib/object.h:1558: error: `PSerialiser&
> operator<<(char)'
>    must take exactly two arguments
> /usr/local/include/ptlib/object.h:1558: error: function `PSerialiser&
>    operator<<(char)' is initialized like a variable
> /usr/local/include/ptlib/object.h:1560: error: virtual outside class
>    declaration
> /usr/local/include/ptlib/object.h:1560: error: `PSerialiser&
>    operator<<(unsigned char)' must have an argument of class or
> enumerated type
> /usr/local/include/ptlib/object.h:1560: error: `PSerialiser&
>    operator<<(unsigned char)' must take exactly two arguments
> /usr/local/include/ptlib/object.h:1560: error: function `PSerialiser&
>    operator<<(unsigned char)' is initialized like a variable
> /usr/local/include/ptlib/object.h:1562: error: virtual outside class
>    declaration
> /usr/local/include/ptlib/object.h:1562: error: `PSerialiser&
> operator<<(signed
>    char)' must have an argument of class or enumerated type
> /usr/local/include/ptlib/object.h:1562: error: `PSerialiser&
> operator<<(signed
>    char)' must take exactly two arguments
> /usr/local/include/ptlib/object.h:1562: error: function `PSerialiser&
>    operator<<(signed char)' is initialized like a variable
> /usr/local/include/ptlib/object.h:1564: error: virtual outside class
>    declaration
> /usr/local/include/ptlib/object.h:1564: error: `PSerialiser&
> operator<<(short
>    int)' must have an argument of class or enumerated type
> /usr/local/include/ptlib/object.h:1564: error: `PSerialiser&
> operator<<(short
>    int)' must take exactly two arguments
> /usr/local/include/ptlib/object.h:1564: error: function `PSerialiser&
>    operator<<(short int)' is initialized like a variable
> /usr/local/include/ptlib/object.h:1566: error: virtual outside class
>    declaration
> /usr/local/include/ptlib/object.h:1566: error: `PSerialiser&
> operator<<(short
>    unsigned int)' must have an argument of class or enumerated type
> /usr/local/include/ptlib/object.h:1566: error: `PSerialiser&
> operator<<(short
>    unsigned int)' must take exactly two arguments
> /usr/local/include/ptlib/object.h:1566: error: function `PSerialiser&
>    operator<<(short unsigned int)' is initialized like a variable
> /usr/local/include/ptlib/object.h:1568: error: virtual outside class
>    declaration
> /usr/local/include/ptlib/object.h:1568: error: `PSerialiser&
> operator<<(int)'
>    must have an argument of class or enumerated type
> /usr/local/include/ptlib/object.h:1568: error: `PSerialiser&
> operator<<(int)'
>    must take exactly two arguments
> /usr/local/include/ptlib/object.h:1568: error: function `PSerialiser&
>    operator<<(int)' is initialized like a variable
> /usr/local/include/ptlib/object.h:1570: error: virtual outside class
>    declaration
> /usr/local/include/ptlib/object.h:1570: error: `PSerialiser&
>    operator<<(unsigned int)' must have an argument of class or
> enumerated type
> /usr/local/include/ptlib/object.h:1570: error: `PSerialiser&
>    operator<<(unsigned int)' must take exactly two arguments
> /usr/local/include/ptlib/object.h:1570: error: function `PSerialiser&
>    operator<<(unsigned int)' is initialized like a variable
> /usr/local/include/ptlib/object.h:1572: error: virtual outside class
>    declaration
> /usr/local/include/ptlib/object.h:1572: error: `PSerialiser&
> operator<<(long int)' must have an argument of class or enumerated type
> /usr/local/include/ptlib/object.h:1572: error: `PSerialiser&
> operator<<(long int)' must take exactly two arguments
> /usr/local/include/ptlib/object.h:1572: error: function `PSerialiser&
>    operator<<(long int)' is initialized like a variable
> /usr/local/include/ptlib/object.h:1574: error: virtual outside class
>    declaration
> /usr/local/include/ptlib/object.h:1574: error: `PSerialiser&
> operator<<(long unsigned int)' must have an argument of class or enumerated
> type /usr/local/include/ptlib/object.h:1574: error: `PSerialiser&
> operator<<(long unsigned int)' must take exactly two arguments
> /usr/local/include/ptlib/object.h:1574: error: function `PSerialiser&
>    operator<<(long unsigned int)' is initialized like a variable
> /usr/local/include/ptlib/object.h:1576: error: virtual outside class
>    declaration
> /usr/local/include/ptlib/object.h:1576: error: `PSerialiser&
> operator<<(float)'
>    must have an argument of class or enumerated type
> /usr/local/include/ptlib/object.h:1576: error: `PSerialiser&
> operator<<(float)'
>    must take exactly two arguments
> /usr/local/include/ptlib/object.h:1576: error: function `PSerialiser&
>    operator<<(float)' is initialized like a variable
> /usr/local/include/ptlib/object.h:1578: error: virtual outside class
>    declaration
> /usr/local/include/ptlib/object.h:1578: error: `PSerialiser&
> operator<<(double)
>    ' must have an argument of class or enumerated type
> /usr/local/include/ptlib/object.h:1578: error: `PSerialiser&
> operator<<(double)
>    ' must take exactly two arguments
> /usr/local/include/ptlib/object.h:1578: error: function `PSerialiser&
>    operator<<(double)' is initialized like a variable
> /usr/local/include/ptlib/object.h:1581: error: virtual outside class
>    declaration
> /usr/local/include/ptlib/object.h:1581: error: `PSerialiser&
> operator<<(long double)' must have an argument of class or enumerated type
> /usr/local/include/ptlib/object.h:1581: error: `PSerialiser&
> operator<<(long double)' must take exactly two arguments
> /usr/local/include/ptlib/object.h:1581: error: function `PSerialiser&
>    operator<<(long double)' is initialized like a variable
> /usr/local/include/ptlib/object.h:1584: error: virtual outside class
>    declaration
> /usr/local/include/ptlib/object.h:1584: error: `PSerialiser&
> operator<<(const
>    char*)' must have an argument of class or enumerated type
> /usr/local/include/ptlib/object.h:1584: error: `PSerialiser&
> operator<<(const
>    char*)' must take exactly two arguments
> /usr/local/include/ptlib/object.h:1584: error: function `PSerialiser&
>    operator<<(const char*)' is initialized like a variable
> /usr/local/include/ptlib/object.h:1586: error: virtual outside class
>    declaration
> /usr/local/include/ptlib/object.h:1586: error: `PSerialiser&
> operator<<(const
>    unsigned char*)' must have an argument of class or enumerated type
> /usr/local/include/ptlib/object.h:1586: error: `PSerialiser&
> operator<<(const
>    unsigned char*)' must take exactly two arguments
> /usr/local/include/ptlib/object.h:1586: error: function `PSerialiser&
>    operator<<(const unsigned char*)' is initialized like a variable
> /usr/local/include/ptlib/object.h:1588: error: virtual outside class
>    declaration
> /usr/local/include/ptlib/object.h:1588: error: `PSerialiser&
> operator<<(const
>    signed char*)' must have an argument of class or enumerated type
> /usr/local/include/ptlib/object.h:1588: error: `PSerialiser&
> operator<<(const
>    signed char*)' must take exactly two arguments
> /usr/local/include/ptlib/object.h:1588: error: function `PSerialiser&
>    operator<<(const signed char*)' is initialized like a variable
> /usr/local/include/ptlib/object.h:1593: error: virtual outside class
>    declaration
> /usr/local/include/ptlib/object.h:1593: error: `PSerialiser&
>    operator<<(PObject&)' must take exactly two arguments
> /usr/local/include/ptlib/object.h:1595: error: parse error before
> `protected'
> /usr/local/include/ptlib/object.h:1620: error: `BOOL' declared as a
> `virtual'
>    field
> /usr/local/include/ptlib/object.h:1620: error: parse error before `(' token
> /usr/local/include/ptlib/object.h:1620: error: ISO C++ forbids defining
> types
>    within return type
> /usr/local/include/ptlib/object.h:1620: error: syntax error before `('
> token /usr/local/include/ptlib/object.h:1620: error: syntax error before
> `(' token /usr/local/include/ptlib/object.h:1629: error: virtual outside
> class declaration
> /usr/local/include/ptlib/object.h:1629: error: `PUnSerialiser&
>    operator>>(char&)' must have an argument of class or enumerated type
> /usr/local/include/ptlib/object.h:1629: error: `PUnSerialiser&
>    operator>>(char&)' must take exactly two arguments
> /usr/local/include/ptlib/object.h:1629: error: function `PUnSerialiser&
>    operator>>(char&)' is initialized like a variable
> /usr/local/include/ptlib/object.h:1631: error: virtual outside class
>    declaration
> /usr/local/include/ptlib/object.h:1631: error: `PUnSerialiser&
>    operator>>(unsigned char&)' must have an argument of class or enumerated
>    type
> /usr/local/include/ptlib/object.h:1631: error: `PUnSerialiser&
>    operator>>(unsigned char&)' must take exactly two arguments
> /usr/local/include/ptlib/object.h:1631: error: function `PUnSerialiser&
>    operator>>(unsigned char&)' is initialized like a variable
> /usr/local/include/ptlib/object.h:1633: error: virtual outside class
>    declaration
> /usr/local/include/ptlib/object.h:1633: error: `PUnSerialiser&
>    operator>>(signed char&)' must have an argument of class or
> enumerated type
> /usr/local/include/ptlib/object.h:1633: error: `PUnSerialiser&
>    operator>>(signed char&)' must take exactly two arguments
> /usr/local/include/ptlib/object.h:1633: error: function `PUnSerialiser&
>    operator>>(signed char&)' is initialized like a variable
> /usr/local/include/ptlib/object.h:1635: error: virtual outside class
>    declaration
> /usr/local/include/ptlib/object.h:1635: error: `PUnSerialiser&
> operator>>(short
>    int&)' must have an argument of class or enumerated type
> /usr/local/include/ptlib/object.h:1635: error: `PUnSerialiser&
> operator>>(short
>    int&)' must take exactly two arguments
> /usr/local/include/ptlib/object.h:1635: error: function `PUnSerialiser&
>    operator>>(short int&)' is initialized like a variable
> /usr/local/include/ptlib/object.h:1637: error: virtual outside class
>    declaration
> /usr/local/include/ptlib/object.h:1637: error: `PUnSerialiser&
> operator>>(short
>    unsigned int&)' must have an argument of class or enumerated type
> /usr/local/include/ptlib/object.h:1637: error: `PUnSerialiser&
> operator>>(short
>    unsigned int&)' must take exactly two arguments
> /usr/local/include/ptlib/object.h:1637: error: function `PUnSerialiser&
>    operator>>(short unsigned int&)' is initialized like a variable
> /usr/local/include/ptlib/object.h:1639: error: virtual outside class
>    declaration
> /usr/local/include/ptlib/object.h:1639: error: `PUnSerialiser&
> operator>>(int&)
>    ' must have an argument of class or enumerated type
> /usr/local/include/ptlib/object.h:1639: error: `PUnSerialiser&
> operator>>(int&)
>    ' must take exactly two arguments
> /usr/local/include/ptlib/object.h:1639: error: function `PUnSerialiser&
>    operator>>(int&)' is initialized like a variable
> /usr/local/include/ptlib/object.h:1641: error: virtual outside class
>    declaration
> /usr/local/include/ptlib/object.h:1641: error: `PUnSerialiser&
>    operator>>(unsigned int&)' must have an argument of class or
> enumerated type
> /usr/local/include/ptlib/object.h:1641: error: `PUnSerialiser&
>    operator>>(unsigned int&)' must take exactly two arguments
> /usr/local/include/ptlib/object.h:1641: error: function `PUnSerialiser&
>    operator>>(unsigned int&)' is initialized like a variable
> /usr/local/include/ptlib/object.h:1643: error: virtual outside class
>    declaration
> /usr/local/include/ptlib/object.h:1643: error: `PUnSerialiser&
> operator>>(long
>    int&)' must have an argument of class or enumerated type
> /usr/local/include/ptlib/object.h:1643: error: `PUnSerialiser&
> operator>>(long
>    int&)' must take exactly two arguments
> /usr/local/include/ptlib/object.h:1643: error: function `PUnSerialiser&
>    operator>>(long int&)' is initialized like a variable
> /usr/local/include/ptlib/object.h:1645: error: virtual outside class
>    declaration
> /usr/local/include/ptlib/object.h:1645: error: `PUnSerialiser&
> operator>>(long
>    unsigned int&)' must have an argument of class or enumerated type
> /usr/local/include/ptlib/object.h:1645: error: `PUnSerialiser&
> operator>>(long
>    unsigned int&)' must take exactly two arguments
> /usr/local/include/ptlib/object.h:1645: error: function `PUnSerialiser&
>    operator>>(long unsigned int&)' is initialized like a variable
> /usr/local/include/ptlib/object.h:1647: error: virtual outside class
>    declaration
> /usr/local/include/ptlib/object.h:1647: error: `PUnSerialiser&
>    operator>>(float&)' must have an argument of class or enumerated type
> /usr/local/include/ptlib/object.h:1647: error: `PUnSerialiser&
>    operator>>(float&)' must take exactly two arguments
> /usr/local/include/ptlib/object.h:1647: error: function `PUnSerialiser&
>    operator>>(float&)' is initialized like a variable
> /usr/local/include/ptlib/object.h:1649: error: virtual outside class
>    declaration
> /usr/local/include/ptlib/object.h:1649: error: `PUnSerialiser&
>    operator>>(double&)' must have an argument of class or enumerated type
> /usr/local/include/ptlib/object.h:1649: error: `PUnSerialiser&
>    operator>>(double&)' must take exactly two arguments
> /usr/local/include/ptlib/object.h:1649: error: function `PUnSerialiser&
>    operator>>(double&)' is initialized like a variable
> /usr/local/include/ptlib/object.h:1652: error: virtual outside class
>    declaration
> /usr/local/include/ptlib/object.h:1652: error: `PUnSerialiser&
> operator>>(long
>    double&)' must have an argument of class or enumerated type
> /usr/local/include/ptlib/object.h:1652: error: `PUnSerialiser&
> operator>>(long
>    double&)' must take exactly two arguments
> /usr/local/include/ptlib/object.h:1652: error: function `PUnSerialiser&
>    operator>>(long double&)' is initialized like a variable
> /usr/local/include/ptlib/object.h:1655: error: virtual outside class
>    declaration
> /usr/local/include/ptlib/object.h:1655: error: `PUnSerialiser&
>    operator>>(char*)' must have an argument of class or enumerated type
> /usr/local/include/ptlib/object.h:1655: error: `PUnSerialiser&
>    operator>>(char*)' must take exactly two arguments
> /usr/local/include/ptlib/object.h:1655: error: function `PUnSerialiser&
>    operator>>(char*)' is initialized like a variable
> /usr/local/include/ptlib/object.h:1657: error: virtual outside class
>    declaration
> /usr/local/include/ptlib/object.h:1657: error: `PUnSerialiser&
>    operator>>(unsigned char*)' must have an argument of c*** Deleting
> file `ast_h323.o'
> make: *** [ast_h323.o] Interrupt
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users

-- 
--
Heritage Communications Corporation
  Melbourne, FL     USA     32935
http://www.hcc.net



More information about the asterisk-users mailing list