[Asterisk-Users] chan_oh323 build (resubmit w/ new title)

Huddleston, Robert RHuddleston at cavtel.com
Thu Aug 26 06:22:05 MST 2004


I'm trying to make the chan_h323 in /usr/src/asterisk/channels/h323
But I'm getting all kinds of errors about PWLIB... I built using the newest
PWLIB and OpenH323 from CVS

Error log from make below

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
In file included from /root/pwlib/include/ptlib.h:154,
                 from ast_h323.cpp:34:
/root/pwlib/include/ptbuildopts.h:157:1: warning: "P_LINUX" redefined
ast_h323.cpp:1:1: warning: this is the location of the previous definition
In file included from /root/pwlib/include/ptlib.h:178,
                 from ast_h323.cpp:34:
/root/pwlib/include/ptlib/unix/ptlib/pdirect.h:78: parse error before `
   protected'
/root/pwlib/include/ptlib/unix/ptlib/pdirect.h:80: syntax error before `*' 
   token
In file included from /root/pwlib/include/ptlib.h:190,
                 from ast_h323.cpp:34:
/root/pwlib/include/ptlib/unix/ptlib/config.h:53: parse error before
`public'
/root/pwlib/include/ptlib/unix/ptlib/config.h:55: destructors must be member

   functions
/root/pwlib/include/ptlib/unix/ptlib/config.h:57: parse error before
`protected
   '
In file included from /root/pwlib/include/ptlib.h:196,
                 from ast_h323.cpp:34:
/root/pwlib/include/ptlib/args.h:121: parse error before `{' token
/root/pwlib/include/ptlib/args.h:147: parse error before `const'
/root/pwlib/include/ptlib/args.h:156: parse error before `const'
/root/pwlib/include/ptlib/args.h:165: parse error before `int'
/root/pwlib/include/ptlib/args.h:175: parse error before `int'
/root/pwlib/include/ptlib/args.h:191: virtual outside class declaration
/root/pwlib/include/ptlib/args.h:191: non-member function `void 
   PrintOn(std::ostream&)' cannot have `const' method qualifier
/root/pwlib/include/ptlib/args.h:198: virtual outside class declaration
/root/pwlib/include/ptlib/args.h:206: parse error before `&' token
/root/pwlib/include/ptlib/args.h:215: parse error before `&' token
/root/pwlib/include/ptlib/args.h:246: virtual outside class declaration
/root/pwlib/include/ptlib/args.h:249: parse error before `&' token
/root/pwlib/include/ptlib/args.h:254: virtual outside class declaration
/root/pwlib/include/ptlib/args.h:266: virtual outside class declaration
/root/pwlib/include/ptlib/args.h:266: non-member function `PINDEX 
   GetOptionCount(char)' cannot have `const' method qualifier
/root/pwlib/include/ptlib/args.h:270: virtual outside class declaration
/root/pwlib/include/ptlib/args.h:270: non-member function `PINDEX 
   GetOptionCount(const char*)' cannot have `const' method qualifier
/root/pwlib/include/ptlib/args.h:273: parse error before `&' token
/root/pwlib/include/ptlib/args.h:274: virtual outside class declaration
/root/pwlib/include/ptlib/args.h:274: non-member function `PINDEX 
   GetOptionCount(...)' cannot have `const' method qualifier
/root/pwlib/include/ptlib/args.h:283: non-member function `BOOL
HasOption(char)
   ' cannot have `const' method qualifier
/root/pwlib/include/ptlib/args.h:287: non-member function `BOOL
HasOption(const 
   char*)' cannot have `const' method qualifier
/root/pwlib/include/ptlib/args.h:290: parse error before `&' token
/root/pwlib/include/ptlib/args.h:291: non-member function `BOOL
HasOption(...)' 
   cannot have `const' method qualifier
/root/pwlib/include/ptlib/args.h:301: syntax error before `(' token
/root/pwlib/include/ptlib/args.h:306: syntax error before `(' token
/root/pwlib/include/ptlib/args.h:311: syntax error before `(' token
/root/pwlib/include/ptlib/args.h:323: non-member function `PINDEX
GetCount()' 
   cannot have `const' method qualifier
/root/pwlib/include/ptlib/args.h:330: parse error before `=' token
/root/pwlib/include/ptlib/args.h:339: parse error before `)' token
/root/pwlib/include/ptlib/args.h:347: syntax error before `operator'
/root/pwlib/include/ptlib/args.h:363: `PArgList& operator<<(int)' must have
an 
   argument of class or enumerated type
/root/pwlib/include/ptlib/args.h:363: `PArgList& operator<<(int)' must take 
   exactly two arguments
/root/pwlib/include/ptlib/args.h:370: `PArgList& operator>>(int)' must have
an 
   argument of class or enumerated type
/root/pwlib/include/ptlib/args.h:370: `PArgList& operator>>(int)' must take 
   exactly two arguments
/root/pwlib/include/ptlib/args.h:381: virtual outside class declaration
/root/pwlib/include/ptlib/args.h:381: non-member function `void 
   IllegalArgumentIndex(int)' cannot have `const' method qualifier
/root/pwlib/include/ptlib/args.h:388: parse error before `&' token
/root/pwlib/include/ptlib/args.h:389: virtual outside class declaration
/root/pwlib/include/ptlib/args.h:389: non-member function `void 
   UnknownOption(...)' cannot have `const' method qualifier
/root/pwlib/include/ptlib/args.h:397: parse error before `&' token
/root/pwlib/include/ptlib/args.h:398: virtual outside class declaration
/root/pwlib/include/ptlib/args.h:398: non-member function `void 
   MissingArgument(...)' cannot have `const' method qualifier
/root/pwlib/include/ptlib/args.h:401: parse error before `protected'
/root/pwlib/include/ptlib/args.h:405: 'PString' is used as a type, but is
not 
   defined as a type.
/root/pwlib/include/ptlib/args.h:407: 'PStringArray' is used as a type, but
is 
   not defined as a type.
/root/pwlib/include/ptlib/args.h:409: 'PIntArray' is used as a type, but is
not 
   defined as a type.
/root/pwlib/include/ptlib/args.h:411: 'PStringArray' is used as a type, but
is 
   not defined as a type.
/root/pwlib/include/ptlib/args.h:413: 'PIntArray' is used as a type, but is
not 
   defined as a type.
/root/pwlib/include/ptlib/args.h:417: parse error before `private'
/root/pwlib/include/ptlib/args.h:419: non-member function `PINDEX 
   GetOptionCountByIndex(int)' cannot have `const' method qualifier
/root/pwlib/include/ptlib/args.h:420: parse error before `,' token
/root/pwlib/include/ptlib/args.h:428: base class `PArgList' has incomplete
type
/root/pwlib/include/ptlib/args.h:429: ISO C++ forbids declaration of `
   PCLASSINFO' with no type
/root/pwlib/include/ptlib/args.h:454: parse error before `&' token
/root/pwlib/include/ptlib/args.h:465: ISO C++ forbids declaration of
`PString' 
   with no type
/root/pwlib/include/ptlib/args.h:465: `PString' declared as a `virtual'
field
/root/pwlib/include/ptlib/args.h:465: parse error before `(' token
/root/pwlib/include/ptlib/args.h:470: ISO C++ forbids declaration of
`PString' 
   with no type
/root/pwlib/include/ptlib/args.h:470: `PString' declared as a `virtual'
field
/root/pwlib/include/ptlib/args.h:470: declaration of `int
PConfigArgs::PString'
/root/pwlib/include/ptlib/args.h:465: conflicts with previous declaration
`int 
   PConfigArgs::PString'
/root/pwlib/include/ptlib/args.h:470: parse error before `(' token
/root/pwlib/include/ptlib/args.h:475: ISO C++ forbids declaration of
`PString' 
   with no type
/root/pwlib/include/ptlib/args.h:475: `PString' declared as a `virtual'
field
/root/pwlib/include/ptlib/args.h:475: declaration of `int
PConfigArgs::PString'
/root/pwlib/include/ptlib/args.h:465: conflicts with previous declaration
`int 
   PConfigArgs::PString'
/root/pwlib/include/ptlib/args.h:475: parse error before `(' token
/root/pwlib/include/ptlib/args.h:490: parse error before `&' token
/root/pwlib/include/ptlib/args.h:496: parse error before `&' token
/root/pwlib/include/ptlib/args.h:501: ISO C++ forbids declaration of
`PString' 
   with no type
/root/pwlib/include/ptlib/args.h:501: declaration of `const int 
   PConfigArgs::PString'
/root/pwlib/include/ptlib/args.h:465: conflicts with previous declaration
`int 
   PConfigArgs::PString'
/root/pwlib/include/ptlib/args.h:501: parse error before `&' token
/root/pwlib/include/ptlib/args.h:470: duplicate member
`PConfigArgs::PString'
/root/pwlib/include/ptlib/args.h:475: duplicate member
`PConfigArgs::PString'
/root/pwlib/include/ptlib/args.h:501: duplicate member
`PConfigArgs::PString'
/root/pwlib/include/ptlib/args.h:506: semicolon missing after declaration of
`
   PConfigArgs'
/root/pwlib/include/ptlib/args.h: In member function `void 
   PConfigArgs::SetSectionName(...)':
/root/pwlib/include/ptlib/args.h:497: `sectionName' undeclared (first use
this 
   function)
/root/pwlib/include/ptlib/args.h:497: (Each undeclared identifier is
reported 
   only once for each function it appears in.)
/root/pwlib/include/ptlib/args.h:497: `section' undeclared (first use this 
   function)
/root/pwlib/include/ptlib/args.h: At global scope:
/root/pwlib/include/ptlib/args.h:507: parse error before `&' token
/root/pwlib/include/ptlib/args.h:508: ISO C++ forbids defining types within 
   return type
/root/pwlib/include/ptlib/args.h:508: two or more data types in declaration
of 
   `SetNegationPrefix'
/root/pwlib/include/ptlib/args.h:508: semicolon missing after declaration of
`
   class PConfigArgs'
/root/pwlib/include/ptlib/args.h: In function `int SetNegationPrefix(...)':
/root/pwlib/include/ptlib/args.h:508: `negationPrefix' undeclared (first use

   this function)
/root/pwlib/include/ptlib/args.h:508: `prefix' undeclared (first use this 
   function)
/root/pwlib/include/ptlib/args.h: At global scope:
/root/pwlib/include/ptlib/args.h:513: syntax error before `&' token
/root/pwlib/include/ptlib/args.h:519: 'PConfig' is used as a type, but is
not 
   defined as a type.
/root/pwlib/include/ptlib/args.h:520: 'PString' is used as a type, but is
not 
   defined as a type.
/root/pwlib/include/ptlib/args.h:521: 'PString' is used as a type, but is
not 
   defined as a type.
/root/pwlib/include/ptlib/args.h:522: parse error before `}' token
In file included from /root/pwlib/include/ptlib.h:202,
                 from ast_h323.cpp:34:
/root/pwlib/include/ptlib/unix/ptlib/thread.h:165: parse error before `&'
token
/root/pwlib/include/ptlib/unix/ptlib/thread.h:167: non-member function `void

   PXAbortBlock()' cannot have `const' method qualifier
/root/pwlib/include/ptlib/unix/ptlib/thread.h:171: parse error before
`public'
/root/pwlib/include/ptlib/unix/ptlib/thread.h:181: 'Priority' is used as a 
   type, but is not defined as a type.
/root/pwlib/include/ptlib/unix/ptlib/thread.h:193: `friend' can only be 
   specified inside a class
/root/pwlib/include/ptlib/unix/ptlib/thread.h:194: friend declaration not in

   class definition
In file included from /root/pwlib/include/ptlib.h:208,
                 from ast_h323.cpp:34:
/root/pwlib/include/ptlib/unix/ptlib/pprocess.h:127: `PXFdDict' was not 
   declared in this scope
/root/pwlib/include/ptlib/unix/ptlib/pprocess.h:127: `POrdinalKey' was not 
   declared in this scope
/root/pwlib/include/ptlib/unix/ptlib/pprocess.h:127: `PThread' was not
declared 
   in this scope
/root/pwlib/include/ptlib/unix/ptlib/pprocess.h:127: ISO C++ forbids 
   declaration of `PDICTIONARY' with no type
/root/pwlib/include/ptlib/unix/ptlib/pprocess.h:127: initializer list being 
   treated as compound expression
/root/pwlib/include/ptlib/unix/ptlib/pprocess.h:132: parse error before
`public
   '
/root/pwlib/include/ptlib/unix/ptlib/pprocess.h:134: `friend' can only be 
   specified inside a class
/root/pwlib/include/ptlib/unix/ptlib/pprocess.h:135: friend declaration not
in 
   class definition
/root/pwlib/include/ptlib/unix/ptlib/pprocess.h:136: `friend' can only be 
   specified inside a class
/root/pwlib/include/ptlib/unix/ptlib/pprocess.h:138: destructors must be
member 
   functions
/root/pwlib/include/ptlib/unix/ptlib/pprocess.h:140: parse error before `)' 
   token
/root/pwlib/include/ptlib/unix/ptlib/pprocess.h:141: non-member function `
   char** PXGetArgv()' cannot have `const' method qualifier
/root/pwlib/include/ptlib/unix/ptlib/pprocess.h: In function `char** 
   PXGetArgv()':
/root/pwlib/include/ptlib/unix/ptlib/pprocess.h:141: `p_argv' undeclared
(first 
   use this function)
/root/pwlib/include/ptlib/unix/ptlib/pprocess.h: At global scope:
/root/pwlib/include/ptlib/unix/ptlib/pprocess.h:142: non-member function
`int 
   PXGetArgc()' cannot have `const' method qualifier
/root/pwlib/include/ptlib/unix/ptlib/pprocess.h: In function `int
PXGetArgc()':
/root/pwlib/include/ptlib/unix/ptlib/pprocess.h:142: `p_argc' undeclared
(first 
   use this function)
/root/pwlib/include/ptlib/unix/ptlib/pprocess.h: At global scope:
/root/pwlib/include/ptlib/unix/ptlib/pprocess.h:143: non-member function `
   char** PXGetEnvp()' cannot have `const' method qualifier
/root/pwlib/include/ptlib/unix/ptlib/pprocess.h: In function `char** 
   PXGetEnvp()':
/root/pwlib/include/ptlib/unix/ptlib/pprocess.h:143: `p_envp' undeclared
(first 
   use this function)
/root/pwlib/include/ptlib/unix/ptlib/pprocess.h: At global scope:
/root/pwlib/include/ptlib/unix/ptlib/pprocess.h:145: friend declaration not
in 
   class definition
/root/pwlib/include/ptlib/unix/ptlib/pprocess.h:146: virtual outside class 
   declaration
/root/pwlib/include/ptlib/unix/ptlib/pprocess.h:147: virtual outside class 
   declaration
/root/pwlib/include/ptlib/unix/ptlib/pprocess.h:151: parse error before `&' 
   token
/root/pwlib/include/ptlib/unix/ptlib/pprocess.h:157: parse error before `&' 
   token
/root/pwlib/include/ptlib/unix/ptlib/pprocess.h:157: virtual outside class 
   declaration
/root/pwlib/include/ptlib/unix/ptlib/pprocess.h:160: parse error before `
   protected'
/root/pwlib/include/ptlib/unix/ptlib/pprocess.h:162: syntax error before `*'

   token
/root/pwlib/include/ptlib/unix/ptlib/pprocess.h:172: 'ThreadDict' is used as
a 
   type, but is not defined as a type.
/root/pwlib/include/ptlib/unix/ptlib/pprocess.h:173: 'PMutex' is used as a 
   type, but is not defined as a type.
In file included from /root/pwlib/include/ptlib.h:214,
                 from ast_h323.cpp:34:
/root/pwlib/include/ptlib/unix/ptlib/semaphor.h:104: parse error before
`public
   '
/root/pwlib/include/ptlib/unix/ptlib/semaphor.h:106: non-member function `
   unsigned int GetMaxCount()' cannot have `const' method qualifier
/root/pwlib/include/ptlib/unix/ptlib/semaphor.h: In function `unsigned int 
   GetMaxCount()':
/root/pwlib/include/ptlib/unix/ptlib/semaphor.h:106: `maxCountVar'
undeclared 
   (first use this function)
/root/pwlib/include/ptlib/unix/ptlib/semaphor.h: At global scope:
/root/pwlib/include/ptlib/unix/ptlib/semaphor.h:108: parse error before `
   protected'
/root/pwlib/include/ptlib/unix/ptlib/semaphor.h:110: `unsigned int
maxCountVar' 
   used prior to declaration
/root/pwlib/include/ptlib/unix/ptlib/semaphor.h:118: non-member function `
   PXClass GetSemClass()' cannot have `const' method qualifier
/root/pwlib/include/ptlib/unix/ptlib/semaphor.h:120: parse error before `
   protected'
In file included from /root/pwlib/include/ptlib.h:220,
                 from ast_h323.cpp:34:
/root/pwlib/include/ptlib/unix/ptlib/mutex.h:125: virtual outside class 
   declaration
/root/pwlib/include/ptlib/unix/ptlib/mutex.h:126: parse error before `&'
token
/root/pwlib/include/ptlib/unix/ptlib/mutex.h:126: virtual outside class 
   declaration
/root/pwlib/include/ptlib/unix/ptlib/mutex.h:127: virtual outside class 
   declaration
/root/pwlib/include/ptlib/unix/ptlib/mutex.h:128: virtual outside class 
   declaration
/root/pwlib/include/ptlib/unix/ptlib/mutex.h:128: non-member function `BOOL 
   WillBlock()' cannot have `const' method qualifier
/root/pwlib/include/ptlib/unix/ptlib/mutex.h:130: parse error before
`protected
   '
In file included from /root/pwlib/include/ptlib.h:226,
                 from ast_h323.cpp:34:
/root/pwlib/include/ptlib/unix/ptlib/syncpoint.h:65: parse error before `&' 
   token
/root/pwlib/include/ptlib/unix/ptlib/syncpoint.h:65: virtual outside class 
   declaration
/root/pwlib/include/ptlib/unix/ptlib/syncpoint.h:66: virtual outside class 
   declaration
/root/pwlib/include/ptlib/unix/ptlib/syncpoint.h:67: virtual outside class 
   declaration
/root/pwlib/include/ptlib/unix/ptlib/syncpoint.h:67: non-member function
`BOOL 
   WillBlock()' cannot have `const' method qualifier
/root/pwlib/include/ptlib/unix/ptlib/syncpoint.h:68: parse error before `
   private'
In file included from /root/pwlib/include/ptlib/syncthrd.h:83,
                 from /root/pwlib/include/ptlib.h:232,
                 from ast_h323.cpp:34:
/root/pwlib/include/ptlib/unix/ptlib/mutex.h:125: virtual outside class 
   declaration
/root/pwlib/include/ptlib/unix/ptlib/mutex.h:126: parse error before `&'
token
/root/pwlib/include/ptlib/unix/ptlib/mutex.h:126: virtual outside class 
   declaration
/root/pwlib/include/ptlib/unix/ptlib/mutex.h:127: virtual outside class 
   declaration
/root/pwlib/include/ptlib/unix/ptlib/mutex.h:128: virtual outside class 
   declaration
/root/pwlib/include/ptlib/unix/ptlib/mutex.h:128: non-member function `BOOL 
   WillBlock()' cannot have `const' method qualifier
/root/pwlib/include/ptlib/unix/ptlib/mutex.h:130: parse error before
`protected
   '
In file included from /root/pwlib/include/ptlib/syncthrd.h:84,
                 from /root/pwlib/include/ptlib.h:232,
                 from ast_h323.cpp:34:
/root/pwlib/include/ptlib/unix/ptlib/syncpoint.h:65: parse error before `&' 
   token
/root/pwlib/include/ptlib/unix/ptlib/syncpoint.h:65: virtual outside class 
   declaration
/root/pwlib/include/ptlib/unix/ptlib/syncpoint.h:66: virtual outside class 
   declaration
/root/pwlib/include/ptlib/unix/ptlib/syncpoint.h:67: virtual outside class 
   declaration
/root/pwlib/include/ptlib/unix/ptlib/syncpoint.h:67: non-member function
`BOOL 
   WillBlock()' cannot have `const' method qualifier
/root/pwlib/include/ptlib/unix/ptlib/syncpoint.h:68: parse error before `
   private'
In file included from /root/pwlib/include/ptlib.h:232,
                 from ast_h323.cpp:34:
/root/pwlib/include/ptlib/syncthrd.h:108: parse error before `{' token
/root/pwlib/include/ptlib/syncthrd.h:124: parse error before `&' token
/root/pwlib/include/ptlib/syncthrd.h:133: parse error before `protected'
/root/pwlib/include/ptlib/syncthrd.h:144: parse error before `{' token
/root/pwlib/include/ptlib/syncthrd.h:158: virtual outside class declaration
/root/pwlib/include/ptlib/syncthrd.h:163: virtual outside class declaration
/root/pwlib/include/ptlib/syncthrd.h:163: function `BOOL Condition()' is 
   initialized like a variable
/root/pwlib/include/ptlib/syncthrd.h:169: virtual outside class declaration
/root/pwlib/include/ptlib/syncthrd.h:171: parse error before `protected'
/root/pwlib/include/ptlib/syncthrd.h:179: base class `PCondMutex' has 
   incomplete type
/root/pwlib/include/ptlib/syncthrd.h:180: ISO C++ forbids declaration of `
   PCLASSINFO' with no type
/root/pwlib/include/ptlib/syncthrd.h:292: parse error before `{' token
/root/pwlib/include/ptlib/syncthrd.h:343: parse error before `protected'
/root/pwlib/include/ptlib/syncthrd.h:345: 'PMutex' is used as a type, but is

   not defined as a type.
/root/pwlib/include/ptlib/syncthrd.h:347: 'PMutex' is used as a type, but is

   not defined as a type.
/root/pwlib/include/ptlib/syncthrd.h:349: 'PSemaphore' is used as a type,
but 
   is not defined as a type.
/root/pwlib/include/ptlib/syncthrd.h:350: 'PMutex' is used as a type, but is

   not defined as a type.
/root/pwlib/include/ptlib/syncthrd.h:354: parse error before `{' token
/root/pwlib/include/ptlib/syncthrd.h:357: redefinition of `unsigned int 
   readerCount'
/root/pwlib/include/ptlib/syncthrd.h:346: `unsigned int readerCount'
previously 
   declared here
/root/pwlib/include/ptlib/syncthrd.h:358: redefinition of `unsigned int 
   writerCount'
/root/pwlib/include/ptlib/syncthrd.h:351: `unsigned int writerCount'
previously 
   declared here
/root/pwlib/include/ptlib/syncthrd.h:359: parse error before `}' token
/root/pwlib/include/ptlib/syncthrd.h:360: `POrdinalKey' was not declared in 
   this scope
/root/pwlib/include/ptlib/syncthrd.h:360: 'PDictionary' is used as a type,
but 
   is not defined as a type.
/root/pwlib/include/ptlib/syncthrd.h:361: 'PMutex' is used as a type, but is

   not defined as a type.
/root/pwlib/include/ptlib/syncthrd.h:363: non-member function `Nest*
GetNest()' 
   cannot have `const' method qualifier
/root/pwlib/include/ptlib/syncthrd.h:368: parse error before `}' token
In file included from /root/pwlib/include/ptlib.h:238,
                 from ast_h323.cpp:34:
/root/pwlib/include/ptlib/pfactory.h:184: ISO C++ forbids declaration of `
   PMutex' with no type
/root/pwlib/include/ptlib/pfactory.h:184: parse error before `&' token
/root/pwlib/include/ptlib/pfactory.h:186: 'PMutex' is used as a type, but is

   not defined as a type.
/root/pwlib/include/ptlib/pfactory.h:196: parse error before `>' token
/root/pwlib/include/ptlib/pfactory.h:201: template declaration of `typedef 
   _Abstract_T Abstract_T'
/root/pwlib/include/ptlib/pfactory.h:201: confused by earlier errors,
bailing out
{standard input}: Assembler messages:
{standard input}:186: Error: symbol `readerCount' is already defined
{standard input}:192: Error: symbol `writerCount' is already defined
make: *** [ast_h323.o] Error 1




More information about the asterisk-users mailing list